Optimal. Leaf size=73 \[ \frac {i \log \left (3 \cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )}{4 d}-\frac {i \log \left (\cosh \left (\frac {1}{2} (c+d x)\right )+3 i \sinh \left (\frac {1}{2} (c+d x)\right )\right )}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {2739, 630, 31}
\begin {gather*} \frac {i \log \left (3 \cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )}{4 d}-\frac {i \log \left (\cosh \left (\frac {1}{2} (c+d x)\right )+3 i \sinh \left (\frac {1}{2} (c+d x)\right )\right )}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 630
Rule 2739
Rubi steps
\begin {align*} \int \frac {1}{3+5 i \sinh (c+d x)} \, dx &=-\frac {(2 i) \text {Subst}\left (\int \frac {1}{3+10 x+3 x^2} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{d}\\ &=-\frac {(3 i) \text {Subst}\left (\int \frac {1}{1+3 x} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{4 d}+\frac {(3 i) \text {Subst}\left (\int \frac {1}{9+3 x} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{4 d}\\ &=\frac {i \log \left (3+i \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{4 d}-\frac {i \log \left (1+3 i \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 81, normalized size = 1.11 \begin {gather*} \frac {\text {ArcTan}\left (3 \coth \left (\frac {1}{2} (c+d x)\right )\right )}{4 d}+\frac {\text {ArcTan}\left (3 \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{4 d}-\frac {i \log (4-5 \cosh (c+d x))}{8 d}+\frac {i \log (4+5 \cosh (c+d x))}{8 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.97, size = 40, normalized size = 0.55
method | result | size |
risch | \(\frac {i \ln \left ({\mathrm e}^{d x +c}+\frac {4}{5}-\frac {3 i}{5}\right )}{4 d}-\frac {i \ln \left ({\mathrm e}^{d x +c}-\frac {4}{5}-\frac {3 i}{5}\right )}{4 d}\) | \(36\) |
derivativedivides | \(\frac {\frac {i \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-3 i\right )}{4}-\frac {i \ln \left (3 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right )}{4}}{d}\) | \(40\) |
default | \(\frac {\frac {i \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-3 i\right )}{4}-\frac {i \ln \left (3 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right )}{4}}{d}\) | \(40\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.47, size = 19, normalized size = 0.26 \begin {gather*} \frac {\arctan \left (\frac {5}{4} i \, e^{\left (-d x - c\right )} - \frac {3}{4}\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 28, normalized size = 0.38 \begin {gather*} \frac {i \, \log \left (e^{\left (d x + c\right )} - \frac {3}{5} i + \frac {4}{5}\right ) - i \, \log \left (e^{\left (d x + c\right )} - \frac {3}{5} i - \frac {4}{5}\right )}{4 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.17, size = 31, normalized size = 0.42 \begin {gather*} \frac {\operatorname {RootSum} {\left (16 z^{2} + 1, \left ( i \mapsto i \log {\left (\frac {\left (- 16 i i - 3 i\right ) e^{- c}}{5} + e^{d x} \right )} \right )\right )}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 32, normalized size = 0.44 \begin {gather*} -\frac {-i \, \log \left (-\left (i - 2\right ) \, e^{\left (d x + c\right )} - 2 i + 1\right ) + i \, \log \left (-\left (2 i - 1\right ) \, e^{\left (d x + c\right )} + i - 2\right )}{4 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.35, size = 39, normalized size = 0.53 \begin {gather*} -\frac {\ln \left (-\frac {5}{2}+{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (2-\frac {3}{2}{}\mathrm {i}\right )\right )\,1{}\mathrm {i}}{4\,d}+\frac {\ln \left (\frac {5}{2}+{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (2+\frac {3}{2}{}\mathrm {i}\right )\right )\,1{}\mathrm {i}}{4\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________