50.7k views
4 votes
Complete the squarex^2 + 8x + 4

1 Answer

4 votes

We need to find (x-a)^2 such that


\begin{gathered} x^2+8x+4+b=(x+a)^2 \\ a,b\rightarrow\text{ constants} \end{gathered}

Expanding the right side of the equation,


\begin{gathered} \Rightarrow x^2+8x+4+b=x^2+2ax+a^2 \\ \Rightarrow8x=2ax,4+b=a^2 \\ \Rightarrow a=(8)/(2)=4 \\ \Rightarrow4+b=16 \\ \Rightarrow b=12 \end{gathered}

Therefore, completing the square,


x^2+8x+4+12=(x+4)^2

Add a +12 to complete the square.

User JuanOjeda
by
6.8k points