3.48 \(\int \frac{1}{2+x^6} \, dx\)

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

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.281148, antiderivative size = 138, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 6, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.857, Rules used = {209, 634, 618, 204, 628, 203} \[ -\frac{\log \left (x^2-\sqrt [6]{2} \sqrt{3} x+\sqrt [3]{2}\right )}{4\ 2^{5/6} \sqrt{3}}+\frac{\log \left (x^2+\sqrt [6]{2} \sqrt{3} x+\sqrt [3]{2}\right )}{4\ 2^{5/6} \sqrt{3}}+\frac{\tan ^{-1}\left (\frac{x}{\sqrt [6]{2}}\right )}{3\ 2^{5/6}}-\frac{\tan ^{-1}\left (\sqrt{3}-2^{5/6} x\right )}{6\ 2^{5/6}}+\frac{\tan ^{-1}\left (2^{5/6} x+\sqrt{3}\right )}{6\ 2^{5/6}} \]

Antiderivative was successfully verified.

[In]

Int[(2 + x^6)^(-1),x]

[Out]

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

Rule 209

Int[((a_) + (b_.)*(x_)^(n_))^(-1), x_Symbol] :> Module[{r = Numerator[Rt[a/b, n]], s = Denominator[Rt[a/b, n]]
, k, u, v}, Simp[u = Int[(r - s*Cos[((2*k - 1)*Pi)/n]*x)/(r^2 - 2*r*s*Cos[((2*k - 1)*Pi)/n]*x + s^2*x^2), x] +
 Int[(r + s*Cos[((2*k - 1)*Pi)/n]*x)/(r^2 + 2*r*s*Cos[((2*k - 1)*Pi)/n]*x + s^2*x^2), x]; (2*r^2*Int[1/(r^2 +
s^2*x^2), x])/(a*n) + Dist[(2*r)/(a*n), Sum[u, {k, 1, (n - 2)/4}], x], x]] /; FreeQ[{a, b}, x] && IGtQ[(n - 2)
/4, 0] && PosQ[a/b]

Rule 634

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

Rule 618

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

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 628

Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[(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]

Rule 203

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

Rubi steps

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

Mathematica [A]  time = 0.0270939, size = 115, normalized size = 0.83 \[ \frac{-\sqrt{3} \log \left (2^{2/3} x^2-2^{5/6} \sqrt{3} x+2\right )+\sqrt{3} \log \left (2^{2/3} x^2+2^{5/6} \sqrt{3} x+2\right )+4 \tan ^{-1}\left (\frac{x}{\sqrt [6]{2}}\right )-2 \tan ^{-1}\left (\sqrt{3}-2^{5/6} x\right )+2 \tan ^{-1}\left (2^{5/6} x+\sqrt{3}\right )}{12\ 2^{5/6}} \]

Antiderivative was successfully verified.

[In]

Integrate[(2 + x^6)^(-1),x]

[Out]

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

________________________________________________________________________________________

Maple [A]  time = 0.098, size = 95, normalized size = 0.7 \begin{align*}{\frac{\sqrt [6]{2}}{6}\arctan \left ({\frac{x{2}^{{\frac{5}{6}}}}{2}} \right ) }+{\frac{\arctan \left ( x{2}^{{\frac{5}{6}}}-\sqrt{3} \right ) \sqrt [6]{2}}{12}}+{\frac{\arctan \left ( x{2}^{{\frac{5}{6}}}+\sqrt{3} \right ) \sqrt [6]{2}}{12}}-{\frac{\ln \left ( \sqrt [3]{2}+{x}^{2}-\sqrt [6]{2}x\sqrt{3} \right ) \sqrt [6]{2}\sqrt{3}}{24}}+{\frac{\ln \left ( \sqrt [3]{2}+{x}^{2}+\sqrt [6]{2}x\sqrt{3} \right ) \sqrt [6]{2}\sqrt{3}}{24}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x^6+2),x)

[Out]

1/6*arctan(1/2*x*2^(5/6))*2^(1/6)+1/12*arctan(x*2^(5/6)-3^(1/2))*2^(1/6)+1/12*arctan(x*2^(5/6)+3^(1/2))*2^(1/6
)-1/24*ln(2^(1/3)+x^2-2^(1/6)*x*3^(1/2))*2^(1/6)*3^(1/2)+1/24*ln(2^(1/3)+x^2+2^(1/6)*x*3^(1/2))*2^(1/6)*3^(1/2
)

________________________________________________________________________________________

