Optimal. Leaf size=59 \[ -\frac {\left (a^2-b^2\right ) \log (a+b \sec (c+d x))}{a b^2 d}+\frac {\log (\cos (c+d x))}{a d}+\frac {\sec (c+d x)}{b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {3885, 894} \[ -\frac {\left (a^2-b^2\right ) \log (a+b \sec (c+d x))}{a b^2 d}+\frac {\log (\cos (c+d x))}{a d}+\frac {\sec (c+d x)}{b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 894
Rule 3885
Rubi steps
\begin {align*} \int \frac {\tan ^3(c+d x)}{a+b \sec (c+d x)} \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {b^2-x^2}{x (a+x)} \, dx,x,b \sec (c+d x)\right )}{b^2 d}\\ &=-\frac {\operatorname {Subst}\left (\int \left (-1+\frac {b^2}{a x}+\frac {a^2-b^2}{a (a+x)}\right ) \, dx,x,b \sec (c+d x)\right )}{b^2 d}\\ &=\frac {\log (\cos (c+d x))}{a d}-\frac {\left (a^2-b^2\right ) \log (a+b \sec (c+d x))}{a b^2 d}+\frac {\sec (c+d x)}{b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 52, normalized size = 0.88 \[ \frac {\left (b^2-a^2\right ) \log (a \cos (c+d x)+b)+a^2 \log (\cos (c+d x))+a b \sec (c+d x)}{a b^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.51, size = 69, normalized size = 1.17 \[ \frac {a^{2} \cos \left (d x + c\right ) \log \left (-\cos \left (d x + c\right )\right ) - {\left (a^{2} - b^{2}\right )} \cos \left (d x + c\right ) \log \left (a \cos \left (d x + c\right ) + b\right ) + a b}{a b^{2} d \cos \left (d x + c\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 2.07, size = 289, normalized size = 4.90 \[ -\frac {\frac {a \log \left ({\left | a + b - \frac {2 \, b {\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} - \frac {a {\left (\cos \left (d x + c\right ) - 1\right )}^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {b {\left (\cos \left (d x + c\right ) - 1\right )}^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} \right |}\right )}{b^{2}} - \frac {2 \, a \log \left ({\left | -\frac {\cos \left (d x + c\right ) - 1}{\cos \left (d x + c\right ) + 1} - 1 \right |}\right )}{b^{2}} - \frac {{\left (a^{2} - 2 \, b^{2}\right )} \log \left (\frac {{\left | 2 \, b + \frac {2 \, a {\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} - \frac {2 \, b {\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} - 2 \, {\left | a \right |} \right |}}{{\left | 2 \, b + \frac {2 \, a {\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} - \frac {2 \, b {\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} + 2 \, {\left | a \right |} \right |}}\right )}{b^{2} {\left | a \right |}} + \frac {2 \, {\left (a - 2 \, b + \frac {a {\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1}\right )}}{b^{2} {\left (\frac {\cos \left (d x + c\right ) - 1}{\cos \left (d x + c\right ) + 1} + 1\right )}}}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.39, size = 70, normalized size = 1.19 \[ -\frac {a \ln \left (b +a \cos \left (d x +c \right )\right )}{d \,b^{2}}+\frac {\ln \left (b +a \cos \left (d x +c \right )\right )}{d a}+\frac {a \ln \left (\cos \left (d x +c \right )\right )}{d \,b^{2}}+\frac {1}{d b \cos \left (d x +c \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 57, normalized size = 0.97 \[ \frac {\frac {a \log \left (\cos \left (d x + c\right )\right )}{b^{2}} - \frac {{\left (a^{2} - b^{2}\right )} \log \left (a \cos \left (d x + c\right ) + b\right )}{a b^{2}} + \frac {1}{b \cos \left (d x + c\right )}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.54, size = 115, normalized size = 1.95 \[ \frac {a\,\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-1\right )}{b^2\,d}-\frac {2}{b\,d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-1\right )}-\frac {\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{a\,d}-\frac {\ln \left (a+b-a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\right )\,\left (\frac {a}{b^2}-\frac {1}{a}\right )}{d} \]
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 {\tan ^{3}{\left (c + d x \right )}}{a + b \sec {\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________