Difference between local maxima and absolute maxima is a fundamental concept in calculus that helps us understand how functions behave over intervals and across their entire domain. While both terms describe points where a function reaches a peak, they differ in scope: a local maximum is the highest point in a small neighbourhood, whereas an absolute (or global) maximum is the highest point over the whole set under consideration. Grasping this distinction is essential for solving optimization problems, analysing graphs, and applying mathematical models in physics, economics, and engineering.
Introduction
When studying a function (f(x)), we often ask where it attains its largest value. The answer depends on whether we are looking only at a restricted region or at the entire domain. Practically speaking, local maxima tell us about “peaks” that are dominant compared to nearby points, while absolute maxima identify the single highest peak that no other point in the domain can surpass. This article explains the definitions, provides visual intuition, outlines methods to locate each type, works through concrete examples, highlights the key differences, clears up common misconceptions, and answers frequently asked questions.
Definitions
Local Maximum
A point (x = c) in the domain of (f) is a local maximum (also called a relative maximum) if there exists an open interval ((a, b)) containing (c) such that
[ f(c) \ge f(x) \quad \text{for all } x \in (a, b). ]
In words, the function value at (c) is at least as large as the values of all points sufficiently close to (c). If the inequality is strict for all (x \neq c) in that interval, we call it a strict local maximum.
Absolute (Global) Maximum
A point (x = c) is an absolute maximum (or global maximum) of (f) on a set (D) if
[ f(c) \ge f(x) \quad \text{for all } x \in D. ]
Thus, the absolute maximum is the highest value the function attains over its entire domain (or over a specified closed interval). If the inequality is strict for every other point, it is a strict absolute maximum Less friction, more output..
Note: When the domain is not explicitly stated, we usually assume the natural domain of the function (all real numbers for which the expression is defined) Easy to understand, harder to ignore. That alone is useful..
Visual Interpretation
Imagine the graph of a smooth function rolling like a landscape:
- Local maxima appear as the tops of hills that are higher than the immediate surroundings but may be lower than other hills elsewhere.
- The absolute maximum is the tallest hill in the whole landscape; no other point reaches that height.
If the function is defined on a closed interval ([a, b]), the absolute maximum can also occur at an endpoint, even if the derivative there is not zero.
How to Find Them
Using Derivatives (for differentiable functions)
- Compute the first derivative (f'(x)).
- Find critical points where (f'(x) = 0) or (f'(x)) does not exist.
- Test each critical point:
- First derivative test: Check the sign of (f'(x)) before and after the point. A change from positive to negative indicates a local maximum.
- Second derivative test: If (f''(c) < 0), the point is a local maximum; if (f''(c) > 0), it is a local minimum; if (f''(c) = 0), the test is inconclusive.
- Evaluate the function at all critical points and at the endpoints of the domain (if the domain is a closed interval).
- Identify the absolute maximum by comparing all these values; the largest one is the absolute maximum. Any point that is a local maximum but not the highest overall remains only a local maximum.
For non‑differentiable or piecewise functions
- Examine each piece separately using the derivative method where applicable.
- Check points where the definition changes (breakpoints) because they can host local or absolute extrema even if the derivative is undefined.
Examples
Example 1: Polynomial on (\mathbb{R})
Consider (f(x) = -x^{4} + 4x^{2} - 3).
- (f'(x) = -4x^{3} + 8x = -4x(x^{2} - 2)).
- Critical points: (x = 0,; x = \pm\sqrt{2}).
- Second derivative: (f''(x) = -12x^{2} + 8).
- At (x = 0): (f''(0) = 8 > 0) → local minimum.
- At (x = \pm\sqrt{2}): (f''(\pm\sqrt{2}) = -12(2) + 8 = -16 < 0) → local maxima.
- Function values:
(f(\pm\sqrt{2}) = -(\sqrt{2})^{4} + 4(\sqrt{2})^{2} - 3 = -4 + 8 - 3 = 1).
(f(0) = -3).
Since the function is a downward‑opening quartic, it tends to (-\infty) as (|x|\to\infty). Therefore the local maxima at (x = \pm\sqrt{2}) are also the absolute maxima, each with value 1 No workaround needed..
Example 2: Function on a Closed Interval
Let (g(x) = x^{3} - 3x) on ([-2, 2]).
- (g'(x) = 3x^{2} - 3 = 3(x^{2} - 1)) → critical points at (x = \pm1).
- Second derivative: (g''(x) = 6x).
- At (x = -1): (g''(-1) = -6 < 0) → local maximum.
- At (x = 1): (g''(1) = 6 > 0) → local minimum.
- Evaluate at critical points and endpoints:
- (g(-2) = (-2)^{3} - 3(-2) = -8 + 6 = -2)
- (g(-1) = (-1)^{3} - 3(-1) = -1 + 3 = 2) ← local maximum
- (g(1) = 1 - 3 = -2) ← local minimum
- (g(2) = 8 - 6 = 2)
The largest value among (-2, 2, -2, 2) is 2, attained at both (x = -1) and (x = 2). And hence:
- (x = -1) is a local maximum (and also an absolute maximum because it ties for the highest value). - (x = 2) is not a local maximum (the derivative does not change sign there), but it is an absolute maximum due to the endpoint.
To deepen our understanding of extremum problems, it is useful to complement the second‑derivative test with the first‑derivative test. If the derivative changes from positive to negative at a candidate point, the function attains a local peak there; conversely, a transition from negative to positive signals a local trough. After locating the stationary points—where (f'(x)=0) or where the derivative fails to exist—the sign of the slope on either side of such a point tells us whether the graph is rising into or falling away from that point. This reasoning works equally well for differentiable pieces of a piecewise‑defined function, provided we examine every subinterval separately.
When the derivative is zero at several locations, the second‑derivative test provides a quick way to classify those points when the curvature information is reliable. On the flip side, the test can fail to give a conclusive answer whenever the second derivative vanishes—exactly the situation encountered at inflection points where the concavity itself switches sign. Practically speaking, in those cases we fall back on the first‑derivative analysis or resort to direct evaluation of nearby points. On top of that, for functions that possess corners or cusps (e.g., absolute value shaped terms), the derivative may be undefined precisely at the breakpoint. Such points deserve special attention because the left‑hand and right‑hand limits of the difference quotient still let us infer monotonic behavior around them.
A practical workflow that combines both perspectives often looks like this:
- Compute (f'(x)) and solve (f'(x)=0).
- Determine where (f') is discontinuous or undefined; list these “breakpoints.”
- Apply the first‑derivative test at each interior critical point to decide locally whether the function rises or falls through the point.
- Use the second‑derivative test at points where (f''(x)\neq0) to confirm the nature predicted by the first‑derivative test.
- Evaluate (f) at every interior critical point, at every boundary point of a closed interval, and at any end‑point of a piecewise definition.
- Compare all obtained values; the greatest (or smallest) among them is the absolute extremal value for the considered class of problem.
This systematic approach guarantees that no candidate for a global extremum is overlooked, especially when the function exhibits abrupt changes in direction or when the domain is restricted to a compact set.
Illustrating the combined method with a slightly more complex example, consider
[ h(x)=\frac{x^{3}}{1+x^{2}},\qquad\text{on }[-\tfrac{\pi}{2},;\tfrac{\pi}{2}]. ]
First, differentiate:
[ h'(x)=\frac{(3x^{2})(1+x^{2})-(x^{3})(2x)}{(1+x^{2})^{2}} =\frac{3x^{2}+3x^{4}-2x^{4}}{(1+x^{2})^{2}} =\frac{3x^{2}+x^{4}}{(1+x^{2})^{2}}. ]
Setting the numerator equal to zero gives (x^{2}(3+x^{2})=0), so the only real solution inside ((-π/2,π/2)) is (x=0). Since the denominator never vanishes, the original expression is defined everywhere on the interval. Now, evaluating the derivative’s sign reveals that for (x>0) the factor (3+x^{2}) exceeds three, making the whole numerator positive, while for (x<0) it is also positive because (x^{2}) dominates. Still, consequently, the derivative does not change sign at (x=0); instead, it remains positive throughout the interval. Thus (x=0) cannot be a local extremum according to the first‑derivative test.
[ h(0)=0. ]
Because the derivative stays positive, the graph is strictly increasing on the whole domain, and the smallest endpoint yields the absolute minimum while the largest endpoint supplies the absolute maximum. Direct calculation shows
[ h!\left(-\tfrac{\pi}{2}\right)=\frac{(-\pi/2)^{3}}{1+(\pi/2)^{2}}\approx -0.29, \qquad h!\left(\tfrac{\pi}{2}\right)=\frac{(\pi/2)^{3}}{1+(\pi/2)^{2}}\approx 0.29. ]
Thus the absolute minimum occurs at the left endpoint and the absolute maximum at the right endpoint, neither of which is a local extremum. This example highlights how the absence of a sign change in the derivative can preclude a local extreme even though the function possesses clear global extremes.
For
For a more complex scenario, let
[ g(x)=\frac{x^{2},\sin x}{1+x^{4}},\qquad x\in\Bigl[-\frac{3\pi}{2},,\frac{3\pi}{2}\Bigr]. ]
The denominator is always positive, so the sign of (g'(x)) is governed by the numerator after differentiation. Applying the quotient rule gives
[ g'(x)=\frac{(2x\sin x+x^{2}\cos x)(1+x^{4})-x^{2}\sin x,(4x^{3})}{(1+x^{4})^{2}} =\frac{2x\sin x+x^{2}\cos x+2x^{5}\sin x+ x^{8}\cos x-4x^{5}\sin x}{(1+x^{4})^{2}}. ]
Collecting terms,
[ g'(x)=\frac{2x\sin x+x^{2}\cos x-2x^{5}\sin x+ x^{8}\cos x}{(1+x^{4})^{2}} =\frac{x\bigl(2\sin x-2x^{4}\sin x\bigr)+\cos x\bigl(x^{2}+x^{8}\bigr)}{(1+x^{4})^{2}}. ]
Critical points arise when the numerator vanishes. Factoring out (\cos x) and (\sin x) suggests two families of solutions:
- (\cos x=0) gives (x=\pm\frac{\pi}{2},,\pm\frac{3\pi}{2}). Only the interior points (\pm\frac{\pi}{2}) lie in the open interval.
- (2\sin x,(1-x^{4})=0) yields (\sin x=0) (i.e., (x=0,\pm\pi)) and the degenerate case (x^{4}=1) (i.e., (x=\pm1)).
Thus the interior critical candidates are
[ x\in\Bigl{-\frac{\pi}{2},0,\frac{\pi}{2},\pm1,\pm\pi\Bigr}. ]
To classify them we employ the second‑derivative test. Differentiating (g'(x)) (a routine but algebraically heavy step) and simplifying leads to
[ g''(x)=\frac{2\bigl(1-5x^{4}\bigr)\sin x+4x\bigl(1+x^{4}\bigr)\cos x+4x^{3}\bigl(1-x^{4}\bigr)\cos x}{(1+x^{4})^{3}}. ]
Evaluating (g'') at each critical point:
- At (x=0): (g''(0)=2>0) → a local minimum.
- At (x=\pm\frac{\pi}{2}): (g''!\bigl(\pm\frac{\pi}{2}\bigr)\approx -0.71) → local maxima.
- At (x=\pm1): (g''(\pm1)\approx 0.12) → local minima.
- At (x=\pm\pi): (g''(\pm\pi)\approx -0.04) → local maxima.
The first‑derivative sign analysis corroborates these conclusions: the derivative changes from negative to positive at the minima and from positive to negative at the maxima Surprisingly effective..
Having identified all interior extrema, we must also inspect the interval’s endpoints, (x=-\frac{3\pi}{2}) and (x=\frac{3\pi}{2}). Direct substitution gives
[ g!\Bigl(-\frac{3\pi}{2}\Bigr)\approx -0.12,\qquad g!\Bigl(\frac{3\pi}{2}\Bigr)\approx 0.12. ]
Now we collect the function