To solve the system of equations
- \(-x + y = 5\)
- \(y = (x - 3)^2 + 2\),
we can substitute the expression for \(y\) from the second equation into the first equation.
Starting with equation 1:
\[ y = -x + 5 \]
Now we substitute this into equation 2:
\[ -x + 5 = (x - 3)^2 + 2 \]
Next, we will expand and simplify the right side:
\[ (x - 3)^2 = x^2 - 6x + 9 \]
So, the second equation becomes:
\[ -x + 5 = x^2 - 6x + 9 + 2 \] \[ -x + 5 = x^2 - 6x + 11 \]
Now, we can set up the equation by bringing all terms to one side:
\[ 0 = x^2 - 6x + 11 + x - 5 \]
Combining like terms:
\[ 0 = x^2 - 5x + 6 \]
Now we factor the quadratic equation:
\[ 0 = (x - 2)(x - 3) \]
Setting each factor to zero gives us the possible values for \(x\):
\[ x - 2 = 0 \quad \Rightarrow \quad x = 2 \] \[ x - 3 = 0 \quad \Rightarrow \quad x = 3 \]
Next, we find the corresponding \(y\) values for each \(x\) value using \(y = -x + 5\):
-
For \(x = 2\): \[ y = -2 + 5 = 3 \]
-
For \(x = 3\): \[ y = -3 + 5 = 2 \]
Thus, the solutions to the system of equations are:
\[ (2, 3) \quad \text{and} \quad (3, 2) \]
In conclusion, the solutions are:
\[ \boxed{(2, 3) \text{ and } (3, 2)} \]