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.0535386, antiderivative size = 68, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, 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 2750
Rule 2650
Rule 2648
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.0374888, 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]
________________________________________________________________________________________
Maple [A] time = 0.029, size = 91, normalized size = 1.3 \begin{align*} -{\frac{8\,A-8\,iB}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-4}}+{2\,iA \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-1}}-{\frac{-8\,iA-8\,B}{5} \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-5}}-{\frac{16\,iA+12\,B}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-3}}-{(-4\,A+2\,iB) \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.27767, size = 378, normalized size = 5.56 \begin{align*} 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 )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.62266, size = 209, normalized size = 3.07 \begin{align*} -\frac{30 \, B e^{\left (3 \, x\right )} + 10 \,{\left (4 \, A + 3 i \, B\right )} e^{\left (2 \, x\right )} -{\left (-20 i \, A + 30 \, 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} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20797, size = 62, normalized size = 0.91 \begin{align*} -\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}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]