[tex]f(x) = -x^{2}-6x-7\\\\a = -1, \ b = -6, \ c = -7\\\\p = \frac{-b}{2a} = \frac{-(-6)}{2\cdot(-1)} = \frac{6}{-2} = -3\\\\q = f(p) = f(-3) = -(-3)^{2}-6\cdot(-3)-7 = -9+18-7 = 2\\\\f(x) = a(x-p)^{2}+q \ - \ postac \ kanoniczna\\\\f(x) = -(x+3)^{2}+2[/tex]