Optimal. Leaf size=91 \[ \frac{2 (3 A+4 i B) \cosh (x)}{105 (\sinh (x)+i)}+\frac{2 (-4 B+3 i A) \cosh (x)}{105 (\sinh (x)+i)^2}-\frac{(3 A+4 i B) \cosh (x)}{35 (\sinh (x)+i)^3}-\frac{(B+i A) \cosh (x)}{7 (\sinh (x)+i)^4} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0676414, antiderivative size = 91, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {2750, 2650, 2648} \[ \frac{2 (3 A+4 i B) \cosh (x)}{105 (\sinh (x)+i)}+\frac{2 (-4 B+3 i A) \cosh (x)}{105 (\sinh (x)+i)^2}-\frac{(3 A+4 i B) \cosh (x)}{35 (\sinh (x)+i)^3}-\frac{(B+i A) \cosh (x)}{7 (\sinh (x)+i)^4} \]
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))^4} \, dx &=-\frac{(i A+B) \cosh (x)}{7 (i+\sinh (x))^4}+\frac{1}{7} (-3 i A+4 B) \int \frac{1}{(i+\sinh (x))^3} \, dx\\ &=-\frac{(i A+B) \cosh (x)}{7 (i+\sinh (x))^4}-\frac{(3 A+4 i B) \cosh (x)}{35 (i+\sinh (x))^3}-\frac{1}{35} (2 (3 A+4 i B)) \int \frac{1}{(i+\sinh (x))^2} \, dx\\ &=-\frac{(i A+B) \cosh (x)}{7 (i+\sinh (x))^4}-\frac{(3 A+4 i B) \cosh (x)}{35 (i+\sinh (x))^3}+\frac{2 (3 i A-4 B) \cosh (x)}{105 (i+\sinh (x))^2}+\frac{1}{105} (2 (3 i A-4 B)) \int \frac{1}{i+\sinh (x)} \, dx\\ &=-\frac{(i A+B) \cosh (x)}{7 (i+\sinh (x))^4}-\frac{(3 A+4 i B) \cosh (x)}{35 (i+\sinh (x))^3}+\frac{2 (3 i A-4 B) \cosh (x)}{105 (i+\sinh (x))^2}+\frac{2 (3 A+4 i B) \cosh (x)}{105 (i+\sinh (x))}\\ \end{align*}
Mathematica [A] time = 0.0490861, size = 67, normalized size = 0.74 \[ \frac{\cosh (x) \left ((6 A+8 i B) \sinh ^3(x)+8 i (3 A+4 i B) \sinh ^2(x)-13 (3 A+4 i B) \sinh (x)-36 i A+13 B\right )}{105 (\sinh (x)+i)^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.03, size = 128, normalized size = 1.4 \begin{align*} -{(6\,iA+2\,B) \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-2}}-{\frac{16\,A-16\,iB}{7} \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-7}}+2\,{\frac{A}{\tanh \left ( x/2 \right ) +i}}-{\frac{-32\,iA-24\,B}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-4}}-{\frac{-72\,A+64\,iB}{5} \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-5}}-{\frac{36\,A-20\,iB}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-3}}-{\frac{24\,iA+24\,B}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) +i \right ) ^{-6}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.30924, size = 632, normalized size = 6.95 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.83645, size = 305, normalized size = 3.35 \begin{align*} -\frac{280 \, B e^{\left (4 \, x\right )} + 140 \,{\left (3 \, A + 2 i \, B\right )} e^{\left (3 \, x\right )} -{\left (-252 i \, A + 336 \, B\right )} e^{\left (2 \, x\right )} - 28 \,{\left (3 \, A + 4 i \, B\right )} e^{x} - 12 i \, A + 16 \, B}{105 \, e^{\left (7 \, x\right )} + 735 i \, e^{\left (6 \, x\right )} - 2205 \, e^{\left (5 \, x\right )} - 3675 i \, e^{\left (4 \, x\right )} + 3675 \, e^{\left (3 \, x\right )} + 2205 i \, e^{\left (2 \, x\right )} - 735 \, e^{x} - 105 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.14118, size = 81, normalized size = 0.89 \begin{align*} -\frac{280 \, B e^{\left (4 \, x\right )} + 420 \, A e^{\left (3 \, x\right )} + 280 i \, B e^{\left (3 \, x\right )} + 252 i \, A e^{\left (2 \, x\right )} - 336 \, B e^{\left (2 \, x\right )} - 84 \, A e^{x} - 112 i \, B e^{x} - 12 i \, A + 16 \, B}{105 \,{\left (e^{x} + i\right )}^{7}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]