Optimal. Leaf size=95 \[ \frac {59 x}{2048}-\frac {59 i \text {ArcTan}\left (\frac {\cosh (c+d x)}{3+i \sinh (c+d x)}\right )}{1024 d}-\frac {3 i \cosh (c+d x)}{32 d (5+3 i \sinh (c+d x))^2}-\frac {45 i \cosh (c+d x)}{512 d (5+3 i \sinh (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 95, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {2743, 2833, 12,
2736} \begin {gather*} -\frac {59 i \text {ArcTan}\left (\frac {\cosh (c+d x)}{3+i \sinh (c+d x)}\right )}{1024 d}-\frac {45 i \cosh (c+d x)}{512 d (5+3 i \sinh (c+d x))}-\frac {3 i \cosh (c+d x)}{32 d (5+3 i \sinh (c+d x))^2}+\frac {59 x}{2048} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2736
Rule 2743
Rule 2833
Rubi steps
\begin {align*} \int \frac {1}{(5+3 i \sinh (c+d x))^3} \, dx &=-\frac {3 i \cosh (c+d x)}{32 d (5+3 i \sinh (c+d x))^2}-\frac {1}{32} \int \frac {-10+3 i \sinh (c+d x)}{(5+3 i \sinh (c+d x))^2} \, dx\\ &=-\frac {3 i \cosh (c+d x)}{32 d (5+3 i \sinh (c+d x))^2}-\frac {45 i \cosh (c+d x)}{512 d (5+3 i \sinh (c+d x))}+\frac {1}{512} \int \frac {59}{5+3 i \sinh (c+d x)} \, dx\\ &=-\frac {3 i \cosh (c+d x)}{32 d (5+3 i \sinh (c+d x))^2}-\frac {45 i \cosh (c+d x)}{512 d (5+3 i \sinh (c+d x))}+\frac {59}{512} \int \frac {1}{5+3 i \sinh (c+d x)} \, dx\\ &=\frac {59 x}{2048}-\frac {59 i \tan ^{-1}\left (\frac {\cosh (c+d x)}{3+i \sinh (c+d x)}\right )}{1024 d}-\frac {3 i \cosh (c+d x)}{32 d (5+3 i \sinh (c+d x))^2}-\frac {45 i \cosh (c+d x)}{512 d (5+3 i \sinh (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice
the leaf count of optimal. \(277\) vs. \(2(95)=190\).
time = 0.51, size = 277, normalized size = 2.92 \begin {gather*} \frac {-118 i \text {ArcTan}\left (\frac {2 \cosh \left (\frac {1}{2} (c+d x)\right )-\sinh \left (\frac {1}{2} (c+d x)\right )}{\cosh \left (\frac {1}{2} (c+d x)\right )-2 \sinh \left (\frac {1}{2} (c+d x)\right )}\right )+118 i \text {ArcTan}\left (\frac {\cosh \left (\frac {1}{2} (c+d x)\right )+2 \sinh \left (\frac {1}{2} (c+d x)\right )}{2 \cosh \left (\frac {1}{2} (c+d x)\right )+\sinh \left (\frac {1}{2} (c+d x)\right )}\right )-59 \log (5 \cosh (c+d x)-4 \sinh (c+d x))+59 \log (5 \cosh (c+d x)+4 \sinh (c+d x))+\frac {48}{\left ((1+2 i) \cosh \left (\frac {1}{2} (c+d x)\right )-(2+i) \sinh \left (\frac {1}{2} (c+d x)\right )\right )^2}+\frac {48}{\left ((2+i) \cosh \left (\frac {1}{2} (c+d x)\right )+(1+2 i) \sinh \left (\frac {1}{2} (c+d x)\right )\right )^2}-\frac {144 \sinh \left (\frac {1}{2} (c+d x)\right ) \left (-3 i \cosh \left (\frac {1}{2} (c+d x)\right )+5 \sinh \left (\frac {1}{2} (c+d x)\right )\right )}{-5 i+3 \sinh (c+d x)}}{4096 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.30, size = 126, normalized size = 1.33
method | result | size |
risch | \(-\frac {3 i \left (-295 i {\mathrm e}^{2 d x +2 c}+59 \,{\mathrm e}^{3 d x +3 c}+45 i-241 \,{\mathrm e}^{d x +c}\right )}{256 d \left (3 \,{\mathrm e}^{2 d x +2 c}-3-10 i {\mathrm e}^{d x +c}\right )^{2}}-\frac {59 \ln \left (-3 i+{\mathrm e}^{d x +c}\right )}{2048 d}+\frac {59 \ln \left ({\mathrm e}^{d x +c}-\frac {i}{3}\right )}{2048 d}\) | \(96\) |
derivativedivides | \(\frac {\frac {-\frac {63}{3200}-\frac {27 i}{400}}{\left (5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-4-3 i\right )^{2}}+\frac {-\frac {963}{12800}+\frac {123 i}{1600}}{5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-4-3 i}-\frac {59 \ln \left (5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-4-3 i\right )}{2048}+\frac {\frac {63}{3200}-\frac {27 i}{400}}{\left (5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+4-3 i\right )^{2}}+\frac {-\frac {963}{12800}-\frac {123 i}{1600}}{5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+4-3 i}+\frac {59 \ln \left (5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+4-3 i\right )}{2048}}{d}\) | \(126\) |
default | \(\frac {\frac {-\frac {63}{3200}-\frac {27 i}{400}}{\left (5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-4-3 i\right )^{2}}+\frac {-\frac {963}{12800}+\frac {123 i}{1600}}{5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-4-3 i}-\frac {59 \ln \left (5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-4-3 i\right )}{2048}+\frac {\frac {63}{3200}-\frac {27 i}{400}}{\left (5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+4-3 i\right )^{2}}+\frac {-\frac {963}{12800}-\frac {123 i}{1600}}{5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+4-3 i}+\frac {59 \ln \left (5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+4-3 i\right )}{2048}}{d}\) | \(126\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.60, size = 108, normalized size = 1.14 \begin {gather*} -\frac {59 i \, \arctan \left (\frac {3}{4} \, e^{\left (-d x - c\right )} + \frac {5}{4} i\right )}{1024 \, d} + \frac {3 \, {\left (241 i \, e^{\left (-d x - c\right )} + 295 \, e^{\left (-2 \, d x - 2 \, c\right )} - 59 i \, e^{\left (-3 \, d x - 3 \, c\right )} - 45\right )}}{-256 \, d {\left (60 i \, e^{\left (-d x - c\right )} + 118 \, e^{\left (-2 \, d x - 2 \, c\right )} - 60 i \, e^{\left (-3 \, d x - 3 \, c\right )} - 9 \, e^{\left (-4 \, d x - 4 \, c\right )} - 9\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 193 vs. \(2 (75) = 150\).
time = 0.39, size = 193, normalized size = 2.03 \begin {gather*} \frac {59 \, {\left (9 \, e^{\left (4 \, d x + 4 \, c\right )} - 60 i \, e^{\left (3 \, d x + 3 \, c\right )} - 118 \, e^{\left (2 \, d x + 2 \, c\right )} + 60 i \, e^{\left (d x + c\right )} + 9\right )} \log \left (e^{\left (d x + c\right )} - \frac {1}{3} i\right ) - 59 \, {\left (9 \, e^{\left (4 \, d x + 4 \, c\right )} - 60 i \, e^{\left (3 \, d x + 3 \, c\right )} - 118 \, e^{\left (2 \, d x + 2 \, c\right )} + 60 i \, e^{\left (d x + c\right )} + 9\right )} \log \left (e^{\left (d x + c\right )} - 3 i\right ) - 1416 i \, e^{\left (3 \, d x + 3 \, c\right )} - 7080 \, e^{\left (2 \, d x + 2 \, c\right )} + 5784 i \, e^{\left (d x + c\right )} + 1080}{2048 \, {\left (9 \, d e^{\left (4 \, d x + 4 \, c\right )} - 60 i \, d e^{\left (3 \, d x + 3 \, c\right )} - 118 \, d e^{\left (2 \, d x + 2 \, c\right )} + 60 i \, d e^{\left (d x + c\right )} + 9 \, d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.23, size = 141, normalized size = 1.48 \begin {gather*} \frac {- 177 i e^{3 c} e^{3 d x} - 885 e^{2 c} e^{2 d x} + 723 i e^{c} e^{d x} + 135}{2304 d e^{4 c} e^{4 d x} - 15360 i d e^{3 c} e^{3 d x} - 30208 d e^{2 c} e^{2 d x} + 15360 i d e^{c} e^{d x} + 2304 d} + \frac {- \frac {59 \log {\left (e^{d x} - 3 i e^{- c} \right )}}{2048} + \frac {59 \log {\left (e^{d x} - \frac {i e^{- c}}{3} \right )}}{2048}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 87, normalized size = 0.92 \begin {gather*} -\frac {\frac {24 \, {\left (-59 i \, e^{\left (3 \, d x + 3 \, c\right )} - 295 \, e^{\left (2 \, d x + 2 \, c\right )} + 241 i \, e^{\left (d x + c\right )} + 45\right )}}{{\left (-3 i \, e^{\left (2 \, d x + 2 \, c\right )} - 10 \, e^{\left (d x + c\right )} + 3 i\right )}^{2}} - 59 \, \log \left (3 \, e^{\left (d x + c\right )} - i\right ) + 59 \, \log \left (e^{\left (d x + c\right )} - 3 i\right )}{2048 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.62, size = 143, normalized size = 1.51 \begin {gather*} \frac {\frac {295}{2304\,d}+\frac {{\mathrm {e}}^{c+d\,x}\,59{}\mathrm {i}}{768\,d}}{1-{\mathrm {e}}^{2\,c+2\,d\,x}+\frac {{\mathrm {e}}^{c+d\,x}\,10{}\mathrm {i}}{3}}-\frac {59\,\ln \left (-\frac {59\,{\mathrm {e}}^{c+d\,x}}{4}+\frac {177}{4}{}\mathrm {i}\right )}{2048\,d}+\frac {59\,\ln \left (\frac {531\,{\mathrm {e}}^{c+d\,x}}{4}-\frac {177}{4}{}\mathrm {i}\right )}{2048\,d}-\frac {\frac {5}{72\,d}+\frac {{\mathrm {e}}^{c+d\,x}\,41{}\mathrm {i}}{216\,d}}{{\mathrm {e}}^{4\,c+4\,d\,x}-\frac {118\,{\mathrm {e}}^{2\,c+2\,d\,x}}{9}+1+\frac {{\mathrm {e}}^{c+d\,x}\,20{}\mathrm {i}}{3}-\frac {{\mathrm {e}}^{3\,c+3\,d\,x}\,20{}\mathrm {i}}{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________