若x∈ [-π/3,π/4],求函数y=sec^ 2x+2tanx+1的最值及相应的x值