Integrand size = 22, antiderivative size = 105 \[ \int \frac {x^4 \left (c+d x^2\right )^2}{a+b x^2} \, dx=-\frac {a (b c-a d)^2 x}{b^4}+\frac {(b c-a d)^2 x^3}{3 b^3}+\frac {d (2 b c-a d) x^5}{5 b^2}+\frac {d^2 x^7}{7 b}+\frac {a^{3/2} (b c-a d)^2 \arctan \left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{b^{9/2}} \] Output:
-a*(-a*d+b*c)^2*x/b^4+1/3*(-a*d+b*c)^2*x^3/b^3+1/5*d*(-a*d+2*b*c)*x^5/b^2+ 1/7*d^2*x^7/b+a^(3/2)*(-a*d+b*c)^2*arctan(b^(1/2)*x/a^(1/2))/b^(9/2)
Time = 0.06 (sec) , antiderivative size = 105, normalized size of antiderivative = 1.00 \[ \int \frac {x^4 \left (c+d x^2\right )^2}{a+b x^2} \, dx=-\frac {a (-b c+a d)^2 x}{b^4}+\frac {(b c-a d)^2 x^3}{3 b^3}+\frac {d (2 b c-a d) x^5}{5 b^2}+\frac {d^2 x^7}{7 b}+\frac {a^{3/2} (-b c+a d)^2 \arctan \left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{b^{9/2}} \] Input:
Integrate[(x^4*(c + d*x^2)^2)/(a + b*x^2),x]
Output:
-((a*(-(b*c) + a*d)^2*x)/b^4) + ((b*c - a*d)^2*x^3)/(3*b^3) + (d*(2*b*c - a*d)*x^5)/(5*b^2) + (d^2*x^7)/(7*b) + (a^(3/2)*(-(b*c) + a*d)^2*ArcTan[(Sq rt[b]*x)/Sqrt[a]])/b^(9/2)
Time = 0.25 (sec) , antiderivative size = 105, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {364, 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 {x^4 \left (c+d x^2\right )^2}{a+b x^2} \, dx\) |
\(\Big \downarrow \) 364 |
\(\displaystyle \int \left (\frac {a^4 d^2-2 a^3 b c d+a^2 b^2 c^2}{b^4 \left (a+b x^2\right )}-\frac {a (b c-a d)^2}{b^4}+\frac {x^2 (b c-a d)^2}{b^3}+\frac {d x^4 (2 b c-a d)}{b^2}+\frac {d^2 x^6}{b}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {a^{3/2} \arctan \left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) (b c-a d)^2}{b^{9/2}}-\frac {a x (b c-a d)^2}{b^4}+\frac {x^3 (b c-a d)^2}{3 b^3}+\frac {d x^5 (2 b c-a d)}{5 b^2}+\frac {d^2 x^7}{7 b}\) |
Input:
Int[(x^4*(c + d*x^2)^2)/(a + b*x^2),x]
Output:
-((a*(b*c - a*d)^2*x)/b^4) + ((b*c - a*d)^2*x^3)/(3*b^3) + (d*(2*b*c - a*d )*x^5)/(5*b^2) + (d^2*x^7)/(7*b) + (a^(3/2)*(b*c - a*d)^2*ArcTan[(Sqrt[b]* x)/Sqrt[a]])/b^(9/2)
Int[(((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_))/((c_) + (d_.)*(x_)^2), x_Symbol] :> Int[ExpandIntegrand[(e*x)^m*((a + b*x^2)^p/(c + d*x^2)), x], x ] /; FreeQ[{a, b, c, d, e, m}, x] && NeQ[b*c - a*d, 0] && IGtQ[p, 0] && (In tegerQ[m] || IGtQ[2*(m + 1), 0] || !RationalQ[m])
Time = 0.54 (sec) , antiderivative size = 142, normalized size of antiderivative = 1.35
method | result | size |
default | \(-\frac {-\frac {b^{3} d^{2} x^{7}}{7}+\frac {\left (\left (a d -b c \right ) d \,b^{2}-d \,b^{3} c \right ) x^{5}}{5}+\frac {\left (\left (a d -b c \right ) b^{2} c -d b \left (d \,a^{2}-a b c \right )\right ) x^{3}}{3}+\left (a d -b c \right ) \left (d \,a^{2}-a b c \right ) x}{b^{4}}+\frac {a^{2} \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right ) \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{b^{4} \sqrt {a b}}\) | \(142\) |
risch | \(\frac {d^{2} x^{7}}{7 b}-\frac {x^{5} a \,d^{2}}{5 b^{2}}+\frac {2 x^{5} d c}{5 b}-\frac {2 c \,x^{3} d a}{3 b^{2}}+\frac {x^{3} c^{2}}{3 b}+\frac {x^{3} a^{2} d^{2}}{3 b^{3}}-\frac {a^{3} d^{2} x}{b^{4}}+\frac {2 a^{2} c d x}{b^{3}}-\frac {a \,c^{2} x}{b^{2}}+\frac {\sqrt {-a b}\, a^{3} \ln \left (-\sqrt {-a b}\, x +a \right ) d^{2}}{2 b^{5}}-\frac {\sqrt {-a b}\, a^{2} \ln \left (-\sqrt {-a b}\, x +a \right ) c d}{b^{4}}+\frac {\sqrt {-a b}\, a \ln \left (-\sqrt {-a b}\, x +a \right ) c^{2}}{2 b^{3}}-\frac {\sqrt {-a b}\, a^{3} \ln \left (\sqrt {-a b}\, x +a \right ) d^{2}}{2 b^{5}}+\frac {\sqrt {-a b}\, a^{2} \ln \left (\sqrt {-a b}\, x +a \right ) c d}{b^{4}}-\frac {\sqrt {-a b}\, a \ln \left (\sqrt {-a b}\, x +a \right ) c^{2}}{2 b^{3}}\) | \(268\) |
Input:
int(x^4*(d*x^2+c)^2/(b*x^2+a),x,method=_RETURNVERBOSE)
Output:
-1/b^4*(-1/7*b^3*d^2*x^7+1/5*((a*d-b*c)*d*b^2-d*b^3*c)*x^5+1/3*((a*d-b*c)* b^2*c-d*b*(a^2*d-a*b*c))*x^3+(a*d-b*c)*(a^2*d-a*b*c)*x)+a^2*(a^2*d^2-2*a*b *c*d+b^2*c^2)/b^4/(a*b)^(1/2)*arctan(b*x/(a*b)^(1/2))
Time = 0.09 (sec) , antiderivative size = 304, normalized size of antiderivative = 2.90 \[ \int \frac {x^4 \left (c+d x^2\right )^2}{a+b x^2} \, dx=\left [\frac {30 \, b^{3} d^{2} x^{7} + 42 \, {\left (2 \, b^{3} c d - a b^{2} d^{2}\right )} x^{5} + 70 \, {\left (b^{3} c^{2} - 2 \, a b^{2} c d + a^{2} b d^{2}\right )} x^{3} + 105 \, {\left (a b^{2} c^{2} - 2 \, a^{2} b c d + a^{3} d^{2}\right )} \sqrt {-\frac {a}{b}} \log \left (\frac {b x^{2} + 2 \, b x \sqrt {-\frac {a}{b}} - a}{b x^{2} + a}\right ) - 210 \, {\left (a b^{2} c^{2} - 2 \, a^{2} b c d + a^{3} d^{2}\right )} x}{210 \, b^{4}}, \frac {15 \, b^{3} d^{2} x^{7} + 21 \, {\left (2 \, b^{3} c d - a b^{2} d^{2}\right )} x^{5} + 35 \, {\left (b^{3} c^{2} - 2 \, a b^{2} c d + a^{2} b d^{2}\right )} x^{3} + 105 \, {\left (a b^{2} c^{2} - 2 \, a^{2} b c d + a^{3} d^{2}\right )} \sqrt {\frac {a}{b}} \arctan \left (\frac {b x \sqrt {\frac {a}{b}}}{a}\right ) - 105 \, {\left (a b^{2} c^{2} - 2 \, a^{2} b c d + a^{3} d^{2}\right )} x}{105 \, b^{4}}\right ] \] Input:
integrate(x^4*(d*x^2+c)^2/(b*x^2+a),x, algorithm="fricas")
Output:
[1/210*(30*b^3*d^2*x^7 + 42*(2*b^3*c*d - a*b^2*d^2)*x^5 + 70*(b^3*c^2 - 2* a*b^2*c*d + a^2*b*d^2)*x^3 + 105*(a*b^2*c^2 - 2*a^2*b*c*d + a^3*d^2)*sqrt( -a/b)*log((b*x^2 + 2*b*x*sqrt(-a/b) - a)/(b*x^2 + a)) - 210*(a*b^2*c^2 - 2 *a^2*b*c*d + a^3*d^2)*x)/b^4, 1/105*(15*b^3*d^2*x^7 + 21*(2*b^3*c*d - a*b^ 2*d^2)*x^5 + 35*(b^3*c^2 - 2*a*b^2*c*d + a^2*b*d^2)*x^3 + 105*(a*b^2*c^2 - 2*a^2*b*c*d + a^3*d^2)*sqrt(a/b)*arctan(b*x*sqrt(a/b)/a) - 105*(a*b^2*c^2 - 2*a^2*b*c*d + a^3*d^2)*x)/b^4]
Leaf count of result is larger than twice the leaf count of optimal. 246 vs. \(2 (92) = 184\).
Time = 0.26 (sec) , antiderivative size = 246, normalized size of antiderivative = 2.34 \[ \int \frac {x^4 \left (c+d x^2\right )^2}{a+b x^2} \, dx=x^{5} \left (- \frac {a d^{2}}{5 b^{2}} + \frac {2 c d}{5 b}\right ) + x^{3} \left (\frac {a^{2} d^{2}}{3 b^{3}} - \frac {2 a c d}{3 b^{2}} + \frac {c^{2}}{3 b}\right ) + x \left (- \frac {a^{3} d^{2}}{b^{4}} + \frac {2 a^{2} c d}{b^{3}} - \frac {a c^{2}}{b^{2}}\right ) - \frac {\sqrt {- \frac {a^{3}}{b^{9}}} \left (a d - b c\right )^{2} \log {\left (- \frac {b^{4} \sqrt {- \frac {a^{3}}{b^{9}}} \left (a d - b c\right )^{2}}{a^{3} d^{2} - 2 a^{2} b c d + a b^{2} c^{2}} + x \right )}}{2} + \frac {\sqrt {- \frac {a^{3}}{b^{9}}} \left (a d - b c\right )^{2} \log {\left (\frac {b^{4} \sqrt {- \frac {a^{3}}{b^{9}}} \left (a d - b c\right )^{2}}{a^{3} d^{2} - 2 a^{2} b c d + a b^{2} c^{2}} + x \right )}}{2} + \frac {d^{2} x^{7}}{7 b} \] Input:
integrate(x**4*(d*x**2+c)**2/(b*x**2+a),x)
Output:
x**5*(-a*d**2/(5*b**2) + 2*c*d/(5*b)) + x**3*(a**2*d**2/(3*b**3) - 2*a*c*d /(3*b**2) + c**2/(3*b)) + x*(-a**3*d**2/b**4 + 2*a**2*c*d/b**3 - a*c**2/b* *2) - sqrt(-a**3/b**9)*(a*d - b*c)**2*log(-b**4*sqrt(-a**3/b**9)*(a*d - b* c)**2/(a**3*d**2 - 2*a**2*b*c*d + a*b**2*c**2) + x)/2 + sqrt(-a**3/b**9)*( a*d - b*c)**2*log(b**4*sqrt(-a**3/b**9)*(a*d - b*c)**2/(a**3*d**2 - 2*a**2 *b*c*d + a*b**2*c**2) + x)/2 + d**2*x**7/(7*b)
Time = 0.12 (sec) , antiderivative size = 140, normalized size of antiderivative = 1.33 \[ \int \frac {x^4 \left (c+d x^2\right )^2}{a+b x^2} \, dx=\frac {{\left (a^{2} b^{2} c^{2} - 2 \, a^{3} b c d + a^{4} d^{2}\right )} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b} b^{4}} + \frac {15 \, b^{3} d^{2} x^{7} + 21 \, {\left (2 \, b^{3} c d - a b^{2} d^{2}\right )} x^{5} + 35 \, {\left (b^{3} c^{2} - 2 \, a b^{2} c d + a^{2} b d^{2}\right )} x^{3} - 105 \, {\left (a b^{2} c^{2} - 2 \, a^{2} b c d + a^{3} d^{2}\right )} x}{105 \, b^{4}} \] Input:
integrate(x^4*(d*x^2+c)^2/(b*x^2+a),x, algorithm="maxima")
Output:
(a^2*b^2*c^2 - 2*a^3*b*c*d + a^4*d^2)*arctan(b*x/sqrt(a*b))/(sqrt(a*b)*b^4 ) + 1/105*(15*b^3*d^2*x^7 + 21*(2*b^3*c*d - a*b^2*d^2)*x^5 + 35*(b^3*c^2 - 2*a*b^2*c*d + a^2*b*d^2)*x^3 - 105*(a*b^2*c^2 - 2*a^2*b*c*d + a^3*d^2)*x) /b^4
Time = 0.13 (sec) , antiderivative size = 153, normalized size of antiderivative = 1.46 \[ \int \frac {x^4 \left (c+d x^2\right )^2}{a+b x^2} \, dx=\frac {{\left (a^{2} b^{2} c^{2} - 2 \, a^{3} b c d + a^{4} d^{2}\right )} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b} b^{4}} + \frac {15 \, b^{6} d^{2} x^{7} + 42 \, b^{6} c d x^{5} - 21 \, a b^{5} d^{2} x^{5} + 35 \, b^{6} c^{2} x^{3} - 70 \, a b^{5} c d x^{3} + 35 \, a^{2} b^{4} d^{2} x^{3} - 105 \, a b^{5} c^{2} x + 210 \, a^{2} b^{4} c d x - 105 \, a^{3} b^{3} d^{2} x}{105 \, b^{7}} \] Input:
integrate(x^4*(d*x^2+c)^2/(b*x^2+a),x, algorithm="giac")
Output:
(a^2*b^2*c^2 - 2*a^3*b*c*d + a^4*d^2)*arctan(b*x/sqrt(a*b))/(sqrt(a*b)*b^4 ) + 1/105*(15*b^6*d^2*x^7 + 42*b^6*c*d*x^5 - 21*a*b^5*d^2*x^5 + 35*b^6*c^2 *x^3 - 70*a*b^5*c*d*x^3 + 35*a^2*b^4*d^2*x^3 - 105*a*b^5*c^2*x + 210*a^2*b ^4*c*d*x - 105*a^3*b^3*d^2*x)/b^7
Time = 0.49 (sec) , antiderivative size = 169, normalized size of antiderivative = 1.61 \[ \int \frac {x^4 \left (c+d x^2\right )^2}{a+b x^2} \, dx=x^3\,\left (\frac {c^2}{3\,b}+\frac {a\,\left (\frac {a\,d^2}{b^2}-\frac {2\,c\,d}{b}\right )}{3\,b}\right )-x^5\,\left (\frac {a\,d^2}{5\,b^2}-\frac {2\,c\,d}{5\,b}\right )+\frac {d^2\,x^7}{7\,b}+\frac {a^{3/2}\,\mathrm {atan}\left (\frac {a^{3/2}\,\sqrt {b}\,x\,{\left (a\,d-b\,c\right )}^2}{a^4\,d^2-2\,a^3\,b\,c\,d+a^2\,b^2\,c^2}\right )\,{\left (a\,d-b\,c\right )}^2}{b^{9/2}}-\frac {a\,x\,\left (\frac {c^2}{b}+\frac {a\,\left (\frac {a\,d^2}{b^2}-\frac {2\,c\,d}{b}\right )}{b}\right )}{b} \] Input:
int((x^4*(c + d*x^2)^2)/(a + b*x^2),x)
Output:
x^3*(c^2/(3*b) + (a*((a*d^2)/b^2 - (2*c*d)/b))/(3*b)) - x^5*((a*d^2)/(5*b^ 2) - (2*c*d)/(5*b)) + (d^2*x^7)/(7*b) + (a^(3/2)*atan((a^(3/2)*b^(1/2)*x*( a*d - b*c)^2)/(a^4*d^2 + a^2*b^2*c^2 - 2*a^3*b*c*d))*(a*d - b*c)^2)/b^(9/2 ) - (a*x*(c^2/b + (a*((a*d^2)/b^2 - (2*c*d)/b))/b))/b
Time = 0.21 (sec) , antiderivative size = 179, normalized size of antiderivative = 1.70 \[ \int \frac {x^4 \left (c+d x^2\right )^2}{a+b x^2} \, dx=\frac {105 \sqrt {b}\, \sqrt {a}\, \mathit {atan} \left (\frac {b x}{\sqrt {b}\, \sqrt {a}}\right ) a^{3} d^{2}-210 \sqrt {b}\, \sqrt {a}\, \mathit {atan} \left (\frac {b x}{\sqrt {b}\, \sqrt {a}}\right ) a^{2} b c d +105 \sqrt {b}\, \sqrt {a}\, \mathit {atan} \left (\frac {b x}{\sqrt {b}\, \sqrt {a}}\right ) a \,b^{2} c^{2}-105 a^{3} b \,d^{2} x +210 a^{2} b^{2} c d x +35 a^{2} b^{2} d^{2} x^{3}-105 a \,b^{3} c^{2} x -70 a \,b^{3} c d \,x^{3}-21 a \,b^{3} d^{2} x^{5}+35 b^{4} c^{2} x^{3}+42 b^{4} c d \,x^{5}+15 b^{4} d^{2} x^{7}}{105 b^{5}} \] Input:
int(x^4*(d*x^2+c)^2/(b*x^2+a),x)
Output:
(105*sqrt(b)*sqrt(a)*atan((b*x)/(sqrt(b)*sqrt(a)))*a**3*d**2 - 210*sqrt(b) *sqrt(a)*atan((b*x)/(sqrt(b)*sqrt(a)))*a**2*b*c*d + 105*sqrt(b)*sqrt(a)*at an((b*x)/(sqrt(b)*sqrt(a)))*a*b**2*c**2 - 105*a**3*b*d**2*x + 210*a**2*b** 2*c*d*x + 35*a**2*b**2*d**2*x**3 - 105*a*b**3*c**2*x - 70*a*b**3*c*d*x**3 - 21*a*b**3*d**2*x**5 + 35*b**4*c**2*x**3 + 42*b**4*c*d*x**5 + 15*b**4*d** 2*x**7)/(105*b**5)