Find the extremum of (Gaussian curve)