3.17.87 \(\int \frac {-b+a x^2}{x^2 (b+a x^2) \sqrt [4]{-b x^2+a x^4}} \, dx\) [1687]

Optimal. Leaf size=113 \[ -\frac {2 \left (-b x^2+a x^4\right )^{3/4}}{3 b x^3}+\frac {2^{3/4} a^{3/4} \text {ArcTan}\left (\frac {\sqrt [4]{2} \sqrt [4]{a} x}{\sqrt [4]{-b x^2+a x^4}}\right )}{b}+\frac {2^{3/4} a^{3/4} \tanh ^{-1}\left (\frac {\sqrt [4]{2} \sqrt [4]{a} x}{\sqrt [4]{-b x^2+a x^4}}\right )}{b} \]

[Out]

-2/3*(a*x^4-b*x^2)^(3/4)/b/x^3+2^(3/4)*a^(3/4)*arctan(2^(1/4)*a^(1/4)*x/(a*x^4-b*x^2)^(1/4))/b+2^(3/4)*a^(3/4)
*arctanh(2^(1/4)*a^(1/4)*x/(a*x^4-b*x^2)^(1/4))/b

________________________________________________________________________________________

Rubi [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
time = 0.27, antiderivative size = 58, normalized size of antiderivative = 0.51, number of steps used = 4, number of rules used = 4, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2081, 477, 525, 524} \begin {gather*} \frac {2 \left (b-a x^2\right ) \, _2F_1\left (-\frac {3}{4},1;\frac {1}{4};-\frac {2 a x^2}{b-a x^2}\right )}{3 b x \sqrt [4]{a x^4-b x^2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-b + a*x^2)/(x^2*(b + a*x^2)*(-(b*x^2) + a*x^4)^(1/4)),x]

[Out]

(2*(b - a*x^2)*Hypergeometric2F1[-3/4, 1, 1/4, (-2*a*x^2)/(b - a*x^2)])/(3*b*x*(-(b*x^2) + a*x^4)^(1/4))

Rule 477

