Integrand size = 22, antiderivative size = 88 \[ \int \frac {\left (c+d x^2\right )^3}{x \left (a+b x^2\right )^2} \, dx=\frac {d^3 x^2}{2 b^2}+\frac {(b c-a d)^3}{2 a b^3 \left (a+b x^2\right )}+\frac {c^3 \log (x)}{a^2}-\frac {(b c-a d)^2 (b c+2 a d) \log \left (a+b x^2\right )}{2 a^2 b^3} \] Output:
1/2*d^3*x^2/b^2+1/2*(-a*d+b*c)^3/a/b^3/(b*x^2+a)+c^3*ln(x)/a^2-1/2*(-a*d+b *c)^2*(2*a*d+b*c)*ln(b*x^2+a)/a^2/b^3
Time = 0.07 (sec) , antiderivative size = 111, normalized size of antiderivative = 1.26 \[ \int \frac {\left (c+d x^2\right )^3}{x \left (a+b x^2\right )^2} \, dx=\frac {2 c^3 \log (x)+\frac {\frac {a \left (b^3 c^3-a^3 d^3+a^2 b d^2 \left (3 c+d x^2\right )+a b^2 \left (-3 c^2 d+d^3 x^4\right )\right )}{a+b x^2}-(b c-a d)^2 (b c+2 a d) \log \left (a+b x^2\right )}{b^3}}{2 a^2} \] Input:
Integrate[(c + d*x^2)^3/(x*(a + b*x^2)^2),x]
Output:
(2*c^3*Log[x] + ((a*(b^3*c^3 - a^3*d^3 + a^2*b*d^2*(3*c + d*x^2) + a*b^2*( -3*c^2*d + d^3*x^4)))/(a + b*x^2) - (b*c - a*d)^2*(b*c + 2*a*d)*Log[a + b* x^2])/b^3)/(2*a^2)
Time = 0.26 (sec) , antiderivative size = 86, normalized size of antiderivative = 0.98, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {354, 99, 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 {\left (c+d x^2\right )^3}{x \left (a+b x^2\right )^2} \, dx\) |
\(\Big \downarrow \) 354 |
\(\displaystyle \frac {1}{2} \int \frac {\left (d x^2+c\right )^3}{x^2 \left (b x^2+a\right )^2}dx^2\) |
\(\Big \downarrow \) 99 |
\(\displaystyle \frac {1}{2} \int \left (\frac {c^3}{a^2 x^2}+\frac {d^3}{b^2}-\frac {(a d-b c)^2 (b c+2 a d)}{a^2 b^2 \left (b x^2+a\right )}+\frac {(a d-b c)^3}{a b^2 \left (b x^2+a\right )^2}\right )dx^2\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {1}{2} \left (-\frac {(b c-a d)^2 (2 a d+b c) \log \left (a+b x^2\right )}{a^2 b^3}+\frac {c^3 \log \left (x^2\right )}{a^2}+\frac {(b c-a d)^3}{a b^3 \left (a+b x^2\right )}+\frac {d^3 x^2}{b^2}\right )\) |
Input:
Int[(c + d*x^2)^3/(x*(a + b*x^2)^2),x]
Output:
((d^3*x^2)/b^2 + (b*c - a*d)^3/(a*b^3*(a + b*x^2)) + (c^3*Log[x^2])/a^2 - ((b*c - a*d)^2*(b*c + 2*a*d)*Log[a + b*x^2])/(a^2*b^3))/2
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_) )^(p_), x_] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, p}, x] && IntegersQ[m, n] && (IntegerQ[p] | | (GtQ[m, 0] && GeQ[n, -1]))
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2)^(q_.), x_S ymbol] :> Simp[1/2 Subst[Int[x^((m - 1)/2)*(a + b*x)^p*(c + d*x)^q, x], x , x^2], x] /; FreeQ[{a, b, c, d, p, q}, x] && NeQ[b*c - a*d, 0] && IntegerQ [(m - 1)/2]
Time = 0.45 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.07
method | result | size |
default | \(\frac {d^{3} x^{2}}{2 b^{2}}-\frac {\left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right ) \left (\frac {\left (a d -b c \right ) a}{b \left (b \,x^{2}+a \right )}+\frac {\left (2 a d +b c \right ) \ln \left (b \,x^{2}+a \right )}{b}\right )}{2 a^{2} b^{2}}+\frac {c^{3} \ln \left (x \right )}{a^{2}}\) | \(94\) |
norman | \(\frac {\frac {d^{3} x^{4}}{2 b}-\frac {2 a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}}{2 a \,b^{3}}}{b \,x^{2}+a}+\frac {c^{3} \ln \left (x \right )}{a^{2}}-\frac {\left (2 a^{3} d^{3}-3 a^{2} b c \,d^{2}+b^{3} c^{3}\right ) \ln \left (b \,x^{2}+a \right )}{2 a^{2} b^{3}}\) | \(120\) |
risch | \(\frac {d^{3} x^{2}}{2 b^{2}}-\frac {a^{2} d^{3}}{2 b^{3} \left (b \,x^{2}+a \right )}+\frac {3 a c \,d^{2}}{2 b^{2} \left (b \,x^{2}+a \right )}-\frac {3 c^{2} d}{2 b \left (b \,x^{2}+a \right )}+\frac {c^{3}}{2 a \left (b \,x^{2}+a \right )}+\frac {c^{3} \ln \left (x \right )}{a^{2}}-\frac {a \ln \left (b \,x^{2}+a \right ) d^{3}}{b^{3}}+\frac {3 \ln \left (b \,x^{2}+a \right ) c \,d^{2}}{2 b^{2}}-\frac {\ln \left (b \,x^{2}+a \right ) c^{3}}{2 a^{2}}\) | \(146\) |
parallelrisch | \(\frac {x^{4} a^{2} b^{2} d^{3}+2 \ln \left (x \right ) x^{2} b^{4} c^{3}-2 \ln \left (b \,x^{2}+a \right ) x^{2} a^{3} b \,d^{3}+3 \ln \left (b \,x^{2}+a \right ) x^{2} a^{2} b^{2} c \,d^{2}-\ln \left (b \,x^{2}+a \right ) x^{2} b^{4} c^{3}+2 a \,b^{3} c^{3} \ln \left (x \right )-2 \ln \left (b \,x^{2}+a \right ) a^{4} d^{3}+3 \ln \left (b \,x^{2}+a \right ) a^{3} b c \,d^{2}-\ln \left (b \,x^{2}+a \right ) a \,b^{3} c^{3}-2 a^{4} d^{3}+3 a^{3} b c \,d^{2}-3 a^{2} b^{2} c^{2} d +a \,b^{3} c^{3}}{2 a^{2} b^{3} \left (b \,x^{2}+a \right )}\) | \(207\) |
Input:
int((d*x^2+c)^3/x/(b*x^2+a)^2,x,method=_RETURNVERBOSE)
Output:
1/2*d^3*x^2/b^2-1/2/a^2/b^2*(a^2*d^2-2*a*b*c*d+b^2*c^2)*((a*d-b*c)*a/b/(b* x^2+a)+(2*a*d+b*c)/b*ln(b*x^2+a))+c^3*ln(x)/a^2
Leaf count of result is larger than twice the leaf count of optimal. 178 vs. \(2 (82) = 164\).
Time = 0.08 (sec) , antiderivative size = 178, normalized size of antiderivative = 2.02 \[ \int \frac {\left (c+d x^2\right )^3}{x \left (a+b x^2\right )^2} \, dx=\frac {a^{2} b^{2} d^{3} x^{4} + a^{3} b d^{3} x^{2} + a b^{3} c^{3} - 3 \, a^{2} b^{2} c^{2} d + 3 \, a^{3} b c d^{2} - a^{4} d^{3} - {\left (a b^{3} c^{3} - 3 \, a^{3} b c d^{2} + 2 \, a^{4} d^{3} + {\left (b^{4} c^{3} - 3 \, a^{2} b^{2} c d^{2} + 2 \, a^{3} b d^{3}\right )} x^{2}\right )} \log \left (b x^{2} + a\right ) + 2 \, {\left (b^{4} c^{3} x^{2} + a b^{3} c^{3}\right )} \log \left (x\right )}{2 \, {\left (a^{2} b^{4} x^{2} + a^{3} b^{3}\right )}} \] Input:
integrate((d*x^2+c)^3/x/(b*x^2+a)^2,x, algorithm="fricas")
Output:
1/2*(a^2*b^2*d^3*x^4 + a^3*b*d^3*x^2 + a*b^3*c^3 - 3*a^2*b^2*c^2*d + 3*a^3 *b*c*d^2 - a^4*d^3 - (a*b^3*c^3 - 3*a^3*b*c*d^2 + 2*a^4*d^3 + (b^4*c^3 - 3 *a^2*b^2*c*d^2 + 2*a^3*b*d^3)*x^2)*log(b*x^2 + a) + 2*(b^4*c^3*x^2 + a*b^3 *c^3)*log(x))/(a^2*b^4*x^2 + a^3*b^3)
Time = 1.19 (sec) , antiderivative size = 110, normalized size of antiderivative = 1.25 \[ \int \frac {\left (c+d x^2\right )^3}{x \left (a+b x^2\right )^2} \, dx=\frac {- a^{3} d^{3} + 3 a^{2} b c d^{2} - 3 a b^{2} c^{2} d + b^{3} c^{3}}{2 a^{2} b^{3} + 2 a b^{4} x^{2}} + \frac {d^{3} x^{2}}{2 b^{2}} + \frac {c^{3} \log {\left (x \right )}}{a^{2}} - \frac {\left (a d - b c\right )^{2} \cdot \left (2 a d + b c\right ) \log {\left (\frac {a}{b} + x^{2} \right )}}{2 a^{2} b^{3}} \] Input:
integrate((d*x**2+c)**3/x/(b*x**2+a)**2,x)
Output:
(-a**3*d**3 + 3*a**2*b*c*d**2 - 3*a*b**2*c**2*d + b**3*c**3)/(2*a**2*b**3 + 2*a*b**4*x**2) + d**3*x**2/(2*b**2) + c**3*log(x)/a**2 - (a*d - b*c)**2* (2*a*d + b*c)*log(a/b + x**2)/(2*a**2*b**3)
Time = 0.03 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.39 \[ \int \frac {\left (c+d x^2\right )^3}{x \left (a+b x^2\right )^2} \, dx=\frac {d^{3} x^{2}}{2 \, b^{2}} + \frac {c^{3} \log \left (x^{2}\right )}{2 \, a^{2}} + \frac {b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}}{2 \, {\left (a b^{4} x^{2} + a^{2} b^{3}\right )}} - \frac {{\left (b^{3} c^{3} - 3 \, a^{2} b c d^{2} + 2 \, a^{3} d^{3}\right )} \log \left (b x^{2} + a\right )}{2 \, a^{2} b^{3}} \] Input:
integrate((d*x^2+c)^3/x/(b*x^2+a)^2,x, algorithm="maxima")
Output:
1/2*d^3*x^2/b^2 + 1/2*c^3*log(x^2)/a^2 + 1/2*(b^3*c^3 - 3*a*b^2*c^2*d + 3* a^2*b*c*d^2 - a^3*d^3)/(a*b^4*x^2 + a^2*b^3) - 1/2*(b^3*c^3 - 3*a^2*b*c*d^ 2 + 2*a^3*d^3)*log(b*x^2 + a)/(a^2*b^3)
Time = 0.12 (sec) , antiderivative size = 150, normalized size of antiderivative = 1.70 \[ \int \frac {\left (c+d x^2\right )^3}{x \left (a+b x^2\right )^2} \, dx=\frac {d^{3} x^{2}}{2 \, b^{2}} + \frac {c^{3} \log \left (x^{2}\right )}{2 \, a^{2}} - \frac {{\left (b^{3} c^{3} - 3 \, a^{2} b c d^{2} + 2 \, a^{3} d^{3}\right )} \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, a^{2} b^{3}} + \frac {b^{4} c^{3} x^{2} - 3 \, a^{2} b^{2} c d^{2} x^{2} + 2 \, a^{3} b d^{3} x^{2} + 2 \, a b^{3} c^{3} - 3 \, a^{2} b^{2} c^{2} d + a^{4} d^{3}}{2 \, {\left (b x^{2} + a\right )} a^{2} b^{3}} \] Input:
integrate((d*x^2+c)^3/x/(b*x^2+a)^2,x, algorithm="giac")
Output:
1/2*d^3*x^2/b^2 + 1/2*c^3*log(x^2)/a^2 - 1/2*(b^3*c^3 - 3*a^2*b*c*d^2 + 2* a^3*d^3)*log(abs(b*x^2 + a))/(a^2*b^3) + 1/2*(b^4*c^3*x^2 - 3*a^2*b^2*c*d^ 2*x^2 + 2*a^3*b*d^3*x^2 + 2*a*b^3*c^3 - 3*a^2*b^2*c^2*d + a^4*d^3)/((b*x^2 + a)*a^2*b^3)
Time = 0.15 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.39 \[ \int \frac {\left (c+d x^2\right )^3}{x \left (a+b x^2\right )^2} \, dx=\frac {d^3\,x^2}{2\,b^2}+\frac {c^3\,\ln \left (x\right )}{a^2}-\frac {\ln \left (b\,x^2+a\right )\,\left (2\,a^3\,d^3-3\,a^2\,b\,c\,d^2+b^3\,c^3\right )}{2\,a^2\,b^3}-\frac {a^3\,d^3-3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-b^3\,c^3}{2\,a\,b\,\left (b^3\,x^2+a\,b^2\right )} \] Input:
int((c + d*x^2)^3/(x*(a + b*x^2)^2),x)
Output:
(d^3*x^2)/(2*b^2) + (c^3*log(x))/a^2 - (log(a + b*x^2)*(2*a^3*d^3 + b^3*c^ 3 - 3*a^2*b*c*d^2))/(2*a^2*b^3) - (a^3*d^3 - b^3*c^3 + 3*a*b^2*c^2*d - 3*a ^2*b*c*d^2)/(2*a*b*(a*b^2 + b^3*x^2))
Time = 0.21 (sec) , antiderivative size = 219, normalized size of antiderivative = 2.49 \[ \int \frac {\left (c+d x^2\right )^3}{x \left (a+b x^2\right )^2} \, dx=\frac {-2 \,\mathrm {log}\left (b \,x^{2}+a \right ) a^{4} d^{3}+3 \,\mathrm {log}\left (b \,x^{2}+a \right ) a^{3} b c \,d^{2}-2 \,\mathrm {log}\left (b \,x^{2}+a \right ) a^{3} b \,d^{3} x^{2}+3 \,\mathrm {log}\left (b \,x^{2}+a \right ) a^{2} b^{2} c \,d^{2} x^{2}-\mathrm {log}\left (b \,x^{2}+a \right ) a \,b^{3} c^{3}-\mathrm {log}\left (b \,x^{2}+a \right ) b^{4} c^{3} x^{2}+2 \,\mathrm {log}\left (x \right ) a \,b^{3} c^{3}+2 \,\mathrm {log}\left (x \right ) b^{4} c^{3} x^{2}+2 a^{3} b \,d^{3} x^{2}-3 a^{2} b^{2} c \,d^{2} x^{2}+a^{2} b^{2} d^{3} x^{4}+3 a \,b^{3} c^{2} d \,x^{2}-b^{4} c^{3} x^{2}}{2 a^{2} b^{3} \left (b \,x^{2}+a \right )} \] Input:
int((d*x^2+c)^3/x/(b*x^2+a)^2,x)
Output:
( - 2*log(a + b*x**2)*a**4*d**3 + 3*log(a + b*x**2)*a**3*b*c*d**2 - 2*log( a + b*x**2)*a**3*b*d**3*x**2 + 3*log(a + b*x**2)*a**2*b**2*c*d**2*x**2 - l og(a + b*x**2)*a*b**3*c**3 - log(a + b*x**2)*b**4*c**3*x**2 + 2*log(x)*a*b **3*c**3 + 2*log(x)*b**4*c**3*x**2 + 2*a**3*b*d**3*x**2 - 3*a**2*b**2*c*d* *2*x**2 + a**2*b**2*d**3*x**4 + 3*a*b**3*c**2*d*x**2 - b**4*c**3*x**2)/(2* a**2*b**3*(a + b*x**2))