Optimal. Leaf size=33 \[ \frac {\tan ^{-1}\left (\frac {\sqrt {a+c} \tan (x)}{\sqrt {a+b}}\right )}{\sqrt {a+b} \sqrt {a+c}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 33, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {205} \[ \frac {\tan ^{-1}\left (\frac {\sqrt {a+c} \tan (x)}{\sqrt {a+b}}\right )}{\sqrt {a+b} \sqrt {a+c}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rubi steps
\begin {align*} \int \frac {1}{a+b \cos ^2(x)+c \sin ^2(x)} \, dx &=\operatorname {Subst}\left (\int \frac {1}{a+b+(a+c) x^2} \, dx,x,\tan (x)\right )\\ &=\frac {\tan ^{-1}\left (\frac {\sqrt {a+c} \tan (x)}{\sqrt {a+b}}\right )}{\sqrt {a+b} \sqrt {a+c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 33, normalized size = 1.00 \[ \frac {\tan ^{-1}\left (\frac {\sqrt {a+c} \tan (x)}{\sqrt {a+b}}\right )}{\sqrt {a+b} \sqrt {a+c}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.96, size = 259, normalized size = 7.85 \[ \left [-\frac {\sqrt {-a^{2} - a b - {\left (a + b\right )} c} \log \left (\frac {{\left (8 \, a^{2} + 8 \, a b + b^{2} + 2 \, {\left (4 \, a + 3 \, b\right )} c + c^{2}\right )} \cos \relax (x)^{4} - 2 \, {\left (4 \, a^{2} + 3 \, a b + {\left (5 \, a + 3 \, b\right )} c + c^{2}\right )} \cos \relax (x)^{2} + 4 \, {\left ({\left (2 \, a + b + c\right )} \cos \relax (x)^{3} - {\left (a + c\right )} \cos \relax (x)\right )} \sqrt {-a^{2} - a b - {\left (a + b\right )} c} \sin \relax (x) + a^{2} + 2 \, a c + c^{2}}{{\left (b^{2} - 2 \, b c + c^{2}\right )} \cos \relax (x)^{4} + 2 \, {\left (a b - {\left (a - b\right )} c - c^{2}\right )} \cos \relax (x)^{2} + a^{2} + 2 \, a c + c^{2}}\right )}{4 \, {\left (a^{2} + a b + {\left (a + b\right )} c\right )}}, -\frac {\arctan \left (\frac {{\left (2 \, a + b + c\right )} \cos \relax (x)^{2} - a - c}{2 \, \sqrt {a^{2} + a b + {\left (a + b\right )} c} \cos \relax (x) \sin \relax (x)}\right )}{2 \, \sqrt {a^{2} + a b + {\left (a + b\right )} c}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.14, size = 61, normalized size = 1.85 \[ \frac {\pi \left \lfloor \frac {x}{\pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (2 \, a + 2 \, c\right ) + \arctan \left (\frac {a \tan \relax (x) + c \tan \relax (x)}{\sqrt {a^{2} + a b + a c + b c}}\right )}{\sqrt {a^{2} + a b + a c + b c}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.12, size = 27, normalized size = 0.82 \[ \frac {\arctan \left (\frac {\left (a +c \right ) \tan \relax (x )}{\sqrt {\left (a +b \right ) \left (a +c \right )}}\right )}{\sqrt {\left (a +b \right ) \left (a +c \right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 26, normalized size = 0.79 \[ \frac {\arctan \left (\frac {{\left (a + c\right )} \tan \relax (x)}{\sqrt {{\left (a + b\right )} {\left (a + c\right )}}}\right )}{\sqrt {{\left (a + b\right )} {\left (a + c\right )}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.85, size = 43, normalized size = 1.30 \[ \frac {\mathrm {atan}\left (\frac {\mathrm {tan}\relax (x)\,\left (2\,a+2\,c\right )}{2\,\sqrt {a\,b+a\,c+b\,c+a^2}}\right )}{\sqrt {a\,b+a\,c+b\,c+a^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{a + b \cos ^{2}{\relax (x )} + c \sin ^{2}{\relax (x )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________