This process is often called "completing the square". Recall that
Let
Expand the right side to get
Then
More generally, we can use this method rewrite a generic quadratic as
8.6m questions
11.2m answers