We can look for the biggest things. We can also look for the smallest things. A hill has a top. A valley has a bottom. These are the high and low points. Can you find a high point?
Imagine you are walking on a bumpy road.
You might climb up a small hill. This is a high point. It is called a local maximum.
Then you might walk down into a valley. This is a low point. We call it a local minimum.
Some hills are the highest of all. These are called global maxima. Some valleys are the deepest of all. These are global minima.
Some sets of numbers have no highest point. This happens if the numbers go on forever. 
Math helps us find these special points.
Imagine you are walking on a bumpy road.
Some hills are the highest of all. These are called global maxima. Some valleys are the deepest of all. These are global minima. A mathematician named Pierre de Fermat helped find ways to find these points.
Finding these points is a goal in math called optimization. One way to find them is to check the edges of a path. You also check the high and low points in the middle. For some shapes, the highest point is at the very top. 
Not every set of numbers has a highest or lowest point. For example, the set of natural numbers has a minimum. But it has no maximum because the numbers go on forever. 
Imagine you are walking along a winding, bumpy path.
Finding these points is a very important job called mathematical optimization. To find a global maximum, you can look at all the local peaks in the middle of your path. You must also check the very edges or boundaries of the path. The highest of all those points is your global maximum. 
Mathematicians have studied these ideas for a very long time. One of the first people to suggest a way to find these points was Pierre de Fermat. He used a technique called adequality to find the highs and lows of functions. Later, other mathematicians used tools like the extreme value theorem. This theorem says that if a path is continuous and stays within certain bounds, it must have a highest and lowest point. This helps us know for sure that a maximum and minimum exist before we even start looking for them.
Math shows us many different ways these points can appear. For example, a function like x squared has only one unique global minimum at zero. Another function, like x cubed, has no global maximum or minimum at all. Some functions, like a cosine wave, have infinitely many global peaks and valleys.
We can also find these points in groups of numbers called sets. In a set, the greatest element is the maximum. If a set of numbers goes on forever, like the natural numbers, it might not have a maximum. The natural numbers do have a minimum, but they never end. 
In mathematical analysis, functions often reach specific high or low points. These points are called extrema. A maximum is the greatest value a function reaches. A minimum is the least value a function reaches.
Mathematicians distinguish between two main types of extrema: local and global. A local maximum or minimum is a point that is higher or lower than its immediate neighbors. You can think of this as a small hill on a mountain range. A global maximum is the single highest point over the entire domain. Similarly, a global minimum is the absolute lowest point.
Finding these points is the primary goal of mathematical optimization. To find a global maximum, you must examine several different areas. First, you look at all the local maxima in the interior of the domain. Second, you must check the points located on the boundary of the domain. 
For differentiable functions, Pierre de Fermat was a pioneer in this field. He proposed a general technique called adequality to locate these points. Fermat's theorem states that local extrema in the interior must occur at critical points. A critical point is a place where the derivative of the function equals zero. However, not every critical point is an extremum. Some points might be neither a maximum nor a minimum.
Functions can behave in very diverse ways. The function $x^2$ has a unique global minimum at zero. In contrast, the function $x^3$ has no global maximum or minimum at all. Some functions, like $cos(x)$, possess infinitely many global maxima and minima. 
In higher dimensions, the math becomes more complex. For functions of more than one variable, we look at partial derivatives. A local maximum requires the first partial derivatives to be zero and the second partial derivatives to be negative. However, these are necessary but not sufficient conditions. You must also ensure the point is not a saddle point. 
Extrema also apply to the study of sets and orderings. In a set, the greatest element is the maximum. In a partially ordered set, or poset, we distinguish between a least element and a minimal element. A least element is smaller than every other element in the set. A minimal element simply has nothing smaller than it. 
🖼️ Images & Media (6)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.