\(\int \frac {\sqrt {x} (A+B x^2)}{b x^2+c x^4} \, dx\) [123]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [A] (verified)
Fricas [C] (verification not implemented)
Sympy [A] (verification not implemented)
Maxima [A] (verification not implemented)
Giac [B] (verification not implemented)
Mupad [B] (verification not implemented)
Reduce [B] (verification not implemented)

Optimal result

Integrand size = 26, antiderivative size = 172 \[ \int \frac {\sqrt {x} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=-\frac {2 A}{b \sqrt {x}}-\frac {(b B-A c) \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}\right )}{\sqrt {2} b^{5/4} c^{3/4}}+\frac {(b B-A c) \arctan \left (1+\frac {\sqrt {2} \sqrt [4]{c} \sqrt {x}}{\sqrt [4]{b}}\right )}{\sqrt {2} b^{5/4} c^{3/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} b^{5/4} c^{3/4}} \] Output:

-2*A/b/x^(1/2)-1/2*(-A*c+B*b)*arctan(1-2^(1/2)*c^(1/4)*x^(1/2)/b^(1/4))*2^ 
(1/2)/b^(5/4)/c^(3/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^(5/4)/c^(3/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^(5/4)/c^(3/4)
 

Mathematica [A] (verified)

Time = 0.22 (sec) , antiderivative size = 135, normalized size of antiderivative = 0.78 \[ \int \frac {\sqrt {x} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=-\frac {2 A}{b \sqrt {x}}-\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} b^{5/4} c^{3/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} b^{5/4} c^{3/4}} \] Input:

Integrate[(Sqrt[x]*(A + B*x^2))/(b*x^2 + c*x^4),x]
 

Output:

(-2*A)/(b*Sqrt[x]) - ((b*B - A*c)*ArcTan[(Sqrt[b] - Sqrt[c]*x)/(Sqrt[2]*b^ 
(1/4)*c^(1/4)*Sqrt[x])])/(Sqrt[2]*b^(5/4)*c^(3/4)) - ((b*B - A*c)*ArcTanh[ 
(Sqrt[2]*b^(1/4)*c^(1/4)*Sqrt[x])/(Sqrt[b] + Sqrt[c]*x)])/(Sqrt[2]*b^(5/4) 
*c^(3/4))
 

Rubi [A] (verified)

Time = 0.72 (sec) , antiderivative size = 237, 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, 359, 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 {\sqrt {x} \left (A+B x^2\right )}{b x^2+c x^4} \, dx\)

\(\Big \downarrow \) 9

\(\displaystyle \int \frac {A+B x^2}{x^{3/2} \left (b+c x^2\right )}dx\)

\(\Big \downarrow \) 359

\(\displaystyle \frac {(b B-A c) \int \frac {\sqrt {x}}{c x^2+b}dx}{b}-\frac {2 A}{b \sqrt {x}}\)

\(\Big \downarrow \) 266

\(\displaystyle \frac {2 (b B-A c) \int \frac {x}{c x^2+b}d\sqrt {x}}{b}-\frac {2 A}{b \sqrt {x}}\)

\(\Big \downarrow \) 826

\(\displaystyle \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 )}{b}-\frac {2 A}{b \sqrt {x}}\)

\(\Big \downarrow \) 1476

\(\displaystyle \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 )}{b}-\frac {2 A}{b \sqrt {x}}\)

\(\Big \downarrow \) 1082

\(\displaystyle \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 )}{b}-\frac {2 A}{b \sqrt {x}}\)

\(\Big \downarrow \) 217

\(\displaystyle \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 )}{b}-\frac {2 A}{b \sqrt {x}}\)

\(\Big \downarrow \) 1479

\(\displaystyle \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 )}{b}-\frac {2 A}{b \sqrt {x}}\)

\(\Big \downarrow \) 25

\(\displaystyle \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 )}{b}-\frac {2 A}{b \sqrt {x}}\)

\(\Big \downarrow \) 27

\(\displaystyle \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 )}{b}-\frac {2 A}{b \sqrt {x}}\)

\(\Big \downarrow \) 1103

