In mathematics, a local maximum is the largest value of a function within a given neighborhood.[15] That doesn’t mean it’s the largest possible value, just the largest one in a particular range. As an analogy, consider a lake on a mountainside. The water isn’t at its lowest possible level — that would be sea level — but it’s at the lowest possible level in the area surrounding the lake.