Solution:
Key idea: When the degree of the numerator is at least that of the denominator, divide first. The sum of cubes u3+1=(u+1)(u2−u+1), used for u equal to x2, factorises x6+1 as (x2+1)(x4−x2+1), so x6−1 is that product minus 2. The leftover fraction is the tan−1 form. C is the constant of integration.
Step 1 — Divide x6−1 by x2+1.
We write x6−1 as (x6+1)−2 and factorise x6+1.
x6−1=(x6+1)−2
x6−1=(x2+1)(x4−x2+1)−2
Step 2 — Write the integrand as a polynomial plus a fraction.
Dividing by x2+1 cancels the product.
x2+1x6−1=x4−x2+1−x2+12
Step 3 — Integrate term by term.
We use the power rule for the polynomial and the tan−1 form for the fraction.
∫(x4−x2+1−x2+12)dx=5x5−3x3+x−2tan−1x+C
Therefore, ∫x2+1x6−1dx=51x5−31x3+x−2tan−1x+C.