Optimal. Leaf size=104 \[ -\frac {x^2 \sqrt {-1+a+b x} \sqrt {1+a+b x}}{9 b}-\frac {\sqrt {-1+a+b x} \sqrt {1+a+b x} \left (4+11 a^2-5 a b x\right )}{18 b^3}+\frac {a \left (3+2 a^2\right ) \cosh ^{-1}(a+b x)}{6 b^3}+\frac {1}{3} x^3 \cosh ^{-1}(a+b x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 104, 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 = {5996, 5963,
102, 152, 54} \begin {gather*} -\frac {\sqrt {a+b x-1} \sqrt {a+b x+1} \left (11 a^2-5 a b x+4\right )}{18 b^3}+\frac {a \left (2 a^2+3\right ) \cosh ^{-1}(a+b x)}{6 b^3}+\frac {1}{3} x^3 \cosh ^{-1}(a+b x)-\frac {x^2 \sqrt {a+b x-1} \sqrt {a+b x+1}}{9 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 54
Rule 102
Rule 152
Rule 5963
Rule 5996
Rubi steps
\begin {align*} \int x^2 \cosh ^{-1}(a+b x) \, dx &=\frac {\text {Subst}\left (\int \left (-\frac {a}{b}+\frac {x}{b}\right )^2 \cosh ^{-1}(x) \, dx,x,a+b x\right )}{b}\\ &=\frac {1}{3} x^3 \cosh ^{-1}(a+b x)-\frac {1}{3} \text {Subst}\left (\int \frac {\left (-\frac {a}{b}+\frac {x}{b}\right )^3}{\sqrt {-1+x} \sqrt {1+x}} \, dx,x,a+b x\right )\\ &=-\frac {x^2 \sqrt {-1+a+b x} \sqrt {1+a+b x}}{9 b}+\frac {1}{3} x^3 \cosh ^{-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} \sqrt {1+x}} \, dx,x,a+b x\right )\\ &=-\frac {x^2 \sqrt {-1+a+b x} \sqrt {1+a+b x}}{9 b}-\frac {\sqrt {-1+a+b x} \sqrt {1+a+b x} \left (4+11 a^2-5 a b x\right )}{18 b^3}+\frac {1}{3} x^3 \cosh ^{-1}(a+b x)+\frac {\left (a \left (3+2 a^2\right )\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-1+x} \sqrt {1+x}} \, dx,x,a+b x\right )}{6 b^3}\\ &=-\frac {x^2 \sqrt {-1+a+b x} \sqrt {1+a+b x}}{9 b}-\frac {\sqrt {-1+a+b x} \sqrt {1+a+b x} \left (4+11 a^2-5 a b x\right )}{18 b^3}+\frac {a \left (3+2 a^2\right ) \cosh ^{-1}(a+b x)}{6 b^3}+\frac {1}{3} x^3 \cosh ^{-1}(a+b x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 101, normalized size = 0.97 \begin {gather*} \frac {-\sqrt {-1+a+b x} \sqrt {1+a+b x} \left (4+11 a^2-5 a b x+2 b^2 x^2\right )+6 b^3 x^3 \cosh ^{-1}(a+b x)+\left (9 a+6 a^3\right ) \log \left (a+b x+\sqrt {-1+a+b x} \sqrt {1+a+b x}\right )}{18 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(202\) vs.
\(2(88)=176\).
time = 3.30, size = 203, normalized size = 1.95
method | result | size |
derivativedivides | \(\frac {-\frac {\mathrm {arccosh}\left (b x +a \right ) a^{3}}{3}+\mathrm {arccosh}\left (b x +a \right ) a^{2} \left (b x +a \right )-\mathrm {arccosh}\left (b x +a \right ) a \left (b x +a \right )^{2}+\frac {\mathrm {arccosh}\left (b x +a \right ) \left (b x +a \right )^{3}}{3}+\frac {\sqrt {b x +a -1}\, \sqrt {b x +a +1}\, \left (6 a^{3} \ln \left (b x +a +\sqrt {\left (b x +a \right )^{2}-1}\right )-18 a^{2} \sqrt {\left (b x +a \right )^{2}-1}+9 a \left (b x +a \right ) \sqrt {\left (b x +a \right )^{2}-1}-2 \sqrt {\left (b x +a \right )^{2}-1}\, \left (b x +a \right )^{2}+9 a \ln \left (b x +a +\sqrt {\left (b x +a \right )^{2}-1}\right )-4 \sqrt {\left (b x +a \right )^{2}-1}\right )}{18 \sqrt {\left (b x +a \right )^{2}-1}}}{b^{3}}\) | \(203\) |
default | \(\frac {-\frac {\mathrm {arccosh}\left (b x +a \right ) a^{3}}{3}+\mathrm {arccosh}\left (b x +a \right ) a^{2} \left (b x +a \right )-\mathrm {arccosh}\left (b x +a \right ) a \left (b x +a \right )^{2}+\frac {\mathrm {arccosh}\left (b x +a \right ) \left (b x +a \right )^{3}}{3}+\frac {\sqrt {b x +a -1}\, \sqrt {b x +a +1}\, \left (6 a^{3} \ln \left (b x +a +\sqrt {\left (b x +a \right )^{2}-1}\right )-18 a^{2} \sqrt {\left (b x +a \right )^{2}-1}+9 a \left (b x +a \right ) \sqrt {\left (b x +a \right )^{2}-1}-2 \sqrt {\left (b x +a \right )^{2}-1}\, \left (b x +a \right )^{2}+9 a \ln \left (b x +a +\sqrt {\left (b x +a \right )^{2}-1}\right )-4 \sqrt {\left (b x +a \right )^{2}-1}\right )}{18 \sqrt {\left (b x +a \right )^{2}-1}}}{b^{3}}\) | \(203\) |
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. 212 vs.
\(2 (88) = 176\).
time = 0.26, size = 212, normalized size = 2.04 \begin {gather*} \frac {1}{3} \, x^{3} \operatorname {arcosh}\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} \log \left (2 \, b^{2} x + 2 \, a b + 2 \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1} b\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 \log \left (2 \, b^{2} x + 2 \, a b + 2 \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1} b\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.38, size = 91, normalized size = 0.88 \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 [A]
time = 0.17, size = 170, normalized size = 1.63 \begin {gather*} \begin {cases} \frac {a^{3} \operatorname {acosh}{\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 {acosh}{\left (a + b x \right )}}{2 b^{3}} + \frac {x^{3} \operatorname {acosh}{\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 {acosh}{\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.45, size = 132, normalized size = 1.27 \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 ({\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 |}\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 {acosh}\left (a+b\,x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________