3.7.5 \(\int \frac {1}{1+\sqrt [4]{9-6 x+x^2}} \, dx\)

Optimal. Leaf size=47 \[ \frac {\sqrt {(x-3)^2} \left (2 \sqrt [4]{x^2-6 x+9}-2 \log \left (\sqrt [4]{x^2-6 x+9}+1\right )\right )}{x-3} \]

________________________________________________________________________________________

Rubi [B]  time = 0.20, antiderivative size = 215, normalized size of antiderivative = 4.57, number of steps used = 26, number of rules used = 7, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.438, Rules used = {6742, 646, 50, 63, 204, 207, 43} \begin {gather*} -\frac {2 \left (x^2-6 x+9\right )^{3/4}}{3-x}+\frac {\sqrt {x^2-6 x+9} \log (2-x)}{2 (3-x)}+\frac {\sqrt {x^2-6 x+9} \log (4-x)}{2 (3-x)}-\frac {\left (x^2-6 x+9\right )^{3/4} \tan ^{-1}\left (\sqrt {x-3}\right )}{(x-3)^{3/2}}+\frac {\sqrt [4]{x^2-6 x+9} \tan ^{-1}\left (\sqrt {x-3}\right )}{\sqrt {x-3}}-\frac {\left (x^2-6 x+9\right )^{3/4} \tanh ^{-1}\left (\sqrt {x-3}\right )}{(x-3)^{3/2}}-\frac {\sqrt [4]{x^2-6 x+9} \tanh ^{-1}\left (\sqrt {x-3}\right )}{\sqrt {x-3}}+\frac {1}{2} \log (2-x)-\frac {1}{2} \log (4-x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(1 + (9 - 6*x + x^2)^(1/4))^(-1),x]

[Out]

(-2*(9 - 6*x + x^2)^(3/4))/(3 - x) + ((9 - 6*x + x^2)^(1/4)*ArcTan[Sqrt[-3 + x]])/Sqrt[-3 + x] - ((9 - 6*x + x
^2)^(3/4)*ArcTan[Sqrt[-3 + x]])/(-3 + x)^(3/2) - ((9 - 6*x + x^2)^(1/4)*ArcTanh[Sqrt[-3 + x]])/Sqrt[-3 + x] -
((9 - 6*x + x^2)^(3/4)*ArcTanh[Sqrt[-3 + x]])/(-3 + x)^(3/2) + Log[2 - x]/2 + (Sqrt[9 - 6*x + x^2]*Log[2 - x])
/(2*(3 - x)) - Log[4 - x]/2 + (Sqrt[9 - 6*x + x^2]*Log[4 - x])/(2*(3 - x))

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 50

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*(c + d*x)^n)/(b*
(m + n + 1)), x] + Dist[(n*(b*c - a*d))/(b*(m + n + 1)), Int[(a + b*x)^m*(c + d*x)^(n - 1), x], x] /; FreeQ[{a
, b, c, d}, x] && NeQ[b*c - a*d, 0] && GtQ[n, 0] && NeQ[m + n + 1, 0] &&  !(IGtQ[m, 0] && ( !IntegerQ[n] || (G
tQ[m, 0] && LtQ[m - n, 0]))) &&  !ILtQ[m + n + 2, 0] && IntLinearQ[a, b, c, d, m, n, x]

Rule 63

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - (a*d)/b + (d*x^p)/b)^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 204

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

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 646

