f(x)=2(cos2x+1)-sin2x=2cos2x-sin2x+2
f(x)=根号(2^2+1^2)*sin(2x+arctan(-2))+2
f(x)=根号5*sin(2x+arctan(-2))+2
值域[-根号5+2,根号5+2]