y=2cos²x-1+1+sin2x
=sin2x+cos2x+1
=√2(sin2x*√2/2+cos2x*√2/2)+1
=√2(sin2xcosπ/4+cos2xsinπ/4)+1
=√2sin(2x+π/4)+1
sin(2x+π/4)最小=-1
所以y最小=-√2+1
y=2cos²x-1+1+sin2x
=sin2x+cos2x+1
=√2(sin2x*√2/2+cos2x*√2/2)+1
=√2(sin2xcosπ/4+cos2xsinπ/4)+1
=√2sin(2x+π/4)+1
sin(2x+π/4)最小=-1
所以y最小=-√2+1