Int[((d_.) + (e_.)*(x_))^(m_)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Dist[(a + b*x + c*x^2)^Fra
cPart[p]/(c^IntPart[p]*(b/2 + c*x)^(2*FracPart[p])), Int[(d + e*x)^m*(b/2 + c*x)^(2*p), x], x] /; FreeQ[{a, b,
 c, d, e, m, p}, x] && EqQ[b^2 - 4*a*c, 0] &&  !IntegerQ[p] && NeQ[2*c*d - b*e, 0]

Rule 6742

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps

\begin {align*} \int \frac {1}{1+\sqrt [4]{9-6 x+x^2}} \, dx &=\int \left (-\frac {1}{2 (-4+x)}+\frac {1}{2 (-2+x)}+\frac {\sqrt [4]{9-6 x+x^2}}{2 (2-x)}+\frac {\sqrt [4]{9-6 x+x^2}}{2 (-4+x)}+\frac {\sqrt {9-6 x+x^2}}{2 (4-x)}+\frac {\sqrt {9-6 x+x^2}}{2 (-2+x)}+\frac {\left (9-6 x+x^2\right )^{3/4}}{2 (2-x)}+\frac {\left (9-6 x+x^2\right )^{3/4}}{2 (-4+x)}\right ) \, dx\\ &=\frac {1}{2} \log (2-x)-\frac {1}{2} \log (4-x)+\frac {1}{2} \int \frac {\sqrt [4]{9-6 x+x^2}}{2-x} \, dx+\frac {1}{2} \int \frac {\sqrt [4]{9-6 x+x^2}}{-4+x} \, dx+\frac {1}{2} \int \frac {\sqrt {9-6 x+x^2}}{4-x} \, dx+\frac {1}{2} \int \frac {\sqrt {9-6 x+x^2}}{-2+x} \, dx+\frac {1}{2} \int \frac {\left (9-6 x+x^2\right )^{3/4}}{2-x} \, dx+\frac {1}{2} \int \frac {\left (9-6 x+x^2\right )^{3/4}}{-4+x} \, dx\\ &=\frac {1}{2} \log (2-x)-\frac {1}{2} \log (4-x)+\frac {\sqrt [4]{9-6 x+x^2} \int \frac {\sqrt {-3+x}}{2-x} \, dx}{2 \sqrt {-3+x}}+\frac {\sqrt [4]{9-6 x+x^2} \int \frac {\sqrt {-3+x}}{-4+x} \, dx}{2 \sqrt {-3+x}}+\frac {\sqrt {9-6 x+x^2} \int \frac {-3+x}{4-x} \, dx}{2 (-3+x)}+\frac {\sqrt {9-6 x+x^2} \int \frac {-3+x}{-2+x} \, dx}{2 (-3+x)}+\frac {\left (9-6 x+x^2\right )^{3/4} \int \frac {(-3+x)^{3/2}}{2-x} \, dx}{2 (-3+x)^{3/2}}+\frac {\left (9-6 x+x^2\right )^{3/4} \int \frac {(-3+x)^{3/2}}{-4+x} \, dx}{2 (-3+x)^{3/2}}\\ &=\frac {1}{2} \log (2-x)-\frac {1}{2} \log (4-x)-\frac {\sqrt [4]{9-6 x+x^2} \int \frac {1}{(2-x) \sqrt {-3+x}} \, dx}{2 \sqrt {-3+x}}+\frac {\sqrt [4]{9-6 x+x^2} \int \frac {1}{(-4+x) \sqrt {-3+x}} \, dx}{2 \sqrt {-3+x}}+\frac {\sqrt {9-6 x+x^2} \int \left (1+\frac {1}{2-x}\right ) \, dx}{2 (-3+x)}+\frac {\sqrt {9-6 x+x^2} \int \left (-1+\frac {1}{4-x}\right ) \, dx}{2 (-3+x)}-\frac {\left (9-6 x+x^2\right )^{3/4} \int \frac {\sqrt {-3+x}}{2-x} \, dx}{2 (-3+x)^{3/2}}+\frac {\left (9-6 x+x^2\right )^{3/4} \int \frac {\sqrt {-3+x}}{-4+x} \, dx}{2 (-3+x)^{3/2}}\\ &=-\frac {2 \left (9-6 x+x^2\right )^{3/4}}{3-x}+\frac {1}{2} \log (2-x)+\frac {\sqrt {9-6 x+x^2} \log (2-x)}{2 (3-x)}-\frac {1}{2} \log (4-x)+\frac {\sqrt {9-6 x+x^2} \log (4-x)}{2 (3-x)}-\frac {\sqrt [4]{9-6 x+x^2} \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,\sqrt {-3+x}\right )}{\sqrt {-3+x}}+\frac {\sqrt [4]{9-6 x+x^2} \operatorname {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\sqrt {-3+x}\right )}{\sqrt {-3+x}}+\frac {\left (9-6 x+x^2\right )^{3/4} \int \frac {1}{(2-x) \sqrt {-3+x}} \, dx}{2 (-3+x)^{3/2}}+\frac {\left (9-6 x+x^2\right )^{3/4} \int \frac {1}{(-4+x) \sqrt {-3+x}} \, dx}{2 (-3+x)^{3/2}}\\ &=-\frac {2 \left (9-6 x+x^2\right )^{3/4}}{3-x}+\frac {\sqrt [4]{9-6 x+x^2} \tan ^{-1}\left (\sqrt {-3+x}\right )}{\sqrt {-3+x}}-\frac {\sqrt [4]{9-6 x+x^2} \tanh ^{-1}\left (\sqrt {-3+x}\right )}{\sqrt {-3+x}}+\frac {1}{2} \log (2-x)+\frac {\sqrt {9-6 x+x^2} \log (2-x)}{2 (3-x)}-\frac {1}{2} \log (4-x)+\frac {\sqrt {9-6 x+x^2} \log (4-x)}{2 (3-x)}+\frac {\left (9-6 x+x^2\right )^{3/4} \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,\sqrt {-3+x}\right )}{(-3+x)^{3/2}}+\frac {\left (9-6 x+x^2\right )^{3/4} \operatorname {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\sqrt {-3+x}\right )}{(-3+x)^{3/2}}\\ &=-\frac {2 \left (9-6 x+x^2\right )^{3/4}}{3-x}+\frac {\sqrt [4]{9-6 x+x^2} \tan ^{-1}\left (\sqrt {-3+x}\right )}{\sqrt {-3+x}}-\frac {\left (9-6 x+x^2\right )^{3/4} \tan ^{-1}\left (\sqrt {-3+x}\right )}{(-3+x)^{3/2}}-\frac {\sqrt [4]{9-6 x+x^2} \tanh ^{-1}\left (\sqrt {-3+x}\right )}{\sqrt {-3+x}}-\frac {\left (9-6 x+x^2\right )^{3/4} \tanh ^{-1}\left (\sqrt {-3+x}\right )}{(-3+x)^{3/2}}+\frac {1}{2} \log (2-x)+\frac {\sqrt {9-6 x+x^2} \log (2-x)}{2 (3-x)}-\frac {1}{2} \log (4-x)+\frac {\sqrt {9-6 x+x^2} \log (4-x)}{2 (3-x)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.24, size = 138, normalized size = 2.94 \begin {gather*} \frac {\sqrt {x-3} \left (4 \left ((x-3)^2\right )^{3/4}-\left (\left (-x+\sqrt {(x-3)^2}+3\right ) \log (2-x)\right )-\left (x+\sqrt {(x-3)^2}-3\right ) \log (4-x)\right )-2 \left (-x+\sqrt {(x-3)^2}+3\right ) \sqrt [4]{(x-3)^2} \tan ^{-1}\left (\sqrt {x-3}\right )-2 \sqrt [4]{(x-3)^2} \left (x+\sqrt {(x-3)^2}-3\right ) \tanh ^{-1}\left (\sqrt {x-3}\right )}{2 (x-3)^{3/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(1 + (9 - 6*x + x^2)^(1/4))^(-1),x]

[Out]

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

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.09, size = 47, normalized size = 1.00 \begin {gather*} \frac {\sqrt {(-3+x)^2} \left (2 \sqrt [4]{9-6 x+x^2}-2 \log \left (1+\sqrt [4]{9-6 x+x^2}\right )\right )}{-3+x} \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[(1 + (9 - 6*x + x^2)^(1/4))^(-1),x]

[Out]

(Sqrt[(-3 + x)^2]*(2*(9 - 6*x + x^2)^(1/4) - 2*Log[1 + (9 - 6*x + x^2)^(1/4)]))/(-3 + x)

________________________________________________________________________________________

fricas [A]  time = 0.43, size = 28, normalized size = 0.60 \begin {gather*} 2 \, {\left (x^{2} - 6 \, x + 9\right )}^{\frac {1}{4}} - 2 \, \log \left ({\left (x^{2} - 6 \, x + 9\right )}^{\frac {1}{4}} + 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*(x^2 - 6*x + 9)^(1/4) - 2*log((x^2 - 6*x + 9)^(1/4) + 1)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{{\left (x^{2} - 6 \, x + 9\right )}^{\frac {1}{4}} + 1}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(1/((x^2 - 6*x + 9)^(1/4) + 1), x)

________________________________________________________________________________________

maple [F]  time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {1}{1+\left (x^{2}-6 x +9\right )^{\frac {1}{4}}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(1+(x^2-6*x+9)^(1/4)),x)

[Out]

int(1/(1+(x^2-6*x+9)^(1/4)),x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{{\left (x^{2} - 6 \, x + 9\right )}^{\frac {1}{4}} + 1}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(1/((x^2 - 6*x + 9)^(1/4) + 1), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {1}{{\left (x^2-6\,x+9\right )}^{1/4}+1} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/((x^2 - 6*x + 9)^(1/4) + 1),x)

[Out]

int(1/((x^2 - 6*x + 9)^(1/4) + 1), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt [4]{x^{2} - 6 x + 9} + 1}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(1+(x**2-6*x+9)**(1/4)),x)

[Out]

Integral(1/((x**2 - 6*x + 9)**(1/4) + 1), x)

________________________________________________________________________________________