Odpowiedź:
[tex]-2\left(x-3\right)^2=-2\left(x^2-6x+9\right)=-2x^2-2\left(-6x\right)-2\cdot \:9=\boxed{-2x^2+12x-18}[/tex]
dla drugiego:
[tex]p=-\frac{b}{2a}=-\frac{4}{2\cdot1}=-2\\ q=f(p)=-9\\ a=1[/tex]
a wzór postaci kanonicznej:
[tex]a(x-p)^2+q[/tex]
stąd:
[tex]x^2+4x-5=(x + 2)^2 - 9[/tex]