integral(1+cosx)/(1+sinx) dx
You asked:
Evaluate the integral: \(\int{\frac{1 + \cos\left( x \right)}{1 + \sin\left( x \right)}}dx\)
MathBot Answer:
Antiderivative
\[\int{\frac{1 + \cos\left( x \right)}{1 + \sin\left( x \right)}}dx = - \frac{2}{1 + \tan{\left(\frac{x}{2} \right)}} - \frac{\log{\left(1 + \tan^{2}{\left(\frac{x}{2} \right)} \right)}}{1 + \tan{\left(\frac{x}{2} \right)}} + \frac{2 \log{\left(1 + \tan{\left(\frac{x}{2} \right)} \right)}}{1 + \tan{\left(\frac{x}{2} \right)}} - \frac{\log{\left(1 + \tan^{2}{\left(\frac{x}{2} \right)} \right)} \tan{\left(\frac{x}{2} \right)}}{1 + \tan{\left(\frac{x}{2} \right)}} + \frac{2 \log{\left(1 + \tan{\left(\frac{x}{2} \right)} \right)} \tan{\left(\frac{x}{2} \right)}}{1 + \tan{\left(\frac{x}{2} \right)}} + C\]