Optimal. Leaf size=62 \[ -\frac {2 a \left (a+b \sqrt {c+d x}\right )^{1+p}}{b^2 d (1+p)}+\frac {2 \left (a+b \sqrt {c+d x}\right )^{2+p}}{b^2 d (2+p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {253, 196, 45}
\begin {gather*} \frac {2 \left (a+b \sqrt {c+d x}\right )^{p+2}}{b^2 d (p+2)}-\frac {2 a \left (a+b \sqrt {c+d x}\right )^{p+1}}{b^2 d (p+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 196
Rule 253
Rubi steps
\begin {align*} \int \left (a+b \sqrt {c+d x}\right )^p \, dx &=\frac {\text {Subst}\left (\int \left (a+b \sqrt {x}\right )^p \, dx,x,c+d x\right )}{d}\\ &=\frac {2 \text {Subst}\left (\int x (a+b x)^p \, dx,x,\sqrt {c+d x}\right )}{d}\\ &=\frac {2 \text {Subst}\left (\int \left (-\frac {a (a+b x)^p}{b}+\frac {(a+b x)^{1+p}}{b}\right ) \, dx,x,\sqrt {c+d x}\right )}{d}\\ &=-\frac {2 a \left (a+b \sqrt {c+d x}\right )^{1+p}}{b^2 d (1+p)}+\frac {2 \left (a+b \sqrt {c+d x}\right )^{2+p}}{b^2 d (2+p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 53, normalized size = 0.85 \begin {gather*} \frac {2 \left (a+b \sqrt {c+d x}\right )^{1+p} \left (-a+b (1+p) \sqrt {c+d x}\right )}{b^2 d (1+p) (2+p)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.00, size = 0, normalized size = 0.00 \[\int \left (a +b \sqrt {d x +c}\right )^{p}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 60, normalized size = 0.97 \begin {gather*} \frac {2 \, {\left ({\left (d x + c\right )} b^{2} {\left (p + 1\right )} + \sqrt {d x + c} a b p - a^{2}\right )} {\left (\sqrt {d x + c} b + a\right )}^{p}}{{\left (p^{2} + 3 \, p + 2\right )} b^{2} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 81, normalized size = 1.31 \begin {gather*} \frac {2 \, {\left (b^{2} c p + \sqrt {d x + c} a b p + b^{2} c - a^{2} + {\left (b^{2} d p + b^{2} d\right )} x\right )} {\left (\sqrt {d x + c} b + a\right )}^{p}}{b^{2} d p^{2} + 3 \, b^{2} d p + 2 \, b^{2} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \sqrt {c + d x}\right )^{p}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 129 vs.
\(2 (58) = 116\).
time = 2.68, size = 129, normalized size = 2.08 \begin {gather*} \frac {2 \, {\left ({\left (\sqrt {d x + c} b + a\right )}^{2} {\left (\sqrt {d x + c} b + a\right )}^{p} p - {\left (\sqrt {d x + c} b + a\right )} {\left (\sqrt {d x + c} b + a\right )}^{p} a p + {\left (\sqrt {d x + c} b + a\right )}^{2} {\left (\sqrt {d x + c} b + a\right )}^{p} - 2 \, {\left (\sqrt {d x + c} b + a\right )} {\left (\sqrt {d x + c} b + a\right )}^{p} a\right )}}{{\left (p^{2} + 3 \, p + 2\right )} b^{2} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.58, size = 146, normalized size = 2.35 \begin {gather*} \left \{\begin {array}{cl} -\frac {2\,a\,\ln \left (a+b\,\sqrt {c+d\,x}\right )-2\,b\,\sqrt {c+d\,x}}{b^2\,d} & \text {\ if\ \ }p=-1\\ \frac {2\,\left (\ln \left (a+b\,\sqrt {c+d\,x}\right )+\frac {a}{a+b\,\sqrt {c+d\,x}}\right )}{b^2\,d} & \text {\ if\ \ }p=-2\\ \frac {4\,{\left (a+b\,\sqrt {c+d\,x}\right )}^{p+2}}{b^2\,d\,\left (2\,p+4\right )}-\frac {4\,a\,{\left (a+b\,\sqrt {c+d\,x}\right )}^{p+1}}{b^2\,d\,\left (2\,p+2\right )} & \text {\ if\ \ }p\neq -1\wedge p\neq -2 \end {array}\right . \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________