\(\displaystyle \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 )}{b}-\frac {2 A}{b \sqrt {x}}\)

Input:

Int[(Sqrt[x]*(A + B*x^2))/(b*x^2 + c*x^4),x]
 

Output:

(-2*A)/(b*Sqrt[x]) + (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)) + L 
og[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])))/b
 

Defintions of rubi rules used

rule 9
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]
 

rule 25
Int[-(Fx_), x_Symbol] :> Simp[Identity[-1]   Int[Fx, x], x]
 

rule 27
Int[(a_)*(Fx_), x_Symbol] :> Simp[a   Int[Fx, x], x] /; FreeQ[a, x] &&  !Ma 
tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
 

rule 217
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])
 

rule 266
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]
 

rule 359
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2), x 
_Symbol] :> Simp[c*(e*x)^(m + 1)*((a + b*x^2)^(p + 1)/(a*e*(m + 1))), x] + 
Simp[(a*d*(m + 1) - b*c*(m + 2*p + 3))/(a*e^2*(m + 1))   Int[(e*x)^(m + 2)* 
(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, p}, x] && NeQ[b*c - a*d, 0] 
&& LtQ[m, -1] &&  !ILtQ[p, -1]
 

rule 826
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]]))
 

rule 1082
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]
 

rule 1103
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]
 

rule 1476
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]
 

rule 1479
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]
 
Maple [A] (verified)

Time = 0.44 (sec) , antiderivative size = 127, normalized size of antiderivative = 0.74

method result size
derivativedivides \(-\frac {2 A}{b \sqrt {x}}-\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 b c \left (\frac {b}{c}\right )^{\frac {1}{4}}}\) \(127\)
default \(-\frac {2 A}{b \sqrt {x}}-\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 b c \left (\frac {b}{c}\right )^{\frac {1}{4}}}\) \(127\)
risch \(-\frac {2 A}{b \sqrt {x}}-\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 b c \left (\frac {b}{c}\right )^{\frac {1}{4}}}\) \(127\)

Input:

int(x^(1/2)*(B*x^2+A)/(c*x^4+b*x^2),x,method=_RETURNVERBOSE)
 

Output:

-2*A/b/x^(1/2)-1/4*(A*c-B*b)/b/c/(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))
 

Fricas [C] (verification not implemented)

Result contains complex when optimal does not.

Time = 0.11 (sec) , antiderivative size = 705, normalized size of antiderivative = 4.10 \[ \int \frac {\sqrt {x} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=-\frac {b x \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^{5} c^{3}}\right )^{\frac {1}{4}} \log \left (b^{4} c^{2} \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^{5} c^{3}}\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 ) - i \, b x \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^{5} c^{3}}\right )^{\frac {1}{4}} \log \left (i \, b^{4} c^{2} \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^{5} c^{3}}\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 ) + i \, b x \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^{5} c^{3}}\right )^{\frac {1}{4}} \log \left (-i \, b^{4} c^{2} \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^{5} c^{3}}\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 ) - b x \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^{5} c^{3}}\right )^{\frac {1}{4}} \log \left (-b^{4} c^{2} \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^{5} c^{3}}\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 ) + 4 \, A \sqrt {x}}{2 \, b x} \] Input:

integrate(x^(1/2)*(B*x^2+A)/(c*x^4+b*x^2),x, algorithm="fricas")
 

Output:

-1/2*(b*x*(-(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^5*c^3))^(1/4)*log(b^4*c^2*(-(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^5*c^3))^(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)) - I*b*x*(-(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^5*c^3))^(1/4)*log( 
I*b^4*c^2*(-(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^5*c^3))^(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)) + I*b*x*(-(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^5*c^3))^(1/4)*log(-I*b^4*c^2*(-(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^5*c^3))^(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)) - b*x*(-(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^5*c 
^3))^(1/4)*log(-b^4*c^2*(-(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^5*c^3))^(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)) + 4*A*sqrt(x))/(b*x)
 

Sympy [A] (verification not implemented)

