Integrand size = 29, antiderivative size = 140 \[ \int \frac {A+B x}{x \left (a^2+2 a b x+b^2 x^2\right )^{3/2}} \, dx=\frac {A}{a^2 \sqrt {a^2+2 a b x+b^2 x^2}}+\frac {A b-a B}{2 a b (a+b x) \sqrt {a^2+2 a b x+b^2 x^2}}+\frac {A (a+b x) \log (x)}{a^3 \sqrt {a^2+2 a b x+b^2 x^2}}-\frac {A (a+b x) \log (a+b x)}{a^3 \sqrt {a^2+2 a b x+b^2 x^2}} \] Output:
A/a^2/((b*x+a)^2)^(1/2)+1/2*(A*b-B*a)/a/b/(b*x+a)/((b*x+a)^2)^(1/2)+A*(b*x +a)*ln(x)/a^3/((b*x+a)^2)^(1/2)-A*(b*x+a)*ln(b*x+a)/a^3/((b*x+a)^2)^(1/2)
Time = 1.04 (sec) , antiderivative size = 80, normalized size of antiderivative = 0.57 \[ \int \frac {A+B x}{x \left (a^2+2 a b x+b^2 x^2\right )^{3/2}} \, dx=\frac {a \left (3 a A b-a^2 B+2 A b^2 x\right )+2 A b (a+b x)^2 \log (x)-2 A b (a+b x)^2 \log (a+b x)}{2 a^3 b (a+b x) \sqrt {(a+b x)^2}} \] Input:
Integrate[(A + B*x)/(x*(a^2 + 2*a*b*x + b^2*x^2)^(3/2)),x]
Output:
(a*(3*a*A*b - a^2*B + 2*A*b^2*x) + 2*A*b*(a + b*x)^2*Log[x] - 2*A*b*(a + b *x)^2*Log[a + b*x])/(2*a^3*b*(a + b*x)*Sqrt[(a + b*x)^2])
Time = 0.42 (sec) , antiderivative size = 83, normalized size of antiderivative = 0.59, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.138, Rules used = {1187, 27, 86, 2009}
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 \left (a^2+2 a b x+b^2 x^2\right )^{3/2}} \, dx\) |
\(\Big \downarrow \) 1187 |
\(\displaystyle \frac {b^3 (a+b x) \int \frac {A+B x}{b^3 x (a+b x)^3}dx}{\sqrt {a^2+2 a b x+b^2 x^2}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {(a+b x) \int \frac {A+B x}{x (a+b x)^3}dx}{\sqrt {a^2+2 a b x+b^2 x^2}}\) |
\(\Big \downarrow \) 86 |
\(\displaystyle \frac {(a+b x) \int \left (\frac {A}{a^3 x}-\frac {b A}{a^3 (a+b x)}-\frac {b A}{a^2 (a+b x)^2}+\frac {a B-A b}{a (a+b x)^3}\right )dx}{\sqrt {a^2+2 a b x+b^2 x^2}}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {(a+b x) \left (-\frac {A \log (a+b x)}{a^3}+\frac {A \log (x)}{a^3}+\frac {A}{a^2 (a+b x)}+\frac {A b-a B}{2 a b (a+b x)^2}\right )}{\sqrt {a^2+2 a b x+b^2 x^2}}\) |
Input:
Int[(A + B*x)/(x*(a^2 + 2*a*b*x + b^2*x^2)^(3/2)),x]
Output:
((a + b*x)*((A*b - a*B)/(2*a*b*(a + b*x)^2) + A/(a^2*(a + b*x)) + (A*Log[x ])/a^3 - (A*Log[a + b*x])/a^3))/Sqrt[a^2 + 2*a*b*x + b^2*x^2]
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_.) + (b_.)*(x_))*((c_) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_ .), x_] :> Int[ExpandIntegrand[(a + b*x)*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && ((ILtQ[n, 0] && ILtQ[p, 0]) || EqQ[p, 1 ] || (IGtQ[p, 0] && ( !IntegerQ[n] || LeQ[9*p + 5*(n + 2), 0] || GeQ[n + p + 1, 0] || (GeQ[n + p + 2, 0] && RationalQ[a, b, c, d, e, f]))))
Int[((d_.) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))^(n_.)*((a_) + (b_.)*(x_ ) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(a + b*x + c*x^2)^FracPart[p]/(c^ IntPart[p]*(b/2 + c*x)^(2*FracPart[p])) Int[(d + e*x)^m*(f + g*x)^n*(b/2 + c*x)^(2*p), x], x] /; FreeQ[{a, b, c, d, e, f, g, m, n, p}, x] && EqQ[b^2 - 4*a*c, 0] && !IntegerQ[p]
Time = 1.07 (sec) , antiderivative size = 97, normalized size of antiderivative = 0.69
method | result | size |
risch | \(\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (\frac {x A b}{a^{2}}+\frac {3 A b -B a}{2 a b}\right )}{\left (b x +a \right )^{3}}+\frac {\sqrt {\left (b x +a \right )^{2}}\, A \ln \left (-x \right )}{\left (b x +a \right ) a^{3}}-\frac {\sqrt {\left (b x +a \right )^{2}}\, A \ln \left (b x +a \right )}{\left (b x +a \right ) a^{3}}\) | \(97\) |
default | \(-\frac {\left (2 A \ln \left (b x +a \right ) b^{3} x^{2}-2 A \ln \left (x \right ) x^{2} b^{3}+4 A \ln \left (b x +a \right ) x a \,b^{2}-4 A \ln \left (x \right ) x a \,b^{2}+2 A \ln \left (b x +a \right ) a^{2} b -2 A \ln \left (x \right ) a^{2} b -2 A a \,b^{2} x -3 A \,a^{2} b +B \,a^{3}\right ) \left (b x +a \right )}{2 b \,a^{3} \left (\left (b x +a \right )^{2}\right )^{\frac {3}{2}}}\) | \(116\) |
Input:
int((B*x+A)/x/(b^2*x^2+2*a*b*x+a^2)^(3/2),x,method=_RETURNVERBOSE)
Output:
((b*x+a)^2)^(1/2)/(b*x+a)^3*(1/a^2*x*A*b+1/2*(3*A*b-B*a)/a/b)+((b*x+a)^2)^ (1/2)/(b*x+a)*A/a^3*ln(-x)-((b*x+a)^2)^(1/2)/(b*x+a)*A/a^3*ln(b*x+a)
Time = 0.08 (sec) , antiderivative size = 109, normalized size of antiderivative = 0.78 \[ \int \frac {A+B x}{x \left (a^2+2 a b x+b^2 x^2\right )^{3/2}} \, dx=\frac {2 \, A a b^{2} x - B a^{3} + 3 \, A a^{2} b - 2 \, {\left (A b^{3} x^{2} + 2 \, A a b^{2} x + A a^{2} b\right )} \log \left (b x + a\right ) + 2 \, {\left (A b^{3} x^{2} + 2 \, A a b^{2} x + A a^{2} b\right )} \log \left (x\right )}{2 \, {\left (a^{3} b^{3} x^{2} + 2 \, a^{4} b^{2} x + a^{5} b\right )}} \] Input:
integrate((B*x+A)/x/(b^2*x^2+2*a*b*x+a^2)^(3/2),x, algorithm="fricas")
Output:
1/2*(2*A*a*b^2*x - B*a^3 + 3*A*a^2*b - 2*(A*b^3*x^2 + 2*A*a*b^2*x + A*a^2* b)*log(b*x + a) + 2*(A*b^3*x^2 + 2*A*a*b^2*x + A*a^2*b)*log(x))/(a^3*b^3*x ^2 + 2*a^4*b^2*x + a^5*b)
\[ \int \frac {A+B x}{x \left (a^2+2 a b x+b^2 x^2\right )^{3/2}} \, dx=\int \frac {A + B x}{x \left (\left (a + b x\right )^{2}\right )^{\frac {3}{2}}}\, dx \] Input:
integrate((B*x+A)/x/(b**2*x**2+2*a*b*x+a**2)**(3/2),x)
Output:
Integral((A + B*x)/(x*((a + b*x)**2)**(3/2)), x)
Time = 0.03 (sec) , antiderivative size = 96, normalized size of antiderivative = 0.69 \[ \int \frac {A+B x}{x \left (a^2+2 a b x+b^2 x^2\right )^{3/2}} \, dx=-\frac {\left (-1\right )^{2 \, a b x + 2 \, a^{2}} A \log \left (\frac {2 \, a b x}{{\left | x \right |}} + \frac {2 \, a^{2}}{{\left | x \right |}}\right )}{a^{3}} + \frac {A}{\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} a^{2}} - \frac {B}{2 \, b^{3} {\left (x + \frac {a}{b}\right )}^{2}} + \frac {A}{2 \, a b^{2} {\left (x + \frac {a}{b}\right )}^{2}} \] Input:
integrate((B*x+A)/x/(b^2*x^2+2*a*b*x+a^2)^(3/2),x, algorithm="maxima")
Output:
-(-1)^(2*a*b*x + 2*a^2)*A*log(2*a*b*x/abs(x) + 2*a^2/abs(x))/a^3 + A/(sqrt (b^2*x^2 + 2*a*b*x + a^2)*a^2) - 1/2*B/(b^3*(x + a/b)^2) + 1/2*A/(a*b^2*(x + a/b)^2)
Time = 0.25 (sec) , antiderivative size = 83, normalized size of antiderivative = 0.59 \[ \int \frac {A+B x}{x \left (a^2+2 a b x+b^2 x^2\right )^{3/2}} \, dx=-\frac {A \log \left ({\left | b x + a \right |}\right )}{a^{3} \mathrm {sgn}\left (b x + a\right )} + \frac {A \log \left ({\left | x \right |}\right )}{a^{3} \mathrm {sgn}\left (b x + a\right )} + \frac {2 \, A a b^{2} x - B a^{3} + 3 \, A a^{2} b}{2 \, {\left (b x + a\right )}^{2} a^{3} b \mathrm {sgn}\left (b x + a\right )} \] Input:
integrate((B*x+A)/x/(b^2*x^2+2*a*b*x+a^2)^(3/2),x, algorithm="giac")
Output:
-A*log(abs(b*x + a))/(a^3*sgn(b*x + a)) + A*log(abs(x))/(a^3*sgn(b*x + a)) + 1/2*(2*A*a*b^2*x - B*a^3 + 3*A*a^2*b)/((b*x + a)^2*a^3*b*sgn(b*x + a))
Timed out. \[ \int \frac {A+B x}{x \left (a^2+2 a b x+b^2 x^2\right )^{3/2}} \, dx=\int \frac {A+B\,x}{x\,{\left (a^2+2\,a\,b\,x+b^2\,x^2\right )}^{3/2}} \,d x \] Input:
int((A + B*x)/(x*(a^2 + b^2*x^2 + 2*a*b*x)^(3/2)),x)
Output:
int((A + B*x)/(x*(a^2 + b^2*x^2 + 2*a*b*x)^(3/2)), x)
Time = 0.27 (sec) , antiderivative size = 44, normalized size of antiderivative = 0.31 \[ \int \frac {A+B x}{x \left (a^2+2 a b x+b^2 x^2\right )^{3/2}} \, dx=\frac {-\mathrm {log}\left (b x +a \right ) a -\mathrm {log}\left (b x +a \right ) b x +\mathrm {log}\left (x \right ) a +\mathrm {log}\left (x \right ) b x -b x}{a^{2} \left (b x +a \right )} \] Input:
int((B*x+A)/x/(b^2*x^2+2*a*b*x+a^2)^(3/2),x)
Output:
( - log(a + b*x)*a - log(a + b*x)*b*x + log(x)*a + log(x)*b*x - b*x)/(a**2 *(a + b*x))