Step-by-step explanation
We must complete the square of the following polynomial:

So, we must take this polynomial to the general form:

1) First, we take 3 as a common factor:

2) Now, we rewrite the expression inside the parenthesis as:

3) We add and subtract inside the parenthesis the number 3², so we have:

4) We identify the expression inside the parenthesis as (x - 3)², then we simplify the term outside it:

Answer
The expression obtained after completing squares is:
