f(x)=1+2sinxcosx+cox2x
=1+sin2x+cox2x
(1)f(π/4)=1+1+0=2
(2)当sin2x=cos2x时,f(x)取最大值=1+2根号下sinxcosx
即2x=π/4+2kπ
x=π/8+kπ