Optimal. Leaf size=73 \[ \frac {3 a \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {\tan ^3(c+d x) (3 a \sec (c+d x)+4 a)}{12 d}-\frac {\tan (c+d x) (3 a \sec (c+d x)+8 a)}{8 d}+a x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {3881, 3770} \[ \frac {3 a \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {\tan ^3(c+d x) (3 a \sec (c+d x)+4 a)}{12 d}-\frac {\tan (c+d x) (3 a \sec (c+d x)+8 a)}{8 d}+a x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3770
Rule 3881
Rubi steps
\begin {align*} \int (a+a \sec (c+d x)) \tan ^4(c+d x) \, dx &=\frac {(4 a+3 a \sec (c+d x)) \tan ^3(c+d x)}{12 d}-\frac {1}{4} \int (4 a+3 a \sec (c+d x)) \tan ^2(c+d x) \, dx\\ &=-\frac {(8 a+3 a \sec (c+d x)) \tan (c+d x)}{8 d}+\frac {(4 a+3 a \sec (c+d x)) \tan ^3(c+d x)}{12 d}+\frac {1}{8} \int (8 a+3 a \sec (c+d x)) \, dx\\ &=a x-\frac {(8 a+3 a \sec (c+d x)) \tan (c+d x)}{8 d}+\frac {(4 a+3 a \sec (c+d x)) \tan ^3(c+d x)}{12 d}+\frac {1}{8} (3 a) \int \sec (c+d x) \, dx\\ &=a x+\frac {3 a \tanh ^{-1}(\sin (c+d x))}{8 d}-\frac {(8 a+3 a \sec (c+d x)) \tan (c+d x)}{8 d}+\frac {(4 a+3 a \sec (c+d x)) \tan ^3(c+d x)}{12 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.44, size = 75, normalized size = 1.03 \[ \frac {a \left (24 \tan ^{-1}(\tan (c+d x))+9 \tanh ^{-1}(\sin (c+d x))-\frac {1}{2} (32 \cos (c+d x)+15 \cos (2 (c+d x))+16 \cos (3 (c+d x))+3) \tan (c+d x) \sec ^3(c+d x)\right )}{24 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.80, size = 112, normalized size = 1.53 \[ \frac {48 \, a d x \cos \left (d x + c\right )^{4} + 9 \, a \cos \left (d x + c\right )^{4} \log \left (\sin \left (d x + c\right ) + 1\right ) - 9 \, a \cos \left (d x + c\right )^{4} \log \left (-\sin \left (d x + c\right ) + 1\right ) - 2 \, {\left (32 \, a \cos \left (d x + c\right )^{3} + 15 \, a \cos \left (d x + c\right )^{2} - 8 \, a \cos \left (d x + c\right ) - 6 \, a\right )} \sin \left (d x + c\right )}{48 \, d \cos \left (d x + c\right )^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.54, size = 118, normalized size = 1.62 \[ \frac {24 \, {\left (d x + c\right )} a + 9 \, a \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right ) - 9 \, a \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right ) + \frac {2 \, {\left (15 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 71 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 137 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 33 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{4}}}{24 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.48, size = 127, normalized size = 1.74 \[ \frac {a \left (\tan ^{3}\left (d x +c \right )\right )}{3 d}-\frac {a \tan \left (d x +c \right )}{d}+a x +\frac {c a}{d}+\frac {a \left (\sin ^{5}\left (d x +c \right )\right )}{4 d \cos \left (d x +c \right )^{4}}-\frac {a \left (\sin ^{5}\left (d x +c \right )\right )}{8 d \cos \left (d x +c \right )^{2}}-\frac {a \left (\sin ^{3}\left (d x +c \right )\right )}{8 d}-\frac {3 a \sin \left (d x +c \right )}{8 d}+\frac {3 a \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.89, size = 102, normalized size = 1.40 \[ \frac {16 \, {\left (\tan \left (d x + c\right )^{3} + 3 \, d x + 3 \, c - 3 \, \tan \left (d x + c\right )\right )} a + 3 \, a {\left (\frac {2 \, {\left (5 \, \sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{4} - 2 \, \sin \left (d x + c\right )^{2} + 1} + 3 \, \log \left (\sin \left (d x + c\right ) + 1\right ) - 3 \, \log \left (\sin \left (d x + c\right ) - 1\right )\right )}}{48 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.85, size = 134, normalized size = 1.84 \[ a\,x-\frac {-\frac {5\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7}{4}+\frac {71\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{12}-\frac {137\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{12}+\frac {11\,a\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{4}}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8-4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}+\frac {3\,a\,\mathrm {atanh}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{4\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ a \left (\int \tan ^{4}{\left (c + d x \right )} \sec {\left (c + d x \right )}\, dx + \int \tan ^{4}{\left (c + d x \right )}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________