f(x)=2cosx(sinx -cosx) +1
=2sinxcosx -2cos²x +1
=sin(2x) -[1+cos(2x)] +1
=sin(2x) -cos(2x)
=√2[sin(2x)(√2/2) -cos(2x)(√2/2)]
=√2sin(2x-π/4)
f(x)=2cosx(sinx -cosx) +1
=2sinxcosx -2cos²x +1
=sin(2x) -[1+cos(2x)] +1
=sin(2x) -cos(2x)
=√2[sin(2x)(√2/2) -cos(2x)(√2/2)]
=√2sin(2x-π/4)