Optimal. Leaf size=288 \[ \frac {x}{4 b d}-\frac {\left (a^2-b^2\right ) x^2}{2 b^3}-\frac {a x \cosh (c+d x)}{b^2 d}+\frac {\left (a^2-b^2\right ) x \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2-b^2}}\right )}{b^3 d}+\frac {\left (a^2-b^2\right ) x \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2-b^2}}\right )}{b^3 d}+\frac {\left (a^2-b^2\right ) \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2-b^2}}\right )}{b^3 d^2}+\frac {\left (a^2-b^2\right ) \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2-b^2}}\right )}{b^3 d^2}+\frac {a \sinh (c+d x)}{b^2 d^2}-\frac {\cosh (c+d x) \sinh (c+d x)}{4 b d^2}+\frac {x \sinh ^2(c+d x)}{2 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.24, antiderivative size = 288, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 10, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.454, Rules used = {5685, 3377,
2717, 5480, 2715, 8, 5681, 2221, 2317, 2438} \begin {gather*} \frac {\left (a^2-b^2\right ) \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2-b^2}}\right )}{b^3 d^2}+\frac {\left (a^2-b^2\right ) \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2-b^2}}\right )}{b^3 d^2}+\frac {x \left (a^2-b^2\right ) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2-b^2}}+1\right )}{b^3 d}+\frac {x \left (a^2-b^2\right ) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2-b^2}+a}+1\right )}{b^3 d}-\frac {x^2 \left (a^2-b^2\right )}{2 b^3}+\frac {a \sinh (c+d x)}{b^2 d^2}-\frac {a x \cosh (c+d x)}{b^2 d}-\frac {\sinh (c+d x) \cosh (c+d x)}{4 b d^2}+\frac {x \sinh ^2(c+d x)}{2 b d}+\frac {x}{4 b d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2221
Rule 2317
Rule 2438
Rule 2715
Rule 2717
Rule 3377
Rule 5480
Rule 5681
Rule 5685
Rubi steps
\begin {align*} \int \frac {x \sinh ^3(c+d x)}{a+b \cosh (c+d x)} \, dx &=-\frac {a \int x \sinh (c+d x) \, dx}{b^2}+\frac {\int x \cosh (c+d x) \sinh (c+d x) \, dx}{b}+\frac {\left (a^2-b^2\right ) \int \frac {x \sinh (c+d x)}{a+b \cosh (c+d x)} \, dx}{b^2}\\ &=-\frac {\left (a^2-b^2\right ) x^2}{2 b^3}-\frac {a x \cosh (c+d x)}{b^2 d}+\frac {x \sinh ^2(c+d x)}{2 b d}+\frac {\left (a^2-b^2\right ) \int \frac {e^{c+d x} x}{a-\sqrt {a^2-b^2}+b e^{c+d x}} \, dx}{b^2}+\frac {\left (a^2-b^2\right ) \int \frac {e^{c+d x} x}{a+\sqrt {a^2-b^2}+b e^{c+d x}} \, dx}{b^2}+\frac {a \int \cosh (c+d x) \, dx}{b^2 d}-\frac {\int \sinh ^2(c+d x) \, dx}{2 b d}\\ &=-\frac {\left (a^2-b^2\right ) x^2}{2 b^3}-\frac {a x \cosh (c+d x)}{b^2 d}+\frac {\left (a^2-b^2\right ) x \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2-b^2}}\right )}{b^3 d}+\frac {\left (a^2-b^2\right ) x \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2-b^2}}\right )}{b^3 d}+\frac {a \sinh (c+d x)}{b^2 d^2}-\frac {\cosh (c+d x) \sinh (c+d x)}{4 b d^2}+\frac {x \sinh ^2(c+d x)}{2 b d}+\frac {\int 1 \, dx}{4 b d}-\frac {\left (a^2-b^2\right ) \int \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2-b^2}}\right ) \, dx}{b^3 d}-\frac {\left (a^2-b^2\right ) \int \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2-b^2}}\right ) \, dx}{b^3 d}\\ &=\frac {x}{4 b d}-\frac {\left (a^2-b^2\right ) x^2}{2 b^3}-\frac {a x \cosh (c+d x)}{b^2 d}+\frac {\left (a^2-b^2\right ) x \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2-b^2}}\right )}{b^3 d}+\frac {\left (a^2-b^2\right ) x \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2-b^2}}\right )}{b^3 d}+\frac {a \sinh (c+d x)}{b^2 d^2}-\frac {\cosh (c+d x) \sinh (c+d x)}{4 b d^2}+\frac {x \sinh ^2(c+d x)}{2 b d}-\frac {\left (a^2-b^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {b x}{a-\sqrt {a^2-b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b^3 d^2}-\frac {\left (a^2-b^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {b x}{a+\sqrt {a^2-b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b^3 d^2}\\ &=\frac {x}{4 b d}-\frac {\left (a^2-b^2\right ) x^2}{2 b^3}-\frac {a x \cosh (c+d x)}{b^2 d}+\frac {\left (a^2-b^2\right ) x \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2-b^2}}\right )}{b^3 d}+\frac {\left (a^2-b^2\right ) x \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2-b^2}}\right )}{b^3 d}+\frac {\left (a^2-b^2\right ) \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2-b^2}}\right )}{b^3 d^2}+\frac {\left (a^2-b^2\right ) \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2-b^2}}\right )}{b^3 d^2}+\frac {a \sinh (c+d x)}{b^2 d^2}-\frac {\cosh (c+d x) \sinh (c+d x)}{4 b d^2}+\frac {x \sinh ^2(c+d x)}{2 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.93, size = 414, normalized size = 1.44 \begin {gather*} \frac {-8 a b d x \cosh (c+d x)+2 b^2 d x \cosh (2 (c+d x))+4 \left (a^2-b^2\right ) \left (2 c (c+d x)-(c+d x)^2+\frac {4 a \sqrt {-\left (a^2-b^2\right )^2} c \text {ArcTan}\left (\frac {a+b \cosh (c+d x)+b \sinh (c+d x)}{\sqrt {-a^2+b^2}}\right )}{\left (a^2-b^2\right )^{3/2}}+\frac {4 a \sqrt {-\left (a^2-b^2\right )^2} c \tanh ^{-1}\left (\frac {a+b \cosh (c+d x)+b \sinh (c+d x)}{\sqrt {a^2-b^2}}\right )}{\left (-a^2+b^2\right )^{3/2}}-2 c \log (2 (a+b \cosh (c+d x)) (\cosh (c+d x)+\sinh (c+d x)))+2 (c+d x) \log \left (1+\frac {b (\cosh (c+d x)+\sinh (c+d x))}{a-\sqrt {a^2-b^2}}\right )+2 (c+d x) \log \left (1+\frac {b (\cosh (c+d x)+\sinh (c+d x))}{a+\sqrt {a^2-b^2}}\right )+2 \text {PolyLog}\left (2,\frac {b (\cosh (c+d x)+\sinh (c+d x))}{-a+\sqrt {a^2-b^2}}\right )+2 \text {PolyLog}\left (2,-\frac {b (\cosh (c+d x)+\sinh (c+d x))}{a+\sqrt {a^2-b^2}}\right )\right )+8 a b \sinh (c+d x)-b^2 \sinh (2 (c+d x))}{8 b^3 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(859\) vs.
\(2(268)=536\).
time = 2.10, size = 860, normalized size = 2.99
method | result | size |
risch | \(-\frac {\ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}-b^{2}}-a}{-a +\sqrt {a^{2}-b^{2}}}\right ) x}{d b}-\frac {a^{2} c^{2}}{d^{2} b^{3}}+\frac {2 c x}{d b}-\frac {2 c \ln \left ({\mathrm e}^{d x +c}\right )}{d^{2} b}-\frac {a \left (d x +1\right ) {\mathrm e}^{-d x -c}}{2 b^{2} d^{2}}-\frac {\ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}-b^{2}}+a}{a +\sqrt {a^{2}-b^{2}}}\right ) c}{d^{2} b}+\frac {c \ln \left (b \,{\mathrm e}^{2 d x +2 c}+2 a \,{\mathrm e}^{d x +c}+b \right )}{d^{2} b}+\frac {c^{2}}{d^{2} b}-\frac {x^{2} a^{2}}{2 b^{3}}+\frac {\left (2 d x -1\right ) {\mathrm e}^{2 d x +2 c}}{16 d^{2} b}-\frac {2 a^{2} c x}{d \,b^{3}}+\frac {\ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}-b^{2}}-a}{-a +\sqrt {a^{2}-b^{2}}}\right ) a^{2} x}{d \,b^{3}}+\frac {\ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}-b^{2}}-a}{-a +\sqrt {a^{2}-b^{2}}}\right ) a^{2} c}{d^{2} b^{3}}+\frac {\ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}-b^{2}}+a}{a +\sqrt {a^{2}-b^{2}}}\right ) a^{2} x}{d \,b^{3}}+\frac {\ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}-b^{2}}+a}{a +\sqrt {a^{2}-b^{2}}}\right ) a^{2} c}{d^{2} b^{3}}+\frac {2 c \,a^{2} \ln \left ({\mathrm e}^{d x +c}\right )}{d^{2} b^{3}}-\frac {c \,a^{2} \ln \left (b \,{\mathrm e}^{2 d x +2 c}+2 a \,{\mathrm e}^{d x +c}+b \right )}{d^{2} b^{3}}-\frac {a \left (d x -1\right ) {\mathrm e}^{d x +c}}{2 b^{2} d^{2}}+\frac {\left (2 d x +1\right ) {\mathrm e}^{-2 d x -2 c}}{16 d^{2} b}-\frac {\dilog \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}-b^{2}}-a}{-a +\sqrt {a^{2}-b^{2}}}\right )}{d^{2} b}-\frac {\dilog \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}-b^{2}}+a}{a +\sqrt {a^{2}-b^{2}}}\right )}{d^{2} b}-\frac {\ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}-b^{2}}-a}{-a +\sqrt {a^{2}-b^{2}}}\right ) c}{d^{2} b}-\frac {\ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}-b^{2}}+a}{a +\sqrt {a^{2}-b^{2}}}\right ) x}{d b}+\frac {a^{2} \dilog \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}-b^{2}}-a}{-a +\sqrt {a^{2}-b^{2}}}\right )}{d^{2} b^{3}}+\frac {a^{2} \dilog \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}-b^{2}}+a}{a +\sqrt {a^{2}-b^{2}}}\right )}{d^{2} b^{3}}+\frac {x^{2}}{2 b}\) | \(860\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \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. 1196 vs.
\(2 (266) = 532\).
time = 0.37, size = 1196, normalized size = 4.15 \begin {gather*} \frac {{\left (2 \, b^{2} d x - b^{2}\right )} \cosh \left (d x + c\right )^{4} + {\left (2 \, b^{2} d x - b^{2}\right )} \sinh \left (d x + c\right )^{4} + 2 \, b^{2} d x - 8 \, {\left (a b d x - a b\right )} \cosh \left (d x + c\right )^{3} - 4 \, {\left (2 \, a b d x - 2 \, a b - {\left (2 \, b^{2} d x - b^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} - 8 \, {\left ({\left (a^{2} - b^{2}\right )} d^{2} x^{2} - 2 \, {\left (a^{2} - b^{2}\right )} c^{2}\right )} \cosh \left (d x + c\right )^{2} - 2 \, {\left (4 \, {\left (a^{2} - b^{2}\right )} d^{2} x^{2} - 8 \, {\left (a^{2} - b^{2}\right )} c^{2} - 3 \, {\left (2 \, b^{2} d x - b^{2}\right )} \cosh \left (d x + c\right )^{2} + 12 \, {\left (a b d x - a b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} + b^{2} - 8 \, {\left (a b d x + a b\right )} \cosh \left (d x + c\right ) + 16 \, {\left ({\left (a^{2} - b^{2}\right )} \cosh \left (d x + c\right )^{2} + 2 \, {\left (a^{2} - b^{2}\right )} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + {\left (a^{2} - b^{2}\right )} \sinh \left (d x + c\right )^{2}\right )} {\rm Li}_2\left (-\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) + {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} - b^{2}}{b^{2}}} + b}{b} + 1\right ) + 16 \, {\left ({\left (a^{2} - b^{2}\right )} \cosh \left (d x + c\right )^{2} + 2 \, {\left (a^{2} - b^{2}\right )} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + {\left (a^{2} - b^{2}\right )} \sinh \left (d x + c\right )^{2}\right )} {\rm Li}_2\left (-\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) - {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} - b^{2}}{b^{2}}} + b}{b} + 1\right ) - 16 \, {\left ({\left (a^{2} - b^{2}\right )} c \cosh \left (d x + c\right )^{2} + 2 \, {\left (a^{2} - b^{2}\right )} c \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + {\left (a^{2} - b^{2}\right )} c \sinh \left (d x + c\right )^{2}\right )} \log \left (2 \, b \cosh \left (d x + c\right ) + 2 \, b \sinh \left (d x + c\right ) + 2 \, b \sqrt {\frac {a^{2} - b^{2}}{b^{2}}} + 2 \, a\right ) - 16 \, {\left ({\left (a^{2} - b^{2}\right )} c \cosh \left (d x + c\right )^{2} + 2 \, {\left (a^{2} - b^{2}\right )} c \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + {\left (a^{2} - b^{2}\right )} c \sinh \left (d x + c\right )^{2}\right )} \log \left (2 \, b \cosh \left (d x + c\right ) + 2 \, b \sinh \left (d x + c\right ) - 2 \, b \sqrt {\frac {a^{2} - b^{2}}{b^{2}}} + 2 \, a\right ) + 16 \, {\left ({\left ({\left (a^{2} - b^{2}\right )} d x + {\left (a^{2} - b^{2}\right )} c\right )} \cosh \left (d x + c\right )^{2} + 2 \, {\left ({\left (a^{2} - b^{2}\right )} d x + {\left (a^{2} - b^{2}\right )} c\right )} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + {\left ({\left (a^{2} - b^{2}\right )} d x + {\left (a^{2} - b^{2}\right )} c\right )} \sinh \left (d x + c\right )^{2}\right )} \log \left (\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) + {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} - b^{2}}{b^{2}}} + b}{b}\right ) + 16 \, {\left ({\left ({\left (a^{2} - b^{2}\right )} d x + {\left (a^{2} - b^{2}\right )} c\right )} \cosh \left (d x + c\right )^{2} + 2 \, {\left ({\left (a^{2} - b^{2}\right )} d x + {\left (a^{2} - b^{2}\right )} c\right )} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + {\left ({\left (a^{2} - b^{2}\right )} d x + {\left (a^{2} - b^{2}\right )} c\right )} \sinh \left (d x + c\right )^{2}\right )} \log \left (\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) - {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} - b^{2}}{b^{2}}} + b}{b}\right ) - 4 \, {\left (2 \, a b d x - {\left (2 \, b^{2} d x - b^{2}\right )} \cosh \left (d x + c\right )^{3} + 6 \, {\left (a b d x - a b\right )} \cosh \left (d x + c\right )^{2} + 2 \, a b + 4 \, {\left ({\left (a^{2} - b^{2}\right )} d^{2} x^{2} - 2 \, {\left (a^{2} - b^{2}\right )} c^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{16 \, {\left (b^{3} d^{2} \cosh \left (d x + c\right )^{2} + 2 \, b^{3} d^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + b^{3} d^{2} \sinh \left (d x + c\right )^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x \sinh ^{3}{\left (c + d x \right )}}{a + b \cosh {\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x\,{\mathrm {sinh}\left (c+d\,x\right )}^3}{a+b\,\mathrm {cosh}\left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________