Solution:
Key idea: Divide the numerator and the denominator by x 2 x^2 x 2 . If the numerator becomes 1 + k x 2 1+\dfrac{k}{x^2} 1 + x 2 k , put t = x − k x t = x-\dfrac{k}{x} t = x − x k ; if it becomes 1 − k x 2 1-\dfrac{k}{x^2} 1 − x 2 k , put t = x + k x t = x+\dfrac{k}{x} t = x + x k . Then write the denominator in terms of t 2 t^2 t 2 .
Step 1 — Part (i): divide by x 2 x^2 x 2 and substitute t = x − 1 x t = x-\dfrac{1}{x} t = x − x 1 .
For x ≠ 0 x \ne 0 x = 0 the numerator becomes 1 + 1 x 2 1+\dfrac{1}{x^2} 1 + x 2 1 , so we put x − 1 x = t x-\dfrac{1}{x} = t x − x 1 = t and ( 1 + 1 x 2 ) d x = d t \left(1+\dfrac{1}{x^2}\right)dx = dt ( 1 + x 2 1 ) d x = d t .
Squaring gives x 2 + 1 x 2 = t 2 + 2 x^2+\dfrac{1}{x^2} = t^2+2 x 2 + x 2 1 = t 2 + 2 , so the denominator x 2 + 1 + 1 x 2 x^2+1+\dfrac{1}{x^2} x 2 + 1 + x 2 1 becomes t 2 + 3 t^2+3 t 2 + 3 .
∫ x 2 + 1 x 4 + x 2 + 1 d x = ∫ 1 + 1 x 2 x 2 + 1 + 1 x 2 d x = ∫ d t t 2 + ( 3 ) 2 = 1 3 tan − 1 t 3 + C = 1 3 tan − 1 x 2 − 1 3 x + C \begin{aligned}
\int \dfrac{x^2+1}{x^4+x^2+1}\,dx &= \int \dfrac{1+\frac{1}{x^2}}{x^2+1+\frac{1}{x^2}}\,dx \\
&= \int \dfrac{dt}{t^2+(\sqrt{3})^2} \\
&= \dfrac{1}{\sqrt{3}}\tan^{-1}\dfrac{t}{\sqrt{3}} + C \\
&= \dfrac{1}{\sqrt{3}}\tan^{-1}\dfrac{x^2-1}{\sqrt{3}\,x} + C
\end{aligned} ∫ x 4 + x 2 + 1 x 2 + 1 d x = ∫ x 2 + 1 + x 2 1 1 + x 2 1 d x = ∫ t 2 + ( 3 ) 2 d t = 3 1 tan − 1 3 t + C = 3 1 tan − 1 3 x x 2 − 1 + C
Step 2 — Part (ii): divide by x 2 x^2 x 2 and substitute t = x − 9 x t = x-\dfrac{9}{x} t = x − x 9 .
The numerator becomes 1 + 9 x 2 1+\dfrac{9}{x^2} 1 + x 2 9 , so we put x − 9 x = t x-\dfrac{9}{x} = t x − x 9 = t and ( 1 + 9 x 2 ) d x = d t \left(1+\dfrac{9}{x^2}\right)dx = dt ( 1 + x 2 9 ) d x = d t .
t 2 = x 2 − 18 + 81 x 2 x 2 − 2 + 81 x 2 = t 2 + 16 \begin{aligned}
t^2 &= x^2-18+\dfrac{81}{x^2} \\
x^2-2+\dfrac{81}{x^2} &= t^2+16
\end{aligned} t 2 x 2 − 2 + x 2 81 = x 2 − 18 + x 2 81 = t 2 + 16
Step 3 — Part (ii): integrate with a = 4 a = 4 a = 4 .
The denominator is now t 2 + 4 2 t^2+4^2 t 2 + 4 2 , the standard tan − 1 \tan^{-1} tan − 1 form.
∫ x 2 + 9 x 4 − 2 x 2 + 81 d x = ∫ d t t 2 + 4 2 = 1 4 tan − 1 t 4 + C = 1 4 tan − 1 x 2 − 9 4 x + C \begin{aligned}
\int \dfrac{x^2+9}{x^4-2x^2+81}\,dx &= \int \dfrac{dt}{t^2+4^2} \\
&= \dfrac{1}{4}\tan^{-1}\dfrac{t}{4} + C \\
&= \dfrac{1}{4}\tan^{-1}\dfrac{x^2-9}{4x} + C
\end{aligned} ∫ x 4 − 2 x 2 + 81 x 2 + 9 d x = ∫ t 2 + 4 2 d t = 4 1 tan − 1 4 t + C = 4 1 tan − 1 4 x x 2 − 9 + C
Step 4 — Part (iii): divide by x 2 x^2 x 2 and substitute t = x + 8 x t = x+\dfrac{8}{x} t = x + x 8 .
The numerator becomes 1 − 8 x 2 1-\dfrac{8}{x^2} 1 − x 2 8 , so we put x + 8 x = t x+\dfrac{8}{x} = t x + x 8 = t and ( 1 − 8 x 2 ) d x = d t \left(1-\dfrac{8}{x^2}\right)dx = dt ( 1 − x 2 8 ) d x = d t .
t 2 = x 2 + 16 + 64 x 2 x 2 + 7 + 64 x 2 = t 2 − 9 \begin{aligned}
t^2 &= x^2+16+\dfrac{64}{x^2} \\
x^2+7+\dfrac{64}{x^2} &= t^2-9
\end{aligned} t 2 x 2 + 7 + x 2 64 = x 2 + 16 + x 2 64 = t 2 − 9
Step 5 — Part (iii): integrate with the t 2 − a 2 t^2-a^2 t 2 − a 2 form.
The denominator is t 2 − 3 2 t^2-3^2 t 2 − 3 2 , so we use the standard form for 1 t 2 − a 2 \dfrac{1}{t^2-a^2} t 2 − a 2 1 ; here a = 3 a = 3 a = 3 and 2 a = 6 2a = 6 2 a = 6 .
∫ x 2 − 8 x 4 + 7 x 2 + 64 d x = 1 6 log ∣ t − 3 t + 3 ∣ + C \int \dfrac{x^2-8}{x^4+7x^2+64}\,dx = \dfrac{1}{6}\log\left|\dfrac{t-3}{t+3}\right| + C ∫ x 4 + 7 x 2 + 64 x 2 − 8 d x = 6 1 log t + 3 t − 3 + C
Step 6 — Part (iii): return to x x x .
We replace t t t by x + 8 x x+\dfrac{8}{x} x + x 8 and multiply the top and bottom by x x x .
t − 3 t + 3 = x 2 − 3 x + 8 x 2 + 3 x + 8 \dfrac{t-3}{t+3} = \dfrac{x^2-3x+8}{x^2+3x+8} t + 3 t − 3 = x 2 + 3 x + 8 x 2 − 3 x + 8
Both quadratics have discriminant 9 − 32 < 0 9-32 < 0 9 − 32 < 0 , so they are always positive and the modulus can be dropped.
Note: In parts (i) and (ii) the tan − 1 \tan^{-1} tan − 1 answer is undefined at x = 0 x = 0 x = 0 , so it holds on x > 0 x > 0 x > 0 and on x < 0 x < 0 x < 0 separately, with its own constant on each side.
Therefore, (i) 1 3 tan − 1 x 2 − 1 3 x + C \dfrac{1}{\sqrt{3}}\tan^{-1}\dfrac{x^2-1}{\sqrt{3}\,x} + C 3 1 tan − 1 3 x x 2 − 1 + C ; (ii) 1 4 tan − 1 x 2 − 9 4 x + C \dfrac{1}{4}\tan^{-1}\dfrac{x^2-9}{4x} + C 4 1 tan − 1 4 x x 2 − 9 + C ; (iii) 1 6 log x 2 − 3 x + 8 x 2 + 3 x + 8 + C \dfrac{1}{6}\log\dfrac{x^2-3x+8}{x^2+3x+8} + C 6 1 log x 2 + 3 x + 8 x 2 − 3 x + 8 + C .