Integrand size = 41, antiderivative size = 23 \[ \int \frac {b d-2 a e+(2 c d-b e) x}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=\frac {2 \sqrt {a+b x+c x^2}}{d+e x} \] Output:
2*(c*x^2+b*x+a)^(1/2)/(e*x+d)
Time = 0.55 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.96 \[ \int \frac {b d-2 a e+(2 c d-b e) x}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=\frac {2 \sqrt {a+x (b+c x)}}{d+e x} \] Input:
Integrate[(b*d - 2*a*e + (2*c*d - b*e)*x)/((d + e*x)^2*Sqrt[a + b*x + c*x^ 2]),x]
Output:
(2*Sqrt[a + x*(b + c*x)])/(d + e*x)
Time = 0.27 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.024, Rules used = {1226}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {-2 a e+x (2 c d-b e)+b d}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx\) |
\(\Big \downarrow \) 1226 |
\(\displaystyle \frac {2 \sqrt {a+b x+c x^2}}{d+e x}\) |
Input:
Int[(b*d - 2*a*e + (2*c*d - b*e)*x)/((d + e*x)^2*Sqrt[a + b*x + c*x^2]),x]
Output:
(2*Sqrt[a + b*x + c*x^2])/(d + e*x)
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c _.)*(x_)^2)^(p_.), x_Symbol] :> Simp[(-(e*f - d*g))*(d + e*x)^(m + 1)*((a + b*x + c*x^2)^(p + 1)/(2*(p + 1)*(c*d^2 - b*d*e + a*e^2))), x] /; FreeQ[{a, b, c, d, e, f, g, m, p}, x] && EqQ[Simplify[m + 2*p + 3], 0] && EqQ[b*(e*f + d*g) - 2*(c*d*f + a*e*g), 0]
Time = 1.66 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.96
method | result | size |
gosper | \(\frac {2 \sqrt {c \,x^{2}+b x +a}}{e x +d}\) | \(22\) |
trager | \(\frac {2 \sqrt {c \,x^{2}+b x +a}}{e x +d}\) | \(22\) |
orering | \(-\frac {2 \sqrt {c \,x^{2}+b x +a}\, \left (b d -2 a e +\left (-b e +2 c d \right ) x \right )}{\left (e x +d \right ) \left (b e x -2 c d x +2 a e -b d \right )}\) | \(61\) |
default | \(\frac {\left (b e -2 c d \right ) \ln \left (\frac {\frac {2 a \,e^{2}-2 b d e +2 c \,d^{2}}{e^{2}}+\frac {\left (b e -2 c d \right ) \left (x +\frac {d}{e}\right )}{e}+2 \sqrt {\frac {a \,e^{2}-b d e +c \,d^{2}}{e^{2}}}\, \sqrt {c \left (x +\frac {d}{e}\right )^{2}+\frac {\left (b e -2 c d \right ) \left (x +\frac {d}{e}\right )}{e}+\frac {a \,e^{2}-b d e +c \,d^{2}}{e^{2}}}}{x +\frac {d}{e}}\right )}{e^{2} \sqrt {\frac {a \,e^{2}-b d e +c \,d^{2}}{e^{2}}}}-\frac {2 \left (a \,e^{2}-b d e +c \,d^{2}\right ) \left (-\frac {e^{2} \sqrt {c \left (x +\frac {d}{e}\right )^{2}+\frac {\left (b e -2 c d \right ) \left (x +\frac {d}{e}\right )}{e}+\frac {a \,e^{2}-b d e +c \,d^{2}}{e^{2}}}}{\left (a \,e^{2}-b d e +c \,d^{2}\right ) \left (x +\frac {d}{e}\right )}+\frac {\left (b e -2 c d \right ) e \ln \left (\frac {\frac {2 a \,e^{2}-2 b d e +2 c \,d^{2}}{e^{2}}+\frac {\left (b e -2 c d \right ) \left (x +\frac {d}{e}\right )}{e}+2 \sqrt {\frac {a \,e^{2}-b d e +c \,d^{2}}{e^{2}}}\, \sqrt {c \left (x +\frac {d}{e}\right )^{2}+\frac {\left (b e -2 c d \right ) \left (x +\frac {d}{e}\right )}{e}+\frac {a \,e^{2}-b d e +c \,d^{2}}{e^{2}}}}{x +\frac {d}{e}}\right )}{2 \left (a \,e^{2}-b d e +c \,d^{2}\right ) \sqrt {\frac {a \,e^{2}-b d e +c \,d^{2}}{e^{2}}}}\right )}{e^{3}}\) | \(452\) |
Input:
int((b*d-2*a*e+(-b*e+2*c*d)*x)/(e*x+d)^2/(c*x^2+b*x+a)^(1/2),x,method=_RET URNVERBOSE)
Output:
2*(c*x^2+b*x+a)^(1/2)/(e*x+d)
Time = 0.16 (sec) , antiderivative size = 21, normalized size of antiderivative = 0.91 \[ \int \frac {b d-2 a e+(2 c d-b e) x}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=\frac {2 \, \sqrt {c x^{2} + b x + a}}{e x + d} \] Input:
integrate((b*d-2*a*e+(-b*e+2*c*d)*x)/(e*x+d)^2/(c*x^2+b*x+a)^(1/2),x, algo rithm="fricas")
Output:
2*sqrt(c*x^2 + b*x + a)/(e*x + d)
\[ \int \frac {b d-2 a e+(2 c d-b e) x}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=- \int \frac {2 a e}{d^{2} \sqrt {a + b x + c x^{2}} + 2 d e x \sqrt {a + b x + c x^{2}} + e^{2} x^{2} \sqrt {a + b x + c x^{2}}}\, dx - \int \left (- \frac {b d}{d^{2} \sqrt {a + b x + c x^{2}} + 2 d e x \sqrt {a + b x + c x^{2}} + e^{2} x^{2} \sqrt {a + b x + c x^{2}}}\right )\, dx - \int \frac {b e x}{d^{2} \sqrt {a + b x + c x^{2}} + 2 d e x \sqrt {a + b x + c x^{2}} + e^{2} x^{2} \sqrt {a + b x + c x^{2}}}\, dx - \int \left (- \frac {2 c d x}{d^{2} \sqrt {a + b x + c x^{2}} + 2 d e x \sqrt {a + b x + c x^{2}} + e^{2} x^{2} \sqrt {a + b x + c x^{2}}}\right )\, dx \] Input:
integrate((b*d-2*a*e+(-b*e+2*c*d)*x)/(e*x+d)**2/(c*x**2+b*x+a)**(1/2),x)
Output:
-Integral(2*a*e/(d**2*sqrt(a + b*x + c*x**2) + 2*d*e*x*sqrt(a + b*x + c*x* *2) + e**2*x**2*sqrt(a + b*x + c*x**2)), x) - Integral(-b*d/(d**2*sqrt(a + b*x + c*x**2) + 2*d*e*x*sqrt(a + b*x + c*x**2) + e**2*x**2*sqrt(a + b*x + c*x**2)), x) - Integral(b*e*x/(d**2*sqrt(a + b*x + c*x**2) + 2*d*e*x*sqrt (a + b*x + c*x**2) + e**2*x**2*sqrt(a + b*x + c*x**2)), x) - Integral(-2*c *d*x/(d**2*sqrt(a + b*x + c*x**2) + 2*d*e*x*sqrt(a + b*x + c*x**2) + e**2* x**2*sqrt(a + b*x + c*x**2)), x)
Exception generated. \[ \int \frac {b d-2 a e+(2 c d-b e) x}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=\text {Exception raised: ValueError} \] Input:
integrate((b*d-2*a*e+(-b*e+2*c*d)*x)/(e*x+d)^2/(c*x^2+b*x+a)^(1/2),x, algo rithm="maxima")
Output:
Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'assume' command before evaluation *may* help (example of legal syntax is 'assume(a*e^2-b*d*e>0)', see `assume?` f or more de
Leaf count of result is larger than twice the leaf count of optimal. 99 vs. \(2 (21) = 42\).
Time = 0.16 (sec) , antiderivative size = 99, normalized size of antiderivative = 4.30 \[ \int \frac {b d-2 a e+(2 c d-b e) x}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=-\frac {2 \, {\left (\sqrt {c} e \mathrm {sgn}\left (\frac {1}{e x + d}\right ) \mathrm {sgn}\left (e\right ) - \frac {\sqrt {c - \frac {2 \, c d}{e x + d} + \frac {c d^{2}}{{\left (e x + d\right )}^{2}} + \frac {b e}{e x + d} - \frac {b d e}{{\left (e x + d\right )}^{2}} + \frac {a e^{2}}{{\left (e x + d\right )}^{2}}} e}{\mathrm {sgn}\left (\frac {1}{e x + d}\right ) \mathrm {sgn}\left (e\right )}\right )}}{e^{2}} \] Input:
integrate((b*d-2*a*e+(-b*e+2*c*d)*x)/(e*x+d)^2/(c*x^2+b*x+a)^(1/2),x, algo rithm="giac")
Output:
-2*(sqrt(c)*e*sgn(1/(e*x + d))*sgn(e) - sqrt(c - 2*c*d/(e*x + d) + c*d^2/( e*x + d)^2 + b*e/(e*x + d) - b*d*e/(e*x + d)^2 + a*e^2/(e*x + d)^2)*e/(sgn (1/(e*x + d))*sgn(e)))/e^2
Time = 13.50 (sec) , antiderivative size = 21, normalized size of antiderivative = 0.91 \[ \int \frac {b d-2 a e+(2 c d-b e) x}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=\frac {2\,\sqrt {c\,x^2+b\,x+a}}{d+e\,x} \] Input:
int(-(2*a*e - b*d + x*(b*e - 2*c*d))/((d + e*x)^2*(a + b*x + c*x^2)^(1/2)) ,x)
Output:
(2*(a + b*x + c*x^2)^(1/2))/(d + e*x)
Time = 0.35 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.87 \[ \int \frac {b d-2 a e+(2 c d-b e) x}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=\frac {2 \sqrt {c \,x^{2}+b x +a}}{e x +d} \] Input:
int((b*d-2*a*e+(-b*e+2*c*d)*x)/(e*x+d)^2/(c*x^2+b*x+a)^(1/2),x)
Output:
(2*sqrt(a + b*x + c*x**2))/(d + e*x)