Optimal. Leaf size=36 \[ -\frac {2 \tanh ^{-1}\left (\frac {a+2 c e^x}{\sqrt {a^2-4 b c}}\right )}{\sqrt {a^2-4 b c}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2320, 1400,
632, 212} \begin {gather*} -\frac {2 \tanh ^{-1}\left (\frac {a+2 c e^x}{\sqrt {a^2-4 b c}}\right )}{\sqrt {a^2-4 b c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 632
Rule 1400
Rule 2320
Rubi steps
\begin {align*} \int \frac {1}{a+b e^{-x}+c e^x} \, dx &=\text {Subst}\left (\int \frac {1}{x \left (a+\frac {b}{x}+c x\right )} \, dx,x,e^x\right )\\ &=\text {Subst}\left (\int \frac {1}{b+a x+c x^2} \, dx,x,e^x\right )\\ &=-\left (2 \text {Subst}\left (\int \frac {1}{a^2-4 b c-x^2} \, dx,x,a+2 c e^x\right )\right )\\ &=-\frac {2 \tanh ^{-1}\left (\frac {a+2 c e^x}{\sqrt {a^2-4 b c}}\right )}{\sqrt {a^2-4 b c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 40, normalized size = 1.11 \begin {gather*} \frac {2 \tan ^{-1}\left (\frac {a+2 c e^x}{\sqrt {-a^2+4 b c}}\right )}{\sqrt {-a^2+4 b c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 36, normalized size = 1.00
method | result | size |
derivativedivides | \(\frac {2 \arctan \left (\frac {a +2 c \,{\mathrm e}^{x}}{\sqrt {-a^{2}+4 c b}}\right )}{\sqrt {-a^{2}+4 c b}}\) | \(36\) |
default | \(\frac {2 \arctan \left (\frac {a +2 c \,{\mathrm e}^{x}}{\sqrt {-a^{2}+4 c b}}\right )}{\sqrt {-a^{2}+4 c b}}\) | \(36\) |
risch | \(\frac {\ln \left ({\mathrm e}^{x}+\frac {a \sqrt {a^{2}-4 c b}-a^{2}+4 c b}{2 c \sqrt {a^{2}-4 c b}}\right )}{\sqrt {a^{2}-4 c b}}-\frac {\ln \left ({\mathrm e}^{x}+\frac {a \sqrt {a^{2}-4 c b}+a^{2}-4 c b}{2 c \sqrt {a^{2}-4 c b}}\right )}{\sqrt {a^{2}-4 c b}}\) | \(105\) |
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 [A]
time = 0.40, size = 126, normalized size = 3.50 \begin {gather*} \left [\frac {\log \left (\frac {2 \, c^{2} e^{\left (2 \, x\right )} + 2 \, a c e^{x} + a^{2} - 2 \, b c - \sqrt {a^{2} - 4 \, b c} {\left (2 \, c e^{x} + a\right )}}{c e^{\left (2 \, x\right )} + a e^{x} + b}\right )}{\sqrt {a^{2} - 4 \, b c}}, -\frac {2 \, \sqrt {-a^{2} + 4 \, b c} \arctan \left (-\frac {\sqrt {-a^{2} + 4 \, b c} {\left (2 \, c e^{x} + a\right )}}{a^{2} - 4 \, b c}\right )}{a^{2} - 4 \, b c}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.12, size = 36, normalized size = 1.00 \begin {gather*} \operatorname {RootSum} {\left (z^{2} \left (a^{2} - 4 b c\right ) - 1, \left ( i \mapsto i \log {\left (e^{x} + \frac {- i a^{2} + 4 i b c + a}{2 c} \right )} \right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.49, size = 35, normalized size = 0.97 \begin {gather*} \frac {2 \, \arctan \left (\frac {2 \, c e^{x} + a}{\sqrt {-a^{2} + 4 \, b c}}\right )}{\sqrt {-a^{2} + 4 \, b c}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.21, size = 35, normalized size = 0.97 \begin {gather*} \frac {2\,\mathrm {atan}\left (\frac {a+2\,c\,{\mathrm {e}}^x}{\sqrt {4\,b\,c-a^2}}\right )}{\sqrt {4\,b\,c-a^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________