Maxima, minima, and stability
Use derivatives to find equilibrium, stability, and extreme conditions.
What it is
A critical point of a function is a point where its derivative is zero (or does not exist), that is, where the tangent's slope is horizontal. At those points, the function may reach a local maximum (the highest value in a nearby neighborhood), a local minimum (the lowest value in a nearby neighborhood), or an inflection point with a horizontal tangent that is neither a maximum nor a minimum.
To distinguish between these cases the second derivative is used: if f''(x) is positive at a critical point, the function is concave up there and the point is a local minimum; if f''(x) is negative, the function is concave down and the point is a local maximum; if f''(x) is zero, more information is needed to decide.
Why it appears in physics
It appears because many physical systems naturally tend toward points where a potential energy is minimal: a ball rolls to the bottom of a valley, a pendulum hangs at its lowest potential energy position, and a mechanical system in equilibrium occupies a configuration where the net force (the negative derivative of potential energy) is zero.
The second derivative of the potential energy at an equilibrium point determines whether that equilibrium is stable or unstable: if the potential energy has a minimum there (positive second derivative), small perturbations generate a restoring force that returns the system to that position (stable equilibrium); if it has a maximum (negative second derivative), small perturbations generate a force that pushes the system even further from that position (unstable equilibrium).
Visual or geometric idea
The visual idea is this: imagine a system's potential energy as a landscape of hills and valleys. A ball placed at the bottom of a valley (minimum of potential energy) will stay there, and if slightly perturbed, will oscillate back toward the bottom: this is a stable equilibrium. A ball placed at the top of a hill (maximum of potential energy) will stay there only if not perturbed at all; the slightest perturbation makes it roll downhill, moving further and further away: this is an unstable equilibrium.
The curvature of that landscape at the equilibrium point, measured by the second derivative, determines how "deep" the valley is or how "sharp" the hill is, which relates to the speed of oscillation in the stable case or the speed of escape in the unstable case.
Minimal symbolic language
A point x0 is critical if f'(x0) = 0. It is classified using the second-derivative test: if f''(x0) > 0, x0 is a local minimum; if f''(x0) < 0, x0 is a local maximum; if f''(x0) = 0, the test is inconclusive and higher-order derivatives or the behavior of f' near x0 must be examined.
In physics, if U(x) is the potential energy, the force is F(x) = -dU/dx. An equilibrium point occurs where F(x0) = 0, equivalently where dU/dx = 0 at x0. Stability is determined with d²U/dx²: positive for stable equilibrium, negative for unstable.
What the result means
Finding a critical point and classifying it as a maximum or minimum means identifying where a physical quantity reaches a local extreme: the position where an energy is minimal (and therefore probably stable), or where a quantity of interest (area, volume, cost, time) is maximal or minimal under certain constraints.
When the critical point corresponds to a physical equilibrium, the sign of the second derivative tells whether that equilibrium survives small perturbations (stable) or is destroyed by them (unstable), a crucial distinction for predicting a system's long-term behavior.
When not to use it
Do not conclude that a critical point is automatically a global maximum or minimum of the function: the first and second derivative tests only guarantee a local extreme, and the function could have higher or lower values elsewhere in its domain, possibly including the endpoints of the interval if it is bounded.
Also do not forget to check points where the derivative does not exist (corners, discontinuities) as possible candidates for extremes: the test of the derivative being zero only applies where the function is differentiable, and an extreme can also occur at a point with no defined derivative.
Operational summary
Calculate the derivative of the function of interest, find the points where that derivative is zero (or does not exist), calculate the second derivative at each critical point to classify it as a local maximum or minimum, and interpret the result in the physical context: extreme of a quantity, or stable or unstable equilibrium of a system.
Procedure
Before calculating
Identify the function of interest (potential energy, area, cost, time) and the variable with respect to which you seek extreme points. Check the domain of that variable: if it is bounded, the endpoints of the interval are also candidates for a global extreme.
Decide whether the goal is to find a pure mathematical extreme or to interpret a physical equilibrium (in which case the stable/unstable classification will be relevant).
Step 1: identify the mathematical object
Explicitly write the function f(x) of interest and calculate its first derivative f'(x) using the corresponding differentiation rules.
If working with a physical potential energy, identify which force corresponds to that energy through F(x) = -dU/dx, so that critical points can be interpreted as equilibrium points (zero net force).
Step 2: choose the operation
Solve the equation f'(x) = 0 to find all critical points within the domain of interest. Also check points where f'(x) is undefined, since they are also candidates.
Calculate the second derivative f''(x) and evaluate it at each critical point to apply the classification test (positive: minimum; negative: maximum; zero: inconclusive).
Step 3: preserve units and signs
Check that the units of f'(x) and f''(x) are consistent with the original function divided by the corresponding units of the variable, raised to the appropriate power for the second derivative.
Pay special attention to the sign of f''(x): a positive sign indicates concave up (minimum, or stable equilibrium if it is potential energy), a negative sign indicates concave down (maximum, or unstable equilibrium).
Step 4: calculate
Substitute each critical point into f''(x) and record the sign of the result before drawing conclusions. If f''(x0) = 0, examine the behavior of f'(x) immediately before and after x0, or calculate higher-order derivatives if necessary.
If the domain is bounded, also evaluate f(x) at the endpoints of the interval and compare those values with those of the internal critical points to identify the global extreme if needed.
Step 5: interpret the result
Interpret each critical point classified as a local maximum or minimum in the physical context of the problem: a stable equilibrium position (minimum of potential energy), an unstable equilibrium position (maximum of potential energy), or an extreme of another quantity of interest.
If the problem asks for the global extreme and the domain is bounded, compare all candidates (internal critical points and interval endpoints) before giving the final answer.
Self-check checklist
Check that you correctly solved f'(x) = 0, that you evaluated f''(x) at each critical point with the correct sign, that you considered the endpoints of the domain if it is bounded, and that you can explain in words what each found critical point means physically.
Guided example
Physical situation
A particle has potential energy U(x) = x³ - 3x (in joules, x in meters). The task is to find its equilibrium points and classify them as stable or unstable.
Mathematical translation
Equilibrium points occur where the force is zero, that is, where dU/dx = 0. Stability is determined by the sign of d²U/dx² at those points.
Step-by-step calculation
dU/dx = 3x² - 3. Setting to zero: 3x² - 3 = 0, x² = 1, x = 1 or x = -1. Calculating the second derivative: d²U/dx² = 6x. At x=1: d²U/dx² = 6 > 0 (minimum, stable equilibrium). At x=-1: d²U/dx² = -6 < 0 (maximum, unstable equilibrium).
Reading the result
At x=1, the particle is in a potential energy valley: if slightly perturbed, it will oscillate back toward that position, a stable equilibrium. At x=-1, it is on a potential energy hill: the slightest perturbation will push it further and further from that position, an unstable equilibrium.
Common error avoided
This avoids concluding both critical points are equivalent just because both have dU/dx = 0: without calculating the second derivative, one cannot distinguish which is stable and which is unstable, a physically crucial distinction.
Inverse example
Given result
At an equilibrium point of a mechanical system, the second derivative of the potential energy is exactly zero.
What physical question it can answer
This indicates the standard second-derivative test is inconclusive at that point: higher-order derivatives or the behavior of the potential energy in a wider neighborhood must be examined to determine whether the equilibrium is stable, unstable, or of a special type (such as an inflection point with marginal stability). Physically, this could correspond to a limiting case where small perturbations have a qualitatively different effect than the typical case.
Common errors
Error 1: assuming every point with zero derivative is an extreme
It seems reasonable to conclude that any point where f'(x)=0 is automatically a maximum or a minimum. It fails because it can also be an inflection point with a horizontal tangent, which is neither a maximum nor a minimum. Detect it by calculating the second derivative: if it is also zero, the standard test is inconclusive. Correct it by always checking the sign of f''(x) before classifying the point, and examining higher-order derivatives if necessary. Mini-example: for f(x)=x³, f'(0)=0 but f''(0)=0 too, and x=0 is an inflection point, not an extreme.
Error 2: forgetting to calculate the second derivative to determine stability
It seems reasonable to assume that an equilibrium point (zero net force) is always stable. It fails because stability depends on the sign of the second derivative of the potential energy: only a minimum of potential energy is stable, while a maximum is unstable. Detect it by asking whether d²U/dx² was explicitly calculated at the equilibrium point. Correct it by always completing the analysis with the second derivative before claiming an equilibrium is stable. Mini-example: the highest position of an inverted pendulum has zero net force, but it is an unstable equilibrium, not a stable one.
Error 3: confusing a local extreme with a global extreme
It seems reasonable to report the found local maximum or minimum as the absolute extreme value of the function over its whole domain. It fails because the function can have higher or lower values elsewhere in the domain, possibly including the endpoints of a bounded interval. Detect it by comparing the value at the critical point with the function's values at the endpoints of the domain (if bounded) or analyzing behavior at infinity (if not). Correct it by evaluating all candidates before declaring a global extreme. Mini-example: a function may have a local minimum at x=2 but an even smaller value at the endpoint of the interval, x=0.
Error 4: ignoring points where the derivative does not exist
It seems reasonable to search for extremes only where f'(x)=0, forgetting points where the derivative is undefined (corners, discontinuities). It fails because an extreme can also occur at those points without a derivative, and the zero-derivative test does not detect them. Detect it by explicitly reviewing the function's domain for points of non-differentiability. Correct it by including those points as additional candidates for extremes, evaluating f(x) directly at them. Mini-example: the function |x| has a minimum at x=0, but f'(0) does not exist, so the standard zero-derivative test does not detect it directly.
Error 5: applying the second-derivative test outside its range of validity
It seems reasonable to apply the second-derivative test (positive: minimum, negative: maximum) without first verifying the point is actually critical (f'(x0)=0). It fails because the second-derivative test only classifies points that are already critical; applying it to an arbitrary point makes no sense and can lead to erroneous conclusions about extremes that do not exist there. Detect it by checking first that f'(x0)=0 before calculating f''(x0). Correct it by always verifying the critical-point condition as a mandatory previous step. Mini-example: calculating f''(x) at a point where f'(x) is not zero and classifying it as a maximum or minimum makes no mathematical sense.
Quick detection rule
If a point was classified without first verifying it was critical, if the second derivative was not calculated before speaking of stability, or if only internal critical points were compared without considering the domain's endpoints, the error is probably in the setup of the extremes analysis, not in the final arithmetic.
Physical applications
1. Mechanical equilibrium and stability
It appears when finding the equilibrium positions of a mechanical system as critical points of its potential energy. It is calculated by setting the derivative of the potential energy to zero and classifying each point with the second derivative. The result predicts whether a system will oscillate back to that position or move away upon a perturbation. The dangerous error is forgetting to calculate the second derivative and assuming every zero-force point is stable. As a final control, the learner must explain why an inverted pendulum at its highest point is an unstable equilibrium.
2. Trajectory and time optimization
It appears when minimizing travel time between two points under certain constraints (as in Fermat's principle in optics, or minimum-time problems in mechanics). It is calculated by differentiating the time function with respect to the free variable and setting it to zero. The result gives the optimal trajectory. The dangerous error is finding a critical point without verifying it is actually a minimum and not a maximum or saddle point. As a final control, the learner must explain why the law of reflection of light can be derived by minimizing travel time.
3. Orbit stability and effective potentials
It appears when analyzing the stability of an orbit using an effective potential combining the real potential energy with a centrifugal term. It is calculated by finding the critical points of that effective potential and classifying them with the second derivative. The result predicts whether a circular orbit is stable against small radial perturbations. The dangerous error is analyzing only the real potential energy without including the centrifugal term of the effective potential. As a final control, the learner must explain why some circular orbits are stable and others are not, depending on the shape of the potential.
4. Thermodynamics and phase equilibrium
It appears when finding the conditions of thermodynamic equilibrium as points where a free energy function reaches a minimum with respect to some state variable. It is calculated by differentiating the free energy with respect to that variable and setting it to zero. The result identifies the equilibrium state of the system. The dangerous error is confusing a maximum of free energy (unstable state) with the real equilibrium state (minimum). As a final control, the learner must explain why thermodynamic systems spontaneously evolve toward minima of free energy, not toward maxima.
5. Engineering design and optimization
It appears when maximizing or minimizing a design quantity (strength, cost, efficiency) subject to constraints, by finding the critical points of the objective function. It is calculated by differentiating that function with respect to the design variable and setting it to zero. The result gives the optimal value of the design parameter. The dangerous error is not checking whether the found critical point lies within the physically valid range of the design variable. As a final control, the learner must explain why a mathematical extreme outside the physically valid domain makes no sense as an engineering solution.
Practice
Level 1: recognition
Identify, for a given potential energy with two critical points, which is more likely to be stable just by qualitatively observing the shape of the function.
Exercise: explain why the bottom of a valley in a potential energy graph corresponds to a stable equilibrium.
Level 2: direct application
Find the critical points of a simple polynomial function and classify them using the second-derivative test.
Exercise: given U(x) = x³ - 12x, find its critical points and classify them as maxima or minima.
Level 3: choosing the tool
Decide whether a problem requires only finding a mathematical extreme or also classifying the physical stability of an equilibrium, and apply the corresponding analysis.
Exercise: given a mechanical system with a known potential energy, decide what additional steps you need beyond finding the critical points to determine the stability of each.
Level 4: physical interpretation
Interpret the result of an extremes analysis in terms of expected physical behavior upon a perturbation.
Exercise: given a critical point with negative second derivative in a potential energy, explain what would happen to the system if slightly perturbed from that position.
Level 5: intentional error
Analyze a calculation where a critical point was classified without calculating the second derivative, or where a local extreme was confused with the global extreme of the function. Detect the error, correct it, and explain the physical consequence.
Exercise: invent a plausible error when analyzing the stability of an equilibrium without calculating the second derivative, show why it seems reasonable, correct it, and state the incorrect conclusion it would have produced.