3.21.93 \(\int \frac {\sqrt {c+d \sqrt {b+a x^2}}}{x} \, dx\)

Optimal. Leaf size=151 \[ 2 \sqrt {d \sqrt {a x^2+b}+c}+\sqrt {\sqrt {b} d-c} \tan ^{-1}\left (\frac {\sqrt {\sqrt {b} d-c} \sqrt {d \sqrt {a x^2+b}+c}}{c-\sqrt {b} d}\right )+\sqrt {-\sqrt {b} d-c} \tan ^{-1}\left (\frac {\sqrt {-\sqrt {b} d-c} \sqrt {d \sqrt {a x^2+b}+c}}{\sqrt {b} d+c}\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.39, antiderivative size = 122, normalized size of antiderivative = 0.81, number of steps used = 8, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {371, 1398, 825, 827, 1166, 207} \begin {gather*} 2 \sqrt {d \sqrt {a x^2+b}+c}-\sqrt {c-\sqrt {b} d} \tanh ^{-1}\left (\frac {\sqrt {d \sqrt {a x^2+b}+c}}{\sqrt {c-\sqrt {b} d}}\right )-\sqrt {\sqrt {b} d+c} \tanh ^{-1}\left (\frac {\sqrt {d \sqrt {a x^2+b}+c}}{\sqrt {\sqrt {b} d+c}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[c + d*Sqrt[b + a*x^2]]/x,x]

[Out]

2*Sqrt[c + d*Sqrt[b + a*x^2]] - Sqrt[c - Sqrt[b]*d]*ArcTanh[Sqrt[c + d*Sqrt[b + a*x^2]]/Sqrt[c - Sqrt[b]*d]] -
 Sqrt[c + Sqrt[b]*d]*ArcTanh[Sqrt[c + d*Sqrt[b + a*x^2]]/Sqrt[c + Sqrt[b]*d]]

Rule 207

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

Rule 371

Int[((a_) + (b_.)*(v_)^(n_))^(p_.)*(x_)^(m_.), x_Symbol] :> With[{c = Coefficient[v, x, 0], d = Coefficient[v,
 x, 1]}, Dist[1/d^(m + 1), Subst[Int[SimplifyIntegrand[(x - c)^m*(a + b*x^n)^p, x], x], x, v], x] /; NeQ[c, 0]
] /; FreeQ[{a, b, n, p}, x] && LinearQ[v, x] && IntegerQ[m]

Rule 825

Int[(((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_)))/((a_) + (c_.)*(x_)^2), x_Symbol] :> Simp[(g*(d + e*x)^m)/
(c*m), x] + Dist[1/c, Int[((d + e*x)^(m - 1)*Simp[c*d*f - a*e*g + (g*c*d + c*e*f)*x, x])/(a + c*x^2), x], x] /
; FreeQ[{a, c, d, e, f, g}, x] && NeQ[c*d^2 + a*e^2, 0] && FractionQ[m] && GtQ[m, 0]

Rule 827

Int[((f_.) + (g_.)*(x_))/(Sqrt[(d_.) + (e_.)*(x_)]*((a_) + (c_.)*(x_)^2)), x_Symbol] :> Dist[2, Subst[Int[(e*f
 - d*g + g*x^2)/(c*d^2 + a*e^2 - 2*c*d*x^2 + c*x^4), x], x, Sqrt[d + e*x]], x] /; FreeQ[{a, c, d, e, f, g}, x]
 && NeQ[c*d^2 + a*e^2, 0]

Rule 1166

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 1398

Int[((a_) + (c_.)*(x_)^(n2_.))^(p_.)*((d_) + (e_.)*(x_)^(n_))^(q_.), x_Symbol] :> With[{g = Denominator[n]}, D
ist[g, Subst[Int[x^(g - 1)*(d + e*x^(g*n))^q*(a + c*x^(2*g*n))^p, x], x, x^(1/g)], x]] /; FreeQ[{a, c, d, e, p
, q}, x] && EqQ[n2, 2*n] && FractionQ[n]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.22, size = 122, normalized size = 0.81 \begin {gather*} 2 \sqrt {d \sqrt {a x^2+b}+c}-\sqrt {c-\sqrt {b} d} \tanh ^{-1}\left (\frac {\sqrt {d \sqrt {a x^2+b}+c}}{\sqrt {c-\sqrt {b} d}}\right )-\sqrt {\sqrt {b} d+c} \tanh ^{-1}\left (\frac {\sqrt {d \sqrt {a x^2+b}+c}}{\sqrt {\sqrt {b} d+c}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[c + d*Sqrt[b + a*x^2]]/x,x]

[Out]

2*Sqrt[c + d*Sqrt[b + a*x^2]] - Sqrt[c - Sqrt[b]*d]*ArcTanh[Sqrt[c + d*Sqrt[b + a*x^2]]/Sqrt[c - Sqrt[b]*d]] -
 Sqrt[c + Sqrt[b]*d]*ArcTanh[Sqrt[c + d*Sqrt[b + a*x^2]]/Sqrt[c + Sqrt[b]*d]]

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.39, size = 151, normalized size = 1.00 \begin {gather*} 2 \sqrt {c+d \sqrt {b+a x^2}}+\sqrt {-c+\sqrt {b} d} \tan ^{-1}\left (\frac {\sqrt {-c+\sqrt {b} d} \sqrt {c+d \sqrt {b+a x^2}}}{c-\sqrt {b} d}\right )+\sqrt {-c-\sqrt {b} d} \tan ^{-1}\left (\frac {\sqrt {-c-\sqrt {b} d} \sqrt {c+d \sqrt {b+a x^2}}}{c+\sqrt {b} d}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[Sqrt[c + d*Sqrt[b + a*x^2]]/x,x]

[Out]

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

________________________________________________________________________________________

fricas [F(-1)]  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((c+d*(a*x^2+b)^(1/2))^(1/2)/x,x, algorithm="fricas")

[Out]

Timed out

________________________________________________________________________________________

giac [B]  time = 0.20, size = 288, normalized size = 1.91 \begin {gather*} \frac {2 \, \sqrt {\sqrt {a x^{2} + b} d + c} d + \frac {{\left (\sqrt {b} c d^{3} \mathrm {sgn}\left ({\left (\sqrt {a x^{2} + b} d + c\right )} d - c d\right ) - b d^{3} {\left | d \right |} + c^{2} d {\left | d \right |} \mathrm {sgn}\left ({\left (\sqrt {a x^{2} + b} d + c\right )} d - c d\right ) - \sqrt {b} c d^{3}\right )} \arctan \left (\frac {\sqrt {\sqrt {a x^{2} + b} d + c}}{\sqrt {-c + \sqrt {b d^{2}}}}\right )}{{\left (\sqrt {b} d + c\right )} \sqrt {\sqrt {b} d - c} {\left | d \right |}} + \frac {{\left (\sqrt {b} c d^{3} \mathrm {sgn}\left ({\left (\sqrt {a x^{2} + b} d + c\right )} d - c d\right ) + b d^{3} {\left | d \right |} - c^{2} d {\left | d \right |} \mathrm {sgn}\left ({\left (\sqrt {a x^{2} + b} d + c\right )} d - c d\right ) - \sqrt {b} c d^{3}\right )} \arctan \left (\frac {\sqrt {\sqrt {a x^{2} + b} d + c}}{\sqrt {-c - \sqrt {b d^{2}}}}\right )}{{\left (\sqrt {b} d - c\right )} \sqrt {-\sqrt {b} d - c} {\left | d \right |}}}{d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(2*sqrt(sqrt(a*x^2 + b)*d + c)*d + (sqrt(b)*c*d^3*sgn((sqrt(a*x^2 + b)*d + c)*d - c*d) - b*d^3*abs(d) + c^2*d*
abs(d)*sgn((sqrt(a*x^2 + b)*d + c)*d - c*d) - sqrt(b)*c*d^3)*arctan(sqrt(sqrt(a*x^2 + b)*d + c)/sqrt(-c + sqrt
(b*d^2)))/((sqrt(b)*d + c)*sqrt(sqrt(b)*d - c)*abs(d)) + (sqrt(b)*c*d^3*sgn((sqrt(a*x^2 + b)*d + c)*d - c*d) +
 b*d^3*abs(d) - c^2*d*abs(d)*sgn((sqrt(a*x^2 + b)*d + c)*d - c*d) - sqrt(b)*c*d^3)*arctan(sqrt(sqrt(a*x^2 + b)
*d + c)/sqrt(-c - sqrt(b*d^2)))/((sqrt(b)*d - c)*sqrt(-sqrt(b)*d - c)*abs(d)))/d

________________________________________________________________________________________

maple [F]  time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {\sqrt {c +d \sqrt {a \,x^{2}+b}}}{x}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {\sqrt {a x^{2} + b} d + c}}{x}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(sqrt(sqrt(a*x^2 + b)*d + c)/x, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {c+d\,\sqrt {a\,x^2+b}}}{x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {c + d \sqrt {a x^{2} + b}}}{x}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Integral(sqrt(c + d*sqrt(a*x**2 + b))/x, x)

________________________________________________________________________________________