Unit 5 Curve Sketching and Optimization: Using Derivatives to Understand and Optimize Functions
Connecting , , and Graphs
What these three graphs represent (and why you should care)
When you study a function in calculus, you are often not just interested in its exact formula—you want to understand its _behavior_: where it rises or falls, where it levels off, where it bends upward or downward, and where it reaches high or low points. The graphs of , its first derivative , and its second derivative are three “views” of the same object.
- The graph of shows the output values (heights) of the function.
- The graph of shows the _slope_ of at each value. It tells you how fast is changing and whether is increasing or decreasing.
- The graph of shows how the slope is changing. It tells you about **concavity**—whether bends like a cup up or a cup down.
This matters because many AP Calculus AB questions give you one of these graphs (or partial information about one) and ask you to infer properties of the others. If you can translate “shape language” between these graphs, you can solve problems without heavy algebra.
The core connections
1) Increasing/decreasing and the sign of
The derivative is the slope of the tangent line to at .
- If , tangent lines slope upward left-to-right, so is increasing.
- If , tangent lines slope downward, so is decreasing.
- If , the tangent line is horizontal; is a critical point (a candidate for a local max/min, but not guaranteed).
A key translation between graphs:
- Where has a horizontal tangent, the graph of hits .
2) Local extrema of and zeros/sign-changes of
A local maximum of occurs when changes from increasing to decreasing. A **local minimum** occurs when changes from decreasing to increasing.
On the derivative graph, that means:
- Local max of at often corresponds to with changing from positive to negative.
- Local min of at often corresponds to with changing from negative to positive.
Important: alone does **not** guarantee an extremum. If does not change sign (for example, it touches 0 and stays positive), then may just flatten briefly.
3) Concavity of and the sign of
Concavity describes how the slope of is changing.
- If , slopes of are increasing (becoming more positive or less negative), so is concave up.
- If , slopes of are decreasing, so is concave down.
A very useful way to think about this: concavity is about whether tangent lines are “rotating” upward or downward as you move to the right.
4) Inflection points of and zeros/sign-changes of
An inflection point is where changes concavity (concave up to concave down, or vice versa).
- Typically, (or does not exist) at an inflection point, **and** changes sign around .
As with extrema, alone is not enough—you need the concavity change.
5) Peaks/valleys of correspond to inflection points of
Because is the derivative of :
- Local maxima/minima of occur where with a sign change.
- Those same -values are often where has inflection points (because slope stops increasing and starts decreasing, or vice versa).
A relationship table you can translate quickly
| Observation on | What you expect on | What you expect on |
|---|---|---|
| increasing | depends on concavity | |
| decreasing | depends on concavity | |
| horizontal tangent on | not determined | |
| local max of | and sign to | often at the point if it exists |
| local min of | and sign to | often at the point if it exists |
| concave up | slope increasing | |
| concave down | slope decreasing | |
| inflection point | has local extremum (often) | or DNE with sign change |
Example 1: Inferring behavior of from a sign chart of and
Suppose you are told:
- on and on .
- on and on .
What can you conclude about ?
1) Increasing/decreasing:
- is increasing on .
- is decreasing on .
So has a **local maximum** at (because changes from positive to negative).
2) Concavity:
- is concave down on .
- is concave up on .
So has an **inflection point** at (concavity changes).
Notice what you cannot conclude: you cannot find exact -values of the max or inflection point without more information about .
Example 2: Matching a feature across graphs
If the graph of has a point where the tangent line is steepest (largest slope) at , that means is largest at —so has a local maximum there. Then (typically) with a sign change from positive to negative.
This “steepest slope” language is common: it’s really a question about extrema of .
Exam Focus
- Typical question patterns:
- Given a graph of , identify intervals where , , and where , .
- Given sign charts or partial graphs for and/or , determine where has local extrema and inflection points.
- Match unlabeled graphs of , , and by comparing zeros, sign changes, and “where slope is increasing/decreasing.”
- Common mistakes:
- Treating as “definitely a max/min” without checking for a sign change in .
- Calling any point where an inflection point without verifying concavity changes.
- Confusing “concave up” with “increasing”—a function can be decreasing and concave up at the same time.
Sketching Graphs of Functions and Their Derivatives
The goal: turning derivative information into a shape
“Curve sketching” in AP Calculus AB usually does not mean producing a perfect artistic graph. It means you can build a mathematically justified sketch using key features: intercepts, asymptotes (if relevant), intervals of increase/decrease, local extrema, concavity, and inflection points.
The central idea is that derivatives convert shape into sign information:
- controls up/down behavior.
- controls bending behavior.
You’ll do this in two directions:
1) Use algebraic expressions for and to sketch .
2) Use a graph of to sketch qualitative graphs of and sometimes .
Sketching from a formula: a structured process
When you are given a function , the sketching workflow is basically a conversation with the function: “Where are you defined? Where do you cross axes? Where do you flatten? Where do you bend?”
Step 1: Domain and discontinuities
Before using derivatives, identify where is defined. Points where is undefined can create vertical asymptotes or holes, and they break the number line into intervals.
For rational functions, solve where the denominator is zero. For roots, ensure the radicand is nonnegative (for even roots). These domain breaks matter because sign charts for and must respect them.
Step 2: Intercepts and basic anchor points
Compute:
- -intercept: evaluate (if is in the domain).
- -intercepts: solve if feasible.
Even a rough sketch becomes much easier when you have a few fixed points.
Step 3: First derivative gives monotonicity and local extrema
Compute , then find critical numbers where:
- , or
- does not exist (but does).
Then test the sign of on each interval to determine where increases or decreases.
A common AP tool is the First Derivative Test:
- If changes from positive to negative at , has a local maximum at .
- If changes from negative to positive at , has a local minimum at .
Step 4: Second derivative gives concavity and inflection points
Compute and find where or does not exist (again, where is still defined). Then test the sign of to determine concavity.
The Second Derivative Test is a shortcut that sometimes applies at critical points where :
- If , then has a local minimum at .
- If , then has a local maximum at .
- If , the test is inconclusive.
Why it works: measures whether slope is increasing or decreasing near the critical point.
Example 1: Sketching using and
Let:
1) Compute derivatives:
2) Critical numbers from :
3) Sign of :
Because :
- For , so (increasing).
- For , so (decreasing).
- For , (increasing).
So has a local maximum at and a local minimum at .
4) Concavity from :
- For , , so concave down.
- For , , so concave up.
Thus has an inflection point at .
5) Anchor points (optional but helpful):
Now you can sketch: increasing to a local max at , decreasing through the origin with concave down until , then concave up afterward, hitting a local min at , then increasing.
Sketching from the graph of (no formula needed)
On the AP exam, you may be given a graph of and asked to sketch . The key is to remember that is the slope of .
Here’s how you translate visually:
1) Where is increasing, the slope is positive, so should be above the -axis.
2) Where is decreasing, slope is negative, so should be below the -axis.
3) Where has a horizontal tangent, slope is zero, so crosses (or touches) the -axis.
4) Steepness matters: if is very steep upward, should be a large positive value; if is flattening, should approach zero.
5) Corners, cusps, and vertical tangents: if has a sharp corner (like an absolute value point), typically does not exist there. On the sketch of , you show a break/open circle at that .
Example 2: From a piecewise-linear to a step-like
If is made of straight-line segments, then each segment has constant slope, so is constant on each interval.
For instance, if on the graph of is a line rising with slope , then on . If on the graph is a line falling with slope , then on . At , if there is a corner, then does not exist.
This is a powerful mental model: “curvy function” gives “smooth derivative,” while “straight segments” give “flat derivative.”
Sketching from the graph of (and from )
If you already have a sketch of , then sketching becomes the same task again: is the slope of .
- Where is increasing, .
- Where is decreasing, .
- Where has a local max/min, (often).
Equivalently, from directly:
- If is concave up, .
- If is concave down, .
What can go wrong when sketching derivatives
A frequent mistake is to copy the shape of and call it . Instead, you must _re-encode_ the information: heights of are slopes of .
Another common pitfall: placing zeros of at intercepts of . Intercepts are where , but zeros of are where the slope is zero. Those are unrelated unless the graph happens to have horizontal tangents at intercepts.
Exam Focus
- Typical question patterns:
- Given a graph of , sketch by identifying where slopes are positive/negative/zero and where is undefined.
- Given a graph of (or a sign chart), sketch a possible graph of that matches the derivative information.
- Use and (from formulas or tables) to justify local extrema and inflection points for a sketch.
- Common mistakes:
- Confusing “” with “” and placing critical points at intercepts.
- Forgetting that derivative graphs may be undefined where the original function has corners or vertical tangents.
- Mixing up concavity and monotonicity (e.g., claiming concave up means increasing).
Optimization Problems
What optimization means in calculus
An optimization problem asks you to find the best possible value of some quantity: maximum area, minimum cost, shortest distance, greatest volume, and so on. Calculus makes these problems systematic because many “best” values occur at places where the rate of change switches direction—exactly what derivatives detect.
In AP Calculus AB, optimization problems are usually single-variable calculus problems after you translate the situation into an objective function. The big skill is not the derivative itself—it’s building the correct function to optimize and using the correct domain.
Why derivatives locate maxima and minima
If a function represents the quantity you want to maximize or minimize, then interior extrema typically happen where the slope is zero:
But absolute (global) maxima/minima on a closed interval can also occur at endpoints. That’s why the Closed Interval Method is central:
1) Find critical numbers where or does not exist (and does).
2) Evaluate at each critical number in the interval.
3) Evaluate at the interval endpoints.
4) Compare values to decide absolute max/min.
A subtle but important point: in word problems, the “interval” is the set of physically possible values (nonnegative lengths, feasible dimensions, etc.). Setting the domain correctly prevents nonsense answers.
A reliable setup process (how optimization works)
Step 1: Draw a picture and name variables
Even a simple sketch reduces errors. Label the variable you will ultimately differentiate with respect to, such as .
Step 2: Write the objective function
Decide what you are optimizing. Examples:
- Area:
- Volume:
- Cost:
- Distance/time: or
Write it as a function, like .
Step 3: Use constraints to reduce to one variable
Most problems start with multiple variables (length and width, radius and height, etc.). Use given constraints (like fixed perimeter, fixed surface area, or geometric relationships) to rewrite everything in terms of one variable.
Step 4: State the domain
Use the context: lengths must be positive, radicands must be nonnegative, denominators nonzero, etc.
Step 5: Differentiate, solve, and interpret
Compute (or whatever derivative), solve in the domain, and use either the Closed Interval Method or a derivative test to confirm max/min. Then translate back to the requested quantities (not just ).
Example 1: Maximize area with fixed perimeter (classic rectangle)
A rectangle has perimeter . What dimensions maximize the area?
1) Variables and constraint
Let length be and width be .
Perimeter constraint:
So:
2) Objective function
Area:
Substitute:
3) Domain
You need and , so:
4) Differentiate and find critical point
Set to zero:
Then:
5) Conclude
The rectangle with maximum area is a square: by .
A common interpretation insight: when a constraint is symmetric (like fixed perimeter) and the objective is also symmetric (area treats length and width equally), the optimum often occurs when the variables are equal.
Example 2: Minimize surface area of a cylinder with fixed volume
A closed cylinder (has top and bottom) must have volume . Find the radius-to-height relationship that minimizes surface area.
1) Variables and formulas
Let radius be and height be .
Volume constraint:
Surface area (top + bottom + side):
2) Reduce to one variable using the constraint
Solve the volume equation for :
Substitute into :
Simplify:
3) Domain
.
4) Differentiate and solve
Set to zero:
Multiply by :
Now use the volume constraint again:
Set equal:
Cancel :
5) Interpret
The cylinder with minimum surface area for a fixed volume satisfies (height equals diameter).
Notice how the algebra was manageable only after reducing to one variable.
Example 3: Closest point on a curve (distance minimization)
Find the point on the curve
closest to the point .
1) Choose what to minimize
Distance from to is:
Minimizing is equivalent to minimizing (because square root is increasing for nonnegative inputs):
This is a common trick because it avoids messy square roots.
2) Objective function
Expand:
So:
3) Differentiate
Set to zero:
Factor:
So:
4) Compare values (absolute min over all real numbers)
Evaluate :
- If then , so:
Thus the minimum occurs at:
Corresponding values:
So the closest points are:
Common traps in optimization (and how to avoid them)
- Optimizing the wrong function: For distance problems, minimizing vs minimizing gives the same -location, but if you mix them partway through, you can make algebra mistakes. Choose one and stick with it.
- Forgetting endpoints: If the domain is a closed interval (common in geometry with nonnegative dimensions), you must check endpoints for absolute extrema.
- Losing the meaning of the variable: Often you solve for but the question asks for dimensions, a point, or a maximum value. Always translate back.
- Domain errors: You might find a critical point like , but if represents a length, it’s invalid.
Exam Focus
- Typical question patterns:
- “Maximize/minimize area/volume/cost” with a geometric constraint (fixed perimeter, fixed area, given amount of material).
- “Find dimensions that minimize cost” where different parts have different per-unit costs (leading to a cost function like ).
- Distance minimization (closest point) using to simplify.
- Common mistakes:
- Differentiating before reducing to one variable, then getting stuck with multiple variables.
- Finding a critical point but not verifying it’s in the feasible domain (or not comparing with endpoints).
- Reporting only the critical value when the prompt asks for the optimized quantity (maximum area, minimum cost, or full dimensions).