利用二倍角公式
sin x=2sin x/2 cos x/2
1+cos x=2(cos x/2)^2
1-cos x=2(sin x/2)^2
代入
(1+sinx+cosx) / (1+sinx-cosx)
=(2(cos x/2)^2+2sin x/2 cos x/2)/(2(sin x/2)^2+2sin x/2 cos x/2) 上下约去2(cos x/2+sin x/2)
=cos x/2/sin x/2
=cot x/2
利用二倍角公式
sin x=2sin x/2 cos x/2
1+cos x=2(cos x/2)^2
1-cos x=2(sin x/2)^2
代入
(1+sinx+cosx) / (1+sinx-cosx)
=(2(cos x/2)^2+2sin x/2 cos x/2)/(2(sin x/2)^2+2sin x/2 cos x/2) 上下约去2(cos x/2+sin x/2)
=cos x/2/sin x/2
=cot x/2