Optimal. Leaf size=98 \[ \frac{2 \sin (c+d x)}{3 a d \left (a^2+b^2\right ) (a \cos (c+d x)+b \sin (c+d x))}-\frac{b \cos (c+d x)-a \sin (c+d x)}{3 d \left (a^2+b^2\right ) (a \cos (c+d x)+b \sin (c+d x))^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.041788, antiderivative size = 98, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {3076, 3075} \[ \frac{2 \sin (c+d x)}{3 a d \left (a^2+b^2\right ) (a \cos (c+d x)+b \sin (c+d x))}-\frac{b \cos (c+d x)-a \sin (c+d x)}{3 d \left (a^2+b^2\right ) (a \cos (c+d x)+b \sin (c+d x))^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3076
Rule 3075
Rubi steps
\begin{align*} \int \frac{1}{(a \cos (c+d x)+b \sin (c+d x))^4} \, dx &=-\frac{b \cos (c+d x)-a \sin (c+d x)}{3 \left (a^2+b^2\right ) d (a \cos (c+d x)+b \sin (c+d x))^3}+\frac{2 \int \frac{1}{(a \cos (c+d x)+b \sin (c+d x))^2} \, dx}{3 \left (a^2+b^2\right )}\\ &=-\frac{b \cos (c+d x)-a \sin (c+d x)}{3 \left (a^2+b^2\right ) d (a \cos (c+d x)+b \sin (c+d x))^3}+\frac{2 \sin (c+d x)}{3 a \left (a^2+b^2\right ) d (a \cos (c+d x)+b \sin (c+d x))}\\ \end{align*}
Mathematica [A] time = 0.290424, size = 85, normalized size = 0.87 \[ \frac{\sin (c+d x) \left (\left (a^2-b^2\right ) \cos (2 (c+d x))+2 a^2+b^2\right )-a b \cos (3 (c+d x))}{3 a d \left (a^2+b^2\right ) (a \cos (c+d x)+b \sin (c+d x))^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.181, size = 64, normalized size = 0.7 \begin{align*}{\frac{1}{d} \left ( -{\frac{1}{{b}^{3} \left ( a+b\tan \left ( dx+c \right ) \right ) }}-{\frac{{a}^{2}+{b}^{2}}{3\,{b}^{3} \left ( a+b\tan \left ( dx+c \right ) \right ) ^{3}}}+{\frac{a}{{b}^{3} \left ( a+b\tan \left ( dx+c \right ) \right ) ^{2}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.01743, size = 115, normalized size = 1.17 \begin{align*} -\frac{3 \, b^{2} \tan \left (d x + c\right )^{2} + 3 \, a b \tan \left (d x + c\right ) + a^{2} + b^{2}}{3 \,{\left (b^{6} \tan \left (d x + c\right )^{3} + 3 \, a b^{5} \tan \left (d x + c\right )^{2} + 3 \, a^{2} b^{4} \tan \left (d x + c\right ) + a^{3} b^{3}\right )} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.21456, size = 470, normalized size = 4.8 \begin{align*} -\frac{2 \,{\left (3 \, a^{2} b - b^{3}\right )} \cos \left (d x + c\right )^{3} - 3 \,{\left (a^{2} b - b^{3}\right )} \cos \left (d x + c\right ) -{\left (a^{3} + 3 \, a b^{2} + 2 \,{\left (a^{3} - 3 \, a b^{2}\right )} \cos \left (d x + c\right )^{2}\right )} \sin \left (d x + c\right )}{3 \,{\left ({\left (a^{7} - a^{5} b^{2} - 5 \, a^{3} b^{4} - 3 \, a b^{6}\right )} d \cos \left (d x + c\right )^{3} + 3 \,{\left (a^{5} b^{2} + 2 \, a^{3} b^{4} + a b^{6}\right )} d \cos \left (d x + c\right ) +{\left ({\left (3 \, a^{6} b + 5 \, a^{4} b^{3} + a^{2} b^{5} - b^{7}\right )} d \cos \left (d x + c\right )^{2} +{\left (a^{4} b^{3} + 2 \, a^{2} b^{5} + b^{7}\right )} d\right )} \sin \left (d x + c\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17313, size = 68, normalized size = 0.69 \begin{align*} -\frac{3 \, b^{2} \tan \left (d x + c\right )^{2} + 3 \, a b \tan \left (d x + c\right ) + a^{2} + b^{2}}{3 \,{\left (b \tan \left (d x + c\right ) + a\right )}^{3} b^{3} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]