Use derivatives to find and interpret maximum and minimum values.
Optimization means finding the best value: largest profit, smallest cost, maximum area, minimum error, shortest time, or highest efficiency. Derivatives help because smooth functions often have their best interior values where the rate of change is zero.
Learning objectives
After this lesson you should be able to:
distinguish local and absolute maxima and minima;
find critical points;
classify candidates with derivative signs;
use the second derivative test in simple cases;
check endpoints on closed intervals;
solve basic applied optimization problems step by step;
use SymPy and edumath to compute and compare candidates.
Vocabulary
Local maximum: higher than nearby values.
Local minimum: lower than nearby values.
Absolute maximum: highest value on the entire domain being considered.
Absolute minimum: lowest value on the entire domain being considered.
Critical point: a point in the domain where \(f'(x)=0\) or where \(f'(x)\) is undefined.
Candidate: a point that might produce a maximum or minimum.
Optimization roadmap
Read the goal. Are you maximizing or minimizing? Which quantity?
Find the domain. Are there endpoints, physical restrictions, or constraints?
Differentiate. Compute \(f'(x)\).
Find critical points. Solve \(f'(x)=0\) and consider where \(f'\) is undefined while \(f\) exists.
Build a candidate list. Include endpoints if the domain is closed.
Classify or compare. Use derivative signs, second derivative, or a table of function values.
Interpret. State both the input and output, with units when needed.
Critical points
Walkthrough: find a critical point
Find the critical point of
\[
f(x)=x^2-6x+10.
\]
Differentiate.\[
f'(x)=2x-6.
\]
Set derivative equal to zero.\[
2x-6=0.
\]
Solve.\[
2x=6, \qquad x=3.
\]
Check domain. The function is a polynomial, so \(x=3\) is in the domain.
Interpret. The only critical point is \(x=3\).
First derivative test
The first derivative tells whether the function is increasing or decreasing.
If \(f'\) changes from positive to negative, the function changes from increasing to decreasing: local maximum.
If \(f'\) changes from negative to positive, the function changes from decreasing to increasing: local minimum.
If \(f'\) does not change sign, the critical point may not be an extremum.
Walkthrough: sign chart
Classify the critical point of \(f(x)=x^2-6x+10\).
We found \(f'(x)=2x-6\) and critical point \(x=3\).
Choose test points around 3.
At \(x=2\), \(f'(2)=4-6=-2\), so the function is decreasing.
At \(x=4\), \(f'(4)=8-6=2\), so the function is increasing.
The sign changes from negative to positive.
Therefore \(x=3\) is a local minimum.
The minimum value is \[
f(3)=9-18+10=1.
\]
Second derivative test
The second derivative measures concavity.
If \(f''(c)>0\) and \(f'(c)=0\), the graph is concave up at \(c\): local minimum.
If \(f''(c)<0\) and \(f'(c)=0\), the graph is concave down at \(c\): local maximum.
If \(f''(c)=0\), the test is inconclusive.
For \(f(x)=x^2-6x+10\), we have \(f''(x)=2>0\), so the critical point at \(x=3\) is a local minimum.
Absolute extrema on closed intervals
On a closed interval \([a,b]\), absolute maximum and minimum values can occur at critical points or endpoints.
Build candidate list. Include endpoints and critical points: \[
x=-2,-1,1,2.
\]
Evaluate original function.
Candidate
Source
\(f(x)\)
-2
endpoint
\(-8+6=-2\)
-1
critical point
\(-1+3=2\)
1
critical point
\(1-3=-2\)
2
endpoint
\(8-6=2\)
Compare values. The absolute maximum value is 2 at \(x=-1\) and \(x=2\). The absolute minimum value is -2 at \(x=-2\) and \(x=1\).
WarningCommon mistake
Do not compare derivative values when looking for absolute maxima and minima. After finding candidates, evaluate the original function at each candidate.
Applied optimization workflow
Word problems need modeling before calculus.
Draw or describe the situation.
Define variables and units.
Write the objective quantity.
Use constraints to rewrite the objective with one variable.
State the feasible domain.
Differentiate and find candidates.
Check endpoints and context.
Interpret the answer in a sentence.
Walkthrough: maximum area with fixed perimeter
A rectangle has perimeter 40 meters. What dimensions maximize its area?
Define variables. Let length be \(L\) meters and width be \(W\) meters.
Write the objective. Area is \[
A=LW.
\]
Use the constraint. Perimeter is \[
2L+2W=40.
\] Divide by 2: \[
L+W=20.
\] Solve for \(L\): \[
L=20-W.
\]
Write area as one-variable function.\[
A(W)=W(20-W)=20W-W^2.
\]