Optimal. Leaf size=91 \[ \frac {\sqrt {\frac {1}{a x+1}} \sqrt {a x+1} x^m \, _2F_1\left (\frac {1}{2},\frac {m}{2};\frac {m+2}{2};a^2 x^2\right )}{a m (m+1)}+\frac {x^{m+1} e^{\text {sech}^{-1}(a x)}}{m+1}+\frac {x^m}{a m (m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {6335, 30, 125, 364} \[ \frac {\sqrt {\frac {1}{a x+1}} \sqrt {a x+1} x^m \, _2F_1\left (\frac {1}{2},\frac {m}{2};\frac {m+2}{2};a^2 x^2\right )}{a m (m+1)}+\frac {x^m}{a m (m+1)}+\frac {x^{m+1} e^{\text {sech}^{-1}(a x)}}{m+1} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 125
Rule 364
Rule 6335
Rubi steps
\begin {align*} \int e^{\text {sech}^{-1}(a x)} x^m \, dx &=\frac {e^{\text {sech}^{-1}(a x)} x^{1+m}}{1+m}+\frac {\int x^{-1+m} \, dx}{a (1+m)}+\frac {\left (\sqrt {\frac {1}{1+a x}} \sqrt {1+a x}\right ) \int \frac {x^{-1+m}}{\sqrt {1-a x} \sqrt {1+a x}} \, dx}{a (1+m)}\\ &=\frac {x^m}{a m (1+m)}+\frac {e^{\text {sech}^{-1}(a x)} x^{1+m}}{1+m}+\frac {\left (\sqrt {\frac {1}{1+a x}} \sqrt {1+a x}\right ) \int \frac {x^{-1+m}}{\sqrt {1-a^2 x^2}} \, dx}{a (1+m)}\\ &=\frac {x^m}{a m (1+m)}+\frac {e^{\text {sech}^{-1}(a x)} x^{1+m}}{1+m}+\frac {x^m \sqrt {\frac {1}{1+a x}} \sqrt {1+a x} \, _2F_1\left (\frac {1}{2},\frac {m}{2};\frac {2+m}{2};a^2 x^2\right )}{a m (1+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.31, size = 145, normalized size = 1.59 \[ -\frac {2^{m+1} x^m (a x)^{-m} e^{2 \text {sech}^{-1}(a x)} \left (\frac {e^{\text {sech}^{-1}(a x)}}{e^{2 \text {sech}^{-1}(a x)}+1}\right )^m \left (e^{2 \text {sech}^{-1}(a x)}+1\right )^m \left ((m+2) e^{2 \text {sech}^{-1}(a x)} \, _2F_1\left (\frac {m}{2}+2,m+2;\frac {m}{2}+3;-e^{2 \text {sech}^{-1}(a x)}\right )-(m+4) \, _2F_1\left (\frac {m}{2}+1,m+2;\frac {m}{2}+2;-e^{2 \text {sech}^{-1}(a x)}\right )\right )}{a (m+2) (m+4)} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.64, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {a x x^{m} \sqrt {\frac {a x + 1}{a x}} \sqrt {-\frac {a x - 1}{a x}} + x^{m}}{a x}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{m} {\left (\sqrt {\frac {1}{a x} + 1} \sqrt {\frac {1}{a x} - 1} + \frac {1}{a x}\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.04, size = 0, normalized size = 0.00 \[ \int \left (\frac {1}{a x}+\sqrt {\frac {1}{a x}-1}\, \sqrt {1+\frac {1}{a x}}\right ) x^{m}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\sqrt {a x + 1} \sqrt {-a x + 1} x^{m}}{x}\,{d x}}{a} + \frac {x^{m}}{a m} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int x^m\,\left (\sqrt {\frac {1}{a\,x}-1}\,\sqrt {\frac {1}{a\,x}+1}+\frac {1}{a\,x}\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {x^{m}}{x}\, dx + \int a x^{m} \sqrt {-1 + \frac {1}{a x}} \sqrt {1 + \frac {1}{a x}}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________