Optimal. Leaf size=101 \[ \frac {(b c-a d) \cosh \left (\frac {b}{d}\right ) \text {Chi}\left (\frac {b c-a d}{d (c+d x)}\right )}{d^2}+\frac {(c+d x) \sinh \left (\frac {a+b x}{c+d x}\right )}{d}-\frac {(b c-a d) \sinh \left (\frac {b}{d}\right ) \text {Shi}\left (\frac {b c-a d}{d (c+d x)}\right )}{d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 101, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {5726, 3378,
3384, 3379, 3382} \begin {gather*} \frac {\cosh \left (\frac {b}{d}\right ) (b c-a d) \text {Chi}\left (\frac {b c-a d}{d (c+d x)}\right )}{d^2}-\frac {\sinh \left (\frac {b}{d}\right ) (b c-a d) \text {Shi}\left (\frac {b c-a d}{d (c+d x)}\right )}{d^2}+\frac {(c+d x) \sinh \left (\frac {a+b x}{c+d x}\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3378
Rule 3379
Rule 3382
Rule 3384
Rule 5726
Rubi steps
\begin {align*} \int \sinh \left (\frac {a+b x}{c+d x}\right ) \, dx &=-\frac {\text {Subst}\left (\int \frac {\sinh \left (\frac {b}{d}-\frac {(b c-a d) x}{d}\right )}{x^2} \, dx,x,\frac {1}{c+d x}\right )}{d}\\ &=\frac {(c+d x) \sinh \left (\frac {a+b x}{c+d x}\right )}{d}+\frac {(b c-a d) \text {Subst}\left (\int \frac {\cosh \left (\frac {b}{d}-\frac {(b c-a d) x}{d}\right )}{x} \, dx,x,\frac {1}{c+d x}\right )}{d^2}\\ &=\frac {(c+d x) \sinh \left (\frac {a+b x}{c+d x}\right )}{d}+\frac {\left ((b c-a d) \cosh \left (\frac {b}{d}\right )\right ) \text {Subst}\left (\int \frac {\cosh \left (\frac {(b c-a d) x}{d}\right )}{x} \, dx,x,\frac {1}{c+d x}\right )}{d^2}-\frac {\left ((b c-a d) \sinh \left (\frac {b}{d}\right )\right ) \text {Subst}\left (\int \frac {\sinh \left (\frac {(b c-a d) x}{d}\right )}{x} \, dx,x,\frac {1}{c+d x}\right )}{d^2}\\ &=\frac {(b c-a d) \cosh \left (\frac {b}{d}\right ) \text {Chi}\left (\frac {b c-a d}{d (c+d x)}\right )}{d^2}+\frac {(c+d x) \sinh \left (\frac {a+b x}{c+d x}\right )}{d}-\frac {(b c-a d) \sinh \left (\frac {b}{d}\right ) \text {Shi}\left (\frac {b c-a d}{d (c+d x)}\right )}{d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(373\) vs. \(2(101)=202\).
time = 0.51, size = 373, normalized size = 3.69 \begin {gather*} \frac {(b c-a d) \text {Chi}\left (\frac {b c-a d}{c d+d^2 x}\right ) \left (\cosh \left (\frac {b}{d}\right )-\sinh \left (\frac {b}{d}\right )\right )+(b c-a d) \text {Chi}\left (\frac {-b c+a d}{d (c+d x)}\right ) \left (\cosh \left (\frac {b}{d}\right )+\sinh \left (\frac {b}{d}\right )\right )+2 c d \sinh \left (\frac {a+b x}{c+d x}\right )+2 d^2 x \sinh \left (\frac {a+b x}{c+d x}\right )+b c \cosh \left (\frac {b}{d}\right ) \text {Shi}\left (\frac {-b c+a d}{d (c+d x)}\right )-a d \cosh \left (\frac {b}{d}\right ) \text {Shi}\left (\frac {-b c+a d}{d (c+d x)}\right )+b c \sinh \left (\frac {b}{d}\right ) \text {Shi}\left (\frac {-b c+a d}{d (c+d x)}\right )-a d \sinh \left (\frac {b}{d}\right ) \text {Shi}\left (\frac {-b c+a d}{d (c+d x)}\right )+b c \cosh \left (\frac {b}{d}\right ) \text {Shi}\left (\frac {b c-a d}{c d+d^2 x}\right )-a d \cosh \left (\frac {b}{d}\right ) \text {Shi}\left (\frac {b c-a d}{c d+d^2 x}\right )-b c \sinh \left (\frac {b}{d}\right ) \text {Shi}\left (\frac {b c-a d}{c d+d^2 x}\right )+a d \sinh \left (\frac {b}{d}\right ) \text {Shi}\left (\frac {b c-a d}{c d+d^2 x}\right )}{2 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. \(346\) vs.
\(2(101)=202\).
time = 1.19, size = 347, normalized size = 3.44
method | result | size |
risch | \(-\frac {{\mathrm e}^{-\frac {b x +a}{d x +c}} a}{2 \left (\frac {d a}{d x +c}-\frac {b c}{d x +c}\right )}+\frac {{\mathrm e}^{-\frac {b x +a}{d x +c}} b c}{2 d \left (\frac {d a}{d x +c}-\frac {b c}{d x +c}\right )}+\frac {{\mathrm e}^{-\frac {b}{d}} \expIntegral \left (1, \frac {a d -b c}{d \left (d x +c \right )}\right ) a}{2 d}-\frac {{\mathrm e}^{-\frac {b}{d}} \expIntegral \left (1, \frac {a d -b c}{d \left (d x +c \right )}\right ) b c}{2 d^{2}}+\frac {d \,{\mathrm e}^{\frac {b x +a}{d x +c}} x a}{2 a d -2 b c}-\frac {{\mathrm e}^{\frac {b x +a}{d x +c}} x b c}{2 \left (a d -b c \right )}+\frac {{\mathrm e}^{\frac {b x +a}{d x +c}} c a}{2 a d -2 b c}-\frac {{\mathrm e}^{\frac {b x +a}{d x +c}} c^{2} b}{2 d \left (a d -b c \right )}+\frac {{\mathrm e}^{\frac {b}{d}} \expIntegral \left (1, -\frac {a d -b c}{d \left (d x +c \right )}\right ) a}{2 d}-\frac {{\mathrm e}^{\frac {b}{d}} \expIntegral \left (1, -\frac {a d -b c}{d \left (d x +c \right )}\right ) b c}{2 d^{2}}\) | \(347\) |
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 [A]
time = 0.46, size = 171, normalized size = 1.69 \begin {gather*} \frac {{\left ({\left (b c - a d\right )} {\rm Ei}\left (\frac {b c - a d}{d^{2} x + c d}\right ) + {\left (b c - a d\right )} {\rm Ei}\left (-\frac {b c - a d}{d^{2} x + c d}\right )\right )} \cosh \left (\frac {b}{d}\right ) + 2 \, {\left (d^{2} x + c d\right )} \sinh \left (\frac {b x + a}{d x + c}\right ) - {\left ({\left (b c - a d\right )} {\rm Ei}\left (\frac {b c - a d}{d^{2} x + c d}\right ) - {\left (b c - a d\right )} {\rm Ei}\left (-\frac {b c - a d}{d^{2} x + c d}\right )\right )} \sinh \left (\frac {b}{d}\right )}{2 \, d^{2}} \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 {\left (\frac {a + b x}{c + d x} \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 764 vs.
\(2 (101) = 202\).
time = 1.82, size = 764, normalized size = 7.56 \begin {gather*} \frac {{\left (b^{3} c^{2} {\rm Ei}\left (-\frac {b - \frac {{\left (b x + a\right )} d}{d x + c}}{d}\right ) e^{\frac {b}{d}} - 2 \, a b^{2} c d {\rm Ei}\left (-\frac {b - \frac {{\left (b x + a\right )} d}{d x + c}}{d}\right ) e^{\frac {b}{d}} - \frac {{\left (b x + a\right )} b^{2} c^{2} d {\rm Ei}\left (-\frac {b - \frac {{\left (b x + a\right )} d}{d x + c}}{d}\right ) e^{\frac {b}{d}}}{d x + c} + a^{2} b d^{2} {\rm Ei}\left (-\frac {b - \frac {{\left (b x + a\right )} d}{d x + c}}{d}\right ) e^{\frac {b}{d}} + \frac {2 \, {\left (b x + a\right )} a b c d^{2} {\rm Ei}\left (-\frac {b - \frac {{\left (b x + a\right )} d}{d x + c}}{d}\right ) e^{\frac {b}{d}}}{d x + c} - \frac {{\left (b x + a\right )} a^{2} d^{3} {\rm Ei}\left (-\frac {b - \frac {{\left (b x + a\right )} d}{d x + c}}{d}\right ) e^{\frac {b}{d}}}{d x + c} + b^{2} c^{2} d e^{\left (\frac {b x + a}{d x + c}\right )} - 2 \, a b c d^{2} e^{\left (\frac {b x + a}{d x + c}\right )} + a^{2} d^{3} e^{\left (\frac {b x + a}{d x + c}\right )}\right )} {\left (\frac {b c}{{\left (b c - a d\right )}^{2}} - \frac {a d}{{\left (b c - a d\right )}^{2}}\right )}}{2 \, {\left (b d^{2} - \frac {{\left (b x + a\right )} d^{3}}{d x + c}\right )}} + \frac {{\left (b^{3} c^{2} {\rm Ei}\left (\frac {b - \frac {{\left (b x + a\right )} d}{d x + c}}{d}\right ) e^{\left (-\frac {b}{d}\right )} - 2 \, a b^{2} c d {\rm Ei}\left (\frac {b - \frac {{\left (b x + a\right )} d}{d x + c}}{d}\right ) e^{\left (-\frac {b}{d}\right )} - \frac {{\left (b x + a\right )} b^{2} c^{2} d {\rm Ei}\left (\frac {b - \frac {{\left (b x + a\right )} d}{d x + c}}{d}\right ) e^{\left (-\frac {b}{d}\right )}}{d x + c} + a^{2} b d^{2} {\rm Ei}\left (\frac {b - \frac {{\left (b x + a\right )} d}{d x + c}}{d}\right ) e^{\left (-\frac {b}{d}\right )} + \frac {2 \, {\left (b x + a\right )} a b c d^{2} {\rm Ei}\left (\frac {b - \frac {{\left (b x + a\right )} d}{d x + c}}{d}\right ) e^{\left (-\frac {b}{d}\right )}}{d x + c} - \frac {{\left (b x + a\right )} a^{2} d^{3} {\rm Ei}\left (\frac {b - \frac {{\left (b x + a\right )} d}{d x + c}}{d}\right ) e^{\left (-\frac {b}{d}\right )}}{d x + c} - b^{2} c^{2} d e^{\left (-\frac {b x + a}{d x + c}\right )} + 2 \, a b c d^{2} e^{\left (-\frac {b x + a}{d x + c}\right )} - a^{2} d^{3} e^{\left (-\frac {b x + a}{d x + c}\right )}\right )} {\left (\frac {b c}{{\left (b c - a d\right )}^{2}} - \frac {a d}{{\left (b c - a d\right )}^{2}}\right )}}{2 \, {\left (b d^{2} - \frac {{\left (b x + a\right )} d^{3}}{d x + c}\right )}} \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 {a+b\,x}{c+d\,x}\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________