Math. Quadratic function.