Integral of 1/(cos^2x+2*sinx*cosx) dx
The solution
The answer (Indefinite)
[src]
/ / 2/x\ /x\\ / /x\\ / /x\\
| log|-1 + tan |-| - 4*tan|-|| log|1 + tan|-|| log|-1 + tan|-||
| 1 \ \2/ \2// \ \2// \ \2//
| 1*------------------------- dx = C + ---------------------------- - --------------- - ----------------
| 2 2 2 2
| cos (x) + 2*sin(x)*cos(x)
|
/
$$\int 1 \cdot \frac{1}{2 \sin{\left(x \right)} \cos{\left(x \right)} + \cos^{2}{\left(x \right)}}\, dx = C - \frac{\log{\left(\tan{\left(\frac{x}{2} \right)} - 1 \right)}}{2} - \frac{\log{\left(\tan{\left(\frac{x}{2} \right)} + 1 \right)}}{2} + \frac{\log{\left(\tan^{2}{\left(\frac{x}{2} \right)} - 4 \tan{\left(\frac{x}{2} \right)} - 1 \right)}}{2}$$
/ 2 \
log\1 - tan (1/2) + 4*tan(1/2)/ log(1 - tan(1/2)) log(1 + tan(1/2))
------------------------------- - ----------------- - -----------------
2 2 2
$$- \frac{\log{\left(\tan{\left(\frac{1}{2} \right)} + 1 \right)}}{2} - \frac{\log{\left(1 - \tan{\left(\frac{1}{2} \right)} \right)}}{2} + \frac{\log{\left(- \tan^{2}{\left(\frac{1}{2} \right)} + 1 + 4 \tan{\left(\frac{1}{2} \right)} \right)}}{2}$$
=
/ 2 \
log\1 - tan (1/2) + 4*tan(1/2)/ log(1 - tan(1/2)) log(1 + tan(1/2))
------------------------------- - ----------------- - -----------------
2 2 2
$$- \frac{\log{\left(\tan{\left(\frac{1}{2} \right)} + 1 \right)}}{2} - \frac{\log{\left(1 - \tan{\left(\frac{1}{2} \right)} \right)}}{2} + \frac{\log{\left(- \tan^{2}{\left(\frac{1}{2} \right)} + 1 + 4 \tan{\left(\frac{1}{2} \right)} \right)}}{2}$$
Use the examples entering the upper and lower limits of integration.