Solve the system by the substitution method: x+y=3, y=x^2-6x+9

Check the final answer first, then review the worked steps.

Answer

(2, 1), (3, 0)

Work

x+y=3 \implies y=3-x
3-x=x^2-6x+9
x^2-5x+6=0
(x-2)(x-3)=0
x=2, x=3
y=3-2=1, y=3-3=0

Step-by-step solution

  1. Solve the first equation for $y$: $y = 3 - x$.
  2. Substitute this expression into the second equation: $3 - x = x^2 - 6x + 9$.
  3. Rearrange into a standard quadratic form: $x^2 - 5x + 6 = 0$.
  4. Factor the quadratic: $(x - 2)(x - 3) = 0$.
  5. Find the $x$-values: $x = 2$ and $x = 3$.
  6. Find the corresponding $y$-values using $y = 3 - x$: for $x = 2$, $y = 1$; for $x = 3$, $y = 0$.
  7. State the solution set as ordered pairs: $(2, 1), (3, 0)$.