Maxima [A]  time = 1.43452, size = 144, normalized size = 1.04 \begin{align*} \frac{1}{24} \, \sqrt{3} 2^{\frac{1}{6}} \log \left (x^{2} + \sqrt{3} 2^{\frac{1}{6}} x + 2^{\frac{1}{3}}\right ) - \frac{1}{24} \, \sqrt{3} 2^{\frac{1}{6}} \log \left (x^{2} - \sqrt{3} 2^{\frac{1}{6}} x + 2^{\frac{1}{3}}\right ) + \frac{1}{12} \cdot 2^{\frac{1}{6}} \arctan \left (\frac{1}{2} \cdot 2^{\frac{5}{6}}{\left (2 \, x + \sqrt{3} 2^{\frac{1}{6}}\right )}\right ) + \frac{1}{12} \cdot 2^{\frac{1}{6}} \arctan \left (\frac{1}{2} \cdot 2^{\frac{5}{6}}{\left (2 \, x - \sqrt{3} 2^{\frac{1}{6}}\right )}\right ) + \frac{1}{6} \cdot 2^{\frac{1}{6}} \arctan \left (\frac{1}{2} \cdot 2^{\frac{5}{6}} x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x^6+2),x, algorithm="maxima")

[Out]

1/24*sqrt(3)*2^(1/6)*log(x^2 + sqrt(3)*2^(1/6)*x + 2^(1/3)) - 1/24*sqrt(3)*2^(1/6)*log(x^2 - sqrt(3)*2^(1/6)*x
 + 2^(1/3)) + 1/12*2^(1/6)*arctan(1/2*2^(5/6)*(2*x + sqrt(3)*2^(1/6))) + 1/12*2^(1/6)*arctan(1/2*2^(5/6)*(2*x
- sqrt(3)*2^(1/6))) + 1/6*2^(1/6)*arctan(1/2*2^(5/6)*x)

________________________________________________________________________________________

Fricas [A]  time = 2.13277, size = 593, normalized size = 4.3 \begin{align*} \frac{1}{384} \cdot 32^{\frac{5}{6}} \sqrt{3} \log \left (32^{\frac{5}{6}} \sqrt{3} x + 16 \, x^{2} + 8 \cdot 4^{\frac{2}{3}}\right ) - \frac{1}{384} \cdot 32^{\frac{5}{6}} \sqrt{3} \log \left (-32^{\frac{5}{6}} \sqrt{3} x + 16 \, x^{2} + 8 \cdot 4^{\frac{2}{3}}\right ) - \frac{1}{48} \cdot 32^{\frac{5}{6}} \arctan \left (\frac{1}{4} \cdot 32^{\frac{1}{6}} \sqrt{2} \sqrt{2 \, x^{2} + 4^{\frac{2}{3}}} - \frac{1}{2} \cdot 32^{\frac{1}{6}} x\right ) - \frac{1}{96} \cdot 32^{\frac{5}{6}} \arctan \left (-32^{\frac{1}{6}} x + \frac{1}{4} \cdot 32^{\frac{1}{6}} \sqrt{32^{\frac{5}{6}} \sqrt{3} x + 16 \, x^{2} + 8 \cdot 4^{\frac{2}{3}}} - \sqrt{3}\right ) - \frac{1}{96} \cdot 32^{\frac{5}{6}} \arctan \left (-32^{\frac{1}{6}} x + \frac{1}{4} \cdot 32^{\frac{1}{6}} \sqrt{-32^{\frac{5}{6}} \sqrt{3} x + 16 \, x^{2} + 8 \cdot 4^{\frac{2}{3}}} + \sqrt{3}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x^6+2),x, algorithm="fricas")

[Out]

1/384*32^(5/6)*sqrt(3)*log(32^(5/6)*sqrt(3)*x + 16*x^2 + 8*4^(2/3)) - 1/384*32^(5/6)*sqrt(3)*log(-32^(5/6)*sqr
t(3)*x + 16*x^2 + 8*4^(2/3)) - 1/48*32^(5/6)*arctan(1/4*32^(1/6)*sqrt(2)*sqrt(2*x^2 + 4^(2/3)) - 1/2*32^(1/6)*
x) - 1/96*32^(5/6)*arctan(-32^(1/6)*x + 1/4*32^(1/6)*sqrt(32^(5/6)*sqrt(3)*x + 16*x^2 + 8*4^(2/3)) - sqrt(3))
- 1/96*32^(5/6)*arctan(-32^(1/6)*x + 1/4*32^(1/6)*sqrt(-32^(5/6)*sqrt(3)*x + 16*x^2 + 8*4^(2/3)) + sqrt(3))

________________________________________________________________________________________

Sympy [A]  time = 0.255566, size = 14, normalized size = 0.1 \begin{align*} \operatorname{RootSum}{\left (1492992 t^{6} + 1, \left ( t \mapsto t \log{\left (12 t + x \right )} \right )\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x**6+2),x)

[Out]

RootSum(1492992*_t**6 + 1, Lambda(_t, _t*log(12*_t + x)))

________________________________________________________________________________________

Giac [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(x^6+2),x, algorithm="giac")

[Out]

Exception raised: NotImplementedError