Integrand size = 22, antiderivative size = 211 \[ \int \frac {A+B x^2}{x^{3/2} \left (a+b x^2\right )^2} \, dx=-\frac {2 A}{a^2 \sqrt {x}}-\frac {(A b-a B) x^{3/2}}{2 a^2 \left (a+b x^2\right )}+\frac {(5 A b-a B) \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{4 \sqrt {2} a^{9/4} b^{3/4}}-\frac {(5 A b-a B) \arctan \left (1+\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{4 \sqrt {2} a^{9/4} b^{3/4}}+\frac {(5 A b-a B) \text {arctanh}\left (\frac {\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}}{\sqrt {a}+\sqrt {b} x}\right )}{4 \sqrt {2} a^{9/4} b^{3/4}} \] Output:
-2*A/a^2/x^(1/2)-1/2*(A*b-B*a)*x^(3/2)/a^2/(b*x^2+a)+1/8*(5*A*b-B*a)*arcta n(1-2^(1/2)*b^(1/4)*x^(1/2)/a^(1/4))*2^(1/2)/a^(9/4)/b^(3/4)-1/8*(5*A*b-B* a)*arctan(1+2^(1/2)*b^(1/4)*x^(1/2)/a^(1/4))*2^(1/2)/a^(9/4)/b^(3/4)+1/8*( 5*A*b-B*a)*arctanh(2^(1/2)*a^(1/4)*b^(1/4)*x^(1/2)/(a^(1/2)+b^(1/2)*x))*2^ (1/2)/a^(9/4)/b^(3/4)
Time = 0.51 (sec) , antiderivative size = 162, normalized size of antiderivative = 0.77 \[ \int \frac {A+B x^2}{x^{3/2} \left (a+b x^2\right )^2} \, dx=\frac {\frac {4 \sqrt [4]{a} \left (-4 a A-5 A b x^2+a B x^2\right )}{\sqrt {x} \left (a+b x^2\right )}+\frac {\sqrt {2} (5 A b-a B) \arctan \left (\frac {\sqrt {a}-\sqrt {b} x}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}}\right )}{b^{3/4}}+\frac {\sqrt {2} (5 A b-a B) \text {arctanh}\left (\frac {\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}}{\sqrt {a}+\sqrt {b} x}\right )}{b^{3/4}}}{8 a^{9/4}} \] Input:
Integrate[(A + B*x^2)/(x^(3/2)*(a + b*x^2)^2),x]
Output:
((4*a^(1/4)*(-4*a*A - 5*A*b*x^2 + a*B*x^2))/(Sqrt[x]*(a + b*x^2)) + (Sqrt[ 2]*(5*A*b - a*B)*ArcTan[(Sqrt[a] - Sqrt[b]*x)/(Sqrt[2]*a^(1/4)*b^(1/4)*Sqr t[x])])/b^(3/4) + (Sqrt[2]*(5*A*b - a*B)*ArcTanh[(Sqrt[2]*a^(1/4)*b^(1/4)* Sqrt[x])/(Sqrt[a] + Sqrt[b]*x)])/b^(3/4))/(8*a^(9/4))
Time = 0.46 (sec) , antiderivative size = 281, normalized size of antiderivative = 1.33, number of steps used = 12, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {362, 264, 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 {A+B x^2}{x^{3/2} \left (a+b x^2\right )^2} \, dx\) |
\(\Big \downarrow \) 362 |
\(\displaystyle \frac {(5 A b-a B) \int \frac {1}{x^{3/2} \left (b x^2+a\right )}dx}{4 a b}+\frac {A b-a B}{2 a b \sqrt {x} \left (a+b x^2\right )}\) |
\(\Big \downarrow \) 264 |
\(\displaystyle \frac {(5 A b-a B) \left (-\frac {b \int \frac {\sqrt {x}}{b x^2+a}dx}{a}-\frac {2}{a \sqrt {x}}\right )}{4 a b}+\frac {A b-a B}{2 a b \sqrt {x} \left (a+b x^2\right )}\) |
\(\Big \downarrow \) 266 |
\(\displaystyle \frac {(5 A b-a B) \left (-\frac {2 b \int \frac {x}{b x^2+a}d\sqrt {x}}{a}-\frac {2}{a \sqrt {x}}\right )}{4 a b}+\frac {A b-a B}{2 a b \sqrt {x} \left (a+b x^2\right )}\) |
\(\Big \downarrow \) 826 |
\(\displaystyle \frac {(5 A b-a B) \left (-\frac {2 b \left (\frac {\int \frac {\sqrt {b} x+\sqrt {a}}{b x^2+a}d\sqrt {x}}{2 \sqrt {b}}-\frac {\int \frac {\sqrt {a}-\sqrt {b} x}{b x^2+a}d\sqrt {x}}{2 \sqrt {b}}\right )}{a}-\frac {2}{a \sqrt {x}}\right )}{4 a b}+\frac {A b-a B}{2 a b \sqrt {x} \left (a+b x^2\right )}\) |
\(\Big \downarrow \) 1476 |
\(\displaystyle \frac {(5 A b-a B) \left (-\frac {2 b \left (\frac {\frac {\int \frac {1}{x-\frac {\sqrt {2} \sqrt [4]{a} \sqrt {x}}{\sqrt [4]{b}}+\frac {\sqrt {a}}{\sqrt {b}}}d\sqrt {x}}{2 \sqrt {b}}+\frac {\int \frac {1}{x+\frac {\sqrt {2} \sqrt [4]{a} \sqrt {x}}{\sqrt [4]{b}}+\frac {\sqrt {a}}{\sqrt {b}}}d\sqrt {x}}{2 \sqrt {b}}}{2 \sqrt {b}}-\frac {\int \frac {\sqrt {a}-\sqrt {b} x}{b x^2+a}d\sqrt {x}}{2 \sqrt {b}}\right )}{a}-\frac {2}{a \sqrt {x}}\right )}{4 a b}+\frac {A b-a B}{2 a b \sqrt {x} \left (a+b x^2\right )}\) |
\(\Big \downarrow \) 1082 |
\(\displaystyle \frac {(5 A b-a B) \left (-\frac {2 b \left (\frac {\frac {\int \frac {1}{-x-1}d\left (1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}-\frac {\int \frac {1}{-x-1}d\left (\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}+1\right )}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}}{2 \sqrt {b}}-\frac {\int \frac {\sqrt {a}-\sqrt {b} x}{b x^2+a}d\sqrt {x}}{2 \sqrt {b}}\right )}{a}-\frac {2}{a \sqrt {x}}\right )}{4 a b}+\frac {A b-a B}{2 a b \sqrt {x} \left (a+b x^2\right )}\) |
\(\Big \downarrow \) 217 |
\(\displaystyle \frac {(5 A b-a B) \left (-\frac {2 b \left (\frac {\frac {\arctan \left (\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}+1\right )}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}-\frac {\arctan \left (1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}}{2 \sqrt {b}}-\frac {\int \frac {\sqrt {a}-\sqrt {b} x}{b x^2+a}d\sqrt {x}}{2 \sqrt {b}}\right )}{a}-\frac {2}{a \sqrt {x}}\right )}{4 a b}+\frac {A b-a B}{2 a b \sqrt {x} \left (a+b x^2\right )}\) |
\(\Big \downarrow \) 1479 |
\(\displaystyle \frac {(5 A b-a B) \left (-\frac {2 b \left (\frac {\frac {\arctan \left (\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}+1\right )}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}-\frac {\arctan \left (1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}}{2 \sqrt {b}}-\frac {-\frac {\int -\frac {\sqrt {2} \sqrt [4]{a}-2 \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{b} \left (x-\frac {\sqrt {2} \sqrt [4]{a} \sqrt {x}}{\sqrt [4]{b}}+\frac {\sqrt {a}}{\sqrt {b}}\right )}d\sqrt {x}}{2 \sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}-\frac {\int -\frac {\sqrt {2} \left (\sqrt {2} \sqrt [4]{b} \sqrt {x}+\sqrt [4]{a}\right )}{\sqrt [4]{b} \left (x+\frac {\sqrt {2} \sqrt [4]{a} \sqrt {x}}{\sqrt [4]{b}}+\frac {\sqrt {a}}{\sqrt {b}}\right )}d\sqrt {x}}{2 \sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}}{2 \sqrt {b}}\right )}{a}-\frac {2}{a \sqrt {x}}\right )}{4 a b}+\frac {A b-a B}{2 a b \sqrt {x} \left (a+b x^2\right )}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {(5 A b-a B) \left (-\frac {2 b \left (\frac {\frac {\arctan \left (\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}+1\right )}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}-\frac {\arctan \left (1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}}{2 \sqrt {b}}-\frac {\frac {\int \frac {\sqrt {2} \sqrt [4]{a}-2 \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{b} \left (x-\frac {\sqrt {2} \sqrt [4]{a} \sqrt {x}}{\sqrt [4]{b}}+\frac {\sqrt {a}}{\sqrt {b}}\right )}d\sqrt {x}}{2 \sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}+\frac {\int \frac {\sqrt {2} \left (\sqrt {2} \sqrt [4]{b} \sqrt {x}+\sqrt [4]{a}\right )}{\sqrt [4]{b} \left (x+\frac {\sqrt {2} \sqrt [4]{a} \sqrt {x}}{\sqrt [4]{b}}+\frac {\sqrt {a}}{\sqrt {b}}\right )}d\sqrt {x}}{2 \sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}}{2 \sqrt {b}}\right )}{a}-\frac {2}{a \sqrt {x}}\right )}{4 a b}+\frac {A b-a B}{2 a b \sqrt {x} \left (a+b x^2\right )}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {(5 A b-a B) \left (-\frac {2 b \left (\frac {\frac {\arctan \left (\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}+1\right )}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}-\frac {\arctan \left (1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}}{2 \sqrt {b}}-\frac {\frac {\int \frac {\sqrt {2} \sqrt [4]{a}-2 \sqrt [4]{b} \sqrt {x}}{x-\frac {\sqrt {2} \sqrt [4]{a} \sqrt {x}}{\sqrt [4]{b}}+\frac {\sqrt {a}}{\sqrt {b}}}d\sqrt {x}}{2 \sqrt {2} \sqrt [4]{a} \sqrt {b}}+\frac {\int \frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}+\sqrt [4]{a}}{x+\frac {\sqrt {2} \sqrt [4]{a} \sqrt {x}}{\sqrt [4]{b}}+\frac {\sqrt {a}}{\sqrt {b}}}d\sqrt {x}}{2 \sqrt [4]{a} \sqrt {b}}}{2 \sqrt {b}}\right )}{a}-\frac {2}{a \sqrt {x}}\right )}{4 a b}+\frac {A b-a B}{2 a b \sqrt {x} \left (a+b x^2\right )}\) |
\(\Big \downarrow \) 1103 |
\(\displaystyle \frac {(5 A b-a B) \left (-\frac {2 b \left (\frac {\frac {\arctan \left (\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}+1\right )}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}-\frac {\arctan \left (1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}}{2 \sqrt {b}}-\frac {\frac {\log \left (\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {a}+\sqrt {b} x\right )}{2 \sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}-\frac {\log \left (-\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {a}+\sqrt {b} x\right )}{2 \sqrt {2} \sqrt [4]{a} \sqrt [4]{b}}}{2 \sqrt {b}}\right )}{a}-\frac {2}{a \sqrt {x}}\right )}{4 a b}+\frac {A b-a B}{2 a b \sqrt {x} \left (a+b x^2\right )}\) |
Input:
Int[(A + B*x^2)/(x^(3/2)*(a + b*x^2)^2),x]
Output:
(A*b - a*B)/(2*a*b*Sqrt[x]*(a + b*x^2)) + ((5*A*b - a*B)*(-2/(a*Sqrt[x]) - (2*b*((-(ArcTan[1 - (Sqrt[2]*b^(1/4)*Sqrt[x])/a^(1/4)]/(Sqrt[2]*a^(1/4)*b ^(1/4))) + ArcTan[1 + (Sqrt[2]*b^(1/4)*Sqrt[x])/a^(1/4)]/(Sqrt[2]*a^(1/4)* b^(1/4)))/(2*Sqrt[b]) - (-1/2*Log[Sqrt[a] - Sqrt[2]*a^(1/4)*b^(1/4)*Sqrt[x ] + Sqrt[b]*x]/(Sqrt[2]*a^(1/4)*b^(1/4)) + Log[Sqrt[a] + Sqrt[2]*a^(1/4)*b ^(1/4)*Sqrt[x] + Sqrt[b]*x]/(2*Sqrt[2]*a^(1/4)*b^(1/4)))/(2*Sqrt[b])))/a)) /(4*a*b)
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] :> Simp[(c*x)^( m + 1)*((a + b*x^2)^(p + 1)/(a*c*(m + 1))), x] - Simp[b*((m + 2*p + 3)/(a*c ^2*(m + 1))) Int[(c*x)^(m + 2)*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, p }, x] && LtQ[m, -1] && IntBinomialQ[a, b, c, 2, m, p, x]
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[(-(b*c - a*d))*(e*x)^(m + 1)*((a + b*x^2)^(p + 1)/(2*a*b*e *(p + 1))), x] - Simp[(a*d*(m + 1) - b*c*(m + 2*p + 3))/(2*a*b*(p + 1)) I nt[(e*x)^m*(a + b*x^2)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e, m}, x] && N eQ[b*c - a*d, 0] && LtQ[p, -1] && (( !IntegerQ[p + 1/2] && NeQ[p, -5/4]) || !RationalQ[m] || (ILtQ[p + 1/2, 0] && LeQ[-1, m, -2*(p + 1)]))
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.41 (sec) , antiderivative size = 153, normalized size of antiderivative = 0.73
method | result | size |
derivativedivides | \(-\frac {2 \left (\frac {\left (\frac {A b}{4}-\frac {B a}{4}\right ) x^{\frac {3}{2}}}{b \,x^{2}+a}+\frac {\left (\frac {5 A b}{4}-\frac {B a}{4}\right ) \sqrt {2}\, \left (\ln \left (\frac {x -\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {a}{b}}}{x +\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {a}{b}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}+1\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}-1\right )\right )}{8 b \left (\frac {a}{b}\right )^{\frac {1}{4}}}\right )}{a^{2}}-\frac {2 A}{a^{2} \sqrt {x}}\) | \(153\) |
default | \(-\frac {2 \left (\frac {\left (\frac {A b}{4}-\frac {B a}{4}\right ) x^{\frac {3}{2}}}{b \,x^{2}+a}+\frac {\left (\frac {5 A b}{4}-\frac {B a}{4}\right ) \sqrt {2}\, \left (\ln \left (\frac {x -\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {a}{b}}}{x +\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {a}{b}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}+1\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}-1\right )\right )}{8 b \left (\frac {a}{b}\right )^{\frac {1}{4}}}\right )}{a^{2}}-\frac {2 A}{a^{2} \sqrt {x}}\) | \(153\) |
risch | \(-\frac {2 A}{a^{2} \sqrt {x}}-\frac {\frac {2 \left (\frac {A b}{4}-\frac {B a}{4}\right ) x^{\frac {3}{2}}}{b \,x^{2}+a}+\frac {\left (\frac {5 A b}{4}-\frac {B a}{4}\right ) \sqrt {2}\, \left (\ln \left (\frac {x -\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {a}{b}}}{x +\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {a}{b}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}+1\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}-1\right )\right )}{4 b \left (\frac {a}{b}\right )^{\frac {1}{4}}}}{a^{2}}\) | \(154\) |
Input:
int((B*x^2+A)/x^(3/2)/(b*x^2+a)^2,x,method=_RETURNVERBOSE)
Output:
-2/a^2*((1/4*A*b-1/4*B*a)*x^(3/2)/(b*x^2+a)+1/8*(5/4*A*b-1/4*B*a)/b/(a/b)^ (1/4)*2^(1/2)*(ln((x-(a/b)^(1/4)*x^(1/2)*2^(1/2)+(a/b)^(1/2))/(x+(a/b)^(1/ 4)*x^(1/2)*2^(1/2)+(a/b)^(1/2)))+2*arctan(2^(1/2)/(a/b)^(1/4)*x^(1/2)+1)+2 *arctan(2^(1/2)/(a/b)^(1/4)*x^(1/2)-1)))-2*A/a^2/x^(1/2)
Result contains complex when optimal does not.
Time = 0.11 (sec) , antiderivative size = 789, normalized size of antiderivative = 3.74 \[ \int \frac {A+B x^2}{x^{3/2} \left (a+b x^2\right )^2} \, dx =\text {Too large to display} \] Input:
integrate((B*x^2+A)/x^(3/2)/(b*x^2+a)^2,x, algorithm="fricas")
Output:
-1/8*((a^2*b*x^3 + a^3*x)*(-(B^4*a^4 - 20*A*B^3*a^3*b + 150*A^2*B^2*a^2*b^ 2 - 500*A^3*B*a*b^3 + 625*A^4*b^4)/(a^9*b^3))^(1/4)*log(a^7*b^2*(-(B^4*a^4 - 20*A*B^3*a^3*b + 150*A^2*B^2*a^2*b^2 - 500*A^3*B*a*b^3 + 625*A^4*b^4)/( a^9*b^3))^(3/4) - (B^3*a^3 - 15*A*B^2*a^2*b + 75*A^2*B*a*b^2 - 125*A^3*b^3 )*sqrt(x)) + (-I*a^2*b*x^3 - I*a^3*x)*(-(B^4*a^4 - 20*A*B^3*a^3*b + 150*A^ 2*B^2*a^2*b^2 - 500*A^3*B*a*b^3 + 625*A^4*b^4)/(a^9*b^3))^(1/4)*log(I*a^7* b^2*(-(B^4*a^4 - 20*A*B^3*a^3*b + 150*A^2*B^2*a^2*b^2 - 500*A^3*B*a*b^3 + 625*A^4*b^4)/(a^9*b^3))^(3/4) - (B^3*a^3 - 15*A*B^2*a^2*b + 75*A^2*B*a*b^2 - 125*A^3*b^3)*sqrt(x)) + (I*a^2*b*x^3 + I*a^3*x)*(-(B^4*a^4 - 20*A*B^3*a ^3*b + 150*A^2*B^2*a^2*b^2 - 500*A^3*B*a*b^3 + 625*A^4*b^4)/(a^9*b^3))^(1/ 4)*log(-I*a^7*b^2*(-(B^4*a^4 - 20*A*B^3*a^3*b + 150*A^2*B^2*a^2*b^2 - 500* A^3*B*a*b^3 + 625*A^4*b^4)/(a^9*b^3))^(3/4) - (B^3*a^3 - 15*A*B^2*a^2*b + 75*A^2*B*a*b^2 - 125*A^3*b^3)*sqrt(x)) - (a^2*b*x^3 + a^3*x)*(-(B^4*a^4 - 20*A*B^3*a^3*b + 150*A^2*B^2*a^2*b^2 - 500*A^3*B*a*b^3 + 625*A^4*b^4)/(a^9 *b^3))^(1/4)*log(-a^7*b^2*(-(B^4*a^4 - 20*A*B^3*a^3*b + 150*A^2*B^2*a^2*b^ 2 - 500*A^3*B*a*b^3 + 625*A^4*b^4)/(a^9*b^3))^(3/4) - (B^3*a^3 - 15*A*B^2* a^2*b + 75*A^2*B*a*b^2 - 125*A^3*b^3)*sqrt(x)) - 4*((B*a - 5*A*b)*x^2 - 4* A*a)*sqrt(x))/(a^2*b*x^3 + a^3*x)
Leaf count of result is larger than twice the leaf count of optimal. 513 vs. \(2 (199) = 398\).
Time = 129.14 (sec) , antiderivative size = 916, normalized size of antiderivative = 4.34 \[ \int \frac {A+B x^2}{x^{3/2} \left (a+b x^2\right )^2} \, dx =\text {Too large to display} \] Input:
integrate((B*x**2+A)/x**(3/2)/(b*x**2+a)**2,x)
Output:
A*Piecewise((zoo/x**(9/2), Eq(a, 0) & Eq(b, 0)), (-2/(a**2*sqrt(x)), Eq(b, 0)), (-2/(9*b**2*x**(9/2)), Eq(a, 0)), (-5*a*sqrt(x)*log(sqrt(x) - (-a/b) **(1/4))/(8*a**3*sqrt(x)*(-a/b)**(1/4) + 8*a**2*b*x**(5/2)*(-a/b)**(1/4)) + 5*a*sqrt(x)*log(sqrt(x) + (-a/b)**(1/4))/(8*a**3*sqrt(x)*(-a/b)**(1/4) + 8*a**2*b*x**(5/2)*(-a/b)**(1/4)) - 10*a*sqrt(x)*atan(sqrt(x)/(-a/b)**(1/4 ))/(8*a**3*sqrt(x)*(-a/b)**(1/4) + 8*a**2*b*x**(5/2)*(-a/b)**(1/4)) - 16*a *(-a/b)**(1/4)/(8*a**3*sqrt(x)*(-a/b)**(1/4) + 8*a**2*b*x**(5/2)*(-a/b)**( 1/4)) - 5*b*x**(5/2)*log(sqrt(x) - (-a/b)**(1/4))/(8*a**3*sqrt(x)*(-a/b)** (1/4) + 8*a**2*b*x**(5/2)*(-a/b)**(1/4)) + 5*b*x**(5/2)*log(sqrt(x) + (-a/ b)**(1/4))/(8*a**3*sqrt(x)*(-a/b)**(1/4) + 8*a**2*b*x**(5/2)*(-a/b)**(1/4) ) - 10*b*x**(5/2)*atan(sqrt(x)/(-a/b)**(1/4))/(8*a**3*sqrt(x)*(-a/b)**(1/4 ) + 8*a**2*b*x**(5/2)*(-a/b)**(1/4)) - 20*b*x**2*(-a/b)**(1/4)/(8*a**3*sqr t(x)*(-a/b)**(1/4) + 8*a**2*b*x**(5/2)*(-a/b)**(1/4)), True)) + B*Piecewis e((zoo/x**(5/2), Eq(a, 0) & Eq(b, 0)), (2*x**(3/2)/(3*a**2), Eq(b, 0)), (- 2/(5*b**2*x**(5/2)), Eq(a, 0)), (a*log(sqrt(x) - (-a/b)**(1/4))/(8*a**2*b* (-a/b)**(1/4) + 8*a*b**2*x**2*(-a/b)**(1/4)) - a*log(sqrt(x) + (-a/b)**(1/ 4))/(8*a**2*b*(-a/b)**(1/4) + 8*a*b**2*x**2*(-a/b)**(1/4)) + 2*a*atan(sqrt (x)/(-a/b)**(1/4))/(8*a**2*b*(-a/b)**(1/4) + 8*a*b**2*x**2*(-a/b)**(1/4)) + 4*b*x**(3/2)*(-a/b)**(1/4)/(8*a**2*b*(-a/b)**(1/4) + 8*a*b**2*x**2*(-a/b )**(1/4)) + b*x**2*log(sqrt(x) - (-a/b)**(1/4))/(8*a**2*b*(-a/b)**(1/4)...
Time = 0.15 (sec) , antiderivative size = 222, normalized size of antiderivative = 1.05 \[ \int \frac {A+B x^2}{x^{3/2} \left (a+b x^2\right )^2} \, dx=\frac {{\left (B a - 5 \, A b\right )} x^{2} - 4 \, A a}{2 \, {\left (a^{2} b x^{\frac {5}{2}} + a^{3} \sqrt {x}\right )}} + \frac {{\left (B a - 5 \, A b\right )} {\left (\frac {2 \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} a^{\frac {1}{4}} b^{\frac {1}{4}} + 2 \, \sqrt {b} \sqrt {x}\right )}}{2 \, \sqrt {\sqrt {a} \sqrt {b}}}\right )}{\sqrt {\sqrt {a} \sqrt {b}} \sqrt {b}} + \frac {2 \, \sqrt {2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} a^{\frac {1}{4}} b^{\frac {1}{4}} - 2 \, \sqrt {b} \sqrt {x}\right )}}{2 \, \sqrt {\sqrt {a} \sqrt {b}}}\right )}{\sqrt {\sqrt {a} \sqrt {b}} \sqrt {b}} - \frac {\sqrt {2} \log \left (\sqrt {2} a^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {x} + \sqrt {b} x + \sqrt {a}\right )}{a^{\frac {1}{4}} b^{\frac {3}{4}}} + \frac {\sqrt {2} \log \left (-\sqrt {2} a^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {x} + \sqrt {b} x + \sqrt {a}\right )}{a^{\frac {1}{4}} b^{\frac {3}{4}}}\right )}}{16 \, a^{2}} \] Input:
integrate((B*x^2+A)/x^(3/2)/(b*x^2+a)^2,x, algorithm="maxima")
Output:
1/2*((B*a - 5*A*b)*x^2 - 4*A*a)/(a^2*b*x^(5/2) + a^3*sqrt(x)) + 1/16*(B*a - 5*A*b)*(2*sqrt(2)*arctan(1/2*sqrt(2)*(sqrt(2)*a^(1/4)*b^(1/4) + 2*sqrt(b )*sqrt(x))/sqrt(sqrt(a)*sqrt(b)))/(sqrt(sqrt(a)*sqrt(b))*sqrt(b)) + 2*sqrt (2)*arctan(-1/2*sqrt(2)*(sqrt(2)*a^(1/4)*b^(1/4) - 2*sqrt(b)*sqrt(x))/sqrt (sqrt(a)*sqrt(b)))/(sqrt(sqrt(a)*sqrt(b))*sqrt(b)) - sqrt(2)*log(sqrt(2)*a ^(1/4)*b^(1/4)*sqrt(x) + sqrt(b)*x + sqrt(a))/(a^(1/4)*b^(3/4)) + sqrt(2)* log(-sqrt(2)*a^(1/4)*b^(1/4)*sqrt(x) + sqrt(b)*x + sqrt(a))/(a^(1/4)*b^(3/ 4)))/a^2
Time = 0.14 (sec) , antiderivative size = 278, normalized size of antiderivative = 1.32 \[ \int \frac {A+B x^2}{x^{3/2} \left (a+b x^2\right )^2} \, dx=\frac {B a x^{2} - 5 \, A b x^{2} - 4 \, A a}{2 \, {\left (b x^{\frac {5}{2}} + a \sqrt {x}\right )} a^{2}} + \frac {\sqrt {2} {\left (\left (a b^{3}\right )^{\frac {3}{4}} B a - 5 \, \left (a b^{3}\right )^{\frac {3}{4}} A b\right )} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \left (\frac {a}{b}\right )^{\frac {1}{4}} + 2 \, \sqrt {x}\right )}}{2 \, \left (\frac {a}{b}\right )^{\frac {1}{4}}}\right )}{8 \, a^{3} b^{3}} + \frac {\sqrt {2} {\left (\left (a b^{3}\right )^{\frac {3}{4}} B a - 5 \, \left (a b^{3}\right )^{\frac {3}{4}} A b\right )} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \left (\frac {a}{b}\right )^{\frac {1}{4}} - 2 \, \sqrt {x}\right )}}{2 \, \left (\frac {a}{b}\right )^{\frac {1}{4}}}\right )}{8 \, a^{3} b^{3}} - \frac {\sqrt {2} {\left (\left (a b^{3}\right )^{\frac {3}{4}} B a - 5 \, \left (a b^{3}\right )^{\frac {3}{4}} A b\right )} \log \left (\sqrt {2} \sqrt {x} \left (\frac {a}{b}\right )^{\frac {1}{4}} + x + \sqrt {\frac {a}{b}}\right )}{16 \, a^{3} b^{3}} + \frac {\sqrt {2} {\left (\left (a b^{3}\right )^{\frac {3}{4}} B a - 5 \, \left (a b^{3}\right )^{\frac {3}{4}} A b\right )} \log \left (-\sqrt {2} \sqrt {x} \left (\frac {a}{b}\right )^{\frac {1}{4}} + x + \sqrt {\frac {a}{b}}\right )}{16 \, a^{3} b^{3}} \] Input:
integrate((B*x^2+A)/x^(3/2)/(b*x^2+a)^2,x, algorithm="giac")
Output:
1/2*(B*a*x^2 - 5*A*b*x^2 - 4*A*a)/((b*x^(5/2) + a*sqrt(x))*a^2) + 1/8*sqrt (2)*((a*b^3)^(3/4)*B*a - 5*(a*b^3)^(3/4)*A*b)*arctan(1/2*sqrt(2)*(sqrt(2)* (a/b)^(1/4) + 2*sqrt(x))/(a/b)^(1/4))/(a^3*b^3) + 1/8*sqrt(2)*((a*b^3)^(3/ 4)*B*a - 5*(a*b^3)^(3/4)*A*b)*arctan(-1/2*sqrt(2)*(sqrt(2)*(a/b)^(1/4) - 2 *sqrt(x))/(a/b)^(1/4))/(a^3*b^3) - 1/16*sqrt(2)*((a*b^3)^(3/4)*B*a - 5*(a* b^3)^(3/4)*A*b)*log(sqrt(2)*sqrt(x)*(a/b)^(1/4) + x + sqrt(a/b))/(a^3*b^3) + 1/16*sqrt(2)*((a*b^3)^(3/4)*B*a - 5*(a*b^3)^(3/4)*A*b)*log(-sqrt(2)*sqr t(x)*(a/b)^(1/4) + x + sqrt(a/b))/(a^3*b^3)
Time = 0.46 (sec) , antiderivative size = 104, normalized size of antiderivative = 0.49 \[ \int \frac {A+B x^2}{x^{3/2} \left (a+b x^2\right )^2} \, dx=\frac {\mathrm {atanh}\left (\frac {b^{1/4}\,\sqrt {x}}{{\left (-a\right )}^{1/4}}\right )\,\left (5\,A\,b-B\,a\right )}{4\,{\left (-a\right )}^{9/4}\,b^{3/4}}-\frac {\mathrm {atan}\left (\frac {b^{1/4}\,\sqrt {x}}{{\left (-a\right )}^{1/4}}\right )\,\left (5\,A\,b-B\,a\right )}{4\,{\left (-a\right )}^{9/4}\,b^{3/4}}-\frac {\frac {2\,A}{a}+\frac {x^2\,\left (5\,A\,b-B\,a\right )}{2\,a^2}}{a\,\sqrt {x}+b\,x^{5/2}} \] Input:
int((A + B*x^2)/(x^(3/2)*(a + b*x^2)^2),x)
Output:
(atanh((b^(1/4)*x^(1/2))/(-a)^(1/4))*(5*A*b - B*a))/(4*(-a)^(9/4)*b^(3/4)) - (atan((b^(1/4)*x^(1/2))/(-a)^(1/4))*(5*A*b - B*a))/(4*(-a)^(9/4)*b^(3/4 )) - ((2*A)/a + (x^2*(5*A*b - B*a))/(2*a^2))/(a*x^(1/2) + b*x^(5/2))
Time = 0.23 (sec) , antiderivative size = 155, normalized size of antiderivative = 0.73 \[ \int \frac {A+B x^2}{x^{3/2} \left (a+b x^2\right )^2} \, dx=\frac {2 \sqrt {x}\, b^{\frac {1}{4}} a^{\frac {3}{4}} \sqrt {2}\, \mathit {atan} \left (\frac {b^{\frac {1}{4}} a^{\frac {1}{4}} \sqrt {2}-2 \sqrt {x}\, \sqrt {b}}{b^{\frac {1}{4}} a^{\frac {1}{4}} \sqrt {2}}\right )-2 \sqrt {x}\, b^{\frac {1}{4}} a^{\frac {3}{4}} \sqrt {2}\, \mathit {atan} \left (\frac {b^{\frac {1}{4}} a^{\frac {1}{4}} \sqrt {2}+2 \sqrt {x}\, \sqrt {b}}{b^{\frac {1}{4}} a^{\frac {1}{4}} \sqrt {2}}\right )-\sqrt {x}\, b^{\frac {1}{4}} a^{\frac {3}{4}} \sqrt {2}\, \mathrm {log}\left (-\sqrt {x}\, b^{\frac {1}{4}} a^{\frac {1}{4}} \sqrt {2}+\sqrt {a}+\sqrt {b}\, x \right )+\sqrt {x}\, b^{\frac {1}{4}} a^{\frac {3}{4}} \sqrt {2}\, \mathrm {log}\left (\sqrt {x}\, b^{\frac {1}{4}} a^{\frac {1}{4}} \sqrt {2}+\sqrt {a}+\sqrt {b}\, x \right )-8 a}{4 \sqrt {x}\, a^{2}} \] Input:
int((B*x^2+A)/x^(3/2)/(b*x^2+a)^2,x)
Output:
(2*sqrt(x)*b**(1/4)*a**(3/4)*sqrt(2)*atan((b**(1/4)*a**(1/4)*sqrt(2) - 2*s qrt(x)*sqrt(b))/(b**(1/4)*a**(1/4)*sqrt(2))) - 2*sqrt(x)*b**(1/4)*a**(3/4) *sqrt(2)*atan((b**(1/4)*a**(1/4)*sqrt(2) + 2*sqrt(x)*sqrt(b))/(b**(1/4)*a* *(1/4)*sqrt(2))) - sqrt(x)*b**(1/4)*a**(3/4)*sqrt(2)*log( - sqrt(x)*b**(1/ 4)*a**(1/4)*sqrt(2) + sqrt(a) + sqrt(b)*x) + sqrt(x)*b**(1/4)*a**(3/4)*sqr t(2)*log(sqrt(x)*b**(1/4)*a**(1/4)*sqrt(2) + sqrt(a) + sqrt(b)*x) - 8*a)/( 4*sqrt(x)*a**2)