Optimal. Leaf size=132 \[ -\frac {b \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^2}{9 c}-\frac {b \sqrt {-1+c x} \sqrt {1+c x} \left (4 \left (4 c^2 d^2+e^2\right )+5 c^2 d e x\right )}{18 c^3}-\frac {b d \left (2 d^2+\frac {3 e^2}{c^2}\right ) \cosh ^{-1}(c x)}{6 e}+\frac {(d+e x)^3 \left (a+b \cosh ^{-1}(c x)\right )}{3 e} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 132, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {5963, 102, 152,
54} \begin {gather*} \frac {(d+e x)^3 \left (a+b \cosh ^{-1}(c x)\right )}{3 e}-\frac {b d \left (\frac {3 e^2}{c^2}+2 d^2\right ) \cosh ^{-1}(c x)}{6 e}-\frac {b \sqrt {c x-1} \sqrt {c x+1} \left (4 \left (4 c^2 d^2+e^2\right )+5 c^2 d e x\right )}{18 c^3}-\frac {b \sqrt {c x-1} \sqrt {c x+1} (d+e x)^2}{9 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 54
Rule 102
Rule 152
Rule 5963
Rubi steps
\begin {align*} \int (d+e x)^2 \left (a+b \cosh ^{-1}(c x)\right ) \, dx &=\frac {(d+e x)^3 \left (a+b \cosh ^{-1}(c x)\right )}{3 e}-\frac {(b c) \int \frac {(d+e x)^3}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx}{3 e}\\ &=-\frac {b \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^2}{9 c}+\frac {(d+e x)^3 \left (a+b \cosh ^{-1}(c x)\right )}{3 e}-\frac {b \int \frac {(d+e x) \left (3 c^2 d^2+2 e^2+5 c^2 d e x\right )}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx}{9 c e}\\ &=-\frac {b \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^2}{9 c}-\frac {b \sqrt {-1+c x} \sqrt {1+c x} \left (4 \left (4 c^2 d^2+e^2\right )+5 c^2 d e x\right )}{18 c^3}+\frac {(d+e x)^3 \left (a+b \cosh ^{-1}(c x)\right )}{3 e}-\frac {1}{6} \left (b d \left (\frac {2 c d^2}{e}+\frac {3 e}{c}\right )\right ) \int \frac {1}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx\\ &=-\frac {b \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^2}{9 c}-\frac {b \sqrt {-1+c x} \sqrt {1+c x} \left (4 \left (4 c^2 d^2+e^2\right )+5 c^2 d e x\right )}{18 c^3}-\frac {b d \left (2 d^2+\frac {3 e^2}{c^2}\right ) \cosh ^{-1}(c x)}{6 e}+\frac {(d+e x)^3 \left (a+b \cosh ^{-1}(c x)\right )}{3 e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 142, normalized size = 1.08 \begin {gather*} a d^2 x+a d e x^2+\frac {1}{3} a e^2 x^3-\frac {b \sqrt {-1+c x} \sqrt {1+c x} \left (4 e^2+c^2 \left (18 d^2+9 d e x+2 e^2 x^2\right )\right )}{18 c^3}+\frac {1}{3} b x \left (3 d^2+3 d e x+e^2 x^2\right ) \cosh ^{-1}(c x)-\frac {b d e \log \left (c x+\sqrt {-1+c x} \sqrt {1+c x}\right )}{2 c^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(261\) vs.
\(2(115)=230\).
time = 2.45, size = 262, normalized size = 1.98
method | result | size |
derivativedivides | \(\frac {\frac {\left (e c x +c d \right )^{3} a}{3 c^{2} e}+\frac {b c \,\mathrm {arccosh}\left (c x \right ) d^{3}}{3 e}+b \,\mathrm {arccosh}\left (c x \right ) d^{2} c x +b c e \,\mathrm {arccosh}\left (c x \right ) d \,x^{2}+\frac {b c \,e^{2} \mathrm {arccosh}\left (c x \right ) x^{3}}{3}-\frac {b c \sqrt {c x -1}\, \sqrt {c x +1}\, d^{3} \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{3 e \sqrt {c^{2} x^{2}-1}}-b \sqrt {c x -1}\, \sqrt {c x +1}\, d^{2}-\frac {b e \sqrt {c x -1}\, \sqrt {c x +1}\, d x}{2}-\frac {b \,e^{2} \sqrt {c x -1}\, \sqrt {c x +1}\, x^{2}}{9}-\frac {b e \sqrt {c x -1}\, \sqrt {c x +1}\, d \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{2 c \sqrt {c^{2} x^{2}-1}}-\frac {2 b \,e^{2} \sqrt {c x -1}\, \sqrt {c x +1}}{9 c^{2}}}{c}\) | \(262\) |
default | \(\frac {\frac {\left (e c x +c d \right )^{3} a}{3 c^{2} e}+\frac {b c \,\mathrm {arccosh}\left (c x \right ) d^{3}}{3 e}+b \,\mathrm {arccosh}\left (c x \right ) d^{2} c x +b c e \,\mathrm {arccosh}\left (c x \right ) d \,x^{2}+\frac {b c \,e^{2} \mathrm {arccosh}\left (c x \right ) x^{3}}{3}-\frac {b c \sqrt {c x -1}\, \sqrt {c x +1}\, d^{3} \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{3 e \sqrt {c^{2} x^{2}-1}}-b \sqrt {c x -1}\, \sqrt {c x +1}\, d^{2}-\frac {b e \sqrt {c x -1}\, \sqrt {c x +1}\, d x}{2}-\frac {b \,e^{2} \sqrt {c x -1}\, \sqrt {c x +1}\, x^{2}}{9}-\frac {b e \sqrt {c x -1}\, \sqrt {c x +1}\, d \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{2 c \sqrt {c^{2} x^{2}-1}}-\frac {2 b \,e^{2} \sqrt {c x -1}\, \sqrt {c x +1}}{9 c^{2}}}{c}\) | \(262\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 167, normalized size = 1.27 \begin {gather*} \frac {1}{3} \, a x^{3} e^{2} + a d x^{2} e + a d^{2} x + \frac {1}{2} \, {\left (2 \, x^{2} \operatorname {arcosh}\left (c x\right ) - c {\left (\frac {\sqrt {c^{2} x^{2} - 1} x}{c^{2}} + \frac {\log \left (2 \, c^{2} x + 2 \, \sqrt {c^{2} x^{2} - 1} c\right )}{c^{3}}\right )}\right )} b d e + \frac {{\left (c x \operatorname {arcosh}\left (c x\right ) - \sqrt {c^{2} x^{2} - 1}\right )} b d^{2}}{c} + \frac {1}{9} \, {\left (3 \, x^{3} \operatorname {arcosh}\left (c x\right ) - c {\left (\frac {\sqrt {c^{2} x^{2} - 1} x^{2}}{c^{2}} + \frac {2 \, \sqrt {c^{2} x^{2} - 1}}{c^{4}}\right )}\right )} b e^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 282 vs.
\(2 (114) = 228\).
time = 0.37, size = 282, normalized size = 2.14 \begin {gather*} \frac {6 \, a c^{3} x^{3} \cosh \left (1\right )^{2} + 6 \, a c^{3} x^{3} \sinh \left (1\right )^{2} + 18 \, a c^{3} d x^{2} \cosh \left (1\right ) + 18 \, a c^{3} d^{2} x + 3 \, {\left (2 \, b c^{3} x^{3} \cosh \left (1\right )^{2} + 2 \, b c^{3} x^{3} \sinh \left (1\right )^{2} + 6 \, b c^{3} d^{2} x + 3 \, {\left (2 \, b c^{3} d x^{2} - b c d\right )} \cosh \left (1\right ) + {\left (4 \, b c^{3} x^{3} \cosh \left (1\right ) + 6 \, b c^{3} d x^{2} - 3 \, b c d\right )} \sinh \left (1\right )\right )} \log \left (c x + \sqrt {c^{2} x^{2} - 1}\right ) + 6 \, {\left (2 \, a c^{3} x^{3} \cosh \left (1\right ) + 3 \, a c^{3} d x^{2}\right )} \sinh \left (1\right ) - {\left (9 \, b c^{2} d x \cosh \left (1\right ) + 18 \, b c^{2} d^{2} + 2 \, {\left (b c^{2} x^{2} + 2 \, b\right )} \cosh \left (1\right )^{2} + 2 \, {\left (b c^{2} x^{2} + 2 \, b\right )} \sinh \left (1\right )^{2} + {\left (9 \, b c^{2} d x + 4 \, {\left (b c^{2} x^{2} + 2 \, b\right )} \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \sqrt {c^{2} x^{2} - 1}}{18 \, c^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.19, size = 197, normalized size = 1.49 \begin {gather*} \begin {cases} a d^{2} x + a d e x^{2} + \frac {a e^{2} x^{3}}{3} + b d^{2} x \operatorname {acosh}{\left (c x \right )} + b d e x^{2} \operatorname {acosh}{\left (c x \right )} + \frac {b e^{2} x^{3} \operatorname {acosh}{\left (c x \right )}}{3} - \frac {b d^{2} \sqrt {c^{2} x^{2} - 1}}{c} - \frac {b d e x \sqrt {c^{2} x^{2} - 1}}{2 c} - \frac {b e^{2} x^{2} \sqrt {c^{2} x^{2} - 1}}{9 c} - \frac {b d e \operatorname {acosh}{\left (c x \right )}}{2 c^{2}} - \frac {2 b e^{2} \sqrt {c^{2} x^{2} - 1}}{9 c^{3}} & \text {for}\: c \neq 0 \\\left (a + \frac {i \pi b}{2}\right ) \left (d^{2} x + d e x^{2} + \frac {e^{2} x^{3}}{3}\right ) & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \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 \left (a+b\,\mathrm {acosh}\left (c\,x\right )\right )\,{\left (d+e\,x\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________