To answer the question, distribute (X+7)^2. You will get f(X) = -4X^2 - 56X - 4*49 - 6, so, f(x) = -4x^2 - 56x - 55 is equivalent.