We have the next quadratic equation
in order to have a trinomial perfect square that is
in this case, we have
a= x
b= -3
so the expected value
In order to complete the square, we need to add the number 9 on both sides of the equation
Because we have a quadratic equation we will have 2 solutions for x
the solution is
x1=7
x2=-1