Quadratic Equations · Medium

Completing the square: find q in (x + p)^2 = q

By completing the square, the equation \(x^2 + 10x + 18 = 0\) can be written in the form \((x + p)^2 = q\). Find the value of \(q\).

Write fractions as a/b, roots as sqrt(…), powers with ^ and π as pi. Use a dot for decimals.

Show a hint

Move the constant to the right-hand side, then add the square of half the coefficient of \(x\) to both sides.

Show the step-by-step solution
  1. Move the constant: \(x^2 + 10x = -18\).
  2. Half of the coefficient of \(x\) is \(5\), and \(5^2 = 25\). Add 25 to both sides: \(x^2 + 10x + 25 = -18 + 25\).
  3. The left side is a perfect square: \((x + 5)^2 = 7\), so \(p = 5\) and \(q = 7\).
  4. (The solutions are therefore \(x = -5 \pm \sqrt{7}\).)

Answer: \(q = 7\)

All 10 quadratic equations problems and the topic guide

Learn the method: Quadratic Formula and Discriminant — How to Solve Quadratic Equations

Learn the method: Vieta's Formulas — Sum and Product of the Roots of a Quadratic