f(x)=1+cos2x+sin2x
=√2(√2/2*sin2x+√2/2cos2x)+1
=√2(sin2xcosπ/4+cos2xsinπ/4)+1
=√2sin(2x+π/4)+1
所以最小值是-√2+1