3.3.67 \(\int \frac {\sqrt {\frac {e (a+b x^2)}{c+d x^2}}}{x^3} \, dx\) [267]

Optimal. Leaf size=127 \[ \frac {(b c-a d) \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{2 c \left (a-\frac {c \left (a+b x^2\right )}{c+d x^2}\right )}-\frac {(b c-a d) \sqrt {e} \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{\sqrt {a} \sqrt {e}}\right )}{2 \sqrt {a} c^{3/2}} \]

[Out]

-1/2*(-a*d+b*c)*arctanh(c^(1/2)*(e*(b*x^2+a)/(d*x^2+c))^(1/2)/a^(1/2)/e^(1/2))*e^(1/2)/c^(3/2)/a^(1/2)+1/2*(-a
*d+b*c)*(e*(b*x^2+a)/(d*x^2+c))^(1/2)/c/(a-c*(b*x^2+a)/(d*x^2+c))

________________________________________________________________________________________

Rubi [A]
time = 0.11, antiderivative size = 127, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {1981, 1980, 294, 214} \begin {gather*} \frac {(b c-a d) \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{2 c \left (a-\frac {c \left (a+b x^2\right )}{c+d x^2}\right )}-\frac {\sqrt {e} (b c-a d) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{\sqrt {a} \sqrt {e}}\right )}{2 \sqrt {a} c^{3/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[(e*(a + b*x^2))/(c + d*x^2)]/x^3,x]

[Out]

((b*c - a*d)*Sqrt[(e*(a + b*x^2))/(c + d*x^2)])/(2*c*(a - (c*(a + b*x^2))/(c + d*x^2))) - ((b*c - a*d)*Sqrt[e]
*ArcTanh[(Sqrt[c]*Sqrt[(e*(a + b*x^2))/(c + d*x^2)])/(Sqrt[a]*Sqrt[e])])/(2*Sqrt[a]*c^(3/2))

Rule 214

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]

Rule 294

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[c^(n - 1)*(c*x)^(m - n + 1)*((a + b*x^
n)^(p + 1)/(b*n*(p + 1))), x] - Dist[c^n*((m - n + 1)/(b*n*(p + 1))), Int[(c*x)^(m - n)*(a + b*x^n)^(p + 1), x
], x] /; FreeQ[{a, b, c}, x] && IGtQ[n, 0] && LtQ[p, -1] && GtQ[m + 1, n] &&  !ILtQ[(m + n*(p + 1) + 1)/n, 0]
&& IntBinomialQ[a, b, c, n, m, p, x]

Rule 1980

Int[(x_)^(m_.)*(((e_.)*((a_.) + (b_.)*(x_)))/((c_) + (d_.)*(x_)))^(p_), x_Symbol] :> With[{q = Denominator[p]}
, Dist[q*e*(b*c - a*d), Subst[Int[x^(q*(p + 1) - 1)*(((-a)*e + c*x^q)^m/(b*e - d*x^q)^(m + 2)), x], x, (e*((a
+ b*x)/(c + d*x)))^(1/q)], x]] /; FreeQ[{a, b, c, d, e, m}, x] && FractionQ[p] && IntegerQ[m]

Rule 1981

