Integrand size = 23, antiderivative size = 77 \[ \int \frac {A+B x}{x \sqrt {a+b x+c x^2}} \, dx=-\frac {A \text {arctanh}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+b x+c x^2}}\right )}{\sqrt {a}}+\frac {B \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{\sqrt {c}} \] Output:
-A*arctanh(1/2*(b*x+2*a)/a^(1/2)/(c*x^2+b*x+a)^(1/2))/a^(1/2)+B*arctanh(1/ 2*(2*c*x+b)/c^(1/2)/(c*x^2+b*x+a)^(1/2))/c^(1/2)
Time = 0.33 (sec) , antiderivative size = 74, normalized size of antiderivative = 0.96 \[ \int \frac {A+B x}{x \sqrt {a+b x+c x^2}} \, dx=\frac {2 A \text {arctanh}\left (\frac {\sqrt {c} x-\sqrt {a+x (b+c x)}}{\sqrt {a}}\right )}{\sqrt {a}}-\frac {B \log \left (b+2 c x-2 \sqrt {c} \sqrt {a+x (b+c x)}\right )}{\sqrt {c}} \] Input:
Integrate[(A + B*x)/(x*Sqrt[a + b*x + c*x^2]),x]
Output:
(2*A*ArcTanh[(Sqrt[c]*x - Sqrt[a + x*(b + c*x)])/Sqrt[a]])/Sqrt[a] - (B*Lo g[b + 2*c*x - 2*Sqrt[c]*Sqrt[a + x*(b + c*x)]])/Sqrt[c]
Time = 0.25 (sec) , antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {1269, 1092, 219, 1154, 219}
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 {A+B x}{x \sqrt {a+b x+c x^2}} \, dx\) |
\(\Big \downarrow \) 1269 |
\(\displaystyle A \int \frac {1}{x \sqrt {c x^2+b x+a}}dx+B \int \frac {1}{\sqrt {c x^2+b x+a}}dx\) |
\(\Big \downarrow \) 1092 |
\(\displaystyle A \int \frac {1}{x \sqrt {c x^2+b x+a}}dx+2 B \int \frac {1}{4 c-\frac {(b+2 c x)^2}{c x^2+b x+a}}d\frac {b+2 c x}{\sqrt {c x^2+b x+a}}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle A \int \frac {1}{x \sqrt {c x^2+b x+a}}dx+\frac {B \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{\sqrt {c}}\) |
\(\Big \downarrow \) 1154 |
\(\displaystyle \frac {B \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{\sqrt {c}}-2 A \int \frac {1}{4 a-\frac {(2 a+b x)^2}{c x^2+b x+a}}d\frac {2 a+b x}{\sqrt {c x^2+b x+a}}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {B \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{\sqrt {c}}-\frac {A \text {arctanh}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+b x+c x^2}}\right )}{\sqrt {a}}\) |
Input:
Int[(A + B*x)/(x*Sqrt[a + b*x + c*x^2]),x]
Output:
-((A*ArcTanh[(2*a + b*x)/(2*Sqrt[a]*Sqrt[a + b*x + c*x^2])])/Sqrt[a]) + (B *ArcTanh[(b + 2*c*x)/(2*Sqrt[c]*Sqrt[a + b*x + c*x^2])])/Sqrt[c]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[1/Sqrt[(a_) + (b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Simp[2 Subst[I nt[1/(4*c - x^2), x], x, (b + 2*c*x)/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a , b, c}, x]
Int[1/(((d_.) + (e_.)*(x_))*Sqrt[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2]), x_Sym bol] :> Simp[-2 Subst[Int[1/(4*c*d^2 - 4*b*d*e + 4*a*e^2 - x^2), x], x, ( 2*a*e - b*d - (2*c*d - b*e)*x)/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a, b, c , d, e}, x]
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c _.)*(x_)^2)^(p_.), x_Symbol] :> Simp[g/e Int[(d + e*x)^(m + 1)*(a + b*x + c*x^2)^p, x], x] + Simp[(e*f - d*g)/e Int[(d + e*x)^m*(a + b*x + c*x^2)^ p, x], x] /; FreeQ[{a, b, c, d, e, f, g, m, p}, x] && !IGtQ[m, 0]
Time = 1.17 (sec) , antiderivative size = 67, normalized size of antiderivative = 0.87
method | result | size |
default | \(\frac {B \ln \left (\frac {\frac {b}{2}+c x}{\sqrt {c}}+\sqrt {c \,x^{2}+b x +a}\right )}{\sqrt {c}}-\frac {A \ln \left (\frac {2 a +b x +2 \sqrt {a}\, \sqrt {c \,x^{2}+b x +a}}{x}\right )}{\sqrt {a}}\) | \(67\) |
Input:
int((B*x+A)/x/(c*x^2+b*x+a)^(1/2),x,method=_RETURNVERBOSE)
Output:
B*ln((1/2*b+c*x)/c^(1/2)+(c*x^2+b*x+a)^(1/2))/c^(1/2)-A/a^(1/2)*ln((2*a+b* x+2*a^(1/2)*(c*x^2+b*x+a)^(1/2))/x)
Time = 0.15 (sec) , antiderivative size = 468, normalized size of antiderivative = 6.08 \[ \int \frac {A+B x}{x \sqrt {a+b x+c x^2}} \, dx=\left [\frac {B a \sqrt {c} \log \left (-8 \, c^{2} x^{2} - 8 \, b c x - b^{2} - 4 \, \sqrt {c x^{2} + b x + a} {\left (2 \, c x + b\right )} \sqrt {c} - 4 \, a c\right ) + A \sqrt {a} c \log \left (-\frac {8 \, a b x + {\left (b^{2} + 4 \, a c\right )} x^{2} - 4 \, \sqrt {c x^{2} + b x + a} {\left (b x + 2 \, a\right )} \sqrt {a} + 8 \, a^{2}}{x^{2}}\right )}{2 \, a c}, -\frac {2 \, B a \sqrt {-c} \arctan \left (\frac {\sqrt {c x^{2} + b x + a} {\left (2 \, c x + b\right )} \sqrt {-c}}{2 \, {\left (c^{2} x^{2} + b c x + a c\right )}}\right ) - A \sqrt {a} c \log \left (-\frac {8 \, a b x + {\left (b^{2} + 4 \, a c\right )} x^{2} - 4 \, \sqrt {c x^{2} + b x + a} {\left (b x + 2 \, a\right )} \sqrt {a} + 8 \, a^{2}}{x^{2}}\right )}{2 \, a c}, \frac {2 \, A \sqrt {-a} c \arctan \left (\frac {\sqrt {c x^{2} + b x + a} {\left (b x + 2 \, a\right )} \sqrt {-a}}{2 \, {\left (a c x^{2} + a b x + a^{2}\right )}}\right ) + B a \sqrt {c} \log \left (-8 \, c^{2} x^{2} - 8 \, b c x - b^{2} - 4 \, \sqrt {c x^{2} + b x + a} {\left (2 \, c x + b\right )} \sqrt {c} - 4 \, a c\right )}{2 \, a c}, \frac {A \sqrt {-a} c \arctan \left (\frac {\sqrt {c x^{2} + b x + a} {\left (b x + 2 \, a\right )} \sqrt {-a}}{2 \, {\left (a c x^{2} + a b x + a^{2}\right )}}\right ) - B a \sqrt {-c} \arctan \left (\frac {\sqrt {c x^{2} + b x + a} {\left (2 \, c x + b\right )} \sqrt {-c}}{2 \, {\left (c^{2} x^{2} + b c x + a c\right )}}\right )}{a c}\right ] \] Input:
integrate((B*x+A)/x/(c*x^2+b*x+a)^(1/2),x, algorithm="fricas")
Output:
[1/2*(B*a*sqrt(c)*log(-8*c^2*x^2 - 8*b*c*x - b^2 - 4*sqrt(c*x^2 + b*x + a) *(2*c*x + b)*sqrt(c) - 4*a*c) + A*sqrt(a)*c*log(-(8*a*b*x + (b^2 + 4*a*c)* x^2 - 4*sqrt(c*x^2 + b*x + a)*(b*x + 2*a)*sqrt(a) + 8*a^2)/x^2))/(a*c), -1 /2*(2*B*a*sqrt(-c)*arctan(1/2*sqrt(c*x^2 + b*x + a)*(2*c*x + b)*sqrt(-c)/( c^2*x^2 + b*c*x + a*c)) - A*sqrt(a)*c*log(-(8*a*b*x + (b^2 + 4*a*c)*x^2 - 4*sqrt(c*x^2 + b*x + a)*(b*x + 2*a)*sqrt(a) + 8*a^2)/x^2))/(a*c), 1/2*(2*A *sqrt(-a)*c*arctan(1/2*sqrt(c*x^2 + b*x + a)*(b*x + 2*a)*sqrt(-a)/(a*c*x^2 + a*b*x + a^2)) + B*a*sqrt(c)*log(-8*c^2*x^2 - 8*b*c*x - b^2 - 4*sqrt(c*x ^2 + b*x + a)*(2*c*x + b)*sqrt(c) - 4*a*c))/(a*c), (A*sqrt(-a)*c*arctan(1/ 2*sqrt(c*x^2 + b*x + a)*(b*x + 2*a)*sqrt(-a)/(a*c*x^2 + a*b*x + a^2)) - B* a*sqrt(-c)*arctan(1/2*sqrt(c*x^2 + b*x + a)*(2*c*x + b)*sqrt(-c)/(c^2*x^2 + b*c*x + a*c)))/(a*c)]
\[ \int \frac {A+B x}{x \sqrt {a+b x+c x^2}} \, dx=\int \frac {A + B x}{x \sqrt {a + b x + c x^{2}}}\, dx \] Input:
integrate((B*x+A)/x/(c*x**2+b*x+a)**(1/2),x)
Output:
Integral((A + B*x)/(x*sqrt(a + b*x + c*x**2)), x)
Exception generated. \[ \int \frac {A+B x}{x \sqrt {a+b x+c x^2}} \, dx=\text {Exception raised: ValueError} \] Input:
integrate((B*x+A)/x/(c*x^2+b*x+a)^(1/2),x, algorithm="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(4*a*c-b^2>0)', see `assume?` for more deta
Exception generated. \[ \int \frac {A+B x}{x \sqrt {a+b x+c x^2}} \, dx=\text {Exception raised: TypeError} \] Input:
integrate((B*x+A)/x/(c*x^2+b*x+a)^(1/2),x, algorithm="giac")
Output:
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:Degree mismatch inside factorisatio n over extensionNot implemented, e.g. for multivariate mod/approx polynomi alsError:
Time = 10.80 (sec) , antiderivative size = 66, normalized size of antiderivative = 0.86 \[ \int \frac {A+B x}{x \sqrt {a+b x+c x^2}} \, dx=\frac {B\,\ln \left (\frac {\frac {b}{2}+c\,x}{\sqrt {c}}+\sqrt {c\,x^2+b\,x+a}\right )}{\sqrt {c}}-\frac {A\,\ln \left (\frac {b}{2}+\frac {a}{x}+\frac {\sqrt {a}\,\sqrt {c\,x^2+b\,x+a}}{x}\right )}{\sqrt {a}} \] Input:
int((A + B*x)/(x*(a + b*x + c*x^2)^(1/2)),x)
Output:
(B*log((b/2 + c*x)/c^(1/2) + (a + b*x + c*x^2)^(1/2)))/c^(1/2) - (A*log(b/ 2 + a/x + (a^(1/2)*(a + b*x + c*x^2)^(1/2))/x))/a^(1/2)
Time = 0.24 (sec) , antiderivative size = 794, normalized size of antiderivative = 10.31 \[ \int \frac {A+B x}{x \sqrt {a+b x+c x^2}} \, dx =\text {Too large to display} \] Input:
int((B*x+A)/x/(c*x^2+b*x+a)^(1/2),x)
Output:
( - 2*sqrt(a)*sqrt(4*sqrt(c)*sqrt(a)*b - 4*a*c - b**2)*atan((2*sqrt(c)*sqr t(a + b*x + c*x**2) + b + 2*c*x)/sqrt(4*sqrt(c)*sqrt(a)*b - 4*a*c - b**2)) *b*c - 4*sqrt(c)*sqrt(4*sqrt(c)*sqrt(a)*b - 4*a*c - b**2)*atan((2*sqrt(c)* sqrt(a + b*x + c*x**2) + b + 2*c*x)/sqrt(4*sqrt(c)*sqrt(a)*b - 4*a*c - b** 2))*a*c - sqrt(a)*sqrt(4*sqrt(c)*sqrt(a)*b + 4*a*c + b**2)*log( - sqrt(4*s qrt(c)*sqrt(a)*b + 4*a*c + b**2) + 2*sqrt(c)*sqrt(a + b*x + c*x**2) + b + 2*c*x)*b*c + sqrt(a)*sqrt(4*sqrt(c)*sqrt(a)*b + 4*a*c + b**2)*log(sqrt(4*s qrt(c)*sqrt(a)*b + 4*a*c + b**2) + 2*sqrt(c)*sqrt(a + b*x + c*x**2) + b + 2*c*x)*b*c + 2*sqrt(c)*sqrt(4*sqrt(c)*sqrt(a)*b + 4*a*c + b**2)*log( - sqr t(4*sqrt(c)*sqrt(a)*b + 4*a*c + b**2) + 2*sqrt(c)*sqrt(a + b*x + c*x**2) + b + 2*c*x)*a*c - 2*sqrt(c)*sqrt(4*sqrt(c)*sqrt(a)*b + 4*a*c + b**2)*log(s qrt(4*sqrt(c)*sqrt(a)*b + 4*a*c + b**2) + 2*sqrt(c)*sqrt(a + b*x + c*x**2) + b + 2*c*x)*a*c + 4*sqrt(a)*log( - sqrt(4*sqrt(c)*sqrt(a)*b + 4*a*c + b* *2) + 2*sqrt(c)*sqrt(a + b*x + c*x**2) + b + 2*c*x)*a*c**2 - sqrt(a)*log( - sqrt(4*sqrt(c)*sqrt(a)*b + 4*a*c + b**2) + 2*sqrt(c)*sqrt(a + b*x + c*x* *2) + b + 2*c*x)*b**2*c + 4*sqrt(a)*log(sqrt(4*sqrt(c)*sqrt(a)*b + 4*a*c + b**2) + 2*sqrt(c)*sqrt(a + b*x + c*x**2) + b + 2*c*x)*a*c**2 - sqrt(a)*lo g(sqrt(4*sqrt(c)*sqrt(a)*b + 4*a*c + b**2) + 2*sqrt(c)*sqrt(a + b*x + c*x* *2) + b + 2*c*x)*b**2*c - 4*sqrt(a)*log(4*sqrt(c)*sqrt(a + b*x + c*x**2)*b + 8*sqrt(c)*sqrt(a + b*x + c*x**2)*c*x + 4*sqrt(c)*sqrt(a)*b + 8*b*c*x...