上下除以-cosx
sinx/cosx=tanx
原式=-(tanx-1)/(tanx+1)
=-(tanx-tanπ/4)/(1+tanxtanπ/4)
=-tan(x-π/4)
=tan(π/4-x)