Time = 5.24 (sec) , antiderivative size = 309, normalized size of antiderivative = 1.80 \[ \int \frac {\sqrt {x} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=\begin {cases} \tilde {\infty } \left (- \frac {2 A}{5 x^{\frac {5}{2}}} - \frac {2 B}{\sqrt {x}}\right ) & \text {for}\: b = 0 \wedge c = 0 \\\frac {- \frac {2 A}{5 x^{\frac {5}{2}}} - \frac {2 B}{\sqrt {x}}}{c} & \text {for}\: b = 0 \\\frac {- \frac {2 A}{\sqrt {x}} + \frac {2 B x^{\frac {3}{2}}}{3}}{b} & \text {for}\: c = 0 \\- \frac {2 A \operatorname {atan}{\left (\frac {\sqrt {x}}{\sqrt [4]{- \frac {b}{c}}} \right )}}{b \sqrt [4]{- \frac {b}{c}}} - \frac {2 A}{b \sqrt {x}} + \frac {A c \left (- \frac {b}{c}\right )^{\frac {3}{4}} \log {\left (\sqrt {x} - \sqrt [4]{- \frac {b}{c}} \right )}}{2 b^{2}} - \frac {A c \left (- \frac {b}{c}\right )^{\frac {3}{4}} \log {\left (\sqrt {x} + \sqrt [4]{- \frac {b}{c}} \right )}}{2 b^{2}} - \frac {A c \left (- \frac {b}{c}\right )^{\frac {3}{4}} \operatorname {atan}{\left (\frac {\sqrt {x}}{\sqrt [4]{- \frac {b}{c}}} \right )}}{b^{2}} + \frac {2 B \operatorname {atan}{\left (\frac {\sqrt {x}}{\sqrt [4]{- \frac {b}{c}}} \right )}}{c \sqrt [4]{- \frac {b}{c}}} - \frac {B \left (- \frac {b}{c}\right )^{\frac {3}{4}} \log {\left (\sqrt {x} - \sqrt [4]{- \frac {b}{c}} \right )}}{2 b} + \frac {B \left (- \frac {b}{c}\right )^{\frac {3}{4}} \log {\left (\sqrt {x} + \sqrt [4]{- \frac {b}{c}} \right )}}{2 b} + \frac {B \left (- \frac {b}{c}\right )^{\frac {3}{4}} \operatorname {atan}{\left (\frac {\sqrt {x}}{\sqrt [4]{- \frac {b}{c}}} \right )}}{b} & \text {otherwise} \end {cases} \] Input:

integrate(x**(1/2)*(B*x**2+A)/(c*x**4+b*x**2),x)
 

Output:

Piecewise((zoo*(-2*A/(5*x**(5/2)) - 2*B/sqrt(x)), Eq(b, 0) & Eq(c, 0)), (( 
-2*A/(5*x**(5/2)) - 2*B/sqrt(x))/c, Eq(b, 0)), ((-2*A/sqrt(x) + 2*B*x**(3/ 
2)/3)/b, Eq(c, 0)), (-2*A*atan(sqrt(x)/(-b/c)**(1/4))/(b*(-b/c)**(1/4)) - 
2*A/(b*sqrt(x)) + A*c*(-b/c)**(3/4)*log(sqrt(x) - (-b/c)**(1/4))/(2*b**2) 
- A*c*(-b/c)**(3/4)*log(sqrt(x) + (-b/c)**(1/4))/(2*b**2) - A*c*(-b/c)**(3 
/4)*atan(sqrt(x)/(-b/c)**(1/4))/b**2 + 2*B*atan(sqrt(x)/(-b/c)**(1/4))/(c* 
(-b/c)**(1/4)) - B*(-b/c)**(3/4)*log(sqrt(x) - (-b/c)**(1/4))/(2*b) + B*(- 
b/c)**(3/4)*log(sqrt(x) + (-b/c)**(1/4))/(2*b) + B*(-b/c)**(3/4)*atan(sqrt 
(x)/(-b/c)**(1/4))/b, True))
 

Maxima [A] (verification not implemented)

Time = 0.12 (sec) , antiderivative size = 194, normalized size of antiderivative = 1.13 \[ \int \frac {\sqrt {x} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=\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 \, b} - \frac {2 \, A}{b \sqrt {x}} \] Input:

integrate(x^(1/2)*(B*x^2+A)/(c*x^4+b*x^2),x, algorithm="maxima")
 

Output:

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)*sqrt(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(sq 
rt(2)*b^(1/4)*c^(1/4)*sqrt(x) + sqrt(c)*x + sqrt(b))/(b^(1/4)*c^(3/4)) + s 
qrt(2)*log(-sqrt(2)*b^(1/4)*c^(1/4)*sqrt(x) + sqrt(c)*x + sqrt(b))/(b^(1/4 
)*c^(3/4)))/b - 2*A/(b*sqrt(x))
 

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 251 vs. \(2 (125) = 250\).

