f(x)=2sinxcosx+cos2x
=sin2x+cos2x
=√2[sin2x(√2/2)+(√2/2)cos2x]
=√2[sin2xcos(π/4)+cos2xsin(π/4)]
=√2sin(2x+π/4)