Integrand size = 26, antiderivative size = 173 \[ \int \frac {x^{5/2} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=\frac {2 B x^{3/2}}{3 c}+\frac {(b B-A c) \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}\right )}{\sqrt {2} \sqrt [4]{b} c^{7/4}}-\frac {(b B-A c) \arctan \left (1+\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}\right )}{\sqrt {2} \sqrt [4]{b} c^{7/4}}+\frac {(b B-A c) \text {arctanh}\left (\frac {\sqrt {2} \sqrt [4]{b} \sqrt [4]{c} \sqrt {x}}{\sqrt {b}+\sqrt {c} x}\right )}{\sqrt {2} \sqrt [4]{b} c^{7/4}} \] Output:
2/3*B*x^(3/2)/c+1/2*(-A*c+B*b)*arctan(1-2^(1/2)*c^(1/4)*x^(1/2)/b^(1/4))*2 ^(1/2)/b^(1/4)/c^(7/4)-1/2*(-A*c+B*b)*arctan(1+2^(1/2)*c^(1/4)*x^(1/2)/b^( 1/4))*2^(1/2)/b^(1/4)/c^(7/4)+1/2*(-A*c+B*b)*arctanh(2^(1/2)*b^(1/4)*c^(1/ 4)*x^(1/2)/(b^(1/2)+c^(1/2)*x))*2^(1/2)/b^(1/4)/c^(7/4)
Time = 0.18 (sec) , antiderivative size = 135, normalized size of antiderivative = 0.78 \[ \int \frac {x^{5/2} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=\frac {2 B x^{3/2}}{3 c}+\frac {(b B-A c) \arctan \left (\frac {\sqrt {b}-\sqrt {c} x}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c} \sqrt {x}}\right )}{\sqrt {2} \sqrt [4]{b} c^{7/4}}+\frac {(b B-A c) \text {arctanh}\left (\frac {\sqrt {2} \sqrt [4]{b} \sqrt [4]{c} \sqrt {x}}{\sqrt {b}+\sqrt {c} x}\right )}{\sqrt {2} \sqrt [4]{b} c^{7/4}} \] Input:
Integrate[(x^(5/2)*(A + B*x^2))/(b*x^2 + c*x^4),x]
Output:
(2*B*x^(3/2))/(3*c) + ((b*B - A*c)*ArcTan[(Sqrt[b] - Sqrt[c]*x)/(Sqrt[2]*b ^(1/4)*c^(1/4)*Sqrt[x])])/(Sqrt[2]*b^(1/4)*c^(7/4)) + ((b*B - A*c)*ArcTanh [(Sqrt[2]*b^(1/4)*c^(1/4)*Sqrt[x])/(Sqrt[b] + Sqrt[c]*x)])/(Sqrt[2]*b^(1/4 )*c^(7/4))
Time = 0.70 (sec) , antiderivative size = 239, normalized size of antiderivative = 1.38, number of steps used = 12, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.423, Rules used = {9, 363, 266, 826, 1476, 1082, 217, 1479, 25, 27, 1103}
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^{5/2} \left (A+B x^2\right )}{b x^2+c x^4} \, dx\) |
\(\Big \downarrow \) 9 |
\(\displaystyle \int \frac {\sqrt {x} \left (A+B x^2\right )}{b+c x^2}dx\) |
\(\Big \downarrow \) 363 |
\(\displaystyle \frac {2 B x^{3/2}}{3 c}-\frac {(b B-A c) \int \frac {\sqrt {x}}{c x^2+b}dx}{c}\) |
\(\Big \downarrow \) 266 |
\(\displaystyle \frac {2 B x^{3/2}}{3 c}-\frac {2 (b B-A c) \int \frac {x}{c x^2+b}d\sqrt {x}}{c}\) |
\(\Big \downarrow \) 826 |
\(\displaystyle \frac {2 B x^{3/2}}{3 c}-\frac {2 (b B-A c) \left (\frac {\int \frac {\sqrt {c} x+\sqrt {b}}{c x^2+b}d\sqrt {x}}{2 \sqrt {c}}-\frac {\int \frac {\sqrt {b}-\sqrt {c} x}{c x^2+b}d\sqrt {x}}{2 \sqrt {c}}\right )}{c}\) |
\(\Big \downarrow \) 1476 |
\(\displaystyle \frac {2 B x^{3/2}}{3 c}-\frac {2 (b B-A c) \left (\frac {\frac {\int \frac {1}{x-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{c}}+\frac {\sqrt {b}}{\sqrt {c}}}d\sqrt {x}}{2 \sqrt {c}}+\frac {\int \frac {1}{x+\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{c}}+\frac {\sqrt {b}}{\sqrt {c}}}d\sqrt {x}}{2 \sqrt {c}}}{2 \sqrt {c}}-\frac {\int \frac {\sqrt {b}-\sqrt {c} x}{c x^2+b}d\sqrt {x}}{2 \sqrt {c}}\right )}{c}\) |
\(\Big \downarrow \) 1082 |
\(\displaystyle \frac {2 B x^{3/2}}{3 c}-\frac {2 (b B-A c) \left (\frac {\frac {\int \frac {1}{-x-1}d\left (1-\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}\right )}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}-\frac {\int \frac {1}{-x-1}d\left (\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}+1\right )}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}}{2 \sqrt {c}}-\frac {\int \frac {\sqrt {b}-\sqrt {c} x}{c x^2+b}d\sqrt {x}}{2 \sqrt {c}}\right )}{c}\) |
\(\Big \downarrow \) 217 |
\(\displaystyle \frac {2 B x^{3/2}}{3 c}-\frac {2 (b B-A c) \left (\frac {\frac {\arctan \left (\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}+1\right )}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}-\frac {\arctan \left (1-\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}\right )}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}}{2 \sqrt {c}}-\frac {\int \frac {\sqrt {b}-\sqrt {c} x}{c x^2+b}d\sqrt {x}}{2 \sqrt {c}}\right )}{c}\) |
\(\Big \downarrow \) 1479 |
\(\displaystyle \frac {2 B x^{3/2}}{3 c}-\frac {2 (b B-A c) \left (\frac {\frac {\arctan \left (\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}+1\right )}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}-\frac {\arctan \left (1-\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}\right )}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}}{2 \sqrt {c}}-\frac {-\frac {\int -\frac {\sqrt {2} \sqrt [4]{b}-2 \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{c} \left (x-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{c}}+\frac {\sqrt {b}}{\sqrt {c}}\right )}d\sqrt {x}}{2 \sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}-\frac {\int -\frac {\sqrt {2} \left (\sqrt {2} \sqrt [4]{c} \sqrt {x}+\sqrt [4]{b}\right )}{\sqrt [4]{c} \left (x+\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{c}}+\frac {\sqrt {b}}{\sqrt {c}}\right )}d\sqrt {x}}{2 \sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}}{2 \sqrt {c}}\right )}{c}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {2 B x^{3/2}}{3 c}-\frac {2 (b B-A c) \left (\frac {\frac {\arctan \left (\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}+1\right )}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}-\frac {\arctan \left (1-\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}\right )}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}}{2 \sqrt {c}}-\frac {\frac {\int \frac {\sqrt {2} \sqrt [4]{b}-2 \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{c} \left (x-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{c}}+\frac {\sqrt {b}}{\sqrt {c}}\right )}d\sqrt {x}}{2 \sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}+\frac {\int \frac {\sqrt {2} \left (\sqrt {2} \sqrt [4]{c} \sqrt {x}+\sqrt [4]{b}\right )}{\sqrt [4]{c} \left (x+\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{c}}+\frac {\sqrt {b}}{\sqrt {c}}\right )}d\sqrt {x}}{2 \sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}}{2 \sqrt {c}}\right )}{c}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {2 B x^{3/2}}{3 c}-\frac {2 (b B-A c) \left (\frac {\frac {\arctan \left (\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}+1\right )}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}-\frac {\arctan \left (1-\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}\right )}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}}{2 \sqrt {c}}-\frac {\frac {\int \frac {\sqrt {2} \sqrt [4]{b}-2 \sqrt [4]{c} \sqrt {x}}{x-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{c}}+\frac {\sqrt {b}}{\sqrt {c}}}d\sqrt {x}}{2 \sqrt {2} \sqrt [4]{b} \sqrt {c}}+\frac {\int \frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}+\sqrt [4]{b}}{x+\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{c}}+\frac {\sqrt {b}}{\sqrt {c}}}d\sqrt {x}}{2 \sqrt [4]{b} \sqrt {c}}}{2 \sqrt {c}}\right )}{c}\) |
\(\Big \downarrow \) 1103 |
\(\displaystyle \frac {2 B x^{3/2}}{3 c}-\frac {2 (b B-A c) \left (\frac {\frac {\arctan \left (\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}+1\right )}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}-\frac {\arctan \left (1-\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}\right )}{\sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}}{2 \sqrt {c}}-\frac {\frac {\log \left (\sqrt {2} \sqrt [4]{b} \sqrt [4]{c} \sqrt {x}+\sqrt {b}+\sqrt {c} x\right )}{2 \sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}-\frac {\log \left (-\sqrt {2} \sqrt [4]{b} \sqrt [4]{c} \sqrt {x}+\sqrt {b}+\sqrt {c} x\right )}{2 \sqrt {2} \sqrt [4]{b} \sqrt [4]{c}}}{2 \sqrt {c}}\right )}{c}\) |
Input:
Int[(x^(5/2)*(A + B*x^2))/(b*x^2 + c*x^4),x]
Output:
(2*B*x^(3/2))/(3*c) - (2*(b*B - A*c)*((-(ArcTan[1 - (Sqrt[2]*c^(1/4)*Sqrt[ x])/b^(1/4)]/(Sqrt[2]*b^(1/4)*c^(1/4))) + ArcTan[1 + (Sqrt[2]*c^(1/4)*Sqrt [x])/b^(1/4)]/(Sqrt[2]*b^(1/4)*c^(1/4)))/(2*Sqrt[c]) - (-1/2*Log[Sqrt[b] - Sqrt[2]*b^(1/4)*c^(1/4)*Sqrt[x] + Sqrt[c]*x]/(Sqrt[2]*b^(1/4)*c^(1/4)) + Log[Sqrt[b] + Sqrt[2]*b^(1/4)*c^(1/4)*Sqrt[x] + Sqrt[c]*x]/(2*Sqrt[2]*b^(1 /4)*c^(1/4)))/(2*Sqrt[c])))/c
Int[(u_.)*(Px_)^(p_.)*((e_.)*(x_))^(m_.), x_Symbol] :> With[{r = Expon[Px, x, Min]}, Simp[1/e^(p*r) Int[u*(e*x)^(m + p*r)*ExpandToSum[Px/x^r, x]^p, x], x] /; IGtQ[r, 0]] /; FreeQ[{e, m}, x] && PolyQ[Px, x] && IntegerQ[p] && !MonomialQ[Px, x]
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_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[-b, 2])^( -1))*ArcTan[Rt[-b, 2]*(x/Rt[-a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] & & (LtQ[a, 0] || LtQ[b, 0])
Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> With[{k = De nominator[m]}, Simp[k/c Subst[Int[x^(k*(m + 1) - 1)*(a + b*(x^(2*k)/c^2)) ^p, x], x, (c*x)^(1/k)], x]] /; FreeQ[{a, b, c, p}, x] && FractionQ[m] && I ntBinomialQ[a, b, c, 2, m, p, x]
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2), x _Symbol] :> Simp[d*(e*x)^(m + 1)*((a + b*x^2)^(p + 1)/(b*e*(m + 2*p + 3))), x] - Simp[(a*d*(m + 1) - b*c*(m + 2*p + 3))/(b*(m + 2*p + 3)) Int[(e*x)^ m*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m, p}, x] && NeQ[b*c - a*d , 0] && NeQ[m + 2*p + 3, 0]
Int[(x_)^2/((a_) + (b_.)*(x_)^4), x_Symbol] :> With[{r = Numerator[Rt[a/b, 2]], s = Denominator[Rt[a/b, 2]]}, Simp[1/(2*s) Int[(r + s*x^2)/(a + b*x^ 4), x], x] - Simp[1/(2*s) Int[(r - s*x^2)/(a + b*x^4), x], x]] /; FreeQ[{ a, b}, x] && (GtQ[a/b, 0] || (PosQ[a/b] && AtomQ[SplitProduct[SumBaseQ, a]] && AtomQ[SplitProduct[SumBaseQ, b]]))
Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = 1 - 4*S implify[a*(c/b^2)]}, Simp[-2/b Subst[Int[1/(q - x^2), x], x, 1 + 2*c*(x/b )], x] /; RationalQ[q] && (EqQ[q^2, 1] || !RationalQ[b^2 - 4*a*c])] /; Fre eQ[{a, b, c}, x]
Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> S imp[d*(Log[RemoveContent[a + b*x + c*x^2, x]]/b), x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]
Int[((d_) + (e_.)*(x_)^2)/((a_) + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[ 2*(d/e), 2]}, Simp[e/(2*c) Int[1/Simp[d/e + q*x + x^2, x], x], x] + Simp[ e/(2*c) Int[1/Simp[d/e - q*x + x^2, x], x], x]] /; FreeQ[{a, c, d, e}, x] && EqQ[c*d^2 - a*e^2, 0] && PosQ[d*e]
Int[((d_) + (e_.)*(x_)^2)/((a_) + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[ -2*(d/e), 2]}, Simp[e/(2*c*q) Int[(q - 2*x)/Simp[d/e + q*x - x^2, x], x], x] + Simp[e/(2*c*q) Int[(q + 2*x)/Simp[d/e - q*x - x^2, x], x], x]] /; F reeQ[{a, c, d, e}, x] && EqQ[c*d^2 - a*e^2, 0] && NegQ[d*e]
Time = 0.45 (sec) , antiderivative size = 124, normalized size of antiderivative = 0.72
method | result | size |
derivativedivides | \(\frac {2 B \,x^{\frac {3}{2}}}{3 c}+\frac {\left (A c -B b \right ) \sqrt {2}\, \left (\ln \left (\frac {x -\left (\frac {b}{c}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {b}{c}}}{x +\left (\frac {b}{c}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {b}{c}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {b}{c}\right )^{\frac {1}{4}}}+1\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {b}{c}\right )^{\frac {1}{4}}}-1\right )\right )}{4 c^{2} \left (\frac {b}{c}\right )^{\frac {1}{4}}}\) | \(124\) |
default | \(\frac {2 B \,x^{\frac {3}{2}}}{3 c}+\frac {\left (A c -B b \right ) \sqrt {2}\, \left (\ln \left (\frac {x -\left (\frac {b}{c}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {b}{c}}}{x +\left (\frac {b}{c}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {b}{c}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {b}{c}\right )^{\frac {1}{4}}}+1\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {b}{c}\right )^{\frac {1}{4}}}-1\right )\right )}{4 c^{2} \left (\frac {b}{c}\right )^{\frac {1}{4}}}\) | \(124\) |
risch | \(\frac {2 B \,x^{\frac {3}{2}}}{3 c}+\frac {\left (A c -B b \right ) \sqrt {2}\, \left (\ln \left (\frac {x -\left (\frac {b}{c}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {b}{c}}}{x +\left (\frac {b}{c}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {b}{c}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {b}{c}\right )^{\frac {1}{4}}}+1\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {b}{c}\right )^{\frac {1}{4}}}-1\right )\right )}{4 c^{2} \left (\frac {b}{c}\right )^{\frac {1}{4}}}\) | \(124\) |
Input:
int(x^(5/2)*(B*x^2+A)/(c*x^4+b*x^2),x,method=_RETURNVERBOSE)
Output:
2/3*B*x^(3/2)/c+1/4*(A*c-B*b)/c^2/(b/c)^(1/4)*2^(1/2)*(ln((x-(b/c)^(1/4)*x ^(1/2)*2^(1/2)+(b/c)^(1/2))/(x+(b/c)^(1/4)*x^(1/2)*2^(1/2)+(b/c)^(1/2)))+2 *arctan(2^(1/2)/(b/c)^(1/4)*x^(1/2)+1)+2*arctan(2^(1/2)/(b/c)^(1/4)*x^(1/2 )-1))
Result contains complex when optimal does not.
Time = 0.10 (sec) , antiderivative size = 691, normalized size of antiderivative = 3.99 \[ \int \frac {x^{5/2} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=\frac {4 \, B x^{\frac {3}{2}} + 3 \, c \left (-\frac {B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b c^{7}}\right )^{\frac {1}{4}} \log \left (b c^{5} \left (-\frac {B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b c^{7}}\right )^{\frac {3}{4}} - {\left (B^{3} b^{3} - 3 \, A B^{2} b^{2} c + 3 \, A^{2} B b c^{2} - A^{3} c^{3}\right )} \sqrt {x}\right ) - 3 i \, c \left (-\frac {B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b c^{7}}\right )^{\frac {1}{4}} \log \left (i \, b c^{5} \left (-\frac {B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b c^{7}}\right )^{\frac {3}{4}} - {\left (B^{3} b^{3} - 3 \, A B^{2} b^{2} c + 3 \, A^{2} B b c^{2} - A^{3} c^{3}\right )} \sqrt {x}\right ) + 3 i \, c \left (-\frac {B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b c^{7}}\right )^{\frac {1}{4}} \log \left (-i \, b c^{5} \left (-\frac {B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b c^{7}}\right )^{\frac {3}{4}} - {\left (B^{3} b^{3} - 3 \, A B^{2} b^{2} c + 3 \, A^{2} B b c^{2} - A^{3} c^{3}\right )} \sqrt {x}\right ) - 3 \, c \left (-\frac {B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b c^{7}}\right )^{\frac {1}{4}} \log \left (-b c^{5} \left (-\frac {B^{4} b^{4} - 4 \, A B^{3} b^{3} c + 6 \, A^{2} B^{2} b^{2} c^{2} - 4 \, A^{3} B b c^{3} + A^{4} c^{4}}{b c^{7}}\right )^{\frac {3}{4}} - {\left (B^{3} b^{3} - 3 \, A B^{2} b^{2} c + 3 \, A^{2} B b c^{2} - A^{3} c^{3}\right )} \sqrt {x}\right )}{6 \, c} \] Input:
integrate(x^(5/2)*(B*x^2+A)/(c*x^4+b*x^2),x, algorithm="fricas")
Output:
1/6*(4*B*x^(3/2) + 3*c*(-(B^4*b^4 - 4*A*B^3*b^3*c + 6*A^2*B^2*b^2*c^2 - 4* A^3*B*b*c^3 + A^4*c^4)/(b*c^7))^(1/4)*log(b*c^5*(-(B^4*b^4 - 4*A*B^3*b^3*c + 6*A^2*B^2*b^2*c^2 - 4*A^3*B*b*c^3 + A^4*c^4)/(b*c^7))^(3/4) - (B^3*b^3 - 3*A*B^2*b^2*c + 3*A^2*B*b*c^2 - A^3*c^3)*sqrt(x)) - 3*I*c*(-(B^4*b^4 - 4 *A*B^3*b^3*c + 6*A^2*B^2*b^2*c^2 - 4*A^3*B*b*c^3 + A^4*c^4)/(b*c^7))^(1/4) *log(I*b*c^5*(-(B^4*b^4 - 4*A*B^3*b^3*c + 6*A^2*B^2*b^2*c^2 - 4*A^3*B*b*c^ 3 + A^4*c^4)/(b*c^7))^(3/4) - (B^3*b^3 - 3*A*B^2*b^2*c + 3*A^2*B*b*c^2 - A ^3*c^3)*sqrt(x)) + 3*I*c*(-(B^4*b^4 - 4*A*B^3*b^3*c + 6*A^2*B^2*b^2*c^2 - 4*A^3*B*b*c^3 + A^4*c^4)/(b*c^7))^(1/4)*log(-I*b*c^5*(-(B^4*b^4 - 4*A*B^3* b^3*c + 6*A^2*B^2*b^2*c^2 - 4*A^3*B*b*c^3 + A^4*c^4)/(b*c^7))^(3/4) - (B^3 *b^3 - 3*A*B^2*b^2*c + 3*A^2*B*b*c^2 - A^3*c^3)*sqrt(x)) - 3*c*(-(B^4*b^4 - 4*A*B^3*b^3*c + 6*A^2*B^2*b^2*c^2 - 4*A^3*B*b*c^3 + A^4*c^4)/(b*c^7))^(1 /4)*log(-b*c^5*(-(B^4*b^4 - 4*A*B^3*b^3*c + 6*A^2*B^2*b^2*c^2 - 4*A^3*B*b* c^3 + A^4*c^4)/(b*c^7))^(3/4) - (B^3*b^3 - 3*A*B^2*b^2*c + 3*A^2*B*b*c^2 - A^3*c^3)*sqrt(x)))/c
Time = 18.68 (sec) , antiderivative size = 303, normalized size of antiderivative = 1.75 \[ \int \frac {x^{5/2} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=\begin {cases} \tilde {\infty } \left (- \frac {2 A}{\sqrt {x}} + \frac {2 B x^{\frac {3}{2}}}{3}\right ) & \text {for}\: b = 0 \wedge c = 0 \\\frac {- \frac {2 A}{\sqrt {x}} + \frac {2 B x^{\frac {3}{2}}}{3}}{c} & \text {for}\: b = 0 \\\frac {\frac {2 A x^{\frac {3}{2}}}{3} + \frac {2 B x^{\frac {7}{2}}}{7}}{b} & \text {for}\: c = 0 \\\frac {2 A \operatorname {atan}{\left (\frac {\sqrt {x}}{\sqrt [4]{- \frac {b}{c}}} \right )}}{c \sqrt [4]{- \frac {b}{c}}} - \frac {A \left (- \frac {b}{c}\right )^{\frac {3}{4}} \log {\left (\sqrt {x} - \sqrt [4]{- \frac {b}{c}} \right )}}{2 b} + \frac {A \left (- \frac {b}{c}\right )^{\frac {3}{4}} \log {\left (\sqrt {x} + \sqrt [4]{- \frac {b}{c}} \right )}}{2 b} + \frac {A \left (- \frac {b}{c}\right )^{\frac {3}{4}} \operatorname {atan}{\left (\frac {\sqrt {x}}{\sqrt [4]{- \frac {b}{c}}} \right )}}{b} - \frac {2 B b \operatorname {atan}{\left (\frac {\sqrt {x}}{\sqrt [4]{- \frac {b}{c}}} \right )}}{c^{2} \sqrt [4]{- \frac {b}{c}}} + \frac {2 B x^{\frac {3}{2}}}{3 c} + \frac {B \left (- \frac {b}{c}\right )^{\frac {3}{4}} \log {\left (\sqrt {x} - \sqrt [4]{- \frac {b}{c}} \right )}}{2 c} - \frac {B \left (- \frac {b}{c}\right )^{\frac {3}{4}} \log {\left (\sqrt {x} + \sqrt [4]{- \frac {b}{c}} \right )}}{2 c} - \frac {B \left (- \frac {b}{c}\right )^{\frac {3}{4}} \operatorname {atan}{\left (\frac {\sqrt {x}}{\sqrt [4]{- \frac {b}{c}}} \right )}}{c} & \text {otherwise} \end {cases} \] Input:
integrate(x**(5/2)*(B*x**2+A)/(c*x**4+b*x**2),x)
Output:
Piecewise((zoo*(-2*A/sqrt(x) + 2*B*x**(3/2)/3), Eq(b, 0) & Eq(c, 0)), ((-2 *A/sqrt(x) + 2*B*x**(3/2)/3)/c, Eq(b, 0)), ((2*A*x**(3/2)/3 + 2*B*x**(7/2) /7)/b, Eq(c, 0)), (2*A*atan(sqrt(x)/(-b/c)**(1/4))/(c*(-b/c)**(1/4)) - A*( -b/c)**(3/4)*log(sqrt(x) - (-b/c)**(1/4))/(2*b) + A*(-b/c)**(3/4)*log(sqrt (x) + (-b/c)**(1/4))/(2*b) + A*(-b/c)**(3/4)*atan(sqrt(x)/(-b/c)**(1/4))/b - 2*B*b*atan(sqrt(x)/(-b/c)**(1/4))/(c**2*(-b/c)**(1/4)) + 2*B*x**(3/2)/( 3*c) + B*(-b/c)**(3/4)*log(sqrt(x) - (-b/c)**(1/4))/(2*c) - B*(-b/c)**(3/4 )*log(sqrt(x) + (-b/c)**(1/4))/(2*c) - B*(-b/c)**(3/4)*atan(sqrt(x)/(-b/c) **(1/4))/c, True))
Time = 0.12 (sec) , antiderivative size = 194, normalized size of antiderivative = 1.12 \[ \int \frac {x^{5/2} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=\frac {2 \, B x^{\frac {3}{2}}}{3 \, c} - \frac {{\left (B b - A c\right )} {\left (\frac {2 \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} b^{\frac {1}{4}} c^{\frac {1}{4}} + 2 \, \sqrt {c} \sqrt {x}\right )}}{2 \, \sqrt {\sqrt {b} \sqrt {c}}}\right )}{\sqrt {\sqrt {b} \sqrt {c}} \sqrt {c}} + \frac {2 \, \sqrt {2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} b^{\frac {1}{4}} c^{\frac {1}{4}} - 2 \, \sqrt {c} \sqrt {x}\right )}}{2 \, \sqrt {\sqrt {b} \sqrt {c}}}\right )}{\sqrt {\sqrt {b} \sqrt {c}} \sqrt {c}} - \frac {\sqrt {2} \log \left (\sqrt {2} b^{\frac {1}{4}} c^{\frac {1}{4}} \sqrt {x} + \sqrt {c} x + \sqrt {b}\right )}{b^{\frac {1}{4}} c^{\frac {3}{4}}} + \frac {\sqrt {2} \log \left (-\sqrt {2} b^{\frac {1}{4}} c^{\frac {1}{4}} \sqrt {x} + \sqrt {c} x + \sqrt {b}\right )}{b^{\frac {1}{4}} c^{\frac {3}{4}}}\right )}}{4 \, c} \] Input:
integrate(x^(5/2)*(B*x^2+A)/(c*x^4+b*x^2),x, algorithm="maxima")
Output:
2/3*B*x^(3/2)/c - 1/4*(B*b - A*c)*(2*sqrt(2)*arctan(1/2*sqrt(2)*(sqrt(2)*b ^(1/4)*c^(1/4) + 2*sqrt(c)*sqrt(x))/sqrt(sqrt(b)*sqrt(c)))/(sqrt(sqrt(b)*s qrt(c))*sqrt(c)) + 2*sqrt(2)*arctan(-1/2*sqrt(2)*(sqrt(2)*b^(1/4)*c^(1/4) - 2*sqrt(c)*sqrt(x))/sqrt(sqrt(b)*sqrt(c)))/(sqrt(sqrt(b)*sqrt(c))*sqrt(c) ) - sqrt(2)*log(sqrt(2)*b^(1/4)*c^(1/4)*sqrt(x) + sqrt(c)*x + sqrt(b))/(b^ (1/4)*c^(3/4)) + sqrt(2)*log(-sqrt(2)*b^(1/4)*c^(1/4)*sqrt(x) + sqrt(c)*x + sqrt(b))/(b^(1/4)*c^(3/4)))/c
Leaf count of result is larger than twice the leaf count of optimal. 251 vs. \(2 (125) = 250\).
Time = 0.22 (sec) , antiderivative size = 251, normalized size of antiderivative = 1.45 \[ \int \frac {x^{5/2} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=\frac {2 \, B x^{\frac {3}{2}}}{3 \, c} - \frac {\sqrt {2} {\left (\left (b c^{3}\right )^{\frac {3}{4}} B b - \left (b c^{3}\right )^{\frac {3}{4}} A c\right )} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \left (\frac {b}{c}\right )^{\frac {1}{4}} + 2 \, \sqrt {x}\right )}}{2 \, \left (\frac {b}{c}\right )^{\frac {1}{4}}}\right )}{2 \, b c^{4}} - \frac {\sqrt {2} {\left (\left (b c^{3}\right )^{\frac {3}{4}} B b - \left (b c^{3}\right )^{\frac {3}{4}} A c\right )} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \left (\frac {b}{c}\right )^{\frac {1}{4}} - 2 \, \sqrt {x}\right )}}{2 \, \left (\frac {b}{c}\right )^{\frac {1}{4}}}\right )}{2 \, b c^{4}} + \frac {\sqrt {2} {\left (\left (b c^{3}\right )^{\frac {3}{4}} B b - \left (b c^{3}\right )^{\frac {3}{4}} A c\right )} \log \left (\sqrt {2} \sqrt {x} \left (\frac {b}{c}\right )^{\frac {1}{4}} + x + \sqrt {\frac {b}{c}}\right )}{4 \, b c^{4}} - \frac {\sqrt {2} {\left (\left (b c^{3}\right )^{\frac {3}{4}} B b - \left (b c^{3}\right )^{\frac {3}{4}} A c\right )} \log \left (-\sqrt {2} \sqrt {x} \left (\frac {b}{c}\right )^{\frac {1}{4}} + x + \sqrt {\frac {b}{c}}\right )}{4 \, b c^{4}} \] Input:
integrate(x^(5/2)*(B*x^2+A)/(c*x^4+b*x^2),x, algorithm="giac")
Output:
2/3*B*x^(3/2)/c - 1/2*sqrt(2)*((b*c^3)^(3/4)*B*b - (b*c^3)^(3/4)*A*c)*arct an(1/2*sqrt(2)*(sqrt(2)*(b/c)^(1/4) + 2*sqrt(x))/(b/c)^(1/4))/(b*c^4) - 1/ 2*sqrt(2)*((b*c^3)^(3/4)*B*b - (b*c^3)^(3/4)*A*c)*arctan(-1/2*sqrt(2)*(sqr t(2)*(b/c)^(1/4) - 2*sqrt(x))/(b/c)^(1/4))/(b*c^4) + 1/4*sqrt(2)*((b*c^3)^ (3/4)*B*b - (b*c^3)^(3/4)*A*c)*log(sqrt(2)*sqrt(x)*(b/c)^(1/4) + x + sqrt( b/c))/(b*c^4) - 1/4*sqrt(2)*((b*c^3)^(3/4)*B*b - (b*c^3)^(3/4)*A*c)*log(-s qrt(2)*sqrt(x)*(b/c)^(1/4) + x + sqrt(b/c))/(b*c^4)
Time = 9.03 (sec) , antiderivative size = 71, normalized size of antiderivative = 0.41 \[ \int \frac {x^{5/2} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=\frac {2\,B\,x^{3/2}}{3\,c}+\frac {\mathrm {atan}\left (\frac {c^{1/4}\,\sqrt {x}}{{\left (-b\right )}^{1/4}}\right )\,\left (A\,c-B\,b\right )}{{\left (-b\right )}^{1/4}\,c^{7/4}}-\frac {\mathrm {atanh}\left (\frac {c^{1/4}\,\sqrt {x}}{{\left (-b\right )}^{1/4}}\right )\,\left (A\,c-B\,b\right )}{{\left (-b\right )}^{1/4}\,c^{7/4}} \] Input:
int((x^(5/2)*(A + B*x^2))/(b*x^2 + c*x^4),x)
Output:
(2*B*x^(3/2))/(3*c) + (atan((c^(1/4)*x^(1/2))/(-b)^(1/4))*(A*c - B*b))/((- b)^(1/4)*c^(7/4)) - (atanh((c^(1/4)*x^(1/2))/(-b)^(1/4))*(A*c - B*b))/((-b )^(1/4)*c^(7/4))
Time = 0.21 (sec) , antiderivative size = 292, normalized size of antiderivative = 1.69 \[ \int \frac {x^{5/2} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=\frac {-6 c^{\frac {5}{4}} b^{\frac {3}{4}} \sqrt {2}\, \mathit {atan} \left (\frac {c^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}-2 \sqrt {x}\, \sqrt {c}}{c^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}}\right ) a +6 c^{\frac {1}{4}} b^{\frac {11}{4}} \sqrt {2}\, \mathit {atan} \left (\frac {c^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}-2 \sqrt {x}\, \sqrt {c}}{c^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}}\right )+6 c^{\frac {5}{4}} b^{\frac {3}{4}} \sqrt {2}\, \mathit {atan} \left (\frac {c^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}+2 \sqrt {x}\, \sqrt {c}}{c^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}}\right ) a -6 c^{\frac {1}{4}} b^{\frac {11}{4}} \sqrt {2}\, \mathit {atan} \left (\frac {c^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}+2 \sqrt {x}\, \sqrt {c}}{c^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}}\right )+3 c^{\frac {5}{4}} b^{\frac {3}{4}} \sqrt {2}\, \mathrm {log}\left (-\sqrt {x}\, c^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}+\sqrt {b}+\sqrt {c}\, x \right ) a -3 c^{\frac {1}{4}} b^{\frac {11}{4}} \sqrt {2}\, \mathrm {log}\left (-\sqrt {x}\, c^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}+\sqrt {b}+\sqrt {c}\, x \right )-3 c^{\frac {5}{4}} b^{\frac {3}{4}} \sqrt {2}\, \mathrm {log}\left (\sqrt {x}\, c^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}+\sqrt {b}+\sqrt {c}\, x \right ) a +3 c^{\frac {1}{4}} b^{\frac {11}{4}} \sqrt {2}\, \mathrm {log}\left (\sqrt {x}\, c^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {2}+\sqrt {b}+\sqrt {c}\, x \right )+8 \sqrt {x}\, b^{2} c x}{12 b \,c^{2}} \] Input:
int(x^(5/2)*(B*x^2+A)/(c*x^4+b*x^2),x)
Output:
( - 6*c**(1/4)*b**(3/4)*sqrt(2)*atan((c**(1/4)*b**(1/4)*sqrt(2) - 2*sqrt(x )*sqrt(c))/(c**(1/4)*b**(1/4)*sqrt(2)))*a*c + 6*c**(1/4)*b**(3/4)*sqrt(2)* atan((c**(1/4)*b**(1/4)*sqrt(2) - 2*sqrt(x)*sqrt(c))/(c**(1/4)*b**(1/4)*sq rt(2)))*b**2 + 6*c**(1/4)*b**(3/4)*sqrt(2)*atan((c**(1/4)*b**(1/4)*sqrt(2) + 2*sqrt(x)*sqrt(c))/(c**(1/4)*b**(1/4)*sqrt(2)))*a*c - 6*c**(1/4)*b**(3/ 4)*sqrt(2)*atan((c**(1/4)*b**(1/4)*sqrt(2) + 2*sqrt(x)*sqrt(c))/(c**(1/4)* b**(1/4)*sqrt(2)))*b**2 + 3*c**(1/4)*b**(3/4)*sqrt(2)*log( - sqrt(x)*c**(1 /4)*b**(1/4)*sqrt(2) + sqrt(b) + sqrt(c)*x)*a*c - 3*c**(1/4)*b**(3/4)*sqrt (2)*log( - sqrt(x)*c**(1/4)*b**(1/4)*sqrt(2) + sqrt(b) + sqrt(c)*x)*b**2 - 3*c**(1/4)*b**(3/4)*sqrt(2)*log(sqrt(x)*c**(1/4)*b**(1/4)*sqrt(2) + sqrt( b) + sqrt(c)*x)*a*c + 3*c**(1/4)*b**(3/4)*sqrt(2)*log(sqrt(x)*c**(1/4)*b** (1/4)*sqrt(2) + sqrt(b) + sqrt(c)*x)*b**2 + 8*sqrt(x)*b**2*c*x)/(12*b*c**2 )