Optimal. Leaf size=68 \[ \frac {(-3 B+2 i A) \cosh (x)}{15 (\sinh (x)+i)}-\frac {(2 A+3 i B) \cosh (x)}{15 (\sinh (x)+i)^2}-\frac {(B+i A) \cosh (x)}{5 (\sinh (x)+i)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2750, 2650, 2648} \[ \frac {(-3 B+2 i A) \cosh (x)}{15 (\sinh (x)+i)}-\frac {(2 A+3 i B) \cosh (x)}{15 (\sinh (x)+i)^2}-\frac {(B+i A) \cosh (x)}{5 (\sinh (x)+i)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2648
Rule 2650
Rule 2750
Rubi steps
\begin {align*} \int \frac {A+B \sinh (x)}{(i+\sinh (x))^3} \, dx &=-\frac {(i A+B) \cosh (x)}{5 (i+\sinh (x))^3}+\frac {1}{5} (-2 i A+3 B) \int \frac {1}{(i+\sinh (x))^2} \, dx\\ &=-\frac {(i A+B) \cosh (x)}{5 (i+\sinh (x))^3}-\frac {(2 A+3 i B) \cosh (x)}{15 (i+\sinh (x))^2}+\frac {1}{15} (-2 A-3 i B) \int \frac {1}{i+\sinh (x)} \, dx\\ &=-\frac {(i A+B) \cosh (x)}{5 (i+\sinh (x))^3}-\frac {(2 A+3 i B) \cosh (x)}{15 (i+\sinh (x))^2}+\frac {(2 i A-3 B) \cosh (x)}{15 (i+\sinh (x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 50, normalized size = 0.74 \[ \frac {\cosh (x) \left ((-3 B+2 i A) \sinh ^2(x)-3 (2 A+3 i B) \sinh (x)-7 i A+3 B\right )}{15 (\sinh (x)+i)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.57, size = 71, normalized size = 1.04 \[ -\frac {30 \, B e^{\left (3 \, x\right )} + {\left (40 \, A + 30 i \, B\right )} e^{\left (2 \, x\right )} + 10 \, {\left (2 i \, A - 3 \, B\right )} e^{x} - 4 \, A - 6 i \, B}{15 \, e^{\left (5 \, x\right )} + 75 i \, e^{\left (4 \, x\right )} - 150 \, e^{\left (3 \, x\right )} - 150 i \, e^{\left (2 \, x\right )} + 75 \, e^{x} + 15 i} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 46, normalized size = 0.68 \[ -\frac {30 \, B e^{\left (3 \, x\right )} + 40 \, A e^{\left (2 \, x\right )} + 30 i \, B e^{\left (2 \, x\right )} + 20 i \, A e^{x} - 30 \, B e^{x} - 4 \, A - 6 i \, B}{15 \, {\left (e^{x} + i\right )}^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 91, normalized size = 1.34 \[ \frac {2 i A}{\tanh \left (\frac {x}{2}\right )+i}-\frac {-8 i B +8 A}{2 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{4}}-\frac {2 i B -4 A}{\left (\tanh \left (\frac {x}{2}\right )+i\right )^{2}}-\frac {2 \left (-4 i A -4 B \right )}{5 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{5}}-\frac {2 \left (8 i A +6 B \right )}{3 \left (\tanh \left (\frac {x}{2}\right )+i\right )^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.34, size = 280, normalized size = 4.12 \[ A {\left (\frac {20 i \, e^{\left (-x\right )}}{75 \, e^{\left (-x\right )} + 150 i \, e^{\left (-2 \, x\right )} - 150 \, e^{\left (-3 \, x\right )} - 75 i \, e^{\left (-4 \, x\right )} + 15 \, e^{\left (-5 \, x\right )} - 15 i} - \frac {40 \, e^{\left (-2 \, x\right )}}{75 \, e^{\left (-x\right )} + 150 i \, e^{\left (-2 \, x\right )} - 150 \, e^{\left (-3 \, x\right )} - 75 i \, e^{\left (-4 \, x\right )} + 15 \, e^{\left (-5 \, x\right )} - 15 i} + \frac {4}{75 \, e^{\left (-x\right )} + 150 i \, e^{\left (-2 \, x\right )} - 150 \, e^{\left (-3 \, x\right )} - 75 i \, e^{\left (-4 \, x\right )} + 15 \, e^{\left (-5 \, x\right )} - 15 i}\right )} - \frac {1}{2} \, B {\left (\frac {20 \, e^{\left (-x\right )}}{25 \, e^{\left (-x\right )} + 50 i \, e^{\left (-2 \, x\right )} - 50 \, e^{\left (-3 \, x\right )} - 25 i \, e^{\left (-4 \, x\right )} + 5 \, e^{\left (-5 \, x\right )} - 5 i} + \frac {20 i \, e^{\left (-2 \, x\right )}}{25 \, e^{\left (-x\right )} + 50 i \, e^{\left (-2 \, x\right )} - 50 \, e^{\left (-3 \, x\right )} - 25 i \, e^{\left (-4 \, x\right )} + 5 \, e^{\left (-5 \, x\right )} - 5 i} - \frac {20 \, e^{\left (-3 \, x\right )}}{25 \, e^{\left (-x\right )} + 50 i \, e^{\left (-2 \, x\right )} - 50 \, e^{\left (-3 \, x\right )} - 25 i \, e^{\left (-4 \, x\right )} + 5 \, e^{\left (-5 \, x\right )} - 5 i} - \frac {4 i}{25 \, e^{\left (-x\right )} + 50 i \, e^{\left (-2 \, x\right )} - 50 \, e^{\left (-3 \, x\right )} - 25 i \, e^{\left (-4 \, x\right )} + 5 \, e^{\left (-5 \, x\right )} - 5 i}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.83, size = 52, normalized size = 0.76 \[ \frac {\frac {A\,4{}\mathrm {i}}{15}-\frac {2\,B}{5}-\frac {A\,{\mathrm {e}}^{2\,x}\,8{}\mathrm {i}}{3}+{\mathrm {e}}^x\,\left (\frac {4\,A}{3}+B\,2{}\mathrm {i}\right )+2\,B\,{\mathrm {e}}^{2\,x}-B\,{\mathrm {e}}^{3\,x}\,2{}\mathrm {i}}{{\left (-1+{\mathrm {e}}^x\,1{}\mathrm {i}\right )}^5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.39, size = 83, normalized size = 1.22 \[ \frac {- 4 i A + 30 i B e^{3 x} + 6 B + \left (- 20 A - 30 i B\right ) e^{x} + \left (40 i A - 30 B\right ) e^{2 x}}{- 15 i e^{5 x} + 75 e^{4 x} + 150 i e^{3 x} - 150 e^{2 x} - 75 i e^{x} + 15} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________