Optimal. Leaf size=35 \[ \frac{1}{a^2 x}+\frac{\sin (a x)}{a^2 x (a x \cos (a x)-\sin (a x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0241799, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.043, Rules used = {4596} \[ \frac{1}{a^2 x}+\frac{\sin (a x)}{a^2 x (a x \cos (a x)-\sin (a x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4596
Rubi steps
\begin{align*} \int \frac{\sin ^2(a x)}{(a x \cos (a x)-\sin (a x))^2} \, dx &=\frac{1}{a^2 x}+\frac{\sin (a x)}{a^2 x (a x \cos (a x)-\sin (a x))}\\ \end{align*}
Mathematica [A] time = 0.297996, size = 24, normalized size = 0.69 \[ \frac{\cos (a x)}{a^2 x \cos (a x)-a \sin (a x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.454, size = 77, normalized size = 2.2 \begin{align*}{ \left ({\frac{1}{a} \left ( \tan \left ({\frac{ax}{2}} \right ) \right ) ^{4}}+{\frac{1}{a} \left ( \tan \left ({\frac{ax}{2}} \right ) \right ) ^{6}}-{a}^{-1}-{\frac{1}{a} \left ( \tan \left ({\frac{ax}{2}} \right ) \right ) ^{2}} \right ) \left ( 1+ \left ( \tan \left ({\frac{ax}{2}} \right ) \right ) ^{2} \right ) ^{-2} \left ( ax \left ( \tan \left ({\frac{ax}{2}} \right ) \right ) ^{2}-ax+2\,\tan \left ( 1/2\,ax \right ) \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.06221, size = 154, normalized size = 4.4 \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.08256, size = 54, normalized size = 1.54 \begin{align*} \frac{\cos \left (a x\right )}{a^{2} x \cos \left (a x\right ) - a \sin \left (a x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.59789, size = 20, normalized size = 0.57 \begin{align*} \frac{\cos{\left (a x \right )}}{a^{2} x \cos{\left (a x \right )} - a \sin{\left (a x \right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14914, size = 53, normalized size = 1.51 \begin{align*} \frac{\tan \left (\frac{1}{2} \, a x\right )^{2} - 1}{a^{2} x \tan \left (\frac{1}{2} \, a x\right )^{2} - a^{2} x + 2 \, a \tan \left (\frac{1}{2} \, a x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]