Solve the system by substitution: x+y=7, y=x^2-9x-7

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

Answer

\((9.48, -2.48), (-1.48, 8.48)\)

Work

x+y=7 \implies y=7-x
7-x=x^{2}-9x-7
x^{2}-8x-14=0
x=\frac{8 \pm \sqrt{64+56}}{2}=4 \pm \sqrt{30}
x \approx 9.48, -1.48
y \approx -2.48, 8.48

Step-by-step solution

  1. Solve the first equation for $y$: $y = 7 - x$.
  2. Substitute this expression for $y$ into the second equation: $7 - x = x^{2} - 9x - 7$.
  3. Rearrange into standard quadratic form: $x^{2} - 8x - 14 = 0$.
  4. Use the quadratic formula $x = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}$ with $a=1, b=-8, c=-14$: $x = \frac{8 \pm \sqrt{64 - 4(1)(-14)}}{2} = \frac{8 \pm \sqrt{120}}{2} = 4 \pm \sqrt{30}$.
  5. Calculate the $x$ values: $x_{1} \approx 9.48$ and $x_{2} \approx -1.48$.
  6. Find the corresponding $y$ values using $y = 7 - x$: $y_{1} = 7 - 9.48 = -2.48$ and $y_{2} = 7 - (-1.48) = 8.48$.