Optimal. Leaf size=101 \[ -\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.0699008, antiderivative size = 101, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.176, 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.0487166, size = 63, normalized size = 0.62 \[ \frac{\cosh (x) \left ((6 A-8 i B) \sinh ^3(x)+(-32 B-24 i A) \sinh ^2(x)+(-39 A+52 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.033, size = 128, normalized size = 1.3 \begin{align*} -{\frac{32\,iA-24\,B}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) ^{-4}}-{\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}}-{(-6\,iA+2\,B) \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) ^{-2}}-{\frac{-72\,A-64\,iB}{5} \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) ^{-5}}-{\frac{-24\,iA+24\,B}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) ^{-6}}-{\frac{36\,A+20\,iB}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) -i \right ) ^{-3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.50314, size = 632, normalized size = 6.26 \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.72348, size = 304, normalized size = 3.01 \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.28593, size = 81, normalized size = 0.8 \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]