Int[(x_)^(m_.)*(((e_.)*((a_.) + (b_.)*(x_)^(n_.)))/((c_) + (d_.)*(x_)^(n_.)))^(p_), x_Symbol] :> Dist[1/n, Sub
st[Int[x^(Simplify[(m + 1)/n] - 1)*(e*((a + b*x)/(c + d*x)))^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, m, n,
 p}, x] && IntegerQ[Simplify[(m + 1)/n]]

Rubi steps

\begin {align*} \int \frac {\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{x^3} \, dx &=((b c-a d) e) \text {Subst}\left (\int \frac {x^2}{\left (-a e+c x^2\right )^2} \, dx,x,\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}\right )\\ &=\frac {(b c-a d) \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{2 c \left (a-\frac {c \left (a+b x^2\right )}{c+d x^2}\right )}+\frac {((b c-a d) e) \text {Subst}\left (\int \frac {1}{-a e+c x^2} \, dx,x,\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}\right )}{2 c}\\ &=\frac {(b c-a d) \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{2 c \left (a-\frac {c \left (a+b x^2\right )}{c+d x^2}\right )}-\frac {(b c-a d) \sqrt {e} \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{\sqrt {a} \sqrt {e}}\right )}{2 \sqrt {a} c^{3/2}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.62, size = 137, normalized size = 1.08 \begin {gather*} -\frac {\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}} \left (\sqrt {a} \sqrt {c} \sqrt {a+b x^2} \left (c+d x^2\right )+(b c-a d) x^2 \sqrt {c+d x^2} \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x^2}}{\sqrt {a} \sqrt {c+d x^2}}\right )\right )}{2 \sqrt {a} c^{3/2} x^2 \sqrt {a+b x^2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[(e*(a + b*x^2))/(c + d*x^2)]/x^3,x]

[Out]

-1/2*(Sqrt[(e*(a + b*x^2))/(c + d*x^2)]*(Sqrt[a]*Sqrt[c]*Sqrt[a + b*x^2]*(c + d*x^2) + (b*c - a*d)*x^2*Sqrt[c
+ d*x^2]*ArcTanh[(Sqrt[c]*Sqrt[a + b*x^2])/(Sqrt[a]*Sqrt[c + d*x^2])]))/(Sqrt[a]*c^(3/2)*x^2*Sqrt[a + b*x^2])

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(325\) vs. \(2(107)=214\).
time = 0.09, size = 326, normalized size = 2.57

method result size
risch \(-\frac {\left (d \,x^{2}+c \right ) \sqrt {\frac {e \left (b \,x^{2}+a \right )}{d \,x^{2}+c}}}{2 c \,x^{2}}+\frac {\left (\frac {\ln \left (\frac {2 a c e +\left (a d e +b c e \right ) x^{2}+2 \sqrt {a c e}\, \sqrt {d e b \,x^{4}+\left (a d e +b c e \right ) x^{2}+a c e}}{x^{2}}\right ) a d}{4 c \sqrt {a c e}}-\frac {\ln \left (\frac {2 a c e +\left (a d e +b c e \right ) x^{2}+2 \sqrt {a c e}\, \sqrt {d e b \,x^{4}+\left (a d e +b c e \right ) x^{2}+a c e}}{x^{2}}\right ) b}{4 \sqrt {a c e}}\right ) \sqrt {\frac {e \left (b \,x^{2}+a \right )}{d \,x^{2}+c}}\, \sqrt {\left (d \,x^{2}+c \right ) e \left (b \,x^{2}+a \right )}}{b \,x^{2}+a}\) \(226\)
default \(-\frac {\sqrt {\frac {e \left (b \,x^{2}+a \right )}{d \,x^{2}+c}}\, \left (d \,x^{2}+c \right ) \left (-2 b d \sqrt {b d \,x^{4}+a d \,x^{2}+b c \,x^{2}+a c}\, x^{4} \sqrt {a c}-a^{2} \ln \left (\frac {a d \,x^{2}+b c \,x^{2}+2 \sqrt {a c}\, \sqrt {b d \,x^{4}+a d \,x^{2}+b c \,x^{2}+a c}+2 a c}{x^{2}}\right ) d c \,x^{2}+c^{2} \ln \left (\frac {a d \,x^{2}+b c \,x^{2}+2 \sqrt {a c}\, \sqrt {b d \,x^{4}+a d \,x^{2}+b c \,x^{2}+a c}+2 a c}{x^{2}}\right ) b a \,x^{2}-2 \sqrt {b d \,x^{4}+a d \,x^{2}+b c \,x^{2}+a c}\, d a \,x^{2} \sqrt {a c}-2 \sqrt {b d \,x^{4}+a d \,x^{2}+b c \,x^{2}+a c}\, b c \,x^{2} \sqrt {a c}+2 \left (b d \,x^{4}+a d \,x^{2}+b c \,x^{2}+a c \right )^{\frac {3}{2}} \sqrt {a c}\right )}{4 \sqrt {\left (d \,x^{2}+c \right ) \left (b \,x^{2}+a \right )}\, c^{2} a \,x^{2} \sqrt {a c}}\) \(326\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*(b*x^2+a)/(d*x^2+c))^(1/2)/x^3,x,method=_RETURNVERBOSE)

