3.31 \(\int (x+\sqrt {b+x^2})^a \, dx\)
Optimal. Leaf size=52 \[ \frac {\left (\sqrt {b+x^2}+x\right )^{a+1}}{2 (a+1)}-\frac {b \left (\sqrt {b+x^2}+x\right )^{a-1}}{2 (1-a)} \]
[Out]
-1/2*b*(x+(x^2+b)^(1/2))^(-1+a)/(1-a)+1/2*(x+(x^2+b)^(1/2))^(1+a)/(1+a)
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 52, normalized size of antiderivative = 1.00,
number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used =
{2117, 14} \[ \frac {\left (\sqrt {b+x^2}+x\right )^{a+1}}{2 (a+1)}-\frac {b \left (\sqrt {b+x^2}+x\right )^{a-1}}{2 (1-a)} \]
Antiderivative was successfully verified.
[In]
Int[(x + Sqrt[b + x^2])^a,x]
[Out]
-(b*(x + Sqrt[b + x^2])^(-1 + a))/(2*(1 - a)) + (x + Sqrt[b + x^2])^(1 + a)/(2*(1 + a))
Rule 14
Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
&& !LinearQ[u, x] && !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]
Rule 2117
Int[((g_.) + (h_.)*((d_.) + (e_.)*(x_) + (f_.)*Sqrt[(a_) + (c_.)*(x_)^2])^(n_))^(p_.), x_Symbol] :> Dist[1/(2*
e), Subst[Int[((g + h*x^n)^p*(d^2 + a*f^2 - 2*d*x + x^2))/(d - x)^2, x], x, d + e*x + f*Sqrt[a + c*x^2]], x] /
; FreeQ[{a, c, d, e, f, g, h, n}, x] && EqQ[e^2 - c*f^2, 0] && IntegerQ[p]
Rubi steps
\begin {align*} \int \left (x+\sqrt {b+x^2}\right )^a \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int x^{-2+a} \left (b+x^2\right ) \, dx,x,x+\sqrt {b+x^2}\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (b x^{-2+a}+x^a\right ) \, dx,x,x+\sqrt {b+x^2}\right )\\ &=-\frac {b \left (x+\sqrt {b+x^2}\right )^{-1+a}}{2 (1-a)}+\frac {\left (x+\sqrt {b+x^2}\right )^{1+a}}{2 (1+a)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 46, normalized size = 0.88 \[ \frac {1}{2} \left (\sqrt {b+x^2}+x\right )^{a-1} \left (\frac {\left (\sqrt {b+x^2}+x\right )^2}{a+1}+\frac {b}{a-1}\right ) \]
Antiderivative was successfully verified.
[In]
Integrate[(x + Sqrt[b + x^2])^a,x]
[Out]
((x + Sqrt[b + x^2])^(-1 + a)*(b/(-1 + a) + (x + Sqrt[b + x^2])^2/(1 + a)))/2
________________________________________________________________________________________
fricas [A] time = 1.03, size = 32, normalized size = 0.62 \[ \frac {{\left (\sqrt {x^{2} + b} a - x\right )} {\left (x + \sqrt {x^{2} + b}\right )}^{a}}{a^{2} - 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((x+(x^2+b)^(1/2))^a,x, algorithm="fricas")
[Out]
(sqrt(x^2 + b)*a - x)*(x + sqrt(x^2 + b))^a/(a^2 - 1)
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (x + \sqrt {x^{2} + b}\right )}^{a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((x+(x^2+b)^(1/2))^a,x, algorithm="giac")
[Out]
integrate((x + sqrt(x^2 + b))^a, x)
________________________________________________________________________________________
maple [B] time = 0.03, size = 120, normalized size = 2.31 \[ \frac {\left (\frac {8 \sqrt {\pi }\, \left (a +\frac {a b}{x^{2}}-1\right ) b^{-\frac {a}{2}-\frac {1}{2}} x^{a +1} \left (\sqrt {\frac {b}{x^{2}}+1}+1\right )^{a -1}}{\left (a +1\right ) \left (2 a -2\right ) a}+\frac {4 \sqrt {\pi }\, \sqrt {\frac {b}{x^{2}}+1}\, b^{-\frac {a}{2}-\frac {1}{2}} x^{a +1} \left (\sqrt {\frac {b}{x^{2}}+1}+1\right )^{a -1}}{\left (a +1\right ) a}\right ) a \,b^{\frac {a}{2}+\frac {1}{2}}}{4 \sqrt {\pi }} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((x+(x^2+b)^(1/2))^a,x)
[Out]
1/4*b^(1/2*a+1/2)/Pi^(1/2)*a*(8*Pi^(1/2)/(a+1)/a*x^(a+1)*b^(-1/2*a-1/2)*(a*b/x^2+a-1)/(2*a-2)*((1+1/x^2*b)^(1/
2)+1)^(a-1)+4*Pi^(1/2)/(a+1)/a*x^(a+1)*b^(-1/2*a-1/2)*(1+1/x^2*b)^(1/2)*((1+1/x^2*b)^(1/2)+1)^(a-1))
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (x + \sqrt {x^{2} + b}\right )}^{a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((x+(x^2+b)^(1/2))^a,x, algorithm="maxima")
[Out]
integrate((x + sqrt(x^2 + b))^a, x)
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int {\left (x+\sqrt {x^2+b}\right )}^a \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((x + (b + x^2)^(1/2))^a,x)
[Out]
int((x + (b + x^2)^(1/2))^a, x)
________________________________________________________________________________________
sympy [B] time = 2.71, size = 2147, normalized size = 41.29 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((x+(x**2+b)**(1/2))**a,x)
[Out]
Piecewise((-a**2*b**(9/2)*b**(a/2)*x*sqrt(b/x**2 + 1)*sinh(a*asinh(x/sqrt(b)))*gamma(-a/2)/(2*a**2*b**(9/2)*ga
mma(1 - a/2) + 2*a**2*b**(7/2)*x**2*gamma(1 - a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2
)) - a**2*b**(7/2)*b**(a/2)*x**3*sqrt(b/x**2 + 1)*sinh(a*asinh(x/sqrt(b)))*gamma(-a/2)/(2*a**2*b**(9/2)*gamma(
1 - a/2) + 2*a**2*b**(7/2)*x**2*gamma(1 - a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2)) +
a*b**(9/2)*b**(a/2)*x*cosh(a*asinh(x/sqrt(b)))*gamma(-a/2)/(2*a**2*b**(9/2)*gamma(1 - a/2) + 2*a**2*b**(7/2)*
x**2*gamma(1 - a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2)) + a*b**(7/2)*b**(a/2)*x**3*c
osh(a*asinh(x/sqrt(b)))*gamma(-a/2)/(2*a**2*b**(9/2)*gamma(1 - a/2) + 2*a**2*b**(7/2)*x**2*gamma(1 - a/2) - 2*
b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2)) + 2*a*b**5*b**(a/2)*cosh(a*asinh(x/sqrt(b)) + asinh(
x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(9/2)*gamma(1 - a/2) + 2*a**2*b**(7/2)*x**2*gamma(1 - a/2) - 2*b**(9/2)*
gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2)) - 2*a*b**5*b**(a/2)*gamma(1 - a/2)/(2*a**2*b**(9/2)*gamma(1 -
a/2) + 2*a**2*b**(7/2)*x**2*gamma(1 - a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2)) - 2*
a*b**4*b**(a/2)*x**2*sqrt(b/x**2 + 1)*sinh(a*asinh(x/sqrt(b)) + asinh(x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(9
/2)*gamma(1 - a/2) + 2*a**2*b**(7/2)*x**2*gamma(1 - a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1
- a/2)) + 4*a*b**4*b**(a/2)*x**2*cosh(a*asinh(x/sqrt(b)) + asinh(x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(9/2)*
gamma(1 - a/2) + 2*a**2*b**(7/2)*x**2*gamma(1 - a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a
/2)) - 2*a*b**4*b**(a/2)*x**2*gamma(1 - a/2)/(2*a**2*b**(9/2)*gamma(1 - a/2) + 2*a**2*b**(7/2)*x**2*gamma(1 -
a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2)) - 2*a*b**3*b**(a/2)*x**4*sqrt(b/x**2 + 1)*s
inh(a*asinh(x/sqrt(b)) + asinh(x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(9/2)*gamma(1 - a/2) + 2*a**2*b**(7/2)*x*
*2*gamma(1 - a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2)) + 2*a*b**3*b**(a/2)*x**4*cosh(
a*asinh(x/sqrt(b)) + asinh(x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(9/2)*gamma(1 - a/2) + 2*a**2*b**(7/2)*x**2*g
amma(1 - a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2)) - 2*b**4*b**(a/2)*x**2*sqrt(b/x**2
+ 1)*sinh(a*asinh(x/sqrt(b)) + asinh(x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(9/2)*gamma(1 - a/2) + 2*a**2*b**(
7/2)*x**2*gamma(1 - a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2)) + 2*b**4*b**(a/2)*x**2*
cosh(a*asinh(x/sqrt(b)) + asinh(x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(9/2)*gamma(1 - a/2) + 2*a**2*b**(7/2)*x
**2*gamma(1 - a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2)) - 2*b**3*b**(a/2)*x**4*sqrt(b
/x**2 + 1)*sinh(a*asinh(x/sqrt(b)) + asinh(x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(9/2)*gamma(1 - a/2) + 2*a**2
*b**(7/2)*x**2*gamma(1 - a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2)) + 2*b**3*b**(a/2)*
x**4*cosh(a*asinh(x/sqrt(b)) + asinh(x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(9/2)*gamma(1 - a/2) + 2*a**2*b**(7
/2)*x**2*gamma(1 - a/2) - 2*b**(9/2)*gamma(1 - a/2) - 2*b**(7/2)*x**2*gamma(1 - a/2)), Abs(x**2/b) > 1), (-a**
2*b**3*b**(a/2)*sqrt(1 + x**2/b)*sinh(a*asinh(x/sqrt(b)))*gamma(-a/2)/(2*a**2*b**(5/2)*gamma(1 - a/2) - 2*b**(
5/2)*gamma(1 - a/2)) - 2*a*b**(5/2)*b**(a/2)*x*sqrt(1 + x**2/b)*sinh(a*asinh(x/sqrt(b)) + asinh(x/sqrt(b)))*ga
mma(1 - a/2)/(2*a**2*b**(5/2)*gamma(1 - a/2) - 2*b**(5/2)*gamma(1 - a/2)) + a*b**(5/2)*b**(a/2)*x*cosh(a*asinh
(x/sqrt(b)))*gamma(-a/2)/(2*a**2*b**(5/2)*gamma(1 - a/2) - 2*b**(5/2)*gamma(1 - a/2)) + 2*a*b**3*b**(a/2)*cosh
(a*asinh(x/sqrt(b)) + asinh(x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(5/2)*gamma(1 - a/2) - 2*b**(5/2)*gamma(1 -
a/2)) + 2*a*b**2*b**(a/2)*x**2*cosh(a*asinh(x/sqrt(b)) + asinh(x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(5/2)*gam
ma(1 - a/2) - 2*b**(5/2)*gamma(1 - a/2)) - 2*b**(5/2)*b**(a/2)*x*sqrt(1 + x**2/b)*sinh(a*asinh(x/sqrt(b)) + as
inh(x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(5/2)*gamma(1 - a/2) - 2*b**(5/2)*gamma(1 - a/2)) + 2*b**2*b**(a/2)*
x**2*cosh(a*asinh(x/sqrt(b)) + asinh(x/sqrt(b)))*gamma(1 - a/2)/(2*a**2*b**(5/2)*gamma(1 - a/2) - 2*b**(5/2)*g
amma(1 - a/2)), True))
________________________________________________________________________________________