Optimal. Leaf size=90 \[ -\frac {x^2 \sqrt {1+(a+b x)^2}}{9 b}+\frac {\left (4-11 a^2+5 a b x\right ) \sqrt {1+(a+b x)^2}}{18 b^3}-\frac {a \left (3-2 a^2\right ) \sinh ^{-1}(a+b x)}{6 b^3}+\frac {1}{3} x^3 \sinh ^{-1}(a+b x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 90, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {5859, 5828,
757, 794, 221} \begin {gather*} \frac {\left (-11 a^2+5 a b x+4\right ) \sqrt {(a+b x)^2+1}}{18 b^3}-\frac {a \left (3-2 a^2\right ) \sinh ^{-1}(a+b x)}{6 b^3}+\frac {1}{3} x^3 \sinh ^{-1}(a+b x)-\frac {x^2 \sqrt {(a+b x)^2+1}}{9 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 221
Rule 757
Rule 794
Rule 5828
Rule 5859
Rubi steps
\begin {align*} \int x^2 \sinh ^{-1}(a+b x) \, dx &=\frac {\text {Subst}\left (\int \left (-\frac {a}{b}+\frac {x}{b}\right )^2 \sinh ^{-1}(x) \, dx,x,a+b x\right )}{b}\\ &=\frac {1}{3} x^3 \sinh ^{-1}(a+b x)-\frac {1}{3} \text {Subst}\left (\int \frac {\left (-\frac {a}{b}+\frac {x}{b}\right )^3}{\sqrt {1+x^2}} \, dx,x,a+b x\right )\\ &=-\frac {x^2 \sqrt {1+(a+b x)^2}}{9 b}+\frac {1}{3} x^3 \sinh ^{-1}(a+b x)-\frac {1}{9} \text {Subst}\left (\int \frac {\left (-\frac {2-3 a^2}{b^2}-\frac {5 a x}{b^2}\right ) \left (-\frac {a}{b}+\frac {x}{b}\right )}{\sqrt {1+x^2}} \, dx,x,a+b x\right )\\ &=-\frac {x^2 \sqrt {1+(a+b x)^2}}{9 b}+\frac {\left (4-11 a^2+5 a b x\right ) \sqrt {1+(a+b x)^2}}{18 b^3}+\frac {1}{3} x^3 \sinh ^{-1}(a+b x)-\frac {\left (a \left (3-2 a^2\right )\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+x^2}} \, dx,x,a+b x\right )}{6 b^3}\\ &=-\frac {x^2 \sqrt {1+(a+b x)^2}}{9 b}+\frac {\left (4-11 a^2+5 a b x\right ) \sqrt {1+(a+b x)^2}}{18 b^3}-\frac {a \left (3-2 a^2\right ) \sinh ^{-1}(a+b x)}{6 b^3}+\frac {1}{3} x^3 \sinh ^{-1}(a+b x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 74, normalized size = 0.82 \begin {gather*} \frac {\left (4-11 a^2+5 a b x-2 b^2 x^2\right ) \sqrt {1+a^2+2 a b x+b^2 x^2}+\left (-9 a+6 a^3+6 b^3 x^3\right ) \sinh ^{-1}(a+b x)}{18 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.28, size = 130, normalized size = 1.44
method | result | size |
derivativedivides | \(\frac {\arcsinh \left (b x +a \right ) a^{2} \left (b x +a \right )-\arcsinh \left (b x +a \right ) a \left (b x +a \right )^{2}+\frac {\arcsinh \left (b x +a \right ) \left (b x +a \right )^{3}}{3}-a^{2} \sqrt {1+\left (b x +a \right )^{2}}+a \left (\frac {\left (b x +a \right ) \sqrt {1+\left (b x +a \right )^{2}}}{2}-\frac {\arcsinh \left (b x +a \right )}{2}\right )-\frac {\left (b x +a \right )^{2} \sqrt {1+\left (b x +a \right )^{2}}}{9}+\frac {2 \sqrt {1+\left (b x +a \right )^{2}}}{9}}{b^{3}}\) | \(130\) |
default | \(\frac {\arcsinh \left (b x +a \right ) a^{2} \left (b x +a \right )-\arcsinh \left (b x +a \right ) a \left (b x +a \right )^{2}+\frac {\arcsinh \left (b x +a \right ) \left (b x +a \right )^{3}}{3}-a^{2} \sqrt {1+\left (b x +a \right )^{2}}+a \left (\frac {\left (b x +a \right ) \sqrt {1+\left (b x +a \right )^{2}}}{2}-\frac {\arcsinh \left (b x +a \right )}{2}\right )-\frac {\left (b x +a \right )^{2} \sqrt {1+\left (b x +a \right )^{2}}}{9}+\frac {2 \sqrt {1+\left (b x +a \right )^{2}}}{9}}{b^{3}}\) | \(130\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 210 vs.
\(2 (78) = 156\).
time = 0.27, size = 210, normalized size = 2.33 \begin {gather*} \frac {1}{3} \, x^{3} \operatorname {arsinh}\left (b x + a\right ) - \frac {1}{18} \, b {\left (\frac {2 \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1} x^{2}}{b^{2}} - \frac {15 \, a^{3} \operatorname {arsinh}\left (\frac {2 \, {\left (b^{2} x + a b\right )}}{\sqrt {-4 \, a^{2} b^{2} + 4 \, {\left (a^{2} + 1\right )} b^{2}}}\right )}{b^{4}} - \frac {5 \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1} a x}{b^{3}} + \frac {9 \, {\left (a^{2} + 1\right )} a \operatorname {arsinh}\left (\frac {2 \, {\left (b^{2} x + a b\right )}}{\sqrt {-4 \, a^{2} b^{2} + 4 \, {\left (a^{2} + 1\right )} b^{2}}}\right )}{b^{4}} + \frac {15 \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1} a^{2}}{b^{4}} - \frac {4 \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1} {\left (a^{2} + 1\right )}}{b^{4}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 91, normalized size = 1.01 \begin {gather*} \frac {3 \, {\left (2 \, b^{3} x^{3} + 2 \, a^{3} - 3 \, a\right )} \log \left (b x + a + \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}\right ) - {\left (2 \, b^{2} x^{2} - 5 \, a b x + 11 \, a^{2} - 4\right )} \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{18 \, b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 170 vs.
\(2 (83) = 166\).
time = 0.19, size = 170, normalized size = 1.89 \begin {gather*} \begin {cases} \frac {a^{3} \operatorname {asinh}{\left (a + b x \right )}}{3 b^{3}} - \frac {11 a^{2} \sqrt {a^{2} + 2 a b x + b^{2} x^{2} + 1}}{18 b^{3}} + \frac {5 a x \sqrt {a^{2} + 2 a b x + b^{2} x^{2} + 1}}{18 b^{2}} - \frac {a \operatorname {asinh}{\left (a + b x \right )}}{2 b^{3}} + \frac {x^{3} \operatorname {asinh}{\left (a + b x \right )}}{3} - \frac {x^{2} \sqrt {a^{2} + 2 a b x + b^{2} x^{2} + 1}}{9 b} + \frac {2 \sqrt {a^{2} + 2 a b x + b^{2} x^{2} + 1}}{9 b^{3}} & \text {for}\: b \neq 0 \\\frac {x^{3} \operatorname {asinh}{\left (a \right )}}{3} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 131, normalized size = 1.46 \begin {gather*} \frac {1}{3} \, x^{3} \log \left (b x + a + \sqrt {{\left (b x + a\right )}^{2} + 1}\right ) - \frac {1}{18} \, {\left (\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1} {\left (x {\left (\frac {2 \, x}{b^{2}} - \frac {5 \, a}{b^{3}}\right )} + \frac {11 \, a^{2} b - 4 \, b}{b^{5}}\right )} + \frac {3 \, {\left (2 \, a^{3} - 3 \, a\right )} \log \left (-a b - {\left (x {\left | b \right |} - \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}\right )} {\left | b \right |}\right )}{b^{3} {\left | b \right |}}\right )} b \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x^2\,\mathrm {asinh}\left (a+b\,x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________