Solution:
Key idea: For quartics of the form x 4 + p x 2 + k 2 x^4+px^2+k^2 x 4 + p x 2 + k 2 , divide the numerator and the denominator by x 2 x^2 x 2 . Then x − k x x-\dfrac{k}{x} x − x k is the right substitution when the numerator becomes 1 + k x 2 1+\dfrac{k}{x^2} 1 + x 2 k , and x + k x x+\dfrac{k}{x} x + x k when it becomes 1 − k x 2 1-\dfrac{k}{x^2} 1 − x 2 k . Any other numerator is first written as a combination of x 2 + k x^2+k x 2 + k and x 2 − k x^2-k x 2 − k .
Step 1 — Part (i): write the numerator as a combination.
Since x 2 = 1 2 [ ( x 2 + 1 ) + ( x 2 − 1 ) ] x^2 = \dfrac{1}{2}\left[(x^2+1)+(x^2-1)\right] x 2 = 2 1 [ ( x 2 + 1 ) + ( x 2 − 1 ) ] , the integral is half the sum of two simpler integrals.
∫ x 2 x 4 + 1 d x = 1 2 ∫ x 2 + 1 x 4 + 1 d x + 1 2 ∫ x 2 − 1 x 4 + 1 d x \int \dfrac{x^2}{x^4+1}\,dx = \dfrac{1}{2}\int \dfrac{x^2+1}{x^4+1}\,dx+\dfrac{1}{2}\int \dfrac{x^2-1}{x^4+1}\,dx ∫ x 4 + 1 x 2 d x = 2 1 ∫ x 4 + 1 x 2 + 1 d x + 2 1 ∫ x 4 + 1 x 2 − 1 d x
Step 2 — Part (i): the integral with x 2 + 1 x^2+1 x 2 + 1 .
Dividing by x 2 x^2 x 2 (for x ≠ 0 x \ne 0 x = 0 ) gives the numerator 1 + 1 x 2 1+\dfrac{1}{x^2} 1 + x 2 1 . We put x − 1 x = u x-\dfrac{1}{x} = u x − x 1 = u , so ( 1 + 1 x 2 ) d x = d u \left(1+\dfrac{1}{x^2}\right)dx = du ( 1 + x 2 1 ) d x = d u and x 2 + 1 x 2 = u 2 + 2 x^2+\dfrac{1}{x^2} = u^2+2 x 2 + x 2 1 = u 2 + 2 .
∫ x 2 + 1 x 4 + 1 d x = ∫ 1 + 1 x 2 x 2 + 1 x 2 d x = ∫ d u u 2 + ( 2 ) 2 = 1 2 tan − 1 u 2 = 1 2 tan − 1 x 2 − 1 2 x \begin{aligned}
\int \dfrac{x^2+1}{x^4+1}\,dx &= \int \dfrac{1+\frac{1}{x^2}}{x^2+\frac{1}{x^2}}\,dx \\
&= \int \dfrac{du}{u^2+(\sqrt{2})^2} \\
&= \dfrac{1}{\sqrt{2}}\tan^{-1}\dfrac{u}{\sqrt{2}} \\
&= \dfrac{1}{\sqrt{2}}\tan^{-1}\dfrac{x^2-1}{\sqrt{2}\,x}
\end{aligned} ∫ x 4 + 1 x 2 + 1 d x = ∫ x 2 + x 2 1 1 + x 2 1 d x = ∫ u 2 + ( 2 ) 2 d u = 2 1 tan − 1 2 u = 2 1 tan − 1 2 x x 2 − 1
Step 3 — Part (i): the integral with x 2 − 1 x^2-1 x 2 − 1 .
Dividing by x 2 x^2 x 2 gives the numerator 1 − 1 x 2 1-\dfrac{1}{x^2} 1 − x 2 1 . We put x + 1 x = v x+\dfrac{1}{x} = v x + x 1 = v , so ( 1 − 1 x 2 ) d x = d v \left(1-\dfrac{1}{x^2}\right)dx = dv ( 1 − x 2 1 ) d x = d v and x 2 + 1 x 2 = v 2 − 2 x^2+\dfrac{1}{x^2} = v^2-2 x 2 + x 2 1 = v 2 − 2 .
∫ x 2 − 1 x 4 + 1 d x = ∫ d v v 2 − ( 2 ) 2 = 1 2 2 log ∣ v − 2 v + 2 ∣ = 1 2 2 log x 2 − 2 x + 1 x 2 + 2 x + 1 \begin{aligned}
\int \dfrac{x^2-1}{x^4+1}\,dx &= \int \dfrac{dv}{v^2-(\sqrt{2})^2} \\
&= \dfrac{1}{2\sqrt{2}}\log\left|\dfrac{v-\sqrt{2}}{v+\sqrt{2}}\right| \\
&= \dfrac{1}{2\sqrt{2}}\log\dfrac{x^2-\sqrt{2}\,x+1}{x^2+\sqrt{2}\,x+1}
\end{aligned} ∫ x 4 + 1 x 2 − 1 d x = ∫ v 2 − ( 2 ) 2 d v = 2 2 1 log v + 2 v − 2 = 2 2 1 log x 2 + 2 x + 1 x 2 − 2 x + 1
Here we multiplied the top and bottom by x x x ; both quadratics are always positive, so no modulus is needed.
Step 4 — Part (i): combine the two halves.
We take half of each result from Steps 2 and 3.
∫ x 2 x 4 + 1 d x = 1 2 2 tan − 1 x 2 − 1 2 x + 1 4 2 log x 2 − 2 x + 1 x 2 + 2 x + 1 + C \int \dfrac{x^2}{x^4+1}\,dx = \dfrac{1}{2\sqrt{2}}\tan^{-1}\dfrac{x^2-1}{\sqrt{2}\,x}+\dfrac{1}{4\sqrt{2}}\log\dfrac{x^2-\sqrt{2}\,x+1}{x^2+\sqrt{2}\,x+1} + C ∫ x 4 + 1 x 2 d x = 2 2 1 tan − 1 2 x x 2 − 1 + 4 2 1 log x 2 + 2 x + 1 x 2 − 2 x + 1 + C
Step 5 — Parts (ii), (iii), (v): two basic integrals for x 4 + 16 x^4+16 x 4 + 16 .
Here k = 4 k = 4 k = 4 . We divide by x 2 x^2 x 2 and put x − 4 x = u x-\dfrac{4}{x} = u x − x 4 = u ; then x 2 + 16 x 2 = u 2 + 8 x^2+\dfrac{16}{x^2} = u^2+8 x 2 + x 2 16 = u 2 + 8 . This gives the first basic integral J 1 J_1 J 1 .
J 1 = ∫ x 2 + 4 x 4 + 16 d x = ∫ d u u 2 + ( 2 2 ) 2 = 1 2 2 tan − 1 x 2 − 4 2 2 x \begin{aligned}
J_1 = \int \dfrac{x^2+4}{x^4+16}\,dx &= \int \dfrac{du}{u^2+(2\sqrt{2})^2} \\
&= \dfrac{1}{2\sqrt{2}}\tan^{-1}\dfrac{x^2-4}{2\sqrt{2}\,x}
\end{aligned} J 1 = ∫ x 4 + 16 x 2 + 4 d x = ∫ u 2 + ( 2 2 ) 2 d u = 2 2 1 tan − 1 2 2 x x 2 − 4
If instead we put x + 4 x = t x+\dfrac{4}{x} = t x + x 4 = t ; then x 2 + 16 x 2 = t 2 − 8 x^2+\dfrac{16}{x^2} = t^2-8 x 2 + x 2 16 = t 2 − 8 . This gives the second basic integral J 2 J_2 J 2 , worked in full in Q7(iv).
J 2 = ∫ x 2 − 4 x 4 + 16 d x = 1 4 2 log x 2 − 2 2 x + 4 x 2 + 2 2 x + 4 J_2 = \int \dfrac{x^2-4}{x^4+16}\,dx = \dfrac{1}{4\sqrt{2}}\log\dfrac{x^2-2\sqrt{2}\,x+4}{x^2+2\sqrt{2}\,x+4} J 2 = ∫ x 4 + 16 x 2 − 4 d x = 4 2 1 log x 2 + 2 2 x + 4 x 2 − 2 2 x + 4
Step 6 — Part (ii): write 1 as a combination.
Since ( x 2 + 4 ) − ( x 2 − 4 ) = 8 (x^2+4)-(x^2-4) = 8 ( x 2 + 4 ) − ( x 2 − 4 ) = 8 , we have 1 = 1 8 [ ( x 2 + 4 ) − ( x 2 − 4 ) ] 1 = \dfrac{1}{8}\left[(x^2+4)-(x^2-4)\right] 1 = 8 1 [ ( x 2 + 4 ) − ( x 2 − 4 ) ] , so the integral is 1 8 ( J 1 − J 2 ) \dfrac{1}{8}(J_1-J_2) 8 1 ( J 1 − J 2 ) .
∫ d x x 4 + 16 = 1 16 2 tan − 1 x 2 − 4 2 2 x − 1 32 2 log x 2 − 2 2 x + 4 x 2 + 2 2 x + 4 + C \int \dfrac{dx}{x^4+16} = \dfrac{1}{16\sqrt{2}}\tan^{-1}\dfrac{x^2-4}{2\sqrt{2}\,x}-\dfrac{1}{32\sqrt{2}}\log\dfrac{x^2-2\sqrt{2}\,x+4}{x^2+2\sqrt{2}\,x+4} + C ∫ x 4 + 16 d x = 16 2 1 tan − 1 2 2 x x 2 − 4 − 32 2 1 log x 2 + 2 2 x + 4 x 2 − 2 2 x + 4 + C
Step 7 — Part (iii): write x 2 x^2 x 2 as a combination.
Since x 2 = 1 2 [ ( x 2 + 4 ) + ( x 2 − 4 ) ] x^2 = \dfrac{1}{2}\left[(x^2+4)+(x^2-4)\right] x 2 = 2 1 [ ( x 2 + 4 ) + ( x 2 − 4 ) ] , the integral is 1 2 ( J 1 + J 2 ) \dfrac{1}{2}(J_1+J_2) 2 1 ( J 1 + J 2 ) .
∫ x 2 x 4 + 16 d x = 1 4 2 tan − 1 x 2 − 4 2 2 x + 1 8 2 log x 2 − 2 2 x + 4 x 2 + 2 2 x + 4 + C \int \dfrac{x^2}{x^4+16}\,dx = \dfrac{1}{4\sqrt{2}}\tan^{-1}\dfrac{x^2-4}{2\sqrt{2}\,x}+\dfrac{1}{8\sqrt{2}}\log\dfrac{x^2-2\sqrt{2}\,x+4}{x^2+2\sqrt{2}\,x+4} + C ∫ x 4 + 16 x 2 d x = 4 2 1 tan − 1 2 2 x x 2 − 4 + 8 2 1 log x 2 + 2 2 x + 4 x 2 − 2 2 x + 4 + C
Step 8 — Part (iv): divide by x 2 x^2 x 2 and substitute u = x − 1 x u = x-\dfrac{1}{x} u = x − x 1 .
Dividing by x 2 x^2 x 2 gives the numerator 1 + 1 x 2 1+\dfrac{1}{x^2} 1 + x 2 1 , so we put x − 1 x = u x-\dfrac{1}{x} = u x − x 1 = u .
Then x 2 + 1 x 2 = u 2 + 2 x^2+\dfrac{1}{x^2} = u^2+2 x 2 + x 2 1 = u 2 + 2 , and the denominator becomes u 2 + 2 + 7 = u 2 + 9 u^2+2+7 = u^2+9 u 2 + 2 + 7 = u 2 + 9 .
∫ x 2 + 1 x 4 + 7 x 2 + 1 d x = ∫ 1 + 1 x 2 x 2 + 7 + 1 x 2 d x = ∫ d u u 2 + 3 2 = 1 3 tan − 1 u 3 + C = 1 3 tan − 1 x 2 − 1 3 x + C \begin{aligned}
\int \dfrac{x^2+1}{x^4+7x^2+1}\,dx &= \int \dfrac{1+\frac{1}{x^2}}{x^2+7+\frac{1}{x^2}}\,dx \\
&= \int \dfrac{du}{u^2+3^2} \\
&= \dfrac{1}{3}\tan^{-1}\dfrac{u}{3} + C \\
&= \dfrac{1}{3}\tan^{-1}\dfrac{x^2-1}{3x} + C
\end{aligned} ∫ x 4 + 7 x 2 + 1 x 2 + 1 d x = ∫ x 2 + 7 + x 2 1 1 + x 2 1 d x = ∫ u 2 + 3 2 d u = 3 1 tan − 1 3 u + C = 3 1 tan − 1 3 x x 2 − 1 + C
Step 9 — Part (v): recognise J 1 J_1 J 1 .
The integrand of part (v) is exactly the one in J 1 J_1 J 1 from Step 5.
∫ x 2 + 4 x 4 + 16 d x = 1 2 2 tan − 1 x 2 − 4 2 2 x + C \int \dfrac{x^2+4}{x^4+16}\,dx = \dfrac{1}{2\sqrt{2}}\tan^{-1}\dfrac{x^2-4}{2\sqrt{2}\,x} + C ∫ x 4 + 16 x 2 + 4 d x = 2 2 1 tan − 1 2 2 x x 2 − 4 + C
Note: The tan − 1 \tan^{-1} tan − 1 terms are undefined at x = 0 x = 0 x = 0 , so each answer holds on x > 0 x > 0 x > 0 and on x < 0 x < 0 x < 0 separately (the constant C C C may differ on the two sides). Since 8 = 2 2 \sqrt{8} = 2\sqrt{2} 8 = 2 2 , these answers can also be written with 8 \sqrt{8} 8 , for example 1 8 tan − 1 x 2 − 4 8 x \dfrac{1}{\sqrt{8}}\tan^{-1}\dfrac{x^2-4}{\sqrt{8}\,x} 8 1 tan − 1 8 x x 2 − 4 in part (v).
Therefore, (i) 1 2 2 tan − 1 x 2 − 1 2 x + 1 4 2 log x 2 − 2 x + 1 x 2 + 2 x + 1 + C \dfrac{1}{2\sqrt{2}}\tan^{-1}\dfrac{x^2-1}{\sqrt{2}\,x}+\dfrac{1}{4\sqrt{2}}\log\dfrac{x^2-\sqrt{2}\,x+1}{x^2+\sqrt{2}\,x+1} + C 2 2 1 tan − 1 2 x x 2 − 1 + 4 2 1 log x 2 + 2 x + 1 x 2 − 2 x + 1 + C ; (ii) 1 16 2 tan − 1 x 2 − 4 2 2 x − 1 32 2 log x 2 − 2 2 x + 4 x 2 + 2 2 x + 4 + C \dfrac{1}{16\sqrt{2}}\tan^{-1}\dfrac{x^2-4}{2\sqrt{2}\,x}-\dfrac{1}{32\sqrt{2}}\log\dfrac{x^2-2\sqrt{2}\,x+4}{x^2+2\sqrt{2}\,x+4} + C 16 2 1 tan − 1 2 2 x x 2 − 4 − 32 2 1 log x 2 + 2 2 x + 4 x 2 − 2 2 x + 4 + C ; (iii) 1 4 2 tan − 1 x 2 − 4 2 2 x + 1 8 2 log x 2 − 2 2 x + 4 x 2 + 2 2 x + 4 + C \dfrac{1}{4\sqrt{2}}\tan^{-1}\dfrac{x^2-4}{2\sqrt{2}\,x}+\dfrac{1}{8\sqrt{2}}\log\dfrac{x^2-2\sqrt{2}\,x+4}{x^2+2\sqrt{2}\,x+4} + C 4 2 1 tan − 1 2 2 x x 2 − 4 + 8 2 1 log x 2 + 2 2 x + 4 x 2 − 2 2 x + 4 + C ; (iv) 1 3 tan − 1 x 2 − 1 3 x + C \dfrac{1}{3}\tan^{-1}\dfrac{x^2-1}{3x} + C 3 1 tan − 1 3 x x 2 − 1 + C ; (v) 1 2 2 tan − 1 x 2 − 4 2 2 x + C \dfrac{1}{2\sqrt{2}}\tan^{-1}\dfrac{x^2-4}{2\sqrt{2}\,x} + C 2 2 1 tan − 1 2 2 x x 2 − 4 + C .