f(x)=cos2x+sinx(sinx+cosx)=cos2x+sinxsinx+sinxcosx=cos2x+1/2sin2x+(1-cos2x)/2=1/2cos2x+1/2sin2x+1/2=1/2(sin2x+cos2x)+1/2=根号2/2(根号2/2sin2x+根号2/2cos2x)+1/2=根号2/2sin(2x+pi/4)+1/2
T=2pi/2=pi
max=1+1/2=3/2
f(x)=cos2x+sinx(sinx+cosx)=cos2x+sinxsinx+sinxcosx=cos2x+1/2sin2x+(1-cos2x)/2=1/2cos2x+1/2sin2x+1/2=1/2(sin2x+cos2x)+1/2=根号2/2(根号2/2sin2x+根号2/2cos2x)+1/2=根号2/2sin(2x+pi/4)+1/2
T=2pi/2=pi
max=1+1/2=3/2