[Out]

-1/4*(e*(b*x^2+a)/(d*x^2+c))^(1/2)*(d*x^2+c)*(-2*b*d*(b*d*x^4+a*d*x^2+b*c*x^2+a*c)^(1/2)*x^4*(a*c)^(1/2)-a^2*l
n((a*d*x^2+b*c*x^2+2*(a*c)^(1/2)*(b*d*x^4+a*d*x^2+b*c*x^2+a*c)^(1/2)+2*a*c)/x^2)*d*c*x^2+c^2*ln((a*d*x^2+b*c*x
^2+2*(a*c)^(1/2)*(b*d*x^4+a*d*x^2+b*c*x^2+a*c)^(1/2)+2*a*c)/x^2)*b*a*x^2-2*(b*d*x^4+a*d*x^2+b*c*x^2+a*c)^(1/2)
*d*a*x^2*(a*c)^(1/2)-2*(b*d*x^4+a*d*x^2+b*c*x^2+a*c)^(1/2)*b*c*x^2*(a*c)^(1/2)+2*(b*d*x^4+a*d*x^2+b*c*x^2+a*c)
^(3/2)*(a*c)^(1/2))/((d*x^2+c)*(b*x^2+a))^(1/2)/c^2/a/x^2/(a*c)^(1/2)

________________________________________________________________________________________

Maxima [A]
time = 0.51, size = 138, normalized size = 1.09 \begin {gather*} \frac {1}{4} \, {\left (\frac {2 \, {\left (b c - a d\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}}}{a c - \frac {{\left (b x^{2} + a\right )} c^{2}}{d x^{2} + c}} + \frac {{\left (b c - a d\right )} \log \left (\frac {c \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} - \sqrt {a c}}{c \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} + \sqrt {a c}}\right )}{\sqrt {a c} c}\right )} e^{\frac {1}{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*(b*x^2+a)/(d*x^2+c))^(1/2)/x^3,x, algorithm="maxima")

[Out]

1/4*(2*(b*c - a*d)*sqrt((b*x^2 + a)/(d*x^2 + c))/(a*c - (b*x^2 + a)*c^2/(d*x^2 + c)) + (b*c - a*d)*log((c*sqrt
((b*x^2 + a)/(d*x^2 + c)) - sqrt(a*c))/(c*sqrt((b*x^2 + a)/(d*x^2 + c)) + sqrt(a*c)))/(sqrt(a*c)*c))*e^(1/2)

________________________________________________________________________________________

Fricas [A]
time = 0.45, size = 314, normalized size = 2.47 \begin {gather*} \left [-\frac {\sqrt {a c} {\left (b c - a d\right )} x^{2} e^{\frac {1}{2}} \log \left (\frac {{\left (b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2}\right )} x^{4} + 8 \, a^{2} c^{2} + 8 \, {\left (a b c^{2} + a^{2} c d\right )} x^{2} + 4 \, {\left ({\left (b c d + a d^{2}\right )} x^{4} + 2 \, a c^{2} + {\left (b c^{2} + 3 \, a c d\right )} x^{2}\right )} \sqrt {a c} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}}}{x^{4}}\right ) + 4 \, {\left (a c d x^{2} + a c^{2}\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} e^{\frac {1}{2}}}{8 \, a c^{2} x^{2}}, \frac {\sqrt {-a c} {\left (b c - a d\right )} x^{2} \arctan \left (\frac {{\left ({\left (b c + a d\right )} x^{2} + 2 \, a c\right )} \sqrt {-a c} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}}}{2 \, {\left (a b c x^{2} + a^{2} c\right )}}\right ) e^{\frac {1}{2}} - 2 \, {\left (a c d x^{2} + a c^{2}\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} e^{\frac {1}{2}}}{4 \, a c^{2} x^{2}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*(b*x^2+a)/(d*x^2+c))^(1/2)/x^3,x, algorithm="fricas")

