prove that b^2=4ac

you are missing something.