Optimal. Leaf size=191 \[ -\frac {7 b d \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^2}{48 c}-\frac {b \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^3}{16 c}-\frac {b \sqrt {-1+c x} \sqrt {1+c x} \left (4 d \left (19 c^2 d^2+16 e^2\right )+e \left (26 c^2 d^2+9 e^2\right ) x\right )}{96 c^3}-\frac {b \left (8 c^4 d^4+24 c^2 d^2 e^2+3 e^4\right ) \cosh ^{-1}(c x)}{32 c^4 e}+\frac {(d+e x)^4 \left (a+b \cosh ^{-1}(c x)\right )}{4 e} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 191, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.312, Rules used = {5963, 102, 158,
152, 54} \begin {gather*} \frac {(d+e x)^4 \left (a+b \cosh ^{-1}(c x)\right )}{4 e}-\frac {b \left (8 c^4 d^4+24 c^2 d^2 e^2+3 e^4\right ) \cosh ^{-1}(c x)}{32 c^4 e}-\frac {b \sqrt {c x-1} \sqrt {c x+1} \left (e x \left (26 c^2 d^2+9 e^2\right )+4 d \left (19 c^2 d^2+16 e^2\right )\right )}{96 c^3}-\frac {b \sqrt {c x-1} \sqrt {c x+1} (d+e x)^3}{16 c}-\frac {7 b d \sqrt {c x-1} \sqrt {c x+1} (d+e x)^2}{48 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 54
Rule 102
Rule 152
Rule 158
Rule 5963
Rubi steps
\begin {align*} \int (d+e x)^3 \left (a+b \cosh ^{-1}(c x)\right ) \, dx &=\frac {(d+e x)^4 \left (a+b \cosh ^{-1}(c x)\right )}{4 e}-\frac {(b c) \int \frac {(d+e x)^4}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx}{4 e}\\ &=-\frac {b \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^3}{16 c}+\frac {(d+e x)^4 \left (a+b \cosh ^{-1}(c x)\right )}{4 e}-\frac {b \int \frac {(d+e x)^2 \left (4 c^2 d^2+3 e^2+7 c^2 d e x\right )}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx}{16 c e}\\ &=-\frac {7 b d \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^2}{48 c}-\frac {b \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^3}{16 c}+\frac {(d+e x)^4 \left (a+b \cosh ^{-1}(c x)\right )}{4 e}-\frac {b \int \frac {(d+e x) \left (c^2 d \left (12 c^2 d^2+23 e^2\right )+c^2 e \left (26 c^2 d^2+9 e^2\right ) x\right )}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx}{48 c^3 e}\\ &=-\frac {7 b d \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^2}{48 c}-\frac {b \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^3}{16 c}-\frac {b \sqrt {-1+c x} \sqrt {1+c x} \left (4 d \left (19 c^2 d^2+16 e^2\right )+e \left (26 c^2 d^2+9 e^2\right ) x\right )}{96 c^3}+\frac {(d+e x)^4 \left (a+b \cosh ^{-1}(c x)\right )}{4 e}-\frac {\left (b \left (8 c^4 d^4+24 c^2 d^2 e^2+3 e^4\right )\right ) \int \frac {1}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx}{32 c^3 e}\\ &=-\frac {7 b d \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^2}{48 c}-\frac {b \sqrt {-1+c x} \sqrt {1+c x} (d+e x)^3}{16 c}-\frac {b \sqrt {-1+c x} \sqrt {1+c x} \left (4 d \left (19 c^2 d^2+16 e^2\right )+e \left (26 c^2 d^2+9 e^2\right ) x\right )}{96 c^3}-\frac {b \left (8 c^4 d^4+24 c^2 d^2 e^2+3 e^4\right ) \cosh ^{-1}(c x)}{32 c^4 e}+\frac {(d+e x)^4 \left (a+b \cosh ^{-1}(c x)\right )}{4 e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 193, normalized size = 1.01 \begin {gather*} \frac {24 a c^4 x \left (4 d^3+6 d^2 e x+4 d e^2 x^2+e^3 x^3\right )-b c \sqrt {-1+c x} \sqrt {1+c x} \left (e^2 (64 d+9 e x)+c^2 \left (96 d^3+72 d^2 e x+32 d e^2 x^2+6 e^3 x^3\right )\right )+24 b c^4 x \left (4 d^3+6 d^2 e x+4 d e^2 x^2+e^3 x^3\right ) \cosh ^{-1}(c x)-9 b e \left (8 c^2 d^2+e^2\right ) \log \left (c x+\sqrt {-1+c x} \sqrt {1+c x}\right )}{96 c^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(381\) vs.
\(2(169)=338\).
time = 1.64, size = 382, normalized size = 2.00
method | result | size |
derivativedivides | \(\frac {\frac {\left (e c x +c d \right )^{4} a}{4 c^{3} e}+\frac {b c \,\mathrm {arccosh}\left (c x \right ) d^{4}}{4 e}+b \,\mathrm {arccosh}\left (c x \right ) d^{3} c x +\frac {3 b c e \,\mathrm {arccosh}\left (c x \right ) d^{2} x^{2}}{2}+b c \,e^{2} \mathrm {arccosh}\left (c x \right ) d \,x^{3}+\frac {b c \,e^{3} \mathrm {arccosh}\left (c x \right ) x^{4}}{4}-\frac {b c \sqrt {c x -1}\, \sqrt {c x +1}\, d^{4} \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{4 e \sqrt {c^{2} x^{2}-1}}-b \sqrt {c x -1}\, \sqrt {c x +1}\, d^{3}-\frac {3 b e \sqrt {c x -1}\, \sqrt {c x +1}\, d^{2} x}{4}-\frac {b \,e^{2} \sqrt {c x -1}\, \sqrt {c x +1}\, d \,x^{2}}{3}-\frac {b \,e^{3} \sqrt {c x -1}\, \sqrt {c x +1}\, x^{3}}{16}-\frac {3 b e \sqrt {c x -1}\, \sqrt {c x +1}\, d^{2} \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{4 c \sqrt {c^{2} x^{2}-1}}-\frac {2 b \,e^{2} \sqrt {c x -1}\, \sqrt {c x +1}\, d}{3 c^{2}}-\frac {3 b \,e^{3} \sqrt {c x -1}\, \sqrt {c x +1}\, x}{32 c^{2}}-\frac {3 b \,e^{3} \sqrt {c x -1}\, \sqrt {c x +1}\, \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{32 c^{3} \sqrt {c^{2} x^{2}-1}}}{c}\) | \(382\) |
default | \(\frac {\frac {\left (e c x +c d \right )^{4} a}{4 c^{3} e}+\frac {b c \,\mathrm {arccosh}\left (c x \right ) d^{4}}{4 e}+b \,\mathrm {arccosh}\left (c x \right ) d^{3} c x +\frac {3 b c e \,\mathrm {arccosh}\left (c x \right ) d^{2} x^{2}}{2}+b c \,e^{2} \mathrm {arccosh}\left (c x \right ) d \,x^{3}+\frac {b c \,e^{3} \mathrm {arccosh}\left (c x \right ) x^{4}}{4}-\frac {b c \sqrt {c x -1}\, \sqrt {c x +1}\, d^{4} \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{4 e \sqrt {c^{2} x^{2}-1}}-b \sqrt {c x -1}\, \sqrt {c x +1}\, d^{3}-\frac {3 b e \sqrt {c x -1}\, \sqrt {c x +1}\, d^{2} x}{4}-\frac {b \,e^{2} \sqrt {c x -1}\, \sqrt {c x +1}\, d \,x^{2}}{3}-\frac {b \,e^{3} \sqrt {c x -1}\, \sqrt {c x +1}\, x^{3}}{16}-\frac {3 b e \sqrt {c x -1}\, \sqrt {c x +1}\, d^{2} \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{4 c \sqrt {c^{2} x^{2}-1}}-\frac {2 b \,e^{2} \sqrt {c x -1}\, \sqrt {c x +1}\, d}{3 c^{2}}-\frac {3 b \,e^{3} \sqrt {c x -1}\, \sqrt {c x +1}\, x}{32 c^{2}}-\frac {3 b \,e^{3} \sqrt {c x -1}\, \sqrt {c x +1}\, \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{32 c^{3} \sqrt {c^{2} x^{2}-1}}}{c}\) | \(382\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 263, normalized size = 1.38 \begin {gather*} \frac {1}{4} \, a x^{4} e^{3} + a d x^{3} e^{2} + \frac {3}{2} \, a d^{2} x^{2} e + a d^{3} x + \frac {3}{4} \, {\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^{2} e + \frac {{\left (c x \operatorname {arcosh}\left (c x\right ) - \sqrt {c^{2} x^{2} - 1}\right )} b d^{3}}{c} + \frac {1}{3} \, {\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 d e^{2} + \frac {1}{32} \, {\left (8 \, x^{4} \operatorname {arcosh}\left (c x\right ) - {\left (\frac {2 \, \sqrt {c^{2} x^{2} - 1} x^{3}}{c^{2}} + \frac {3 \, \sqrt {c^{2} x^{2} - 1} x}{c^{4}} + \frac {3 \, \log \left (2 \, c^{2} x + 2 \, \sqrt {c^{2} x^{2} - 1} c\right )}{c^{5}}\right )} c\right )} b e^{3} \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. 526 vs.
\(2 (167) = 334\).
time = 0.37, size = 526, normalized size = 2.75 \begin {gather*} \frac {24 \, a c^{4} x^{4} \cosh \left (1\right )^{3} + 24 \, a c^{4} x^{4} \sinh \left (1\right )^{3} + 96 \, a c^{4} d x^{3} \cosh \left (1\right )^{2} + 144 \, a c^{4} d^{2} x^{2} \cosh \left (1\right ) + 96 \, a c^{4} d^{3} x + 24 \, {\left (3 \, a c^{4} x^{4} \cosh \left (1\right ) + 4 \, a c^{4} d x^{3}\right )} \sinh \left (1\right )^{2} + 3 \, {\left (32 \, b c^{4} d x^{3} \cosh \left (1\right )^{2} + 32 \, b c^{4} d^{3} x + {\left (8 \, b c^{4} x^{4} - 3 \, b\right )} \cosh \left (1\right )^{3} + {\left (8 \, b c^{4} x^{4} - 3 \, b\right )} \sinh \left (1\right )^{3} + {\left (32 \, b c^{4} d x^{3} + 3 \, {\left (8 \, b c^{4} x^{4} - 3 \, b\right )} \cosh \left (1\right )\right )} \sinh \left (1\right )^{2} + 24 \, {\left (2 \, b c^{4} d^{2} x^{2} - b c^{2} d^{2}\right )} \cosh \left (1\right ) + {\left (64 \, b c^{4} d x^{3} \cosh \left (1\right ) + 48 \, b c^{4} d^{2} x^{2} - 24 \, b c^{2} d^{2} + 3 \, {\left (8 \, b c^{4} x^{4} - 3 \, b\right )} \cosh \left (1\right )^{2}\right )} \sinh \left (1\right )\right )} \log \left (c x + \sqrt {c^{2} x^{2} - 1}\right ) + 24 \, {\left (3 \, a c^{4} x^{4} \cosh \left (1\right )^{2} + 8 \, a c^{4} d x^{3} \cosh \left (1\right ) + 6 \, a c^{4} d^{2} x^{2}\right )} \sinh \left (1\right ) - {\left (72 \, b c^{3} d^{2} x \cosh \left (1\right ) + 96 \, b c^{3} d^{3} + 3 \, {\left (2 \, b c^{3} x^{3} + 3 \, b c x\right )} \cosh \left (1\right )^{3} + 3 \, {\left (2 \, b c^{3} x^{3} + 3 \, b c x\right )} \sinh \left (1\right )^{3} + 32 \, {\left (b c^{3} d x^{2} + 2 \, b c d\right )} \cosh \left (1\right )^{2} + {\left (32 \, b c^{3} d x^{2} + 64 \, b c d + 9 \, {\left (2 \, b c^{3} x^{3} + 3 \, b c x\right )} \cosh \left (1\right )\right )} \sinh \left (1\right )^{2} + {\left (72 \, b c^{3} d^{2} x + 9 \, {\left (2 \, b c^{3} x^{3} + 3 \, b c x\right )} \cosh \left (1\right )^{2} + 64 \, {\left (b c^{3} d x^{2} + 2 \, b c d\right )} \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \sqrt {c^{2} x^{2} - 1}}{96 \, c^{4}} \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.30, size = 323, normalized size = 1.69 \begin {gather*} \begin {cases} a d^{3} x + \frac {3 a d^{2} e x^{2}}{2} + a d e^{2} x^{3} + \frac {a e^{3} x^{4}}{4} + b d^{3} x \operatorname {acosh}{\left (c x \right )} + \frac {3 b d^{2} e x^{2} \operatorname {acosh}{\left (c x \right )}}{2} + b d e^{2} x^{3} \operatorname {acosh}{\left (c x \right )} + \frac {b e^{3} x^{4} \operatorname {acosh}{\left (c x \right )}}{4} - \frac {b d^{3} \sqrt {c^{2} x^{2} - 1}}{c} - \frac {3 b d^{2} e x \sqrt {c^{2} x^{2} - 1}}{4 c} - \frac {b d e^{2} x^{2} \sqrt {c^{2} x^{2} - 1}}{3 c} - \frac {b e^{3} x^{3} \sqrt {c^{2} x^{2} - 1}}{16 c} - \frac {3 b d^{2} e \operatorname {acosh}{\left (c x \right )}}{4 c^{2}} - \frac {2 b d e^{2} \sqrt {c^{2} x^{2} - 1}}{3 c^{3}} - \frac {3 b e^{3} x \sqrt {c^{2} x^{2} - 1}}{32 c^{3}} - \frac {3 b e^{3} \operatorname {acosh}{\left (c x \right )}}{32 c^{4}} & \text {for}\: c \neq 0 \\\left (a + \frac {i \pi b}{2}\right ) \left (d^{3} x + \frac {3 d^{2} e x^{2}}{2} + d e^{2} x^{3} + \frac {e^{3} x^{4}}{4}\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 )}^3 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________