calculate quadratic approximation - Search