I am trying to solve the following integral : $$\int \frac{1}{1+x^6}dx$$
I do not want the reader to evaluate the integral, but rather the partial fractions of the integrand : $\frac{1}{1+x^6}$.
This is my workings for factoring the integrand : $$\begin{align}x^6+ 1 &= (x^2+1)(x^4-x^2+1)\\ &= (x^2+1)(x^4+2x^2+1-3x^2)\\ &=(x^2+1)((x^2+1)^2-(\sqrt{3}x)^2)\\ &=(x^2+1)(x^2-\sqrt{3}x+1)(x^2+\sqrt{3}x+1)\end{align}$$
Therefore : $$\int\frac{1}{x^6+1}dx=\int\frac{a_1x+a_2}{x^2+1}dx+\int\frac{a_3x+a_4}{x^2-\sqrt{3}x+1}dx+\int\frac{a_5x+a_6}{x^2+\sqrt{3}x+1}dx$$
From here, I am not sure how to proceed to solve for $a_n$.
You could work this out from there by bringing the terms back to a common fraction.
$$ \frac{a_1 x + a_2}{x^2+1} + \frac{a_3 x + a_4}{x^2 - \sqrt{3} x + 1} + \frac{a_5 x + a_6}{x^2 + \sqrt{3} x + 1} = \frac{1}{x^6+1} $$
for all $x$ if and only if
$$ (a_1 x + a_2)(x^2 - \sqrt{3} x + 1)(x^2 + \sqrt{3} x + 1) + (a_3 x + a_4)(x^2 + 1)(x^2 + \sqrt{3} x + 1) + (a_5 x + a_6)(x^2 + 1)(x^2 - \sqrt{3} x + 1) = 1 $$
Multiplying it all out and collecting like terms makes the left side a degree 5 polynomial, and the coefficients must be $0, 0, 0, 0, 0, 1$. So that's six linear equations in six unknowns.
But that's going to be a huge mess!
To keep this more manageable, let's try computing numerators with the denominator only partly factored, not all the way into irreducibles over the reals. Since $x^6+1 = (x^2+1)(x^4-x^2+1)$, we know there are real $a_0, b_0, b_2$ so that
$$ \frac{a_0}{x^2+1} + \frac{b_2 x^2 + b_0}{x^4-x^2+1} = \frac{1}{x^6+1} $$
If you're wondering why we don't have an $x$ term above $x^2+1$ and an $x^3$ and an $x$ term above $x^4-x^2+1$, it's because I've treated $x^2$ rather than $x$ as the "free" variable here. That is, we can find a representation of $1/(y^3+1)$ in terms of $1/(y+1)$ and $1/(y^2-y+1)$ which is valid for all real $y$, then substitute $y=x^2$ to get the wanted formula for $1/(x^6+1)$; it will have only even powers of $x$.
Multiplying out gives
$$ a_0(x^4 - x^2 + 1) + (b_2 x^2 + b_0)(x^2+1) = 1 $$ $$ (a_0+b_2) x^4 + (b_0+b_2-a_0) x^2 + (a_0+b_0) = 1 $$ $$ a_0 + b_2 = 0 \qquad b_0+b_2-a_0 = 0 \qquad a_0+b_0 = 1 $$
The unique solution to these is $a_0 = \frac{1}{3}$, $b_2 = -\frac{1}{3}$, $b_0 = \frac{2}{3}$. So
$$ \frac{1}{x^6+1} = \frac{1}{3}\left[\frac{1}{x^2+1} + \frac{2-x^2}{x^4 - x^2 + 1}\right] $$
Now for the next factor split, let's look for coefficients so that
$$ \frac{c_1 x+c_0}{x^2 - \sqrt{3} x + 1} + \frac{d_1 x+d_0}{x^2 + \sqrt{3} x + 1} = \frac{2-x^2}{x^4-x^2+1} $$ $$ (c_1 x+c_0)(x^2 + \sqrt{3}x + 1) + (d_1 x+d_0)(x^2 - \sqrt{3} x + 1) = 2-x^2 $$ $$ (c_1+d_1)x^3 + (c_1 \sqrt{3} + c_0 - d_1 \sqrt{3} + d_0)x^2 + (c_1 + c_0 \sqrt{3} + d_1 - d_0 \sqrt{3}) x + (c_0+d_0) = -x^2 + 2 $$ $$ c_1+d_1=0 \qquad c_1 \sqrt{3} + c_0 - d_1 \sqrt{3} + d_0 = -1 \qquad c_1 + c_0 \sqrt{3} + d_1 - d_0 \sqrt{3} = 0 \qquad c_0+d_0=2 $$
I get the unique solution as $c_0=1$, $c_1=-\sqrt{3}/2$, $d_0=1$, $d_1=\sqrt{3}/2$. So
$$ \frac{2-x^2}{x^4-x^2+1} = \frac{1 - \frac{\sqrt{3}}{2} x}{x^2-\sqrt{3}x+1} + \frac{1 + \frac{\sqrt{3}}{2} x}{x^2+\sqrt{3}x+1} $$
Finally,
$$ \frac{1}{x^6+1} = \frac{\frac{1}{3}}{x^2+1} + \frac{\frac{1}{3} - \frac{1}{2\sqrt{3}} x}{x^2-\sqrt{3}x+1} + \frac{\frac{1}{3} + \frac{1}{2\sqrt{3}} x}{x^2+\sqrt{3}x+1} $$