若函数f(x)=(1+cos2x)/(2sin(π/2-x))+sinx+(a^2)*sin(x+π/4)的最大值为√2