y=sinx-cosx+sinxcosx
=sinx-cosx-1/2(1-2sinxcosx-1)
=sinx-cosx-1/2(sinx-cosx)^2+1/2
=-1/2(sinx-cosx-1)^2+1
=-1/2[2^0.5sin(x-Pi/4)+1]^2+1
Max=1
Min=-(2^0.5+1/2)
y=sinx-cosx+sinxcosx
=sinx-cosx-1/2(1-2sinxcosx-1)
=sinx-cosx-1/2(sinx-cosx)^2+1/2
=-1/2(sinx-cosx-1)^2+1
=-1/2[2^0.5sin(x-Pi/4)+1]^2+1
Max=1
Min=-(2^0.5+1/2)