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\).
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
- Move the constant: \(x^2 + 10x = -18\).
- Half of the coefficient of \(x\) is \(5\), and \(5^2 = 25\). Add 25 to both sides: \(x^2 + 10x + 25 = -18 + 25\).
- The left side is a perfect square: \((x + 5)^2 = 7\), so \(p = 5\) and \(q = 7\).
- (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