=∫1/(2+2cos²(x-π/4)-1)dx=∫sec²(x-π/4)/(sec²(x-π/4)+2)dx=∫1/(tan²(x-π/4)+3)dtan(x-π/4)=(1/√3)arctan(tan(x-π/4)/√3)+C