Int[((e_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> With[{k = Deno
minator[m]}, Dist[k/e, Subst[Int[x^(k*(m + 1) - 1)*(a + b*(x^(k*n)/e^n))^p*(c + d*(x^(k*n)/e^n))^q, x], x, (e*
x)^(1/k)], x]] /; FreeQ[{a, b, c, d, e, p, q}, x] && NeQ[b*c - a*d, 0] && IGtQ[n, 0] && FractionQ[m] && Intege
rQ[p]

Rule 524

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[a^p*c^q*
((e*x)^(m + 1)/(e*(m + 1)))*AppellF1[(m + 1)/n, -p, -q, 1 + (m + 1)/n, (-b)*(x^n/a), (-d)*(x^n/c)], x] /; Free
Q[{a, b, c, d, e, m, n, p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[m, -1] && NeQ[m, n - 1] && (IntegerQ[p] || GtQ[a
, 0]) && (IntegerQ[q] || GtQ[c, 0])

Rule 525

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Dist[a^IntPar
t[p]*((a + b*x^n)^FracPart[p]/(1 + b*(x^n/a))^FracPart[p]), Int[(e*x)^m*(1 + b*(x^n/a))^p*(c + d*x^n)^q, x], x
] /; FreeQ[{a, b, c, d, e, m, n, p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[m, -1] && NeQ[m, n - 1] &&  !(IntegerQ[
p] || GtQ[a, 0])

Rule 2081

Int[(u_.)*(P_)^(p_.), x_Symbol] :> With[{m = MinimumMonomialExponent[P, x]}, Dist[P^FracPart[p]/(x^(m*FracPart
[p])*Distrib[1/x^m, P]^FracPart[p]), Int[u*x^(m*p)*Distrib[1/x^m, P]^p, x], x]] /; FreeQ[p, x] &&  !IntegerQ[p
] && SumQ[P] && EveryQ[BinomialQ[#1, x] & , P] &&  !PolyQ[P, x, 2]

Rubi steps

\begin {align*} \int \frac {-b+a x^2}{x^2 \left (b+a x^2\right ) \sqrt [4]{-b x^2+a x^4}} \, dx &=\frac {\left (\sqrt {x} \sqrt [4]{-b+a x^2}\right ) \int \frac {\left (-b+a x^2\right )^{3/4}}{x^{5/2} \left (b+a x^2\right )} \, dx}{\sqrt [4]{-b x^2+a x^4}}\\ &=\frac {\left (2 \sqrt {x} \sqrt [4]{-b+a x^2}\right ) \text {Subst}\left (\int \frac {\left (-b+a x^4\right )^{3/4}}{x^4 \left (b+a x^4\right )} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{-b x^2+a x^4}}\\ &=\frac {\left (2 \sqrt {x} \left (-b+a x^2\right )\right ) \text {Subst}\left (\int \frac {\left (1-\frac {a x^4}{b}\right )^{3/4}}{x^4 \left (b+a x^4\right )} \, dx,x,\sqrt {x}\right )}{\left (1-\frac {a x^2}{b}\right )^{3/4} \sqrt [4]{-b x^2+a x^4}}\\ &=\frac {2 \left (b-a x^2\right ) \, _2F_1\left (-\frac {3}{4},1;\frac {1}{4};-\frac {2 a x^2}{b-a x^2}\right )}{3 b x \sqrt [4]{-b x^2+a x^4}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.35, size = 149, normalized size = 1.32 \begin {gather*} \frac {\left (-b x^2+a x^4\right )^{3/4} \left (-2 \left (-b+a x^2\right )^{3/4}+3\ 2^{3/4} a^{3/4} x^{3/2} \text {ArcTan}\left (\frac {\sqrt [4]{2} \sqrt [4]{a} \sqrt {x}}{\sqrt [4]{-b+a x^2}}\right )+3\ 2^{3/4} a^{3/4} x^{3/2} \tanh ^{-1}\left (\frac {\sqrt [4]{2} \sqrt [4]{a} \sqrt {x}}{\sqrt [4]{-b+a x^2}}\right )\right )}{3 b x^3 \left (-b+a x^2\right )^{3/4}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-b + a*x^2)/(x^2*(b + a*x^2)*(-(b*x^2) + a*x^4)^(1/4)),x]

[Out]

((-(b*x^2) + a*x^4)^(3/4)*(-2*(-b + a*x^2)^(3/4) + 3*2^(3/4)*a^(3/4)*x^(3/2)*ArcTan[(2^(1/4)*a^(1/4)*Sqrt[x])/
(-b + a*x^2)^(1/4)] + 3*2^(3/4)*a^(3/4)*x^(3/2)*ArcTanh[(2^(1/4)*a^(1/4)*Sqrt[x])/(-b + a*x^2)^(1/4)]))/(3*b*x
^3*(-b + a*x^2)^(3/4))

________________________________________________________________________________________

Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {a \,x^{2}-b}{x^{2} \left (a \,x^{2}+b \right ) \left (a \,x^{4}-b \,x^{2}\right )^{\frac {1}{4}}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*x^2-b)/x^2/(a*x^2+b)/(a*x^4-b*x^2)^(1/4),x)

[Out]

int((a*x^2-b)/x^2/(a*x^2+b)/(a*x^4-b*x^2)^(1/4),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x^2-b)/x^2/(a*x^2+b)/(a*x^4-b*x^2)^(1/4),x, algorithm="maxima")

[Out]

integrate((a*x^2 - b)/((a*x^4 - b*x^2)^(1/4)*(a*x^2 + b)*x^2), x)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 514 vs. \(2 (89) = 178\).
time = 42.87, size = 514, normalized size = 4.55 \begin {gather*} -\frac {12 \, \left (\frac {1}{2}\right )^{\frac {1}{4}} b x^{3} \left (\frac {a^{3}}{b^{4}}\right )^{\frac {1}{4}} \arctan \left (\frac {2 \, {\left (2 \, \left (\frac {1}{2}\right )^{\frac {1}{4}} {\left (a x^{4} - b x^{2}\right )}^{\frac {1}{4}} a^{4} b x^{2} \left (\frac {a^{3}}{b^{4}}\right )^{\frac {1}{4}} + 2 \, \left (\frac {1}{2}\right )^{\frac {3}{4}} {\left (a x^{4} - b x^{2}\right )}^{\frac {3}{4}} a^{2} b^{3} \left (\frac {a^{3}}{b^{4}}\right )^{\frac {3}{4}} + {\left (2 \, \left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {a x^{4} - b x^{2}} a^{2} b x \left (\frac {a^{3}}{b^{4}}\right )^{\frac {1}{4}} + \left (\frac {1}{2}\right )^{\frac {3}{4}} {\left (3 \, a b^{3} x^{3} - b^{4} x\right )} \left (\frac {a^{3}}{b^{4}}\right )^{\frac {3}{4}}\right )} \sqrt {\sqrt {\frac {1}{2}} a^{2} b^{2} \sqrt {\frac {a^{3}}{b^{4}}}}\right )}}{a^{5} x^{3} + a^{4} b x}\right ) - 3 \, \left (\frac {1}{2}\right )^{\frac {1}{4}} b x^{3} \left (\frac {a^{3}}{b^{4}}\right )^{\frac {1}{4}} \log \left (\frac {4 \, \sqrt {\frac {1}{2}} {\left (a x^{4} - b x^{2}\right )}^{\frac {1}{4}} a b^{2} x^{2} \sqrt {\frac {a^{3}}{b^{4}}} + 4 \, \left (\frac {1}{2}\right )^{\frac {3}{4}} \sqrt {a x^{4} - b x^{2}} b^{3} x \left (\frac {a^{3}}{b^{4}}\right )^{\frac {3}{4}} + 2 \, {\left (a x^{4} - b x^{2}\right )}^{\frac {3}{4}} a^{2} + \left (\frac {1}{2}\right )^{\frac {1}{4}} {\left (3 \, a^{2} b x^{3} - a b^{2} x\right )} \left (\frac {a^{3}}{b^{4}}\right )^{\frac {1}{4}}}{a x^{3} + b x}\right ) + 3 \, \left (\frac {1}{2}\right )^{\frac {1}{4}} b x^{3} \left (\frac {a^{3}}{b^{4}}\right )^{\frac {1}{4}} \log \left (\frac {4 \, \sqrt {\frac {1}{2}} {\left (a x^{4} - b x^{2}\right )}^{\frac {1}{4}} a b^{2} x^{2} \sqrt {\frac {a^{3}}{b^{4}}} - 4 \, \left (\frac {1}{2}\right )^{\frac {3}{4}} \sqrt {a x^{4} - b x^{2}} b^{3} x \left (\frac {a^{3}}{b^{4}}\right )^{\frac {3}{4}} + 2 \, {\left (a x^{4} - b x^{2}\right )}^{\frac {3}{4}} a^{2} - \left (\frac {1}{2}\right )^{\frac {1}{4}} {\left (3 \, a^{2} b x^{3} - a b^{2} x\right )} \left (\frac {a^{3}}{b^{4}}\right )^{\frac {1}{4}}}{a x^{3} + b x}\right ) + 4 \, {\left (a x^{4} - b x^{2}\right )}^{\frac {3}{4}}}{6 \, b x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x^2-b)/x^2/(a*x^2+b)/(a*x^4-b*x^2)^(1/4),x, algorithm="fricas")

[Out]

-1/6*(12*(1/2)^(1/4)*b*x^3*(a^3/b^4)^(1/4)*arctan(2*(2*(1/2)^(1/4)*(a*x^4 - b*x^2)^(1/4)*a^4*b*x^2*(a^3/b^4)^(
1/4) + 2*(1/2)^(3/4)*(a*x^4 - b*x^2)^(3/4)*a^2*b^3*(a^3/b^4)^(3/4) + (2*(1/2)^(1/4)*sqrt(a*x^4 - b*x^2)*a^2*b*
x*(a^3/b^4)^(1/4) + (1/2)^(3/4)*(3*a*b^3*x^3 - b^4*x)*(a^3/b^4)^(3/4))*sqrt(sqrt(1/2)*a^2*b^2*sqrt(a^3/b^4)))/
(a^5*x^3 + a^4*b*x)) - 3*(1/2)^(1/4)*b*x^3*(a^3/b^4)^(1/4)*log((4*sqrt(1/2)*(a*x^4 - b*x^2)^(1/4)*a*b^2*x^2*sq
rt(a^3/b^4) + 4*(1/2)^(3/4)*sqrt(a*x^4 - b*x^2)*b^3*x*(a^3/b^4)^(3/4) + 2*(a*x^4 - b*x^2)^(3/4)*a^2 + (1/2)^(1
/4)*(3*a^2*b*x^3 - a*b^2*x)*(a^3/b^4)^(1/4))/(a*x^3 + b*x)) + 3*(1/2)^(1/4)*b*x^3*(a^3/b^4)^(1/4)*log((4*sqrt(
1/2)*(a*x^4 - b*x^2)^(1/4)*a*b^2*x^2*sqrt(a^3/b^4) - 4*(1/2)^(3/4)*sqrt(a*x^4 - b*x^2)*b^3*x*(a^3/b^4)^(3/4) +
 2*(a*x^4 - b*x^2)^(3/4)*a^2 - (1/2)^(1/4)*(3*a^2*b*x^3 - a*b^2*x)*(a^3/b^4)^(1/4))/(a*x^3 + b*x)) + 4*(a*x^4
- b*x^2)^(3/4))/(b*x^3)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a x^{2} - b}{x^{2} \sqrt [4]{x^{2} \left (a x^{2} - b\right )} \left (a x^{2} + b\right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x**2-b)/x**2/(a*x**2+b)/(a*x**4-b*x**2)**(1/4),x)

[Out]

Integral((a*x**2 - b)/(x**2*(x**2*(a*x**2 - b))**(1/4)*(a*x**2 + b)), x)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 213 vs. \(2 (89) = 178\).
time = 0.44, size = 213, normalized size = 1.88 \begin {gather*} \frac {2^{\frac {1}{4}} \left (-a\right )^{\frac {3}{4}} \arctan \left (\frac {2^{\frac {1}{4}} {\left (2^{\frac {3}{4}} \left (-a\right )^{\frac {1}{4}} + 2 \, {\left (a - \frac {b}{x^{2}}\right )}^{\frac {1}{4}}\right )}}{2 \, \left (-a\right )^{\frac {1}{4}}}\right )}{b} + \frac {2^{\frac {1}{4}} \left (-a\right )^{\frac {3}{4}} \arctan \left (-\frac {2^{\frac {1}{4}} {\left (2^{\frac {3}{4}} \left (-a\right )^{\frac {1}{4}} - 2 \, {\left (a - \frac {b}{x^{2}}\right )}^{\frac {1}{4}}\right )}}{2 \, \left (-a\right )^{\frac {1}{4}}}\right )}{b} - \frac {2^{\frac {1}{4}} \left (-a\right )^{\frac {3}{4}} \log \left (2^{\frac {3}{4}} \left (-a\right )^{\frac {1}{4}} {\left (a - \frac {b}{x^{2}}\right )}^{\frac {1}{4}} + \sqrt {2} \sqrt {-a} + \sqrt {a - \frac {b}{x^{2}}}\right )}{2 \, b} + \frac {2^{\frac {1}{4}} \left (-a\right )^{\frac {3}{4}} \log \left (-2^{\frac {3}{4}} \left (-a\right )^{\frac {1}{4}} {\left (a - \frac {b}{x^{2}}\right )}^{\frac {1}{4}} + \sqrt {2} \sqrt {-a} + \sqrt {a - \frac {b}{x^{2}}}\right )}{2 \, b} - \frac {2 \, {\left (a - \frac {b}{x^{2}}\right )}^{\frac {3}{4}}}{3 \, b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x^2-b)/x^2/(a*x^2+b)/(a*x^4-b*x^2)^(1/4),x, algorithm="giac")

[Out]

2^(1/4)*(-a)^(3/4)*arctan(1/2*2^(1/4)*(2^(3/4)*(-a)^(1/4) + 2*(a - b/x^2)^(1/4))/(-a)^(1/4))/b + 2^(1/4)*(-a)^
(3/4)*arctan(-1/2*2^(1/4)*(2^(3/4)*(-a)^(1/4) - 2*(a - b/x^2)^(1/4))/(-a)^(1/4))/b - 1/2*2^(1/4)*(-a)^(3/4)*lo
g(2^(3/4)*(-a)^(1/4)*(a - b/x^2)^(1/4) + sqrt(2)*sqrt(-a) + sqrt(a - b/x^2))/b + 1/2*2^(1/4)*(-a)^(3/4)*log(-2
^(3/4)*(-a)^(1/4)*(a - b/x^2)^(1/4) + sqrt(2)*sqrt(-a) + sqrt(a - b/x^2))/b - 2/3*(a - b/x^2)^(3/4)/b

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int -\frac {b-a\,x^2}{x^2\,\left (a\,x^2+b\right )\,{\left (a\,x^4-b\,x^2\right )}^{1/4}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(b - a*x^2)/(x^2*(b + a*x^2)*(a*x^4 - b*x^2)^(1/4)),x)

[Out]

int(-(b - a*x^2)/(x^2*(b + a*x^2)*(a*x^4 - b*x^2)^(1/4)), x)

________________________________________________________________________________________