[Out]

[-1/8*(sqrt(a*c)*(b*c - a*d)*x^2*e^(1/2)*log(((b^2*c^2 + 6*a*b*c*d + a^2*d^2)*x^4 + 8*a^2*c^2 + 8*(a*b*c^2 + a
^2*c*d)*x^2 + 4*((b*c*d + a*d^2)*x^4 + 2*a*c^2 + (b*c^2 + 3*a*c*d)*x^2)*sqrt(a*c)*sqrt((b*x^2 + a)/(d*x^2 + c)
))/x^4) + 4*(a*c*d*x^2 + a*c^2)*sqrt((b*x^2 + a)/(d*x^2 + c))*e^(1/2))/(a*c^2*x^2), 1/4*(sqrt(-a*c)*(b*c - a*d
)*x^2*arctan(1/2*((b*c + a*d)*x^2 + 2*a*c)*sqrt(-a*c)*sqrt((b*x^2 + a)/(d*x^2 + c))/(a*b*c*x^2 + a^2*c))*e^(1/
2) - 2*(a*c*d*x^2 + a*c^2)*sqrt((b*x^2 + a)/(d*x^2 + c))*e^(1/2))/(a*c^2*x^2)]

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*(b*x**2+a)/(d*x**2+c))**(1/2)/x**3,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 213 vs. \(2 (103) = 206\).
time = 3.36, size = 213, normalized size = 1.68 \begin {gather*} \frac {1}{2} \, {\left (\frac {{\left (b c - a d\right )} \arctan \left (-\frac {\sqrt {b d} x^{2} - \sqrt {b d x^{4} + b c x^{2} + a d x^{2} + a c}}{\sqrt {-a c}}\right )}{\sqrt {-a c} c} + \frac {{\left (\sqrt {b d} x^{2} - \sqrt {b d x^{4} + b c x^{2} + a d x^{2} + a c}\right )} b c + {\left (\sqrt {b d} x^{2} - \sqrt {b d x^{4} + b c x^{2} + a d x^{2} + a c}\right )} a d + 2 \, \sqrt {b d} a c}{{\left ({\left (\sqrt {b d} x^{2} - \sqrt {b d x^{4} + b c x^{2} + a d x^{2} + a c}\right )}^{2} - a c\right )} c}\right )} e^{\frac {1}{2}} \mathrm {sgn}\left (d x^{2} + c\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*(b*x^2+a)/(d*x^2+c))^(1/2)/x^3,x, algorithm="giac")

[Out]

1/2*((b*c - a*d)*arctan(-(sqrt(b*d)*x^2 - sqrt(b*d*x^4 + b*c*x^2 + a*d*x^2 + a*c))/sqrt(-a*c))/(sqrt(-a*c)*c)
+ ((sqrt(b*d)*x^2 - sqrt(b*d*x^4 + b*c*x^2 + a*d*x^2 + a*c))*b*c + (sqrt(b*d)*x^2 - sqrt(b*d*x^4 + b*c*x^2 + a
*d*x^2 + a*c))*a*d + 2*sqrt(b*d)*a*c)/(((sqrt(b*d)*x^2 - sqrt(b*d*x^4 + b*c*x^2 + a*d*x^2 + a*c))^2 - a*c)*c))
*e^(1/2)*sgn(d*x^2 + c)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((e*(a + b*x^2))/(c + d*x^2))^(1/2)/x^3,x)

[Out]

int(((e*(a + b*x^2))/(c + d*x^2))^(1/2)/x^3, x)

________________________________________________________________________________________