Optimal. Leaf size=67 \[ -\frac{a e^{2 \cosh ^{-1}(a+b x)}}{4 b^2}+\frac{a \cosh ^{-1}(a+b x)}{2 b^2}+\frac{e^{-\cosh ^{-1}(a+b x)}}{4 b^2}+\frac{e^{3 \cosh ^{-1}(a+b x)}}{12 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0702901, antiderivative size = 67, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.4, Rules used = {5899, 2282, 12, 1628} \[ -\frac{a e^{2 \cosh ^{-1}(a+b x)}}{4 b^2}+\frac{a \cosh ^{-1}(a+b x)}{2 b^2}+\frac{e^{-\cosh ^{-1}(a+b x)}}{4 b^2}+\frac{e^{3 \cosh ^{-1}(a+b x)}}{12 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5899
Rule 2282
Rule 12
Rule 1628
Rubi steps
\begin{align*} \int e^{\cosh ^{-1}(a+b x)} x \, dx &=\frac{\operatorname{Subst}\left (\int e^x \left (-\frac{a}{b}+\frac{\cosh (x)}{b}\right ) \sinh (x) \, dx,x,\cosh ^{-1}(a+b x)\right )}{b}\\ &=\frac{\operatorname{Subst}\left (\int \frac{\left (1-x^2\right ) \left (-1+2 a x-x^2\right )}{4 b x^2} \, dx,x,e^{\cosh ^{-1}(a+b x)}\right )}{b}\\ &=\frac{\operatorname{Subst}\left (\int \frac{\left (1-x^2\right ) \left (-1+2 a x-x^2\right )}{x^2} \, dx,x,e^{\cosh ^{-1}(a+b x)}\right )}{4 b^2}\\ &=\frac{\operatorname{Subst}\left (\int \left (-\frac{1}{x^2}+\frac{2 a}{x}-2 a x+x^2\right ) \, dx,x,e^{\cosh ^{-1}(a+b x)}\right )}{4 b^2}\\ &=\frac{e^{-\cosh ^{-1}(a+b x)}}{4 b^2}-\frac{a e^{2 \cosh ^{-1}(a+b x)}}{4 b^2}+\frac{e^{3 \cosh ^{-1}(a+b x)}}{12 b^2}+\frac{a \cosh ^{-1}(a+b x)}{2 b^2}\\ \end{align*}
Mathematica [A] time = 0.152642, size = 93, normalized size = 1.39 \[ \frac{1}{6} \left (\frac{\sqrt{a+b x-1} \sqrt{a+b x+1} \left (-a^2+a b x+2 b^2 x^2-2\right )}{b^2}+\frac{3 a \log \left (\sqrt{a+b x-1} \sqrt{a+b x+1}+a+b x\right )}{b^2}+3 a x^2+2 b x^3\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.012, size = 194, normalized size = 2.9 \begin{align*}{\frac{{\it csgn} \left ( b \right ) }{6\,{b}^{2}}\sqrt{bx+a-1}\sqrt{bx+a+1} \left ( 2\,\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}-1}{\it csgn} \left ( b \right ){x}^{2}{b}^{2}+\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}-1}{\it csgn} \left ( b \right ) xab-\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}-1}{\it csgn} \left ( b \right ){a}^{2}-2\,\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}-1}{\it csgn} \left ( b \right ) +3\,\ln \left ( \left ( \sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}-1}{\it csgn} \left ( b \right ) +bx+a \right ){\it csgn} \left ( b \right ) \right ) a \right ){\frac{1}{\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}-1}}}}+{\frac{b{x}^{3}}{3}}+{\frac{a{x}^{2}}{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.99024, size = 217, normalized size = 3.24 \begin{align*} \frac{2 \, b^{3} x^{3} + 3 \, a b^{2} x^{2} +{\left (2 \, b^{2} x^{2} + a b x - a^{2} - 2\right )} \sqrt{b x + a + 1} \sqrt{b x + a - 1} - 3 \, a \log \left (-b x + \sqrt{b x + a + 1} \sqrt{b x + a - 1} - a\right )}{6 \, b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x \left (a + b x + \sqrt{a + b x - 1} \sqrt{a + b x + 1}\right )\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.27061, size = 176, normalized size = 2.63 \begin{align*} \frac{2 \,{\left (b x^{3} + \frac{a^{3} + 3 \, a^{2} + 3 \, a + 1}{b^{2}}\right )} b + \frac{3 \,{\left ({\left (b x + a + 1\right )}^{2} - 2 \,{\left (b x + a + 1\right )} a - 2 \, b x - 2 \, a - 2\right )} a}{b} + \frac{{\left ({\left (2 \, b x - a - 2\right )}{\left (b x + a + 1\right )} + 3 \, a\right )} \sqrt{b x + a + 1} \sqrt{b x + a - 1} - 6 \, a \log \left ({\left | -\sqrt{b x + a + 1} + \sqrt{b x + a - 1} \right |}\right )}{b}}{6 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]