using the identity a^2 + 2ab + b^2 = (a + b)^2 (i) x^2 + 6x + 9