Step 1: Understanding the Concept:
The numerator has a higher degree than the denominator, so we divide first. After division the integrand becomes a polynomial plus a simple fraction.
Step 2: Key Formula or Approach:
1. Write \( x^4 + 1 = (x^2 + 1)(x^2 - 1) + 2 \).
2. \( \int \frac{dx}{1 + x^2} = \tan^{-1} x + c \).
Step 3: Detailed Explanation:
Check the split: \( (x^2 + 1)(x^2 - 1) = x^4 - 1 \), and adding 2 gives \( x^4 + 1 \). So
\[ \frac{x^4 + 1}{x^2 + 1} = x^2 - 1 + \frac{2}{x^2 + 1} \]
Integrate term by term:
\[ \int \left(x^2 - 1 + \frac{2}{x^2 + 1}\right)dx = \frac{x^3}{3} - x + 2\tan^{-1} x + c \]
Step 4: Why the other options are wrong.
Option (1) misses the \( -x \) and the \( 2\tan^{-1} x \) terms.
Option (3) has only the inverse tangent term and misses \( \frac{x^3}{3} - x \).
Option (4) has \( +x \) instead of \( -x \): its derivative is \( x^2 + 1 + \frac{2}{1 + x^2} \), which is not the integrand.
Option (2): \( \frac{d}{dx}\left(\frac{x^3}{3} - x + 2\tan^{-1} x\right) = x^2 - 1 + \frac{2}{1 + x^2} = \frac{x^4 + 1}{x^2 + 1} \). This matches.
Final Answer:
The integral equals \( \frac{x^3}{3} - x + 2\tan^{-1} x + c \). This is option (2).
\[ \boxed{\frac{x^3}{3} - x + 2\tan^{-1} x + c} \]