x^2 + 6x + 9 = (x + a)^2

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

Answer

3

Work

x^2 + 6x + 9 = (x + a)^2
(x + 3)^2 = x^2 + 6x + 9
a = 3

Step-by-step solution

  1. Recognize the expression $x^2 + 6x + 9$ as a perfect square trinomial.
  2. Recall the identity $(x + a)^2 = x^2 + 2ax + a^2$.
  3. Compare the coefficients: $2a = 6$ and $a^2 = 9$.
  4. Solve $2a = 6$ to find $a = 3$.