Optimal. Leaf size=220 \[ -\frac {a \left (2 a^2+3 b^2-3 c^2\right ) \tanh ^{-1}\left (\frac {c-(a-b) \tanh \left (\frac {x}{2}\right )}{\sqrt {a^2-b^2+c^2}}\right )}{\left (a^2-b^2+c^2\right )^{7/2}}-\frac {c \cosh (x)+b \sinh (x)}{3 \left (a^2-b^2+c^2\right ) (a+b \cosh (x)+c \sinh (x))^3}-\frac {5 (a c \cosh (x)+a b \sinh (x))}{6 \left (a^2-b^2+c^2\right )^2 (a+b \cosh (x)+c \sinh (x))^2}-\frac {c \left (11 a^2+4 b^2-4 c^2\right ) \cosh (x)+b \left (11 a^2+4 b^2-4 c^2\right ) \sinh (x)}{6 \left (a^2-b^2+c^2\right )^3 (a+b \cosh (x)+c \sinh (x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.23, antiderivative size = 220, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3208, 3235,
3232, 3203, 632, 212} \begin {gather*} -\frac {a \left (2 a^2+3 b^2-3 c^2\right ) \tanh ^{-1}\left (\frac {c-(a-b) \tanh \left (\frac {x}{2}\right )}{\sqrt {a^2-b^2+c^2}}\right )}{\left (a^2-b^2+c^2\right )^{7/2}}-\frac {b \sinh (x) \left (11 a^2+4 b^2-4 c^2\right )+c \cosh (x) \left (11 a^2+4 b^2-4 c^2\right )}{6 \left (a^2-b^2+c^2\right )^3 (a+b \cosh (x)+c \sinh (x))}-\frac {5 (a b \sinh (x)+a c \cosh (x))}{6 \left (a^2-b^2+c^2\right )^2 (a+b \cosh (x)+c \sinh (x))^2}-\frac {b \sinh (x)+c \cosh (x)}{3 \left (a^2-b^2+c^2\right ) (a+b \cosh (x)+c \sinh (x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 632
Rule 3203
Rule 3208
Rule 3232
Rule 3235
Rubi steps
\begin {align*} \int \frac {1}{(a+b \cosh (x)+c \sinh (x))^4} \, dx &=-\frac {c \cosh (x)+b \sinh (x)}{3 \left (a^2-b^2+c^2\right ) (a+b \cosh (x)+c \sinh (x))^3}-\frac {\int \frac {-3 a+2 b \cosh (x)+2 c \sinh (x)}{(a+b \cosh (x)+c \sinh (x))^3} \, dx}{3 \left (a^2-b^2+c^2\right )}\\ &=-\frac {c \cosh (x)+b \sinh (x)}{3 \left (a^2-b^2+c^2\right ) (a+b \cosh (x)+c \sinh (x))^3}-\frac {5 (a c \cosh (x)+a b \sinh (x))}{6 \left (a^2-b^2+c^2\right )^2 (a+b \cosh (x)+c \sinh (x))^2}+\frac {\int \frac {2 \left (3 a^2+2 b^2-2 c^2\right )-5 a b \cosh (x)-5 a c \sinh (x)}{(a+b \cosh (x)+c \sinh (x))^2} \, dx}{6 \left (a^2-b^2+c^2\right )^2}\\ &=-\frac {c \cosh (x)+b \sinh (x)}{3 \left (a^2-b^2+c^2\right ) (a+b \cosh (x)+c \sinh (x))^3}-\frac {5 (a c \cosh (x)+a b \sinh (x))}{6 \left (a^2-b^2+c^2\right )^2 (a+b \cosh (x)+c \sinh (x))^2}-\frac {c \left (11 a^2+4 b^2-4 c^2\right ) \cosh (x)+b \left (11 a^2+4 b^2-4 c^2\right ) \sinh (x)}{6 \left (a^2-b^2+c^2\right )^3 (a+b \cosh (x)+c \sinh (x))}+\frac {\left (a \left (2 a^2+3 b^2-3 c^2\right )\right ) \int \frac {1}{a+b \cosh (x)+c \sinh (x)} \, dx}{2 \left (a^2-b^2+c^2\right )^3}\\ &=-\frac {c \cosh (x)+b \sinh (x)}{3 \left (a^2-b^2+c^2\right ) (a+b \cosh (x)+c \sinh (x))^3}-\frac {5 (a c \cosh (x)+a b \sinh (x))}{6 \left (a^2-b^2+c^2\right )^2 (a+b \cosh (x)+c \sinh (x))^2}-\frac {c \left (11 a^2+4 b^2-4 c^2\right ) \cosh (x)+b \left (11 a^2+4 b^2-4 c^2\right ) \sinh (x)}{6 \left (a^2-b^2+c^2\right )^3 (a+b \cosh (x)+c \sinh (x))}+\frac {\left (a \left (2 a^2+3 b^2-3 c^2\right )\right ) \text {Subst}\left (\int \frac {1}{a+b+2 c x-(a-b) x^2} \, dx,x,\tanh \left (\frac {x}{2}\right )\right )}{\left (a^2-b^2+c^2\right )^3}\\ &=-\frac {c \cosh (x)+b \sinh (x)}{3 \left (a^2-b^2+c^2\right ) (a+b \cosh (x)+c \sinh (x))^3}-\frac {5 (a c \cosh (x)+a b \sinh (x))}{6 \left (a^2-b^2+c^2\right )^2 (a+b \cosh (x)+c \sinh (x))^2}-\frac {c \left (11 a^2+4 b^2-4 c^2\right ) \cosh (x)+b \left (11 a^2+4 b^2-4 c^2\right ) \sinh (x)}{6 \left (a^2-b^2+c^2\right )^3 (a+b \cosh (x)+c \sinh (x))}-\frac {\left (2 a \left (2 a^2+3 b^2-3 c^2\right )\right ) \text {Subst}\left (\int \frac {1}{4 \left (a^2-b^2+c^2\right )-x^2} \, dx,x,2 c+2 (-a+b) \tanh \left (\frac {x}{2}\right )\right )}{\left (a^2-b^2+c^2\right )^3}\\ &=-\frac {a \left (2 a^2+3 b^2-3 c^2\right ) \tanh ^{-1}\left (\frac {c-(a-b) \tanh \left (\frac {x}{2}\right )}{\sqrt {a^2-b^2+c^2}}\right )}{\left (a^2-b^2+c^2\right )^{7/2}}-\frac {c \cosh (x)+b \sinh (x)}{3 \left (a^2-b^2+c^2\right ) (a+b \cosh (x)+c \sinh (x))^3}-\frac {5 (a c \cosh (x)+a b \sinh (x))}{6 \left (a^2-b^2+c^2\right )^2 (a+b \cosh (x)+c \sinh (x))^2}-\frac {c \left (11 a^2+4 b^2-4 c^2\right ) \cosh (x)+b \left (11 a^2+4 b^2-4 c^2\right ) \sinh (x)}{6 \left (a^2-b^2+c^2\right )^3 (a+b \cosh (x)+c \sinh (x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(488\) vs. \(2(220)=440\).
time = 0.67, size = 488, normalized size = 2.22 \begin {gather*} -\frac {a \left (2 a^2+3 b^2-3 c^2\right ) \text {ArcTan}\left (\frac {c+(-a+b) \tanh \left (\frac {x}{2}\right )}{\sqrt {-a^2+b^2-c^2}}\right )}{\left (-a^2+b^2-c^2\right )^{7/2}}-\frac {-44 a^5 c-82 a^3 b^2 c-24 a b^4 c+82 a^3 c^3+48 a b^2 c^3-24 a c^5-30 a^2 b c \left (2 a^2+3 b^2-3 c^2\right ) \cosh (x)-6 a c \left (a^2 \left (-7 b^2+11 c^2\right )+2 \left (b^4+b^2 c^2-2 c^4\right )\right ) \cosh (2 x)+22 a^2 b^3 c \cosh (3 x)+8 b^5 c \cosh (3 x)-22 a^2 b c^3 \cosh (3 x)-16 b^3 c^3 \cosh (3 x)+8 b c^5 \cosh (3 x)+72 a^4 b^2 \sinh (x)-9 a^2 b^4 \sinh (x)+12 b^6 \sinh (x)-132 a^4 c^2 \sinh (x)-72 a^2 b^2 c^2 \sinh (x)-36 b^4 c^2 \sinh (x)+81 a^2 c^4 \sinh (x)+36 b^2 c^4 \sinh (x)-12 c^6 \sinh (x)+54 a^3 b^3 \sinh (2 x)+6 a b^5 \sinh (2 x)-78 a^3 b c^2 \sinh (2 x)-48 a b^3 c^2 \sinh (2 x)+42 a b c^4 \sinh (2 x)+11 a^2 b^4 \sinh (3 x)+4 b^6 \sinh (3 x)-4 b^4 c^2 \sinh (3 x)-11 a^2 c^4 \sinh (3 x)-4 b^2 c^4 \sinh (3 x)+4 c^6 \sinh (3 x)}{24 b \left (a^2-b^2+c^2\right )^3 (a+b \cosh (x)+c \sinh (x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1597\) vs.
\(2(212)=424\).
time = 1.94, size = 1598, normalized size = 7.26
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1588\) |
default | \(-\frac {2 \left (-\frac {\left (6 a^{5} b -15 a^{4} b^{2}+9 a^{4} c^{2}+11 a^{3} b^{3}-9 a^{3} b \,c^{2}-3 a^{2} b^{4}-3 a^{2} b^{2} c^{2}+6 a^{2} c^{4}+3 a \,b^{5}-3 a \,b^{3} c^{2}-2 b^{6}+6 b^{4} c^{2}-6 b^{2} c^{4}+2 c^{6}\right ) \left (\tanh ^{5}\left (\frac {x}{2}\right )\right )}{2 \left (a^{6}-3 a^{4} b^{2}+3 a^{4} c^{2}+3 a^{2} b^{4}-6 a^{2} b^{2} c^{2}+3 a^{2} c^{4}-b^{6}+3 b^{4} c^{2}-3 b^{2} c^{4}+c^{6}\right ) \left (a -b \right )}-\frac {c \left (6 a^{6}-30 a^{5} b +57 a^{4} b^{2}-27 a^{4} c^{2}-55 a^{3} b^{3}+45 a^{3} b \,c^{2}+33 a^{2} b^{4}-21 a^{2} b^{2} c^{2}-12 a^{2} c^{4}-15 a \,b^{5}+15 a \,b^{3} c^{2}+4 b^{6}-12 b^{4} c^{2}+12 b^{2} c^{4}-4 c^{6}\right ) \left (\tanh ^{4}\left (\frac {x}{2}\right )\right )}{2 \left (a^{6}-3 a^{4} b^{2}+3 a^{4} c^{2}+3 a^{2} b^{4}-6 a^{2} b^{2} c^{2}+3 a^{2} c^{4}-b^{6}+3 b^{4} c^{2}-3 b^{2} c^{4}+c^{6}\right ) \left (a^{2}-2 a b +b^{2}\right )}+\frac {\left (18 a^{7} b -54 a^{6} b^{2}+54 a^{6} c^{2}+38 a^{5} b^{3}-120 a^{5} b \,c^{2}+30 b^{4} a^{4}+81 a^{4} b^{2} c^{2}-21 a^{4} c^{4}-50 a^{3} b^{5}-61 a^{3} b^{3} c^{2}+81 a^{3} b \,c^{4}+22 a^{2} b^{6}+87 a^{2} b^{4} c^{2}-105 a^{2} b^{2} c^{4}-4 a^{2} c^{6}-6 a \,b^{7}-39 a \,b^{5} c^{2}+51 a \,b^{3} c^{4}-6 a b \,c^{6}+2 b^{8}-2 b^{6} c^{2}-6 b^{4} c^{4}+10 c^{6} b^{2}-4 c^{8}\right ) \left (\tanh ^{3}\left (\frac {x}{2}\right )\right )}{3 \left (a^{6}-3 a^{4} b^{2}+3 a^{4} c^{2}+3 a^{2} b^{4}-6 a^{2} b^{2} c^{2}+3 a^{2} c^{4}-b^{6}+3 b^{4} c^{2}-3 b^{2} c^{4}+c^{6}\right ) \left (a^{3}-3 a^{2} b +3 a \,b^{2}-b^{3}\right )}+\frac {c \left (6 a^{7}-18 a^{6} b +18 a^{5} b^{2}-20 a^{5} c^{2}-2 a^{4} b^{3}+22 a^{4} b \,c^{2}-14 a^{3} b^{4}+7 a^{3} b^{2} c^{2}-3 a^{3} c^{4}+18 a^{2} b^{5}-6 a^{2} b^{3} c^{2}-12 a^{2} b \,c^{4}-10 a \,b^{6}+3 a \,b^{4} c^{2}+9 a \,b^{2} c^{4}-2 a \,c^{6}+2 b^{7}-6 b^{5} c^{2}+6 b^{3} c^{4}-2 c^{6} b \right ) \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )}{\left (a^{6}-3 a^{4} b^{2}+3 a^{4} c^{2}+3 a^{2} b^{4}-6 a^{2} b^{2} c^{2}+3 a^{2} c^{4}-b^{6}+3 b^{4} c^{2}-3 b^{2} c^{4}+c^{6}\right ) \left (a^{2}-2 a b +b^{2}\right ) \left (a -b \right )}-\frac {\left (6 a^{7} b -9 a^{6} b^{2}+27 a^{6} c^{2}-7 a^{5} b^{3}-9 a^{5} b \,c^{2}+16 b^{4} a^{4}-30 a^{4} b^{2} c^{2}+4 a^{4} c^{4}-4 a^{3} b^{5}+14 a^{3} b \,c^{4}-5 a^{2} b^{6}-3 a^{2} b^{4} c^{2}+6 a^{2} b^{2} c^{4}+2 a^{2} c^{6}+5 a \,b^{7}+9 a \,b^{5} c^{2}-18 a \,b^{3} c^{4}+4 a b \,c^{6}-2 b^{8}+6 b^{6} c^{2}-6 b^{4} c^{4}+2 c^{6} b^{2}\right ) \tanh \left (\frac {x}{2}\right )}{2 \left (a^{6}-3 a^{4} b^{2}+3 a^{4} c^{2}+3 a^{2} b^{4}-6 a^{2} b^{2} c^{2}+3 a^{2} c^{4}-b^{6}+3 b^{4} c^{2}-3 b^{2} c^{4}+c^{6}\right ) \left (a^{3}-3 a^{2} b +3 a \,b^{2}-b^{3}\right )}-\frac {a c \left (18 a^{6}-21 a^{4} b^{2}+5 a^{4} c^{2}-12 a^{2} b^{4}+16 a^{2} b^{2} c^{2}+2 a^{2} c^{4}+15 b^{6}-21 b^{4} c^{2}+6 b^{2} c^{4}\right )}{6 \left (a^{6}-3 a^{4} b^{2}+3 a^{4} c^{2}+3 a^{2} b^{4}-6 a^{2} b^{2} c^{2}+3 a^{2} c^{4}-b^{6}+3 b^{4} c^{2}-3 b^{2} c^{4}+c^{6}\right ) \left (a^{3}-3 a^{2} b +3 a \,b^{2}-b^{3}\right )}\right )}{\left (a \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )-b \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )-2 c \tanh \left (\frac {x}{2}\right )-a -b \right )^{3}}-\frac {\left (2 a^{2}+3 b^{2}-3 c^{2}\right ) a \arctan \left (\frac {2 \left (a -b \right ) \tanh \left (\frac {x}{2}\right )-2 c}{2 \sqrt {-a^{2}+b^{2}-c^{2}}}\right )}{\left (a^{6}-3 a^{4} b^{2}+3 a^{4} c^{2}+3 a^{2} b^{4}-6 a^{2} b^{2} c^{2}+3 a^{2} c^{4}-b^{6}+3 b^{4} c^{2}-3 b^{2} c^{4}+c^{6}\right ) \sqrt {-a^{2}+b^{2}-c^{2}}}\) | \(1598\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 11492 vs.
\(2 (210) = 420\).
time = 0.57, size = 23093, normalized size = 104.97 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 717 vs.
\(2 (210) = 420\).
time = 0.43, size = 717, normalized size = 3.26 \begin {gather*} \frac {{\left (2 \, a^{3} + 3 \, a b^{2} - 3 \, a c^{2}\right )} \arctan \left (\frac {b e^{x} + c e^{x} + a}{\sqrt {-a^{2} + b^{2} - c^{2}}}\right )}{{\left (a^{6} - 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} - b^{6} + 3 \, a^{4} c^{2} - 6 \, a^{2} b^{2} c^{2} + 3 \, b^{4} c^{2} + 3 \, a^{2} c^{4} - 3 \, b^{2} c^{4} + c^{6}\right )} \sqrt {-a^{2} + b^{2} - c^{2}}} + \frac {6 \, a^{3} b^{2} e^{\left (5 \, x\right )} + 9 \, a b^{4} e^{\left (5 \, x\right )} + 12 \, a^{3} b c e^{\left (5 \, x\right )} + 18 \, a b^{3} c e^{\left (5 \, x\right )} + 6 \, a^{3} c^{2} e^{\left (5 \, x\right )} - 18 \, a b c^{3} e^{\left (5 \, x\right )} - 9 \, a c^{4} e^{\left (5 \, x\right )} + 30 \, a^{4} b e^{\left (4 \, x\right )} + 45 \, a^{2} b^{3} e^{\left (4 \, x\right )} + 30 \, a^{4} c e^{\left (4 \, x\right )} + 45 \, a^{2} b^{2} c e^{\left (4 \, x\right )} - 45 \, a^{2} b c^{2} e^{\left (4 \, x\right )} - 45 \, a^{2} c^{3} e^{\left (4 \, x\right )} + 44 \, a^{5} e^{\left (3 \, x\right )} + 82 \, a^{3} b^{2} e^{\left (3 \, x\right )} + 24 \, a b^{4} e^{\left (3 \, x\right )} - 82 \, a^{3} c^{2} e^{\left (3 \, x\right )} - 48 \, a b^{2} c^{2} e^{\left (3 \, x\right )} + 24 \, a c^{4} e^{\left (3 \, x\right )} + 102 \, a^{4} b e^{\left (2 \, x\right )} + 36 \, a^{2} b^{3} e^{\left (2 \, x\right )} + 12 \, b^{5} e^{\left (2 \, x\right )} - 102 \, a^{4} c e^{\left (2 \, x\right )} - 36 \, a^{2} b^{2} c e^{\left (2 \, x\right )} - 12 \, b^{4} c e^{\left (2 \, x\right )} - 36 \, a^{2} b c^{2} e^{\left (2 \, x\right )} - 24 \, b^{3} c^{2} e^{\left (2 \, x\right )} + 36 \, a^{2} c^{3} e^{\left (2 \, x\right )} + 24 \, b^{2} c^{3} e^{\left (2 \, x\right )} + 12 \, b c^{4} e^{\left (2 \, x\right )} - 12 \, c^{5} e^{\left (2 \, x\right )} + 60 \, a^{3} b^{2} e^{x} + 15 \, a b^{4} e^{x} - 120 \, a^{3} b c e^{x} - 30 \, a b^{3} c e^{x} + 60 \, a^{3} c^{2} e^{x} + 30 \, a b c^{3} e^{x} - 15 \, a c^{4} e^{x} + 11 \, a^{2} b^{3} + 4 \, b^{5} - 33 \, a^{2} b^{2} c - 12 \, b^{4} c + 33 \, a^{2} b c^{2} + 8 \, b^{3} c^{2} - 11 \, a^{2} c^{3} + 8 \, b^{2} c^{3} - 12 \, b c^{4} + 4 \, c^{5}}{3 \, {\left (a^{6} - 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} - b^{6} + 3 \, a^{4} c^{2} - 6 \, a^{2} b^{2} c^{2} + 3 \, b^{4} c^{2} + 3 \, a^{2} c^{4} - 3 \, b^{2} c^{4} + c^{6}\right )} {\left (b e^{\left (2 \, x\right )} + c e^{\left (2 \, x\right )} + 2 \, a e^{x} + b - c\right )}^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{{\left (a+b\,\mathrm {cosh}\left (x\right )+c\,\mathrm {sinh}\left (x\right )\right )}^4} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________