Optimal. Leaf size=89 \[ \frac {\left (a^2-b^2 c\right ) (c+d x)^2}{2 d^2}-\frac {a^2 c x}{d}+\frac {4 a b (c+d x)^{5/2}}{5 d^2}-\frac {4 a b c (c+d x)^{3/2}}{3 d^2}+\frac {b^2 (c+d x)^3}{3 d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 89, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {371, 1398, 772} \[ \frac {\left (a^2-b^2 c\right ) (c+d x)^2}{2 d^2}-\frac {a^2 c x}{d}+\frac {4 a b (c+d x)^{5/2}}{5 d^2}-\frac {4 a b c (c+d x)^{3/2}}{3 d^2}+\frac {b^2 (c+d x)^3}{3 d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 772
Rule 1398
Rubi steps
\begin {align*} \int x \left (a+b \sqrt {c+d x}\right )^2 \, dx &=\frac {\operatorname {Subst}\left (\int \left (a+b \sqrt {x}\right )^2 (-c+x) \, dx,x,c+d x\right )}{d^2}\\ &=\frac {2 \operatorname {Subst}\left (\int x (a+b x)^2 \left (-c+x^2\right ) \, dx,x,\sqrt {c+d x}\right )}{d^2}\\ &=\frac {2 \operatorname {Subst}\left (\int \left (-a^2 c x-2 a b c x^2+\left (a^2-b^2 c\right ) x^3+2 a b x^4+b^2 x^5\right ) \, dx,x,\sqrt {c+d x}\right )}{d^2}\\ &=-\frac {a^2 c x}{d}-\frac {4 a b c (c+d x)^{3/2}}{3 d^2}+\frac {\left (a^2-b^2 c\right ) (c+d x)^2}{2 d^2}+\frac {4 a b (c+d x)^{5/2}}{5 d^2}+\frac {b^2 (c+d x)^3}{3 d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 63, normalized size = 0.71 \[ \frac {1}{30} \left (15 a^2 x^2+\frac {8 a b \sqrt {c+d x} \left (-2 c^2+c d x+3 d^2 x^2\right )}{d^2}+5 b^2 x^2 (3 c+2 d x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.55, size = 67, normalized size = 0.75 \[ \frac {10 \, b^{2} d^{3} x^{3} + 15 \, {\left (b^{2} c + a^{2}\right )} d^{2} x^{2} + 8 \, {\left (3 \, a b d^{2} x^{2} + a b c d x - 2 \, a b c^{2}\right )} \sqrt {d x + c}}{30 \, d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.51, size = 131, normalized size = 1.47 \[ \frac {10 \, b^{2} d^{2} x^{3} + \frac {40 \, {\left ({\left (d x + c\right )}^{\frac {3}{2}} - 3 \, \sqrt {d x + c} c\right )} a b c}{d} + \frac {15 \, {\left ({\left (d x + c\right )}^{2} - 2 \, {\left (d x + c\right )} c\right )} b^{2} c}{d} + \frac {15 \, {\left ({\left (d x + c\right )}^{2} - 2 \, {\left (d x + c\right )} c\right )} a^{2}}{d} + \frac {8 \, {\left (3 \, {\left (d x + c\right )}^{\frac {5}{2}} - 10 \, {\left (d x + c\right )}^{\frac {3}{2}} c + 15 \, \sqrt {d x + c} c^{2}\right )} a b}{d}}{30 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 54, normalized size = 0.61 \[ \frac {a^{2} x^{2}}{2}+\left (\frac {1}{3} d \,x^{3}+\frac {1}{2} c \,x^{2}\right ) b^{2}+\frac {4 \left (-\frac {\left (d x +c \right )^{\frac {3}{2}} c}{3}+\frac {\left (d x +c \right )^{\frac {5}{2}}}{5}\right ) a b}{d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.88, size = 72, normalized size = 0.81 \[ \frac {10 \, {\left (d x + c\right )}^{3} b^{2} + 24 \, {\left (d x + c\right )}^{\frac {5}{2}} a b - 40 \, {\left (d x + c\right )}^{\frac {3}{2}} a b c - 30 \, {\left (d x + c\right )} a^{2} c - 15 \, {\left (b^{2} c - a^{2}\right )} {\left (d x + c\right )}^{2}}{30 \, d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.03, size = 79, normalized size = 0.89 \[ \frac {b^2\,{\left (c+d\,x\right )}^3}{3\,d^2}-\frac {\left (2\,b^2\,c-2\,a^2\right )\,{\left (c+d\,x\right )}^2}{4\,d^2}+\frac {4\,a\,b\,{\left (c+d\,x\right )}^{5/2}}{5\,d^2}-\frac {a^2\,c\,x}{d}-\frac {4\,a\,b\,c\,{\left (c+d\,x\right )}^{3/2}}{3\,d^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 4.77, size = 94, normalized size = 1.06 \[ \begin {cases} \frac {\frac {2 a^{2} \left (- \frac {c \left (c + d x\right )}{2} + \frac {\left (c + d x\right )^{2}}{4}\right )}{d} + \frac {4 a b \left (- \frac {c \left (c + d x\right )^{\frac {3}{2}}}{3} + \frac {\left (c + d x\right )^{\frac {5}{2}}}{5}\right )}{d} + \frac {2 b^{2} \left (- \frac {c \left (c + d x\right )^{2}}{4} + \frac {\left (c + d x\right )^{3}}{6}\right )}{d}}{d} & \text {for}\: d \neq 0 \\\frac {x^{2} \left (a + b \sqrt {c}\right )^{2}}{2} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________