Complete the square.We want a quadratic we can simplify.Halve the linear term coefficient (6) and square it.Add it to the (x2+6x) term and subtract it from the 7.x2+6x+(6/2)2-7-(6/2)2As you can see the equation still holds true as the +(6/2)2 and -(6/2)2 cancels out.Gives x2+6x+9-7-9x2+6x+9 simplifies to (x+3)(x+3) or (x+3)2Left with (x+3)2-16