Optimal. Leaf size=282 \[ \frac {2 \sqrt {a^2 x^2+b^2} \left (12 a^4 c^2 x^5+40 a^4 c d x^4+60 a^4 d^2 x^3-3 a^2 b^2 c^2 x^3+30 a^2 b^2 c d x^2+25 a^2 b^2 d^2 x-4 b^4 c^2 x+4 b^4 c d\right )}{15 a^2 \left (\sqrt {a^2 x^2+b^2}+a x\right )^{7/2}}+\frac {2 \left (84 a^6 c^2 x^6+280 a^6 c d x^5+420 a^6 d^2 x^4+21 a^4 b^2 c^2 x^4+350 a^4 b^2 c d x^3+385 a^4 b^2 d^2 x^2-49 a^2 b^4 c^2 x^2+98 a^2 b^4 c d x+35 a^2 b^4 d^2-8 b^6 c^2\right )}{105 a^3 \left (\sqrt {a^2 x^2+b^2}+a x\right )^{7/2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.23, antiderivative size = 232, normalized size of antiderivative = 0.82, number of steps used = 3, number of rules used = 2, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {2119, 1628} \begin {gather*} \frac {c d \left (\sqrt {a^2 x^2+b^2}+a x\right )^{3/2}}{3 a^2}+\frac {b^4 c d}{5 a^2 \left (\sqrt {a^2 x^2+b^2}+a x\right )^{5/2}}+\frac {b^2 \left (b^2 c^2-4 a^2 d^2\right )}{12 a^3 \left (\sqrt {a^2 x^2+b^2}+a x\right )^{3/2}}-\frac {\sqrt {\sqrt {a^2 x^2+b^2}+a x} \left (b^2 c^2-4 a^2 d^2\right )}{4 a^3}+\frac {c^2 \left (\sqrt {a^2 x^2+b^2}+a x\right )^{5/2}}{20 a^3}-\frac {b^6 c^2}{28 a^3 \left (\sqrt {a^2 x^2+b^2}+a x\right )^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1628
Rule 2119
Rubi steps
\begin {align*} \int \frac {(d+c x)^2}{\sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\left (b^2+x^2\right ) \left (-b^2 c+2 a d x+c x^2\right )^2}{x^{9/2}} \, dx,x,a x+\sqrt {b^2+a^2 x^2}\right )}{8 a^3}\\ &=\frac {\operatorname {Subst}\left (\int \left (\frac {b^6 c^2}{x^{9/2}}-\frac {4 a b^4 c d}{x^{7/2}}-\frac {b^2 \left (b^2 c^2-4 a^2 d^2\right )}{x^{5/2}}+\frac {-b^2 c^2+4 a^2 d^2}{\sqrt {x}}+4 a c d \sqrt {x}+c^2 x^{3/2}\right ) \, dx,x,a x+\sqrt {b^2+a^2 x^2}\right )}{8 a^3}\\ &=-\frac {b^6 c^2}{28 a^3 \left (a x+\sqrt {b^2+a^2 x^2}\right )^{7/2}}+\frac {b^4 c d}{5 a^2 \left (a x+\sqrt {b^2+a^2 x^2}\right )^{5/2}}+\frac {b^2 \left (b^2 c^2-4 a^2 d^2\right )}{12 a^3 \left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}-\frac {\left (b^2 c^2-4 a^2 d^2\right ) \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{4 a^3}+\frac {c d \left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}{3 a^2}+\frac {c^2 \left (a x+\sqrt {b^2+a^2 x^2}\right )^{5/2}}{20 a^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 7.65, size = 1949, normalized size = 6.91
result too large to display
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.33, size = 282, normalized size = 1.00 \begin {gather*} \frac {2 \sqrt {b^2+a^2 x^2} \left (4 b^4 c d-4 b^4 c^2 x+25 a^2 b^2 d^2 x+30 a^2 b^2 c d x^2-3 a^2 b^2 c^2 x^3+60 a^4 d^2 x^3+40 a^4 c d x^4+12 a^4 c^2 x^5\right )}{15 a^2 \left (a x+\sqrt {b^2+a^2 x^2}\right )^{7/2}}+\frac {2 \left (-8 b^6 c^2+35 a^2 b^4 d^2+98 a^2 b^4 c d x-49 a^2 b^4 c^2 x^2+385 a^4 b^2 d^2 x^2+350 a^4 b^2 c d x^3+21 a^4 b^2 c^2 x^4+420 a^6 d^2 x^4+280 a^6 c d x^5+84 a^6 c^2 x^6\right )}{105 a^3 \left (a x+\sqrt {b^2+a^2 x^2}\right )^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.13, size = 167, normalized size = 0.59 \begin {gather*} -\frac {2 \, {\left (15 \, a^{4} c^{2} x^{4} + 42 \, a^{4} c d x^{3} + 14 \, a^{2} b^{2} c d x + 8 \, b^{4} c^{2} - 35 \, a^{2} b^{2} d^{2} + {\left (a^{2} b^{2} c^{2} + 35 \, a^{4} d^{2}\right )} x^{2} - {\left (15 \, a^{3} c^{2} x^{3} + 42 \, a^{3} c d x^{2} + 28 \, a b^{2} c d + {\left (4 \, a b^{2} c^{2} + 35 \, a^{3} d^{2}\right )} x\right )} \sqrt {a^{2} x^{2} + b^{2}}\right )} \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}}}{105 \, a^{3} b^{2}} \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*} \int \frac {{\left (c x + d\right )}^{2}}{\sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 180.00, size = 0, normalized size = 0.00 \[\int \frac {\left (c x +d \right )^{2}}{\sqrt {a x +\sqrt {a^{2} x^{2}+b^{2}}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {{\left (c x + d\right )}^{2}}{\sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (d+c\,x\right )}^2}{\sqrt {a\,x+\sqrt {a^2\,x^2+b^2}}} \,d x \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 \frac {\left (c x + d\right )^{2}}{\sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________