Optimal. Leaf size=53 \[ \frac{2 x}{\sqrt{195}}-\frac{2 \tan ^{-1}\left (\frac{10 \cos ^2(x)+12 \sin (x) \cos (x)-5}{12 \cos ^2(x)-10 \sin (x) \cos (x)+\sqrt{195}+10}\right )}{\sqrt{195}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0656439, antiderivative size = 53, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158, Rules used = {4342, 618, 204} \[ \frac{2 x}{\sqrt{195}}-\frac{2 \tan ^{-1}\left (\frac{10 \cos ^2(x)+12 \sin (x) \cos (x)-5}{12 \cos ^2(x)-10 \sin (x) \cos (x)+\sqrt{195}+10}\right )}{\sqrt{195}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4342
Rule 618
Rule 204
Rubi steps
\begin{align*} \int \frac{\sec ^2(x)}{11-5 \tan (x)+5 \tan ^2(x)} \, dx &=\operatorname{Subst}\left (\int \frac{1}{11-5 x+5 x^2} \, dx,x,\tan (x)\right )\\ &=-\left (2 \operatorname{Subst}\left (\int \frac{1}{-195-x^2} \, dx,x,-5+10 \tan (x)\right )\right )\\ &=\frac{2 x}{\sqrt{195}}+\frac{2 \tan ^{-1}\left (\frac{5-10 \cos ^2(x)-12 \cos (x) \sin (x)}{10+\sqrt{195}+12 \cos ^2(x)-10 \cos (x) \sin (x)}\right )}{\sqrt{195}}\\ \end{align*}
Mathematica [A] time = 0.0549315, size = 22, normalized size = 0.42 \[ -\frac{2 \tan ^{-1}\left (\sqrt{\frac{5}{39}} (1-2 \tan (x))\right )}{\sqrt{195}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.064, size = 18, normalized size = 0.3 \begin{align*}{\frac{2\,\sqrt{195}}{195}\arctan \left ({\frac{ \left ( 10\,\tan \left ( x \right ) -5 \right ) \sqrt{195}}{195}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.46819, size = 23, normalized size = 0.43 \begin{align*} \frac{2}{195} \, \sqrt{195} \arctan \left (\frac{1}{39} \, \sqrt{195}{\left (2 \, \tan \left (x\right ) - 1\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.10278, size = 188, normalized size = 3.55 \begin{align*} \frac{1}{195} \, \sqrt{195} \arctan \left (-\frac{192 \, \sqrt{195} \cos \left (x\right )^{2} - 160 \, \sqrt{195} \cos \left (x\right ) \sin \left (x\right ) - 35 \, \sqrt{195}}{195 \,{\left (10 \, \cos \left (x\right )^{2} + 12 \, \cos \left (x\right ) \sin \left (x\right ) - 5\right )}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec ^{2}{\left (x \right )}}{5 \tan ^{2}{\left (x \right )} - 5 \tan{\left (x \right )} + 11}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12237, size = 23, normalized size = 0.43 \begin{align*} \frac{2}{195} \, \sqrt{195} \arctan \left (\frac{1}{39} \, \sqrt{195}{\left (2 \, \tan \left (x\right ) - 1\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]