Optimal. Leaf size=58 \[ \frac {\left (a+b x^n\right ) \text {sech}^{-1}\left (a+b x^n\right )}{b n}-\frac {2 \text {ArcTan}\left (\sqrt {\frac {1-a-b x^n}{1+a+b x^n}}\right )}{b n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {6847, 6448,
1983, 12, 209} \begin {gather*} \frac {\left (a+b x^n\right ) \text {sech}^{-1}\left (a+b x^n\right )}{b n}-\frac {2 \text {ArcTan}\left (\sqrt {\frac {-a-b x^n+1}{a+b x^n+1}}\right )}{b n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 209
Rule 1983
Rule 6448
Rule 6847
Rubi steps
\begin {align*} \int x^{-1+n} \text {sech}^{-1}\left (a+b x^n\right ) \, dx &=\frac {\text {Subst}\left (\int \text {sech}^{-1}(a+b x) \, dx,x,x^n\right )}{n}\\ &=\frac {\left (a+b x^n\right ) \text {sech}^{-1}\left (a+b x^n\right )}{b n}+\frac {\text {Subst}\left (\int \frac {\sqrt {\frac {1-a-b x}{1+a+b x}}}{1-a-b x} \, dx,x,x^n\right )}{n}\\ &=\frac {\left (a+b x^n\right ) \text {sech}^{-1}\left (a+b x^n\right )}{b n}-\frac {(4 b) \text {Subst}\left (\int \frac {1}{2 b^2 \left (1+x^2\right )} \, dx,x,\sqrt {\frac {1-a-b x^n}{1+a+b x^n}}\right )}{n}\\ &=\frac {\left (a+b x^n\right ) \text {sech}^{-1}\left (a+b x^n\right )}{b n}-\frac {2 \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {\frac {1-a-b x^n}{1+a+b x^n}}\right )}{b n}\\ &=\frac {\left (a+b x^n\right ) \text {sech}^{-1}\left (a+b x^n\right )}{b n}-\frac {2 \tan ^{-1}\left (\sqrt {\frac {1-a-b x^n}{1+a+b x^n}}\right )}{b n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 106, normalized size = 1.83 \begin {gather*} \frac {\left (a+b x^n\right ) \text {sech}^{-1}\left (a+b x^n\right )+\frac {2 \sqrt {-\frac {-1+a+b x^n}{1+a+b x^n}} \sqrt {1-\left (a+b x^n\right )^2} \text {ArcTan}\left (\frac {\sqrt {1-a-b x^n}}{\sqrt {1+a+b x^n}}\right )}{-1+a+b x^n}}{b n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int x^{-1+n} \mathrm {arcsech}\left (a +b \,x^{n}\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.25, size = 40, normalized size = 0.69 \begin {gather*} \frac {{\left (b x^{n} + a\right )} \operatorname {arsech}\left (b x^{n} + a\right ) - \arctan \left (\sqrt {\frac {1}{{\left (b x^{n} + a\right )}^{2}} - 1}\right )}{b n} \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. 385 vs.
\(2 (54) = 108\).
time = 0.42, size = 385, normalized size = 6.64 \begin {gather*} \frac {2 \, {\left (b \cosh \left (n \log \left (x\right )\right ) + b \sinh \left (n \log \left (x\right )\right )\right )} \log \left (\frac {\sqrt {-\frac {2 \, a b + {\left (a^{2} + b^{2} - 1\right )} \cosh \left (n \log \left (x\right )\right ) - {\left (a^{2} - b^{2} - 1\right )} \sinh \left (n \log \left (x\right )\right )}{\cosh \left (n \log \left (x\right )\right ) - \sinh \left (n \log \left (x\right )\right )}} + 1}{b \cosh \left (n \log \left (x\right )\right ) + b \sinh \left (n \log \left (x\right )\right ) + a}\right ) + a \log \left (\frac {\sqrt {-\frac {2 \, a b + {\left (a^{2} + b^{2} - 1\right )} \cosh \left (n \log \left (x\right )\right ) - {\left (a^{2} - b^{2} - 1\right )} \sinh \left (n \log \left (x\right )\right )}{\cosh \left (n \log \left (x\right )\right ) - \sinh \left (n \log \left (x\right )\right )}} + 1}{\cosh \left (n \log \left (x\right )\right ) + \sinh \left (n \log \left (x\right )\right )}\right ) - a \log \left (\frac {\sqrt {-\frac {2 \, a b + {\left (a^{2} + b^{2} - 1\right )} \cosh \left (n \log \left (x\right )\right ) - {\left (a^{2} - b^{2} - 1\right )} \sinh \left (n \log \left (x\right )\right )}{\cosh \left (n \log \left (x\right )\right ) - \sinh \left (n \log \left (x\right )\right )}} - 1}{\cosh \left (n \log \left (x\right )\right ) + \sinh \left (n \log \left (x\right )\right )}\right ) - 2 \, \arctan \left (\frac {{\left (b \cosh \left (n \log \left (x\right )\right ) + b \sinh \left (n \log \left (x\right )\right ) + a\right )} \sqrt {-\frac {2 \, a b + {\left (a^{2} + b^{2} - 1\right )} \cosh \left (n \log \left (x\right )\right ) - {\left (a^{2} - b^{2} - 1\right )} \sinh \left (n \log \left (x\right )\right )}{\cosh \left (n \log \left (x\right )\right ) - \sinh \left (n \log \left (x\right )\right )}}}{b^{2} \cosh \left (n \log \left (x\right )\right )^{2} + b^{2} \sinh \left (n \log \left (x\right )\right )^{2} + 2 \, a b \cosh \left (n \log \left (x\right )\right ) + a^{2} + 2 \, {\left (b^{2} \cosh \left (n \log \left (x\right )\right ) + a b\right )} \sinh \left (n \log \left (x\right )\right ) - 1}\right )}{2 \, b n} \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 [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.35, size = 54, normalized size = 0.93 \begin {gather*} \frac {\mathrm {atan}\left (\frac {1}{\sqrt {\frac {1}{a+b\,x^n}-1}\,\sqrt {\frac {1}{a+b\,x^n}+1}}\right )+\mathrm {acosh}\left (\frac {1}{a+b\,x^n}\right )\,\left (a+b\,x^n\right )}{b\,n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________