\[a = - 1 \Longrightarrow нет\ решения.\]
\[a \neq - 1 \Longrightarrow x = \frac{2}{a + 1}.\]
\[\frac{2}{a + 1}(a - 1) + a + 2 = 0\]
\[a^{2} + 5a = 0\]
\[a(a + 5) = 0\]
\[a = 0\ \ \ \ \ \ \ \ \ \ \ a + 5 = 0\]
\[\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ a = - 5\]
\[Ответ:при\ a = 0;\ a = - 5.\]