已知函数f(x)=(1+cotx)sinx-2sin(x+π/4)sin(x-π/4).若tanx=2.求f(x)