Optimal. Leaf size=34 \[ \frac{1}{a^2 x}-\frac{\cos (a x)}{a^2 x (a x \sin (a x)+\cos (a x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0224119, antiderivative size = 34, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.048, Rules used = {4597} \[ \frac{1}{a^2 x}-\frac{\cos (a x)}{a^2 x (a x \sin (a x)+\cos (a x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4597
Rubi steps
\begin{align*} \int \frac{\cos ^2(a x)}{(\cos (a x)+a x \sin (a x))^2} \, dx &=\frac{1}{a^2 x}-\frac{\cos (a x)}{a^2 x (\cos (a x)+a x \sin (a x))}\\ \end{align*}
Mathematica [A] time = 0.220609, size = 22, normalized size = 0.65 \[ \frac{\sin (a x)}{a (a x \sin (a x)+\cos (a x))} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.663, size = 70, normalized size = 2.1 \begin{align*}{ \left ( 2\,{\frac{\tan \left ( 1/2\,ax \right ) }{a}}+4\,{\frac{ \left ( \tan \left ( 1/2\,ax \right ) \right ) ^{3}}{a}}+2\,{\frac{ \left ( \tan \left ( 1/2\,ax \right ) \right ) ^{5}}{a}} \right ) \left ( 1+ \left ( \tan \left ({\frac{ax}{2}} \right ) \right ) ^{2} \right ) ^{-2} \left ( 2\,\tan \left ( 1/2\,ax \right ) xa- \left ( \tan \left ({\frac{ax}{2}} \right ) \right ) ^{2}+1 \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.06031, size = 154, normalized size = 4.53 \begin{align*} \frac{a x \cos \left (2 \, a x\right )^{2} + a x \sin \left (2 \, a x\right )^{2} - 2 \, a x \cos \left (2 \, a x\right ) + a x + 2 \, \sin \left (2 \, a x\right )}{{\left (a^{2} x^{2} +{\left (a^{2} x^{2} + 1\right )} \cos \left (2 \, a x\right )^{2} + 4 \, a x \sin \left (2 \, a x\right ) +{\left (a^{2} x^{2} + 1\right )} \sin \left (2 \, a x\right )^{2} - 2 \,{\left (a^{2} x^{2} - 1\right )} \cos \left (2 \, a x\right ) + 1\right )} a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.02329, size = 54, normalized size = 1.59 \begin{align*} \frac{\sin \left (a x\right )}{a^{2} x \sin \left (a x\right ) + a \cos \left (a x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.09642, size = 20, normalized size = 0.59 \begin{align*} \frac{\sin{\left (a x \right )}}{a^{2} x \sin{\left (a x \right )} + a \cos{\left (a x \right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14777, size = 43, normalized size = 1.26 \begin{align*} \frac{2 \, \tan \left (\frac{1}{2} \, a x\right )}{2 \, a^{2} x \tan \left (\frac{1}{2} \, a x\right ) - a \tan \left (\frac{1}{2} \, a x\right )^{2} + a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]