Optimal. Leaf size=222 \[ -\frac{(1-a x)^{3/4} \sqrt [4]{a x+1}}{a}-\frac{\log \left (\frac{\sqrt{1-a x}}{\sqrt{a x+1}}-\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{a x+1}}+1\right )}{2 \sqrt{2} a}+\frac{\log \left (\frac{\sqrt{1-a x}}{\sqrt{a x+1}}+\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{a x+1}}+1\right )}{2 \sqrt{2} a}+\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{a x+1}}\right )}{\sqrt{2} a}-\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{a x+1}}+1\right )}{\sqrt{2} a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.146268, antiderivative size = 222, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 10, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 1., Rules used = {6125, 50, 63, 331, 297, 1162, 617, 204, 1165, 628} \[ -\frac{(1-a x)^{3/4} \sqrt [4]{a x+1}}{a}-\frac{\log \left (\frac{\sqrt{1-a x}}{\sqrt{a x+1}}-\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{a x+1}}+1\right )}{2 \sqrt{2} a}+\frac{\log \left (\frac{\sqrt{1-a x}}{\sqrt{a x+1}}+\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{a x+1}}+1\right )}{2 \sqrt{2} a}+\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{a x+1}}\right )}{\sqrt{2} a}-\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{a x+1}}+1\right )}{\sqrt{2} a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6125
Rule 50
Rule 63
Rule 331
Rule 297
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rubi steps
\begin{align*} \int e^{\frac{1}{2} \tanh ^{-1}(a x)} \, dx &=\int \frac{\sqrt [4]{1+a x}}{\sqrt [4]{1-a x}} \, dx\\ &=-\frac{(1-a x)^{3/4} \sqrt [4]{1+a x}}{a}+\frac{1}{2} \int \frac{1}{\sqrt [4]{1-a x} (1+a x)^{3/4}} \, dx\\ &=-\frac{(1-a x)^{3/4} \sqrt [4]{1+a x}}{a}-\frac{2 \operatorname{Subst}\left (\int \frac{x^2}{\left (2-x^4\right )^{3/4}} \, dx,x,\sqrt [4]{1-a x}\right )}{a}\\ &=-\frac{(1-a x)^{3/4} \sqrt [4]{1+a x}}{a}-\frac{2 \operatorname{Subst}\left (\int \frac{x^2}{1+x^4} \, dx,x,\frac{\sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{a}\\ &=-\frac{(1-a x)^{3/4} \sqrt [4]{1+a x}}{a}+\frac{\operatorname{Subst}\left (\int \frac{1-x^2}{1+x^4} \, dx,x,\frac{\sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{a}-\frac{\operatorname{Subst}\left (\int \frac{1+x^2}{1+x^4} \, dx,x,\frac{\sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{a}\\ &=-\frac{(1-a x)^{3/4} \sqrt [4]{1+a x}}{a}-\frac{\operatorname{Subst}\left (\int \frac{1}{1-\sqrt{2} x+x^2} \, dx,x,\frac{\sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{2 a}-\frac{\operatorname{Subst}\left (\int \frac{1}{1+\sqrt{2} x+x^2} \, dx,x,\frac{\sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{2 a}-\frac{\operatorname{Subst}\left (\int \frac{\sqrt{2}+2 x}{-1-\sqrt{2} x-x^2} \, dx,x,\frac{\sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{2 \sqrt{2} a}-\frac{\operatorname{Subst}\left (\int \frac{\sqrt{2}-2 x}{-1+\sqrt{2} x-x^2} \, dx,x,\frac{\sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{2 \sqrt{2} a}\\ &=-\frac{(1-a x)^{3/4} \sqrt [4]{1+a x}}{a}-\frac{\log \left (1+\frac{\sqrt{1-a x}}{\sqrt{1+a x}}-\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{2 \sqrt{2} a}+\frac{\log \left (1+\frac{\sqrt{1-a x}}{\sqrt{1+a x}}+\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{2 \sqrt{2} a}-\frac{\operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{\sqrt{2} a}+\frac{\operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{\sqrt{2} a}\\ &=-\frac{(1-a x)^{3/4} \sqrt [4]{1+a x}}{a}+\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{\sqrt{2} a}-\frac{\tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{\sqrt{2} a}-\frac{\log \left (1+\frac{\sqrt{1-a x}}{\sqrt{1+a x}}-\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{2 \sqrt{2} a}+\frac{\log \left (1+\frac{\sqrt{1-a x}}{\sqrt{1+a x}}+\frac{\sqrt{2} \sqrt [4]{1-a x}}{\sqrt [4]{1+a x}}\right )}{2 \sqrt{2} a}\\ \end{align*}
Mathematica [A] time = 0.201769, size = 149, normalized size = 0.67 \[ \frac{-\frac{8 e^{\frac{1}{2} \tanh ^{-1}(a x)}}{e^{2 \tanh ^{-1}(a x)}+1}-\sqrt{2} \log \left (-\sqrt{2} e^{\frac{1}{2} \tanh ^{-1}(a x)}+e^{\tanh ^{-1}(a x)}+1\right )+\sqrt{2} \log \left (\sqrt{2} e^{\frac{1}{2} \tanh ^{-1}(a x)}+e^{\tanh ^{-1}(a x)}+1\right )-2 \sqrt{2} \tan ^{-1}\left (1-\sqrt{2} e^{\frac{1}{2} \tanh ^{-1}(a x)}\right )+2 \sqrt{2} \tan ^{-1}\left (\sqrt{2} e^{\frac{1}{2} \tanh ^{-1}(a x)}+1\right )}{4 a} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.087, size = 0, normalized size = 0. \begin{align*} \int \sqrt{{(ax+1){\frac{1}{\sqrt{-{a}^{2}{x}^{2}+1}}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{\frac{a x + 1}{\sqrt{-a^{2} x^{2} + 1}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.77107, size = 1261, normalized size = 5.68 \begin{align*} -\frac{4 \, \sqrt{2} a \frac{1}{a^{4}}^{\frac{1}{4}} \arctan \left (\sqrt{2} a^{3} \sqrt{\frac{\sqrt{2}{\left (a^{2} x - a\right )} \sqrt{-\frac{\sqrt{-a^{2} x^{2} + 1}}{a x - 1}} \frac{1}{a^{4}}^{\frac{1}{4}} +{\left (a^{3} x - a^{2}\right )} \sqrt{\frac{1}{a^{4}}} - \sqrt{-a^{2} x^{2} + 1}}{a x - 1}} \frac{1}{a^{4}}^{\frac{3}{4}} - \sqrt{2} a^{3} \sqrt{-\frac{\sqrt{-a^{2} x^{2} + 1}}{a x - 1}} \frac{1}{a^{4}}^{\frac{3}{4}} - 1\right ) + 4 \, \sqrt{2} a \frac{1}{a^{4}}^{\frac{1}{4}} \arctan \left (\sqrt{2} a^{3} \sqrt{-\frac{\sqrt{2}{\left (a^{2} x - a\right )} \sqrt{-\frac{\sqrt{-a^{2} x^{2} + 1}}{a x - 1}} \frac{1}{a^{4}}^{\frac{1}{4}} -{\left (a^{3} x - a^{2}\right )} \sqrt{\frac{1}{a^{4}}} + \sqrt{-a^{2} x^{2} + 1}}{a x - 1}} \frac{1}{a^{4}}^{\frac{3}{4}} - \sqrt{2} a^{3} \sqrt{-\frac{\sqrt{-a^{2} x^{2} + 1}}{a x - 1}} \frac{1}{a^{4}}^{\frac{3}{4}} + 1\right ) - \sqrt{2} a \frac{1}{a^{4}}^{\frac{1}{4}} \log \left (\frac{\sqrt{2}{\left (a^{2} x - a\right )} \sqrt{-\frac{\sqrt{-a^{2} x^{2} + 1}}{a x - 1}} \frac{1}{a^{4}}^{\frac{1}{4}} +{\left (a^{3} x - a^{2}\right )} \sqrt{\frac{1}{a^{4}}} - \sqrt{-a^{2} x^{2} + 1}}{a x - 1}\right ) + \sqrt{2} a \frac{1}{a^{4}}^{\frac{1}{4}} \log \left (-\frac{\sqrt{2}{\left (a^{2} x - a\right )} \sqrt{-\frac{\sqrt{-a^{2} x^{2} + 1}}{a x - 1}} \frac{1}{a^{4}}^{\frac{1}{4}} -{\left (a^{3} x - a^{2}\right )} \sqrt{\frac{1}{a^{4}}} + \sqrt{-a^{2} x^{2} + 1}}{a x - 1}\right ) - 4 \,{\left (a x - 1\right )} \sqrt{-\frac{\sqrt{-a^{2} x^{2} + 1}}{a x - 1}}}{4 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{\frac{a x + 1}{\sqrt{- a^{2} x^{2} + 1}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{\frac{a x + 1}{\sqrt{-a^{2} x^{2} + 1}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]