f(x)=sinx-cosx=√2(√2/2sinx-√2/2cosx)=√2sin(x-π/4)sin(x-π/4)∈[-1,1]f(x)∈[-√2,√2](2)sin²x+cos²x=1sin²x+cos²x-2sinxcosx+2sinxcox=1(sinx-cosx)²=1-sin2x=1-1/3=2/3sinx-cosx=±√6/3因为x∈(0,π/4)此时sinx所以f(x)=sinx-cosx=-√6/3