Write [tex](- x^{2}) -4x+2[/tex] in the form of [tex]a(x+p) ^{2} +q[/tex] and solve