f(x)=sin(x-π/4)+2√2sin2x+sin(x-π/4)-2
=2sin(x-π/4)+2√2cos[2(x-π/4)]-2
=2√2[1-2sin(x-π/4)^2]+2sin(x-π/4)-2
=-4√2sin(x-π/4)^2+2sin(x-π/4)+2√2-2
=-4√2[sin(x-π/4)-√2/8]^2+17√2/8-2
f(x)=sin(x-π/4)+2√2sin2x+sin(x-π/4)-2
=2sin(x-π/4)+2√2cos[2(x-π/4)]-2
=2√2[1-2sin(x-π/4)^2]+2sin(x-π/4)-2
=-4√2sin(x-π/4)^2+2sin(x-π/4)+2√2-2
=-4√2[sin(x-π/4)-√2/8]^2+17√2/8-2