Optimal. Leaf size=80 \[ \frac {b c \text {Chi}\left (\frac {2 b c}{d (c+d x)}\right ) \sinh \left (\frac {2 b}{d}\right )}{d^2}+\frac {(c+d x) \sinh ^2\left (\frac {b x}{c+d x}\right )}{d}-\frac {b c \cosh \left (\frac {2 b}{d}\right ) \text {Shi}\left (\frac {2 b c}{d (c+d x)}\right )}{d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.462, Rules used = {5726, 3394, 12,
3384, 3379, 3382} \begin {gather*} \frac {b c \sinh \left (\frac {2 b}{d}\right ) \text {Chi}\left (\frac {2 b c}{d (c+d x)}\right )}{d^2}-\frac {b c \cosh \left (\frac {2 b}{d}\right ) \text {Shi}\left (\frac {2 b c}{d (c+d x)}\right )}{d^2}+\frac {(c+d x) \sinh ^2\left (\frac {b x}{c+d x}\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 3379
Rule 3382
Rule 3384
Rule 3394
Rule 5726
Rubi steps
\begin {align*} \int \sinh ^2\left (\frac {b x}{c+d x}\right ) \, dx &=-\frac {\text {Subst}\left (\int \frac {\sinh ^2\left (\frac {b}{d}-\frac {b c x}{d}\right )}{x^2} \, dx,x,\frac {1}{c+d x}\right )}{d}\\ &=\frac {(c+d x) \sinh ^2\left (\frac {b x}{c+d x}\right )}{d}-\frac {(2 i b c) \text {Subst}\left (\int \frac {i \sinh \left (\frac {2 b}{d}-\frac {2 b c x}{d}\right )}{2 x} \, dx,x,\frac {1}{c+d x}\right )}{d^2}\\ &=\frac {(c+d x) \sinh ^2\left (\frac {b x}{c+d x}\right )}{d}+\frac {(b c) \text {Subst}\left (\int \frac {\sinh \left (\frac {2 b}{d}-\frac {2 b c x}{d}\right )}{x} \, dx,x,\frac {1}{c+d x}\right )}{d^2}\\ &=\frac {(c+d x) \sinh ^2\left (\frac {b x}{c+d x}\right )}{d}-\frac {\left (b c \cosh \left (\frac {2 b}{d}\right )\right ) \text {Subst}\left (\int \frac {\sinh \left (\frac {2 b c x}{d}\right )}{x} \, dx,x,\frac {1}{c+d x}\right )}{d^2}+\frac {\left (b c \sinh \left (\frac {2 b}{d}\right )\right ) \text {Subst}\left (\int \frac {\cosh \left (\frac {2 b c x}{d}\right )}{x} \, dx,x,\frac {1}{c+d x}\right )}{d^2}\\ &=\frac {b c \text {Chi}\left (\frac {2 b c}{d (c+d x)}\right ) \sinh \left (\frac {2 b}{d}\right )}{d^2}+\frac {(c+d x) \sinh ^2\left (\frac {b x}{c+d x}\right )}{d}-\frac {b c \cosh \left (\frac {2 b}{d}\right ) \text {Shi}\left (\frac {2 b c}{d (c+d x)}\right )}{d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.29, size = 85, normalized size = 1.06 \begin {gather*} \frac {d \left (-d x+(c+d x) \cosh \left (\frac {2 b x}{c+d x}\right )\right )+2 b c \text {Chi}\left (\frac {2 b c}{d (c+d x)}\right ) \sinh \left (\frac {2 b}{d}\right )-2 b c \cosh \left (\frac {2 b}{d}\right ) \text {Shi}\left (\frac {2 b c}{d (c+d x)}\right )}{2 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 18.35, size = 120, normalized size = 1.50
method | result | size |
risch | \(-\frac {x}{2}+\frac {{\mathrm e}^{-\frac {2 b x}{d x +c}} \left (d x +c \right )}{4 d}+\frac {b c \,{\mathrm e}^{-\frac {2 b}{d}} \expIntegral \left (1, -\frac {2 b c}{d \left (d x +c \right )}\right )}{2 d^{2}}+\frac {{\mathrm e}^{\frac {2 b x}{d x +c}} x}{4}+\frac {c \,{\mathrm e}^{\frac {2 b x}{d x +c}}}{4 d}-\frac {b c \,{\mathrm e}^{\frac {2 b}{d}} \expIntegral \left (1, \frac {2 b c}{d \left (d x +c \right )}\right )}{2 d^{2}}\) | \(120\) |
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. 277 vs.
\(2 (80) = 160\).
time = 0.52, size = 277, normalized size = 3.46 \begin {gather*} -\frac {d^{2} x - {\left (d^{2} x + c d\right )} \cosh \left (\frac {b x}{d x + c}\right )^{2} + {\left (b c {\rm Ei}\left (-\frac {2 \, b c}{d^{2} x + c d}\right ) \cosh \left (\frac {2 \, b}{d}\right ) - d^{2} x - c d\right )} \sinh \left (\frac {b x}{d x + c}\right )^{2} - {\left (b c {\rm Ei}\left (-\frac {2 \, b c}{d^{2} x + c d}\right ) \cosh \left (\frac {b x}{d x + c}\right )^{2} - b c {\rm Ei}\left (\frac {2 \, b c}{d^{2} x + c d}\right )\right )} \cosh \left (\frac {2 \, b}{d}\right ) - {\left (b c {\rm Ei}\left (-\frac {2 \, b c}{d^{2} x + c d}\right ) \cosh \left (\frac {b x}{d x + c}\right )^{2} - b c {\rm Ei}\left (-\frac {2 \, b c}{d^{2} x + c d}\right ) \sinh \left (\frac {b x}{d x + c}\right )^{2} + b c {\rm Ei}\left (\frac {2 \, b c}{d^{2} x + c d}\right )\right )} \sinh \left (\frac {2 \, b}{d}\right )}{2 \, {\left (d^{2} \cosh \left (\frac {b x}{d x + c}\right )^{2} - d^{2} \sinh \left (\frac {b x}{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 \sinh ^{2}{\left (\frac {b x}{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.01 \begin {gather*} \int {\mathrm {sinh}\left (\frac {b\,x}{c+d\,x}\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________