Optimal. Leaf size=213 \[ -\frac {\text {Chi}\left (\frac {b \sqrt {-c}}{\sqrt {d}}+b x\right ) \sinh \left (a-\frac {b \sqrt {-c}}{\sqrt {d}}\right )}{2 \sqrt {-c} \sqrt {d}}+\frac {\text {Chi}\left (\frac {b \sqrt {-c}}{\sqrt {d}}-b x\right ) \sinh \left (a+\frac {b \sqrt {-c}}{\sqrt {d}}\right )}{2 \sqrt {-c} \sqrt {d}}-\frac {\cosh \left (a+\frac {b \sqrt {-c}}{\sqrt {d}}\right ) \text {Shi}\left (\frac {b \sqrt {-c}}{\sqrt {d}}-b x\right )}{2 \sqrt {-c} \sqrt {d}}-\frac {\cosh \left (a-\frac {b \sqrt {-c}}{\sqrt {d}}\right ) \text {Shi}\left (\frac {b \sqrt {-c}}{\sqrt {d}}+b x\right )}{2 \sqrt {-c} \sqrt {d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.41, antiderivative size = 213, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {5388, 3384,
3379, 3382} \begin {gather*} -\frac {\sinh \left (a-\frac {b \sqrt {-c}}{\sqrt {d}}\right ) \text {Chi}\left (x b+\frac {\sqrt {-c} b}{\sqrt {d}}\right )}{2 \sqrt {-c} \sqrt {d}}+\frac {\sinh \left (a+\frac {b \sqrt {-c}}{\sqrt {d}}\right ) \text {Chi}\left (\frac {b \sqrt {-c}}{\sqrt {d}}-b x\right )}{2 \sqrt {-c} \sqrt {d}}-\frac {\cosh \left (a+\frac {b \sqrt {-c}}{\sqrt {d}}\right ) \text {Shi}\left (\frac {b \sqrt {-c}}{\sqrt {d}}-b x\right )}{2 \sqrt {-c} \sqrt {d}}-\frac {\cosh \left (a-\frac {b \sqrt {-c}}{\sqrt {d}}\right ) \text {Shi}\left (x b+\frac {\sqrt {-c} b}{\sqrt {d}}\right )}{2 \sqrt {-c} \sqrt {d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3379
Rule 3382
Rule 3384
Rule 5388
Rubi steps
\begin {align*} \int \frac {\sinh (a+b x)}{c+d x^2} \, dx &=\int \left (\frac {\sqrt {-c} \sinh (a+b x)}{2 c \left (\sqrt {-c}-\sqrt {d} x\right )}+\frac {\sqrt {-c} \sinh (a+b x)}{2 c \left (\sqrt {-c}+\sqrt {d} x\right )}\right ) \, dx\\ &=-\frac {\int \frac {\sinh (a+b x)}{\sqrt {-c}-\sqrt {d} x} \, dx}{2 \sqrt {-c}}-\frac {\int \frac {\sinh (a+b x)}{\sqrt {-c}+\sqrt {d} x} \, dx}{2 \sqrt {-c}}\\ &=-\frac {\cosh \left (a-\frac {b \sqrt {-c}}{\sqrt {d}}\right ) \int \frac {\sinh \left (\frac {b \sqrt {-c}}{\sqrt {d}}+b x\right )}{\sqrt {-c}+\sqrt {d} x} \, dx}{2 \sqrt {-c}}+\frac {\cosh \left (a+\frac {b \sqrt {-c}}{\sqrt {d}}\right ) \int \frac {\sinh \left (\frac {b \sqrt {-c}}{\sqrt {d}}-b x\right )}{\sqrt {-c}-\sqrt {d} x} \, dx}{2 \sqrt {-c}}-\frac {\sinh \left (a-\frac {b \sqrt {-c}}{\sqrt {d}}\right ) \int \frac {\cosh \left (\frac {b \sqrt {-c}}{\sqrt {d}}+b x\right )}{\sqrt {-c}+\sqrt {d} x} \, dx}{2 \sqrt {-c}}-\frac {\sinh \left (a+\frac {b \sqrt {-c}}{\sqrt {d}}\right ) \int \frac {\cosh \left (\frac {b \sqrt {-c}}{\sqrt {d}}-b x\right )}{\sqrt {-c}-\sqrt {d} x} \, dx}{2 \sqrt {-c}}\\ &=-\frac {\text {Chi}\left (\frac {b \sqrt {-c}}{\sqrt {d}}+b x\right ) \sinh \left (a-\frac {b \sqrt {-c}}{\sqrt {d}}\right )}{2 \sqrt {-c} \sqrt {d}}+\frac {\text {Chi}\left (\frac {b \sqrt {-c}}{\sqrt {d}}-b x\right ) \sinh \left (a+\frac {b \sqrt {-c}}{\sqrt {d}}\right )}{2 \sqrt {-c} \sqrt {d}}-\frac {\cosh \left (a+\frac {b \sqrt {-c}}{\sqrt {d}}\right ) \text {Shi}\left (\frac {b \sqrt {-c}}{\sqrt {d}}-b x\right )}{2 \sqrt {-c} \sqrt {d}}-\frac {\cosh \left (a-\frac {b \sqrt {-c}}{\sqrt {d}}\right ) \text {Shi}\left (\frac {b \sqrt {-c}}{\sqrt {d}}+b x\right )}{2 \sqrt {-c} \sqrt {d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.22, size = 180, normalized size = 0.85 \begin {gather*} \frac {i \left (\text {CosIntegral}\left (-\frac {b \sqrt {c}}{\sqrt {d}}+i b x\right ) \sinh \left (a-\frac {i b \sqrt {c}}{\sqrt {d}}\right )-\text {CosIntegral}\left (\frac {b \sqrt {c}}{\sqrt {d}}+i b x\right ) \sinh \left (a+\frac {i b \sqrt {c}}{\sqrt {d}}\right )+i \left (\cosh \left (a-\frac {i b \sqrt {c}}{\sqrt {d}}\right ) \text {Si}\left (\frac {b \sqrt {c}}{\sqrt {d}}-i b x\right )+\cosh \left (a+\frac {i b \sqrt {c}}{\sqrt {d}}\right ) \text {Si}\left (\frac {b \sqrt {c}}{\sqrt {d}}+i b x\right )\right )\right )}{2 \sqrt {c} \sqrt {d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.50, size = 212, normalized size = 1.00
method | result | size |
risch | \(\frac {{\mathrm e}^{-\frac {b \sqrt {-c d}+a d}{d}} \expIntegral \left (1, -\frac {b \sqrt {-c d}-d \left (b x +a \right )+a d}{d}\right )}{4 \sqrt {-c d}}-\frac {{\mathrm e}^{-\frac {-b \sqrt {-c d}+a d}{d}} \expIntegral \left (1, \frac {b \sqrt {-c d}+d \left (b x +a \right )-a d}{d}\right )}{4 \sqrt {-c d}}-\frac {{\mathrm e}^{\frac {b \sqrt {-c d}+a d}{d}} \expIntegral \left (1, \frac {b \sqrt {-c d}-d \left (b x +a \right )+a d}{d}\right )}{4 \sqrt {-c d}}+\frac {{\mathrm e}^{\frac {-b \sqrt {-c d}+a d}{d}} \expIntegral \left (1, -\frac {b \sqrt {-c d}+d \left (b x +a \right )-a d}{d}\right )}{4 \sqrt {-c d}}\) | \(212\) |
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. 316 vs.
\(2 (157) = 314\).
time = 0.37, size = 316, normalized size = 1.48 \begin {gather*} -\frac {{\left (\sqrt {-\frac {b^{2} c}{d}} {\rm Ei}\left (b x - \sqrt {-\frac {b^{2} c}{d}}\right ) - \sqrt {-\frac {b^{2} c}{d}} {\rm Ei}\left (-b x + \sqrt {-\frac {b^{2} c}{d}}\right )\right )} \cosh \left (a + \sqrt {-\frac {b^{2} c}{d}}\right ) - {\left (\sqrt {-\frac {b^{2} c}{d}} {\rm Ei}\left (b x + \sqrt {-\frac {b^{2} c}{d}}\right ) - \sqrt {-\frac {b^{2} c}{d}} {\rm Ei}\left (-b x - \sqrt {-\frac {b^{2} c}{d}}\right )\right )} \cosh \left (-a + \sqrt {-\frac {b^{2} c}{d}}\right ) + {\left (\sqrt {-\frac {b^{2} c}{d}} {\rm Ei}\left (b x - \sqrt {-\frac {b^{2} c}{d}}\right ) + \sqrt {-\frac {b^{2} c}{d}} {\rm Ei}\left (-b x + \sqrt {-\frac {b^{2} c}{d}}\right )\right )} \sinh \left (a + \sqrt {-\frac {b^{2} c}{d}}\right ) + {\left (\sqrt {-\frac {b^{2} c}{d}} {\rm Ei}\left (b x + \sqrt {-\frac {b^{2} c}{d}}\right ) + \sqrt {-\frac {b^{2} c}{d}} {\rm Ei}\left (-b x - \sqrt {-\frac {b^{2} c}{d}}\right )\right )} \sinh \left (-a + \sqrt {-\frac {b^{2} c}{d}}\right )}{4 \, b c} \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 {\sinh {\left (a + b x \right )}}{c + d x^{2}}\, 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 {\mathrm {sinh}\left (a+b\,x\right )}{d\,x^2+c} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________