Integrand size = 23, antiderivative size = 87 \[ \int \frac {\sqrt {a+b x} (c+d x) (e+f x)}{x} \, dx=2 c e \sqrt {a+b x}+\frac {2 (b d e+b c f-a d f) (a+b x)^{3/2}}{3 b^2}+\frac {2 d f (a+b x)^{5/2}}{5 b^2}-2 \sqrt {a} c e \text {arctanh}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right ) \] Output:
2*c*e*(b*x+a)^(1/2)+2/3*(-a*d*f+b*c*f+b*d*e)*(b*x+a)^(3/2)/b^2+2/5*d*f*(b* x+a)^(5/2)/b^2-2*a^(1/2)*c*e*arctanh((b*x+a)^(1/2)/a^(1/2))
Time = 0.11 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.05 \[ \int \frac {\sqrt {a+b x} (c+d x) (e+f x)}{x} \, dx=\frac {2 \sqrt {a+b x} \left (15 b^2 c e+5 b d e (a+b x)+5 b c f (a+b x)-5 a d f (a+b x)+3 d f (a+b x)^2\right )}{15 b^2}-2 \sqrt {a} c e \text {arctanh}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right ) \] Input:
Integrate[(Sqrt[a + b*x]*(c + d*x)*(e + f*x))/x,x]
Output:
(2*Sqrt[a + b*x]*(15*b^2*c*e + 5*b*d*e*(a + b*x) + 5*b*c*f*(a + b*x) - 5*a *d*f*(a + b*x) + 3*d*f*(a + b*x)^2))/(15*b^2) - 2*Sqrt[a]*c*e*ArcTanh[Sqrt [a + b*x]/Sqrt[a]]
Time = 0.20 (sec) , antiderivative size = 77, normalized size of antiderivative = 0.89, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {164, 60, 73, 221}
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 {\sqrt {a+b x} (c+d x) (e+f x)}{x} \, dx\) |
\(\Big \downarrow \) 164 |
\(\displaystyle c e \int \frac {\sqrt {a+b x}}{x}dx-\frac {2 (a+b x)^{3/2} (2 a d f-5 b (c f+d e)-3 b d f x)}{15 b^2}\) |
\(\Big \downarrow \) 60 |
\(\displaystyle c e \left (a \int \frac {1}{x \sqrt {a+b x}}dx+2 \sqrt {a+b x}\right )-\frac {2 (a+b x)^{3/2} (2 a d f-5 b (c f+d e)-3 b d f x)}{15 b^2}\) |
\(\Big \downarrow \) 73 |
\(\displaystyle c e \left (\frac {2 a \int \frac {1}{\frac {a+b x}{b}-\frac {a}{b}}d\sqrt {a+b x}}{b}+2 \sqrt {a+b x}\right )-\frac {2 (a+b x)^{3/2} (2 a d f-5 b (c f+d e)-3 b d f x)}{15 b^2}\) |
\(\Big \downarrow \) 221 |
\(\displaystyle c e \left (2 \sqrt {a+b x}-2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )\right )-\frac {2 (a+b x)^{3/2} (2 a d f-5 b (c f+d e)-3 b d f x)}{15 b^2}\) |
Input:
Int[(Sqrt[a + b*x]*(c + d*x)*(e + f*x))/x,x]
Output:
(-2*(a + b*x)^(3/2)*(2*a*d*f - 5*b*(d*e + c*f) - 3*b*d*f*x))/(15*b^2) + c* e*(2*Sqrt[a + b*x] - 2*Sqrt[a]*ArcTanh[Sqrt[a + b*x]/Sqrt[a]])
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[ (a + b*x)^(m + 1)*((c + d*x)^n/(b*(m + n + 1))), x] + Simp[n*((b*c - a*d)/( b*(m + n + 1))) Int[(a + b*x)^m*(c + d*x)^(n - 1), x], x] /; FreeQ[{a, b, c, d}, x] && GtQ[n, 0] && NeQ[m + n + 1, 0] && !(IGtQ[m, 0] && ( !Integer Q[n] || (GtQ[m, 0] && LtQ[m - n, 0]))) && !ILtQ[m + n + 2, 0] && IntLinear Q[a, b, c, d, m, n, x]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[ {p = Denominator[m]}, Simp[p/b Subst[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] && Lt Q[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntL inearQ[a, b, c, d, m, n, x]
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.)*((e_) + (f_.)*(x_ ))*((g_.) + (h_.)*(x_)), x_] :> Simp[(-(a*d*f*h*(n + 2) + b*c*f*h*(m + 2) - b*d*(f*g + e*h)*(m + n + 3) - b*d*f*h*(m + n + 2)*x))*(a + b*x)^(m + 1)*(( c + d*x)^(n + 1)/(b^2*d^2*(m + n + 2)*(m + n + 3))), x] + Simp[(a^2*d^2*f*h *(n + 1)*(n + 2) + a*b*d*(n + 1)*(2*c*f*h*(m + 1) - d*(f*g + e*h)*(m + n + 3)) + b^2*(c^2*f*h*(m + 1)*(m + 2) - c*d*(f*g + e*h)*(m + 1)*(m + n + 3) + d^2*e*g*(m + n + 2)*(m + n + 3)))/(b^2*d^2*(m + n + 2)*(m + n + 3)) Int[( a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d, e, f, g, h, m, n}, x] && NeQ[m + n + 2, 0] && NeQ[m + n + 3, 0]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x /Rt[-a/b, 2]], x] /; FreeQ[{a, b}, x] && NegQ[a/b]
Time = 0.27 (sec) , antiderivative size = 86, normalized size of antiderivative = 0.99
method | result | size |
pseudoelliptic | \(\frac {-2 \sqrt {a}\, b^{2} c e \,\operatorname {arctanh}\left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )-\frac {4 \sqrt {b x +a}\, \left (\frac {5 \left (-x \left (\frac {3 f x}{5}+e \right ) d -3 c \left (\frac {f x}{3}+e \right )\right ) b^{2}}{2}-\frac {5 a \left (\left (\frac {f x}{5}+e \right ) d +c f \right ) b}{2}+a^{2} d f \right )}{15}}{b^{2}}\) | \(86\) |
derivativedivides | \(\frac {\frac {2 d f \left (b x +a \right )^{\frac {5}{2}}}{5}-\frac {2 a d f \left (b x +a \right )^{\frac {3}{2}}}{3}+\frac {2 b c f \left (b x +a \right )^{\frac {3}{2}}}{3}+\frac {2 b d e \left (b x +a \right )^{\frac {3}{2}}}{3}+2 b^{2} c e \sqrt {b x +a}-2 \sqrt {a}\, b^{2} c e \,\operatorname {arctanh}\left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{b^{2}}\) | \(89\) |
default | \(\frac {\frac {2 d f \left (b x +a \right )^{\frac {5}{2}}}{5}-\frac {2 a d f \left (b x +a \right )^{\frac {3}{2}}}{3}+\frac {2 b c f \left (b x +a \right )^{\frac {3}{2}}}{3}+\frac {2 b d e \left (b x +a \right )^{\frac {3}{2}}}{3}+2 b^{2} c e \sqrt {b x +a}-2 \sqrt {a}\, b^{2} c e \,\operatorname {arctanh}\left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{b^{2}}\) | \(89\) |
Input:
int((b*x+a)^(1/2)*(d*x+c)*(f*x+e)/x,x,method=_RETURNVERBOSE)
Output:
2/15*(-15*a^(1/2)*b^2*c*e*arctanh((b*x+a)^(1/2)/a^(1/2))-2*(b*x+a)^(1/2)*( 5/2*(-x*(3/5*f*x+e)*d-3*c*(1/3*f*x+e))*b^2-5/2*a*((1/5*f*x+e)*d+c*f)*b+a^2 *d*f))/b^2
Time = 0.09 (sec) , antiderivative size = 214, normalized size of antiderivative = 2.46 \[ \int \frac {\sqrt {a+b x} (c+d x) (e+f x)}{x} \, dx=\left [\frac {15 \, \sqrt {a} b^{2} c e \log \left (\frac {b x - 2 \, \sqrt {b x + a} \sqrt {a} + 2 \, a}{x}\right ) + 2 \, {\left (3 \, b^{2} d f x^{2} + 5 \, {\left (3 \, b^{2} c + a b d\right )} e + {\left (5 \, a b c - 2 \, a^{2} d\right )} f + {\left (5 \, b^{2} d e + {\left (5 \, b^{2} c + a b d\right )} f\right )} x\right )} \sqrt {b x + a}}{15 \, b^{2}}, \frac {2 \, {\left (15 \, \sqrt {-a} b^{2} c e \arctan \left (\frac {\sqrt {-a}}{\sqrt {b x + a}}\right ) + {\left (3 \, b^{2} d f x^{2} + 5 \, {\left (3 \, b^{2} c + a b d\right )} e + {\left (5 \, a b c - 2 \, a^{2} d\right )} f + {\left (5 \, b^{2} d e + {\left (5 \, b^{2} c + a b d\right )} f\right )} x\right )} \sqrt {b x + a}\right )}}{15 \, b^{2}}\right ] \] Input:
integrate((b*x+a)^(1/2)*(d*x+c)*(f*x+e)/x,x, algorithm="fricas")
Output:
[1/15*(15*sqrt(a)*b^2*c*e*log((b*x - 2*sqrt(b*x + a)*sqrt(a) + 2*a)/x) + 2 *(3*b^2*d*f*x^2 + 5*(3*b^2*c + a*b*d)*e + (5*a*b*c - 2*a^2*d)*f + (5*b^2*d *e + (5*b^2*c + a*b*d)*f)*x)*sqrt(b*x + a))/b^2, 2/15*(15*sqrt(-a)*b^2*c*e *arctan(sqrt(-a)/sqrt(b*x + a)) + (3*b^2*d*f*x^2 + 5*(3*b^2*c + a*b*d)*e + (5*a*b*c - 2*a^2*d)*f + (5*b^2*d*e + (5*b^2*c + a*b*d)*f)*x)*sqrt(b*x + a ))/b^2]
Time = 10.11 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.40 \[ \int \frac {\sqrt {a+b x} (c+d x) (e+f x)}{x} \, dx=\begin {cases} \frac {2 a c e \operatorname {atan}{\left (\frac {\sqrt {a + b x}}{\sqrt {- a}} \right )}}{\sqrt {- a}} + 2 c e \sqrt {a + b x} + \frac {2 d f \left (a + b x\right )^{\frac {5}{2}}}{5 b^{2}} + \frac {2 \left (a + b x\right )^{\frac {3}{2}} \left (- a d f + b c f + b d e\right )}{3 b^{2}} & \text {for}\: b \neq 0 \\\sqrt {a} \left (c e \log {\left (x \right )} + c f x + d e x + \frac {d f x^{2}}{2}\right ) & \text {otherwise} \end {cases} \] Input:
integrate((b*x+a)**(1/2)*(d*x+c)*(f*x+e)/x,x)
Output:
Piecewise((2*a*c*e*atan(sqrt(a + b*x)/sqrt(-a))/sqrt(-a) + 2*c*e*sqrt(a + b*x) + 2*d*f*(a + b*x)**(5/2)/(5*b**2) + 2*(a + b*x)**(3/2)*(-a*d*f + b*c* f + b*d*e)/(3*b**2), Ne(b, 0)), (sqrt(a)*(c*e*log(x) + c*f*x + d*e*x + d*f *x**2/2), True))
Time = 0.12 (sec) , antiderivative size = 90, normalized size of antiderivative = 1.03 \[ \int \frac {\sqrt {a+b x} (c+d x) (e+f x)}{x} \, dx=\sqrt {a} c e \log \left (\frac {\sqrt {b x + a} - \sqrt {a}}{\sqrt {b x + a} + \sqrt {a}}\right ) + \frac {2 \, {\left (15 \, \sqrt {b x + a} b^{2} c e + 3 \, {\left (b x + a\right )}^{\frac {5}{2}} d f + 5 \, {\left (b d e + {\left (b c - a d\right )} f\right )} {\left (b x + a\right )}^{\frac {3}{2}}\right )}}{15 \, b^{2}} \] Input:
integrate((b*x+a)^(1/2)*(d*x+c)*(f*x+e)/x,x, algorithm="maxima")
Output:
sqrt(a)*c*e*log((sqrt(b*x + a) - sqrt(a))/(sqrt(b*x + a) + sqrt(a))) + 2/1 5*(15*sqrt(b*x + a)*b^2*c*e + 3*(b*x + a)^(5/2)*d*f + 5*(b*d*e + (b*c - a* d)*f)*(b*x + a)^(3/2))/b^2
Time = 0.12 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.17 \[ \int \frac {\sqrt {a+b x} (c+d x) (e+f x)}{x} \, dx=\frac {2 \, a c e \arctan \left (\frac {\sqrt {b x + a}}{\sqrt {-a}}\right )}{\sqrt {-a}} + \frac {2 \, {\left (15 \, \sqrt {b x + a} b^{10} c e + 5 \, {\left (b x + a\right )}^{\frac {3}{2}} b^{9} d e + 5 \, {\left (b x + a\right )}^{\frac {3}{2}} b^{9} c f + 3 \, {\left (b x + a\right )}^{\frac {5}{2}} b^{8} d f - 5 \, {\left (b x + a\right )}^{\frac {3}{2}} a b^{8} d f\right )}}{15 \, b^{10}} \] Input:
integrate((b*x+a)^(1/2)*(d*x+c)*(f*x+e)/x,x, algorithm="giac")
Output:
2*a*c*e*arctan(sqrt(b*x + a)/sqrt(-a))/sqrt(-a) + 2/15*(15*sqrt(b*x + a)*b ^10*c*e + 5*(b*x + a)^(3/2)*b^9*d*e + 5*(b*x + a)^(3/2)*b^9*c*f + 3*(b*x + a)^(5/2)*b^8*d*f - 5*(b*x + a)^(3/2)*a*b^8*d*f)/b^10
Time = 0.05 (sec) , antiderivative size = 136, normalized size of antiderivative = 1.56 \[ \int \frac {\sqrt {a+b x} (c+d x) (e+f x)}{x} \, dx=\left (a\,\left (\frac {2\,b\,c\,f-4\,a\,d\,f+2\,b\,d\,e}{b^2}+\frac {2\,a\,d\,f}{b^2}\right )+\frac {2\,\left (a\,d-b\,c\right )\,\left (a\,f-b\,e\right )}{b^2}\right )\,\sqrt {a+b\,x}+\left (\frac {2\,b\,c\,f-4\,a\,d\,f+2\,b\,d\,e}{3\,b^2}+\frac {2\,a\,d\,f}{3\,b^2}\right )\,{\left (a+b\,x\right )}^{3/2}+\frac {2\,d\,f\,{\left (a+b\,x\right )}^{5/2}}{5\,b^2}+\sqrt {a}\,c\,e\,\mathrm {atan}\left (\frac {\sqrt {a+b\,x}\,1{}\mathrm {i}}{\sqrt {a}}\right )\,2{}\mathrm {i} \] Input:
int(((e + f*x)*(a + b*x)^(1/2)*(c + d*x))/x,x)
Output:
(a*((2*b*c*f - 4*a*d*f + 2*b*d*e)/b^2 + (2*a*d*f)/b^2) + (2*(a*d - b*c)*(a *f - b*e))/b^2)*(a + b*x)^(1/2) + ((2*b*c*f - 4*a*d*f + 2*b*d*e)/(3*b^2) + (2*a*d*f)/(3*b^2))*(a + b*x)^(3/2) + (2*d*f*(a + b*x)^(5/2))/(5*b^2) + a^ (1/2)*c*e*atan(((a + b*x)^(1/2)*1i)/a^(1/2))*2i
Time = 0.16 (sec) , antiderivative size = 153, normalized size of antiderivative = 1.76 \[ \int \frac {\sqrt {a+b x} (c+d x) (e+f x)}{x} \, dx=\frac {-4 \sqrt {b x +a}\, a^{2} d f +10 \sqrt {b x +a}\, a b c f +10 \sqrt {b x +a}\, a b d e +2 \sqrt {b x +a}\, a b d f x +30 \sqrt {b x +a}\, b^{2} c e +10 \sqrt {b x +a}\, b^{2} c f x +10 \sqrt {b x +a}\, b^{2} d e x +6 \sqrt {b x +a}\, b^{2} d f \,x^{2}+15 \sqrt {a}\, \mathrm {log}\left (\sqrt {b x +a}-\sqrt {a}\right ) b^{2} c e -15 \sqrt {a}\, \mathrm {log}\left (\sqrt {b x +a}+\sqrt {a}\right ) b^{2} c e}{15 b^{2}} \] Input:
int((b*x+a)^(1/2)*(d*x+c)*(f*x+e)/x,x)
Output:
( - 4*sqrt(a + b*x)*a**2*d*f + 10*sqrt(a + b*x)*a*b*c*f + 10*sqrt(a + b*x) *a*b*d*e + 2*sqrt(a + b*x)*a*b*d*f*x + 30*sqrt(a + b*x)*b**2*c*e + 10*sqrt (a + b*x)*b**2*c*f*x + 10*sqrt(a + b*x)*b**2*d*e*x + 6*sqrt(a + b*x)*b**2* d*f*x**2 + 15*sqrt(a)*log(sqrt(a + b*x) - sqrt(a))*b**2*c*e - 15*sqrt(a)*l og(sqrt(a + b*x) + sqrt(a))*b**2*c*e)/(15*b**2)