Optimal. Leaf size=18 \[ \tanh ^{-1}\left (\frac{e^x}{\sqrt{a^2+e^{2 x}}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0282844, antiderivative size = 18, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.176, Rules used = {2249, 217, 206} \[ \tanh ^{-1}\left (\frac{e^x}{\sqrt{a^2+e^{2 x}}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2249
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{e^x}{\sqrt{a^2+e^{2 x}}} \, dx &=\operatorname{Subst}\left (\int \frac{1}{\sqrt{a^2+x^2}} \, dx,x,e^x\right )\\ &=\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\frac{e^x}{\sqrt{a^2+e^{2 x}}}\right )\\ &=\tanh ^{-1}\left (\frac{e^x}{\sqrt{a^2+e^{2 x}}}\right )\\ \end{align*}
Mathematica [A] time = 0.0053018, size = 18, normalized size = 1. \[ \tanh ^{-1}\left (\frac{e^x}{\sqrt{a^2+e^{2 x}}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 15, normalized size = 0.8 \begin{align*} \ln \left ({{\rm e}^{x}}+\sqrt{{a}^{2}+ \left ({{\rm e}^{x}} \right ) ^{2}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.930315, size = 12, normalized size = 0.67 \begin{align*} \operatorname{arsinh}\left (\frac{e^{x}}{\sqrt{a^{2}}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.88472, size = 45, normalized size = 2.5 \begin{align*} -\log \left (\sqrt{a^{2} + e^{\left (2 \, x\right )}} - e^{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.629821, size = 31, normalized size = 1.72 \begin{align*} \begin{cases} \operatorname{asinh}{\left (\sqrt{\frac{1}{a^{2}}} e^{x} \right )} & \text{for}\: a^{2} > 0 \\\operatorname{acosh}{\left (\sqrt{- \frac{1}{a^{2}}} e^{x} \right )} & \text{for}\: a^{2} < 0 \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13445, size = 24, normalized size = 1.33 \begin{align*} -\log \left (\sqrt{a^{2} + e^{\left (2 \, x\right )}} - e^{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]