how to find the pormula in quadratic function?