Time = 0.20 (sec) , antiderivative size = 251, normalized size of antiderivative = 1.46 \[ \int \frac {\sqrt {x} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=-\frac {2 \, A}{b \sqrt {x}} + \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^{2} c^{3}} + \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^{2} c^{3}} - \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^{2} c^{3}} + \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^{2} c^{3}} \] Input:

integrate(x^(1/2)*(B*x^2+A)/(c*x^4+b*x^2),x, algorithm="giac")
 

Output:

-2*A/(b*sqrt(x)) + 1/2*sqrt(2)*((b*c^3)^(3/4)*B*b - (b*c^3)^(3/4)*A*c)*arc 
tan(1/2*sqrt(2)*(sqrt(2)*(b/c)^(1/4) + 2*sqrt(x))/(b/c)^(1/4))/(b^2*c^3) + 
 1/2*sqrt(2)*((b*c^3)^(3/4)*B*b - (b*c^3)^(3/4)*A*c)*arctan(-1/2*sqrt(2)*( 
sqrt(2)*(b/c)^(1/4) - 2*sqrt(x))/(b/c)^(1/4))/(b^2*c^3) - 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^2*c^3) + 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^2*c^3)
 

Mupad [B] (verification not implemented)

Time = 8.99 (sec) , antiderivative size = 71, normalized size of antiderivative = 0.41 \[ \int \frac {\sqrt {x} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=\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 )}^{5/4}\,c^{3/4}}-\frac {2\,A}{b\,\sqrt {x}}-\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 )}^{5/4}\,c^{3/4}} \] Input:

int((x^(1/2)*(A + B*x^2))/(b*x^2 + c*x^4),x)
 

Output:

(atan((c^(1/4)*x^(1/2))/(-b)^(1/4))*(A*c - B*b))/((-b)^(5/4)*c^(3/4)) - (2 
*A)/(b*x^(1/2)) - (atanh((c^(1/4)*x^(1/2))/(-b)^(1/4))*(A*c - B*b))/((-b)^ 
(5/4)*c^(3/4))
 

Reduce [B] (verification not implemented)

Time = 0.23 (sec) , antiderivative size = 306, normalized size of antiderivative = 1.78 \[ \int \frac {\sqrt {x} \left (A+B x^2\right )}{b x^2+c x^4} \, dx=\frac {2 \sqrt {x}\, 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 -2 \sqrt {x}\, 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 )-2 \sqrt {x}\, 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 +2 \sqrt {x}\, 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 )-\sqrt {x}\, 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 +\sqrt {x}\, 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 )+\sqrt {x}\, 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 -\sqrt {x}\, 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 a b c}{4 \sqrt {x}\, b^{2} c} \] Input:

int(x^(1/2)*(B*x^2+A)/(c*x^4+b*x^2),x)
 

Output:

(2*sqrt(x)*c**(1/4)*b**(3/4)*sqrt(2)*atan((c**(1/4)*b**(1/4)*sqrt(2) - 2*s 
qrt(x)*sqrt(c))/(c**(1/4)*b**(1/4)*sqrt(2)))*a*c - 2*sqrt(x)*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 - 2*sqrt(x)*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 + 2*sqrt(x)*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 - sqrt(x)*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 + sqrt(x)*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 + sqrt(x)*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 - sqrt( 
x)*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*a*b*c)/(4*sqrt(x)*b**2*c)