Optimal. Leaf size=74 \[ \frac{16 \tanh (x)}{35 a^3 \sqrt{a \text{sech}^2(x)}}+\frac{8 \tanh (x)}{35 a^2 \left (a \text{sech}^2(x)\right )^{3/2}}+\frac{6 \tanh (x)}{35 a \left (a \text{sech}^2(x)\right )^{5/2}}+\frac{\tanh (x)}{7 \left (a \text{sech}^2(x)\right )^{7/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0403825, antiderivative size = 74, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {4122, 192, 191} \[ \frac{16 \tanh (x)}{35 a^3 \sqrt{a \text{sech}^2(x)}}+\frac{8 \tanh (x)}{35 a^2 \left (a \text{sech}^2(x)\right )^{3/2}}+\frac{6 \tanh (x)}{35 a \left (a \text{sech}^2(x)\right )^{5/2}}+\frac{\tanh (x)}{7 \left (a \text{sech}^2(x)\right )^{7/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4122
Rule 192
Rule 191
Rubi steps
\begin{align*} \int \frac{1}{\left (a \text{sech}^2(x)\right )^{7/2}} \, dx &=a \operatorname{Subst}\left (\int \frac{1}{\left (a-a x^2\right )^{9/2}} \, dx,x,\tanh (x)\right )\\ &=\frac{\tanh (x)}{7 \left (a \text{sech}^2(x)\right )^{7/2}}+\frac{6}{7} \operatorname{Subst}\left (\int \frac{1}{\left (a-a x^2\right )^{7/2}} \, dx,x,\tanh (x)\right )\\ &=\frac{\tanh (x)}{7 \left (a \text{sech}^2(x)\right )^{7/2}}+\frac{6 \tanh (x)}{35 a \left (a \text{sech}^2(x)\right )^{5/2}}+\frac{24 \operatorname{Subst}\left (\int \frac{1}{\left (a-a x^2\right )^{5/2}} \, dx,x,\tanh (x)\right )}{35 a}\\ &=\frac{\tanh (x)}{7 \left (a \text{sech}^2(x)\right )^{7/2}}+\frac{6 \tanh (x)}{35 a \left (a \text{sech}^2(x)\right )^{5/2}}+\frac{8 \tanh (x)}{35 a^2 \left (a \text{sech}^2(x)\right )^{3/2}}+\frac{16 \operatorname{Subst}\left (\int \frac{1}{\left (a-a x^2\right )^{3/2}} \, dx,x,\tanh (x)\right )}{35 a^2}\\ &=\frac{\tanh (x)}{7 \left (a \text{sech}^2(x)\right )^{7/2}}+\frac{6 \tanh (x)}{35 a \left (a \text{sech}^2(x)\right )^{5/2}}+\frac{8 \tanh (x)}{35 a^2 \left (a \text{sech}^2(x)\right )^{3/2}}+\frac{16 \tanh (x)}{35 a^3 \sqrt{a \text{sech}^2(x)}}\\ \end{align*}
Mathematica [A] time = 0.0486604, size = 42, normalized size = 0.57 \[ \frac{(1225 \sinh (x)+245 \sinh (3 x)+49 \sinh (5 x)+5 \sinh (7 x)) \cosh (x) \sqrt{a \text{sech}^2(x)}}{2240 a^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.057, size = 262, normalized size = 3.5 \begin{align*}{\frac{{{\rm e}^{8\,x}}}{896\,{a}^{3} \left ({{\rm e}^{2\,x}}+1 \right ) }{\frac{1}{\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}}}}+{\frac{7\,{{\rm e}^{6\,x}}}{640\,{a}^{3} \left ({{\rm e}^{2\,x}}+1 \right ) }{\frac{1}{\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}}}}+{\frac{7\,{{\rm e}^{4\,x}}}{128\,{a}^{3} \left ({{\rm e}^{2\,x}}+1 \right ) }{\frac{1}{\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}}}}+{\frac{35\,{{\rm e}^{2\,x}}}{128\,{a}^{3} \left ({{\rm e}^{2\,x}}+1 \right ) }{\frac{1}{\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}}}}-{\frac{35}{128\,{a}^{3} \left ({{\rm e}^{2\,x}}+1 \right ) }{\frac{1}{\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}}}}-{\frac{7\,{{\rm e}^{-2\,x}}}{128\,{a}^{3} \left ({{\rm e}^{2\,x}}+1 \right ) }{\frac{1}{\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}}}}-{\frac{7\,{{\rm e}^{-4\,x}}}{640\,{a}^{3} \left ({{\rm e}^{2\,x}}+1 \right ) }{\frac{1}{\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}}}}-{\frac{{{\rm e}^{-6\,x}}}{896\,{a}^{3} \left ({{\rm e}^{2\,x}}+1 \right ) }{\frac{1}{\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.65516, size = 96, normalized size = 1.3 \begin{align*} \frac{e^{\left (7 \, x\right )}}{896 \, a^{\frac{7}{2}}} + \frac{7 \, e^{\left (5 \, x\right )}}{640 \, a^{\frac{7}{2}}} + \frac{7 \, e^{\left (3 \, x\right )}}{128 \, a^{\frac{7}{2}}} - \frac{35 \, e^{\left (-x\right )}}{128 \, a^{\frac{7}{2}}} - \frac{7 \, e^{\left (-3 \, x\right )}}{128 \, a^{\frac{7}{2}}} - \frac{7 \, e^{\left (-5 \, x\right )}}{640 \, a^{\frac{7}{2}}} - \frac{e^{\left (-7 \, x\right )}}{896 \, a^{\frac{7}{2}}} + \frac{35 \, e^{x}}{128 \, a^{\frac{7}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.29884, size = 3340, normalized size = 45.14 \begin{align*} \text{result too large to display} \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.11404, size = 72, normalized size = 0.97 \begin{align*} -\frac{{\left (1225 \, e^{\left (6 \, x\right )} + 245 \, e^{\left (4 \, x\right )} + 49 \, e^{\left (2 \, x\right )} + 5\right )} e^{\left (-7 \, x\right )} - 5 \, e^{\left (7 \, x\right )} - 49 \, e^{\left (5 \, x\right )} - 245 \, e^{\left (3 \, x\right )} - 1225 \, e^{x}}{4480 \, a^{\frac{7}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]