Introduction
Whether it is finding the highest point of a projectile or calculating the quickest path light can take through two different mediums, knowing how to find the extrema of a function is crucial in physics. Beyond pure mathematics, these tools are the backbone of optimization — the process of finding the best solution to a problem given certain constraints.
In this module we will cover how to find and classify local and global extrema, then apply those techniques to solve real-world optimization problems.
Critical Points
Suppose we want to find the maximum or minimum value of on a certain interval. The minimum or maximum values of on the interval can only occur at one of the following:
- Points where
- Points where is undefined
- At or — that is, the endpoints of the interval
Intuitively, this should make sense: at a maximum the function must go up and down a "hill," so there must be some point where the slope of the tangent line is zero (condition 1). Sometimes we have a sharp corner at the top of the hill, and the derivative is undefined (condition 2). Also, the function can just be constantly increasing, in which case the maximum is just an endpoint (condition 3).
Important
These conditions are necessary but not sufficient. Just because an value satisfies one of these conditions does not mean it is a minimum or maximum — it is simply a candidate.
Example 1: Find the critical points of on the interval .
Solution: We have , so at . Since is always defined, condition two yields nothing. The endpoints give and . Hence, the critical points are at .
Example 2: Find the critical points of a function on the interval , given that the function has a zero derivative only at , undefined derivative at and , and endpoints at and .
Solution: Going through each condition:
Condition 1 (): Condition 2 ( undefined): Condition 3 (endpoints):
Local and Global Extrema
Definitions
We have a local minimum of a function at if for all in some open interval containing .
We have a global minimum on an interval at if for all in .
Note
Global minimums are by definition also local minimums. Local and global maximums are defined symmetrically.
How to Find Global Extrema
Since we know how to find critical points, finding global extrema is straightforward: evaluate at all critical points and select whichever gives the largest (or smallest) value.
If there is only one local minimum or maximum on an interval, that point is automatically the global minimum or maximum on that interval as well.
Classifying Extrema
First Derivative Test
Let be a continuous function and suppose is a point where or is undefined.
- If is decreasing on and increasing on for some open interval containing , then is a local minimum.
- If is increasing on and decreasing on for some open interval containing , then is a local maximum.
In practice, pick one point just to the left of and one just to the right of , and evaluate at both. If the derivative goes from negative to positive, it's a minimum; if it goes from positive to negative, it's a maximum.
Example 3: For , is a local minimum or maximum?
Solution: We have , so . Evaluating to the left: . Evaluating to the right: . Since the derivative goes from negative to positive, is a local minimum by the first derivative test.
Second Derivative Test
Suppose . Then:
- If , then is a local minimum.
- If , then is a local maximum.
- If , the test is inconclusive.
This makes intuitive sense: a positive second derivative means the function is concave up (shaped like a ), so we have a minimum; a negative second derivative means concave down (shaped like a ), so we have a maximum.
Example 4: Is a local minimum or maximum for ?
Solution: We find , so . Then , so . Hence is a local maximum by the second derivative test.
Optimization
Understanding Optimization Problems
Optimization is the process of maximizing or minimizing an objective function, subject to a set of constraints. The objective function represents the quantity to be optimized (area, cost, time, profit, etc.), while constraints define the conditions the solution must satisfy (fixed perimeter, limited resources, physical boundaries, etc.).
Some classic examples include: maximizing the area of a rectangle with a fixed perimeter, minimizing the cost of producing a certain quantity of goods, or maximizing profit from selling a product with limited resources.
General Strategy
Solving an optimization problem follows a consistent process:
- Identify the quantity to maximize or minimize (the objective function).
- Express the objective function in terms of a single variable, using the constraints to eliminate others.
- Find critical points by setting the derivative equal to zero.
- Classify the critical points using the first or second derivative test.
- Check endpoints if the variable is restricted to a closed interval, and confirm which critical point gives the global optimum.
Practice Problems
Problem 1: When is maximized between and ?
Solution: We compute . The critical points in are (since is always defined). Evaluating at each:
The largest value occurs at . This can also be confirmed as a local maximum by the first or second derivative test.
Problem 2: A baseball is thrown straight up with initial velocity . Find the maximum height. Assume air resistance is negligible.
Solution: From kinematics, the height at time is:
Taking the derivative: , so at . Since for and for , this is a global maximum. The maximum height is:
Problem 3: Walt sells water at dollars per gallon and expects to sell gallons. What value of maximizes his profit?
Solution: Walt's profit is:
Taking the derivative: (discarding the negative root). Since and , this is a local maximum. As it is the only critical point in , the profit-maximizing price is .
Problem 4 (River Crossing): A dog is trying to reach her owner across a 10 m wide river. The dog is 12 m downriver from her owner. She runs along the shore for meters at 5 m/s, then swims directly to her owner at 2 m/s. Which value of minimizes the total time? (A calculator is permitted.)
Solution: The time on land is . By the Pythagorean theorem, the swimming distance is , so the swimming time is . The total time is:
Taking the derivative and setting it to zero:
Solving: , which yields or . Only lies in . Checking and confirms this is a minimum by the first derivative test. The optimal value is .
Problem 5 (Garden Fencing): A rectangular garden is to be built using a rock wall as one side and 100 ft of wire fencing for the other three sides. Find the dimensions that maximize the garden's area, and state the maximum area. (Source: Openstax)
Solution: Let be the width (fenced sides) and be the length (along the rock wall). The fencing constraint gives , so . The area is:
Setting gives . Since , this is a maximum. Then . The maximum area is:
Problem 6 (Closest Point): Which point on the graph of is closest to the point ?
Solution: A point on has the form . Its distance to is:
To minimize , we minimize . Setting the derivative equal to zero:
Since the derivative changes from negative to positive at , this is a minimum. The closest point is .
Problem 7 (Open Box): An open box is to be made from a 16 in × 30 in piece of cardboard by cutting equal squares of side from each corner and folding up the sides. What value of maximizes the volume?
Solution: After cutting, the box has dimensions , so:
Note that is restricted to (cutting more than 8 in from the 16 in side is impossible). Taking the derivative:
This gives or . We reject since it falls outside . Checking the second derivative at :
So is a maximum, giving a maximum volume of approximately .
| Status | Source | Problem Name | Difficulty | Tags | ||
|---|---|---|---|---|---|---|
| AIME | Very Hard | Show TagsCombinatorics, Recursion | ||||
Module Progress:
Join the Discord Community!
Stuck on a problem, or don't understand a module? Join the Discord and get help with your doubts while making more math friends.
