Let the functions \( f: \mathbb{R} \to \mathbb{R} \) and \( g: \mathbb{R}^2 \to \mathbb{R} \) be given by \[ f(x_1, x_2) = x_1^2 + x_2^2 - 2x_1x_2, \quad g(x_1, x_2) = 2x_1^2 + 2x_2^2 - x_1x_2. \] Consider the following statements:
S1: For every compact subset \( K \) of \( \mathbb{R} \), \( f^{-1}(K) \) is compact.
S2: For every compact subset \( K \) of \( \mathbb{R} \), \( g^{-1}(K) \) is compact. Then, which one of the following is correct?