Evaluate $\int\frac{1}{1+x^6} \,dx$ I came across following problem


  Evaluate $$\int\frac{1}{1+x^6} \,dx$$


When I asked my teacher for hint he said first evaluate


  $$\int\frac{1}{1+x^4} \,dx$$


I've tried to factorize $1+x^6$ as

$$1+x^6=(x^2 + 1)(x^4 - x^2 + 1)$$
and then writing

$$I=\int\frac{1}{1+x^6} \,dx=\int\frac{1}{(x^2 + 1)(x^4 - x^2 + 1)} \,dx=\int\frac{1+x^2-x^2}{(x^2 + 1)(x^4 - x^2 + 1)} \,dx$$
$$I=\int\frac{1}{x^4 - x^2 + 1} \,dx-\int\frac{x^2}{(x^2 + 1)(x^4 - x^2 + 1)} \,dx$$

However $$x^4-x^2+1=\left(x^2-\frac12\right)^2+\frac{3}{4}$$
But I can't see how it helps

I've also tried to reverse engineer the solution given by Wolfram Alpha

And I need to have terms similar to
$$\frac{x^2-1}{x^4-x^2+1} \quad , \quad \frac{1}{1+x^2} \quad , \quad \frac{1}{(x+c)^2+1}\quad , \quad \frac{1}{(x+c)^2+1}$$ in integrand, How can I transform my cute looking integrand into these huge terms?

Since in exams I will neither have access to WA nor time to reverse engineer the solution moreover it does not seem intuitive,is there any way to solve this problem with some nice tricks or maybe substitutions?
Here's a nice "trick" my former professor taught me

$$ \int\frac{dx}{1+x^6} = \frac{1}{2} \int \frac{(1-x^2+x^4)+x^2+(1-x^4)}{(1+x^2)(1-x^2+x^4)} dx \\
= \frac{1}{2}\int \frac{dx}{1+x^2} + \frac{1}{2} \int \frac{x^2}{1+x^6} dx + \frac{1}{2} \int \frac{1-x^2}{1-x^2+x^4} dx \\
= \frac{1}{2}\int \frac{dx}{1+x^2} + \frac{1}{2} \int \frac{x^2}{1+x^6} dx - \frac{1}{2} \int \frac{1-\frac{1}{x^2}}{x^2-1+\frac{1}{x^2}} dx  $$

The first integral is simply the arctangent of $x$. The second can be solved by substituting $u = x^3$. The third can be solved by substituting $t = x + \frac{1}{x}$
As suggested, you can transform your denominator $1+x^6$ into $(1+x^2)(1-x^2+x^4)$. You can then use partial fractions to split the following into something that can be integrated:

$\Large\int \frac{1}{(1+x^2)(1-x^2+x^4)}dx$ 

Hope that helps. It looks like a very nasty and messy integration to do. Best wishes.