Optimal. Leaf size=102 \[ \frac {5 i \cosh (c+d x)}{16 d (3+5 i \sinh (c+d x))}-\frac {3 i \log \left (3 \cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )}{64 d}+\frac {3 i \log \left (\cosh \left (\frac {1}{2} (c+d x)\right )+3 i \sinh \left (\frac {1}{2} (c+d x)\right )\right )}{64 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {2664, 12, 2660, 616, 31} \[ \frac {5 i \cosh (c+d x)}{16 d (3+5 i \sinh (c+d x))}-\frac {3 i \log \left (3 \cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )}{64 d}+\frac {3 i \log \left (\cosh \left (\frac {1}{2} (c+d x)\right )+3 i \sinh \left (\frac {1}{2} (c+d x)\right )\right )}{64 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 31
Rule 616
Rule 2660
Rule 2664
Rubi steps
\begin {align*} \int \frac {1}{(3+5 i \sinh (c+d x))^2} \, dx &=\frac {5 i \cosh (c+d x)}{16 d (3+5 i \sinh (c+d x))}+\frac {1}{16} \int -\frac {3}{3+5 i \sinh (c+d x)} \, dx\\ &=\frac {5 i \cosh (c+d x)}{16 d (3+5 i \sinh (c+d x))}-\frac {3}{16} \int \frac {1}{3+5 i \sinh (c+d x)} \, dx\\ &=\frac {5 i \cosh (c+d x)}{16 d (3+5 i \sinh (c+d x))}+\frac {(3 i) \operatorname {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 )}{8 d}\\ &=\frac {5 i \cosh (c+d x)}{16 d (3+5 i \sinh (c+d x))}+\frac {(9 i) \operatorname {Subst}\left (\int \frac {1}{1+3 x} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{64 d}-\frac {(9 i) \operatorname {Subst}\left (\int \frac {1}{9+3 x} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{64 d}\\ &=-\frac {3 i \log \left (3+i \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{64 d}+\frac {3 i \log \left (1+3 i \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{64 d}+\frac {5 i \cosh (c+d x)}{16 d (3+5 i \sinh (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.26, size = 142, normalized size = 1.39 \[ \frac {40 \sinh \left (\frac {1}{2} (c+d x)\right ) \left (\frac {3}{\cosh \left (\frac {1}{2} (c+d x)\right )+3 i \sinh \left (\frac {1}{2} (c+d x)\right )}+\frac {1}{3 \cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )}\right )-9 \left (2 \tan ^{-1}\left (3 \tanh \left (\frac {1}{2} (c+d x)\right )\right )-i \log (4-5 \cosh (c+d x))+i \log (5 \cosh (c+d x)+4)+2 \tan ^{-1}\left (3 \coth \left (\frac {1}{2} (c+d x)\right )\right )\right )}{384 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.62, size = 100, normalized size = 0.98 \[ \frac {{\left (-15 i \, e^{\left (2 \, d x + 2 \, c\right )} - 18 \, e^{\left (d x + c\right )} + 15 i\right )} \log \left (e^{\left (d x + c\right )} - \frac {3}{5} i + \frac {4}{5}\right ) + {\left (15 i \, e^{\left (2 \, d x + 2 \, c\right )} + 18 \, e^{\left (d x + c\right )} - 15 i\right )} \log \left (e^{\left (d x + c\right )} - \frac {3}{5} i - \frac {4}{5}\right ) + 24 i \, e^{\left (d x + c\right )} + 40}{320 \, d e^{\left (2 \, d x + 2 \, c\right )} - 384 i \, d e^{\left (d x + c\right )} - 320 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 67, normalized size = 0.66 \[ -\frac {\frac {8 \, {\left (-3 i \, e^{\left (d x + c\right )} - 5\right )}}{5 \, e^{\left (2 \, d x + 2 \, c\right )} - 6 i \, e^{\left (d x + c\right )} - 5} + 3 i \, \log \left (-\left (i - 2\right ) \, e^{\left (d x + c\right )} - 2 i + 1\right ) - 3 i \, \log \left (-\left (2 i - 1\right ) \, e^{\left (d x + c\right )} + i - 2\right )}{64 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 82, normalized size = 0.80 \[ -\frac {3 i \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-3 i\right )}{64 d}+\frac {5}{16 d \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-3 i\right )}+\frac {3 i \ln \left (3 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right )}{64 d}+\frac {5}{48 d \left (3 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 79, normalized size = 0.77 \[ \frac {3 i \, \log \left (\frac {10 \, e^{\left (-d x - c\right )} + 6 i - 8}{10 \, e^{\left (-d x - c\right )} + 6 i + 8}\right )}{64 \, d} + \frac {3 i \, e^{\left (-d x - c\right )} - 5}{-8 \, d {\left (-6 i \, e^{\left (-d x - c\right )} - 5 \, e^{\left (-2 \, d x - 2 \, c\right )} + 5\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.98, size = 106, normalized size = 1.04 \[ -\frac {5}{8\,\left (5\,d-5\,d\,{\mathrm {e}}^{2\,c+2\,d\,x}+d\,{\mathrm {e}}^{c+d\,x}\,6{}\mathrm {i}\right )}-\frac {\ln \left (-\frac {15}{4}+{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (-3-\frac {9}{4}{}\mathrm {i}\right )\right )\,3{}\mathrm {i}}{64\,d}+\frac {\ln \left (\frac {15}{4}+{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (-3+\frac {9}{4}{}\mathrm {i}\right )\right )\,3{}\mathrm {i}}{64\,d}-\frac {{\mathrm {e}}^{c+d\,x}\,3{}\mathrm {i}}{8\,\left (5\,d-5\,d\,{\mathrm {e}}^{2\,c+2\,d\,x}+d\,{\mathrm {e}}^{c+d\,x}\,6{}\mathrm {i}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.41, size = 87, normalized size = 0.85 \[ \frac {- 5 e^{2 c} + 3 i e^{c} e^{- d x}}{- 40 d e^{2 c} + 48 i d e^{c} e^{- d x} + 40 d e^{- 2 d x}} + \frac {\operatorname {RootSum} {\left (2560000 z^{2} + 9, \left (i \mapsto i \log {\left (- \frac {1280 i i e^{c}}{3} + \frac {3 i e^{c}}{5} + e^{- d x} \right )} \right )\right )}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________