\[g(x) = \frac{x² + 2}{x + 1};\ \ x \neq - 1\]
\[\frac{x^{2} + 2}{x + 1} = 2\]
\[x^{2} + 2 - 2x - 2 = 0\]
\[x^{2} - 2x = 0\]
\[x(x - 2) = 0\]
\[x = 0;\ \ \ x = 2.\]
\[Ответ:x = 0;\ \ x = 2.\]