Problem 268
Medium Partial Fractions

Evaluate the integral: I = integral (x^4+1)/(x^6+1) dx

Evaluate the integral: $$ I = \int \frac{x^4+1}{x^6+1}\,dx. $$

Explanation of Method

The denominator factors as $x^6+1=(x^2+1)(x^4-x^2+1)$. Splitting the integrand into a piece over $x^2+1$ and a piece over $x^4-x^2+1$, the second piece becomes a clean arctangent after dividing through by $x^2$ and substituting $t=x-1/x$.

  1. Factor $x^6+1=(x^2+1)(x^4-x^2+1)$.
  2. Split the integrand into two pieces.
  3. Substitute $t=x-1/x$ in the second piece.
  4. Integrate and combine.

Step 1 · Factor and split

$$ x^6+1=(x^2+1)(x^4-x^2+1). $$

The integrand splits as:

$$ \frac{x^4+1}{x^6+1} = \frac{2/3}{x^2+1} + \frac13\cdot\frac{x^2+1}{x^4-x^2+1}. $$

This can be verified directly: putting the right side over the common denominator $x^6+1$ gives numerator $2(x^4-x^2+1)+(x^2+1)^2=2x^4-2x^2+2+x^4+2x^2+1=3x^4+3=3(x^4+1)$, so dividing by $3$ recovers the left side exactly.

Step 2 · Integrate the first piece

$$ \frac23\int\frac{dx}{x^2+1} = \frac23\arctan x. $$

Step 3 · Integrate the second piece via $t=x-1/x$

Divide numerator and denominator of $\dfrac{x^2+1}{x^4-x^2+1}$ by $x^2$:

$$ \frac{x^2+1}{x^4-x^2+1} = \frac{1+1/x^2}{x^2-1+1/x^2}. $$

Let $t=x-\dfrac1x$, so $dt=\left(1+\dfrac1{x^2}\right)dx$ and $t^2=x^2-2+\dfrac1{x^2}$, giving $x^2-1+\dfrac1{x^2}=t^2+1$. Then:

$$ \frac13\int\frac{x^2+1}{x^4-x^2+1}\,dx = \frac13\int\frac{dt}{t^2+1} = \frac13\arctan t = \frac13\arctan\left(\frac{x^2-1}{x}\right). $$

Step 4 · Combine

$$ I = \frac23\arctan x + \frac13\arctan\left(\frac{x^2-1}{x}\right) + C. $$


Summary Table

Piece Antiderivative
$(2/3)/(x^2+1)$$\tfrac23\arctan x$
$(1/3)(x^2+1)/(x^4-x^2+1)$$\tfrac13\arctan\left(\tfrac{x^2-1}x\right)$

Additional Notes

Result

The solution to the integral is:

$$ I = \frac23\arctan x + \frac13\arctan\left(\frac{x^2-1}{x}\right) + C. $$