To solve the given equation \(x^2 + y^2 + xy = 61\) with \(x = 4\), we need to find the integer value of \(y\).
- Substitute \(x = 4\) into the equation: \(4^2 + y^2 + 4y = 61\).
- Calculate \(4^2\): \(16 + y^2 + 4y = 61\).
- Rearrange the equation to isolate terms: \(y^2 + 4y + 16 = 61\).
- Subtract 16 from both sides to simplify: \(y^2 + 4y = 45\).
- Bring all terms to one side to form a quadratic equation: \(y^2 + 4y - 45 = 0\).
- To solve the quadratic equation, apply the quadratic formula: \(y = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\), where \(a = 1\), \(b = 4\), and \(c = -45\).
- Calculate the discriminant: \({4}^2 - 4 \times 1 \times (-45) = 16 + 180 = 196\).
- Since the discriminant is a perfect square, find the roots: \(y = \frac{-4 \pm \sqrt{196}}{2}\).
- Compute \(\sqrt{196} = 14\).
- Solve for \(y\):
- First root: \(y = \frac{-4 + 14}{2} = \frac{10}{2} = 5\).
- Second root: \(y = \frac{-4 - 14}{2} = \frac{-18}{2} = -9\).
Thus, the value of \(y\) is 5, which matches the given correct answer.