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
3.6m questions
4.6m answers