I have problems with solving the following integral:
$$ \int{{\sin x - \cos x}\over {\sin x + \cos x}} \, dx$$
Could anybody please help me to find the solution and show me the method how it can be solved? I already tried to solve similar ones but I get always stuck when trying the technique with partial fraction decomposition.
Thanks very much in advance!
Implementing the half-angle substitution (per your title), you have $$t=\tan\frac{x}{2}\implies\mathrm{d}t=\frac{1}{2}\sec^2\frac{x}{2}\,\mathrm{d}x$$ From the fact that $t=\tan\dfrac{x}{2}$, you can extract the following: $$\begin{cases}\sin x=2\sin\dfrac{x}{2}\cos\dfrac{x}{2}=\dfrac{2t}{1+t^2}\\[1ex] \cos x=\cos^2\dfrac{x}{2}-\sin^2\dfrac{x}{2}=\frac{1-t^2}{1+t^2}\\[1ex] \sec^2\dfrac{x}{2}=1+t^2\end{cases}$$ All of this tells you your initial integral is equivalent to $$\int\frac{\sin x-\cos x}{\sin x+\cos x}\,\mathrm{d}x=\int\frac{\frac{2t}{1+t^2}-\frac{1-t^2}{1+t^2}}{\frac{2t}{1+t^2}+\frac{1-t^2}{1+t^2}}\times\frac{2}{1+t^2}\,\mathrm{d}t=-2\int\frac{t^2+2t-1}{(t^2-2t-1)(1+t^2)}\,\mathrm{d}t$$ Decomposing into partial fractions yields $$-2\int\left(\frac{t-1}{t^2-2t-1}-\frac{t}{t^2+1}\right)\,\mathrm{d}t$$ Both integrals can easily be computed with substitutions that use the integrand's term's respective denominators.