Unit 5 Curve Sketching and Optimization: Using Derivatives to Understand and Optimize Functions

Connecting ff, ff', and ff'' Graphs

What these three graphs represent (and why you should care)

When you study a function ff 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 ff, its first derivative ff', and its second derivative ff'' are three “views” of the same object.

  • The graph of ff shows the output values (heights) of the function.
  • The graph of ff' shows the _slope_ of ff at each xx value. It tells you how fast ff is changing and whether ff is increasing or decreasing.
  • The graph of ff'' shows how the slope is changing. It tells you about **concavity**—whether ff 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 ff'

The derivative f(x)f'(x) is the slope of the tangent line to ff at xx.

  • If f(x)>0f'(x) > 0, tangent lines slope upward left-to-right, so ff is increasing.
  • If f(x)<0f'(x) < 0, tangent lines slope downward, so ff is decreasing.
  • If f(x)=0f'(x) = 0, the tangent line is horizontal; xx is a critical point (a candidate for a local max/min, but not guaranteed).

A key translation between graphs:

  • Where ff has a horizontal tangent, the graph of ff' hits 00.
2) Local extrema of ff and zeros/sign-changes of ff'

A local maximum of ff occurs when ff changes from increasing to decreasing. A **local minimum** occurs when ff changes from decreasing to increasing.

On the derivative graph, that means:

  • Local max of ff at x=cx=c often corresponds to f(c)=0f'(c)=0 with ff' changing from positive to negative.
  • Local min of ff at x=cx=c often corresponds to f(c)=0f'(c)=0 with ff' changing from negative to positive.

Important: f(c)=0f'(c)=0 alone does **not** guarantee an extremum. If ff' does not change sign (for example, it touches 0 and stays positive), then ff may just flatten briefly.

3) Concavity of ff and the sign of ff''

Concavity describes how the slope of ff is changing.

  • If f(x)>0f''(x) > 0, slopes of ff are increasing (becoming more positive or less negative), so ff is concave up.
  • If f(x)<0f''(x) < 0, slopes of ff are decreasing, so ff 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 ff and zeros/sign-changes of ff''

An inflection point is where ff changes concavity (concave up to concave down, or vice versa).

  • Typically, f(c)=0f''(c)=0 (or does not exist) at an inflection point, **and** ff'' changes sign around cc.

As with extrema, f(c)=0f''(c)=0 alone is not enough—you need the concavity change.

5) Peaks/valleys of ff' correspond to inflection points of ff

Because ff'' is the derivative of ff':

  • Local maxima/minima of ff' occur where f(x)=0f''(x)=0 with a sign change.
  • Those same xx-values are often where ff has inflection points (because slope stops increasing and starts decreasing, or vice versa).
A relationship table you can translate quickly
Observation on ffWhat you expect on ff'What you expect on ff''
ff increasingf>0f' > 0depends on concavity
ff decreasingf<0f' < 0depends on concavity
horizontal tangent on fff=0f' = 0not determined
local max of fff=0f' = 0 and sign ++ to -often f<0f'' < 0 at the point if it exists
local min of fff=0f' = 0 and sign - to ++often f>0f'' > 0 at the point if it exists
concave upslope increasingf>0f'' > 0
concave downslope decreasingf<0f'' < 0
inflection pointff' has local extremum (often)f=0f'' = 0 or DNE with sign change
Example 1: Inferring behavior of ff from a sign chart of ff' and ff''

Suppose you are told:

  • f(x)>0f'(x) > 0 on (2,1)(-2, 1) and f(x)<0f'(x) < 0 on (1,4)(1, 4).
  • f(x)<0f''(x) < 0 on (2,0)(-2, 0) and f(x)>0f''(x) > 0 on (0,4)(0, 4).

What can you conclude about ff?

1) Increasing/decreasing:

  • ff is increasing on (2,1)(-2, 1).
  • ff is decreasing on (1,4)(1, 4).
    So ff has a **local maximum** at x=1x=1 (because ff' changes from positive to negative).

2) Concavity:

  • ff is concave down on (2,0)(-2, 0).
  • ff is concave up on (0,4)(0, 4).
    So ff has an **inflection point** at x=0x=0 (concavity changes).

Notice what you cannot conclude: you cannot find exact yy-values of the max or inflection point without more information about ff.

Example 2: Matching a feature across graphs

If the graph of ff has a point where the tangent line is steepest (largest slope) at x=cx=c, that means f(x)f'(x) is largest at x=cx=c—so ff' has a local maximum there. Then f(c)=0f''(c)=0 (typically) with a sign change from positive to negative.

This “steepest slope” language is common: it’s really a question about extrema of ff'.

Exam Focus
  • Typical question patterns:
    • Given a graph of ff, identify intervals where f>0f' > 0, f<0f' < 0, and where f>0f'' > 0, f<0f'' < 0.
    • Given sign charts or partial graphs for ff' and/or ff'', determine where ff has local extrema and inflection points.
    • Match unlabeled graphs of ff, ff', and ff'' by comparing zeros, sign changes, and “where slope is increasing/decreasing.”
  • Common mistakes:
    • Treating f(c)=0f'(c)=0 as “definitely a max/min” without checking for a sign change in ff'.
    • Calling any point where f(c)=0f''(c)=0 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:

  • ff' controls up/down behavior.
  • ff'' controls bending behavior.

You’ll do this in two directions:
1) Use algebraic expressions for ff' and ff'' to sketch ff.
2) Use a graph of ff to sketch qualitative graphs of ff' and sometimes ff''.

Sketching ff from a formula: a structured process

When you are given a function f(x)f(x), 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 ff is defined. Points where ff 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 ff' and ff'' must respect them.

Step 2: Intercepts and basic anchor points

Compute:

  • yy-intercept: evaluate f(0)f(0) (if 00 is in the domain).
  • xx-intercepts: solve f(x)=0f(x)=0 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 f(x)f'(x), then find critical numbers where:

  • f(x)=0f'(x)=0, or
  • f(x)f'(x) does not exist (but ff does).

Then test the sign of ff' on each interval to determine where ff increases or decreases.

A common AP tool is the First Derivative Test:

  • If ff' changes from positive to negative at x=cx=c, ff has a local maximum at x=cx=c.
  • If ff' changes from negative to positive at x=cx=c, ff has a local minimum at x=cx=c.
Step 4: Second derivative gives concavity and inflection points

Compute f(x)f''(x) and find where f(x)=0f''(x)=0 or does not exist (again, where ff is still defined). Then test the sign of ff'' to determine concavity.

The Second Derivative Test is a shortcut that sometimes applies at critical points where f(c)=0f'(c)=0:

  • If f(c)>0f''(c) > 0, then ff has a local minimum at cc.
  • If f(c)<0f''(c) < 0, then ff has a local maximum at cc.
  • If f(c)=0f''(c)=0, the test is inconclusive.

Why it works: ff'' measures whether slope is increasing or decreasing near the critical point.

Example 1: Sketching using ff' and ff''

Let:
f(x)=x33xf(x) = x^3 - 3x

1) Compute derivatives:
f(x)=3x23f'(x) = 3x^2 - 3
f(x)=6xf''(x) = 6x

2) Critical numbers from f(x)=0f'(x)=0:
3x23=03x^2 - 3 = 0
x2=1x^2 = 1
x=1,1x = -1, 1

3) Sign of ff':
Because f(x)=3(x21)f'(x)=3(x^2-1):

  • For x<1x < -1, x21>0x^2 - 1 > 0 so f>0f' > 0 (increasing).
  • For 1<x<1-1 < x < 1, x21<0x^2 - 1 < 0 so f<0f' < 0 (decreasing).
  • For x>1x > 1, f>0f' > 0 (increasing).

So ff has a local maximum at x=1x=-1 and a local minimum at x=1x=1.

4) Concavity from f(x)=6xf''(x)=6x:

  • For x<0x < 0, f<0f'' < 0, so concave down.
  • For x>0x > 0, f>0f'' > 0, so concave up.
    Thus ff has an inflection point at x=0x=0.

5) Anchor points (optional but helpful):
f(0)=0f(0)=0
f(1)=(1)33(1)=2f(-1)=(-1)^3-3(-1)=2
f(1)=13=2f(1)=1-3=-2

Now you can sketch: increasing to a local max at (1,2)(-1,2), decreasing through the origin with concave down until x=0x=0, then concave up afterward, hitting a local min at (1,2)(1,-2), then increasing.

Sketching ff' from the graph of ff (no formula needed)

On the AP exam, you may be given a graph of ff and asked to sketch ff'. The key is to remember that f(x)f'(x) is the slope of ff.

Here’s how you translate visually:

1) Where ff is increasing, the slope is positive, so ff' should be above the xx-axis.

2) Where ff is decreasing, slope is negative, so ff' should be below the xx-axis.

3) Where ff has a horizontal tangent, slope is zero, so ff' crosses (or touches) the xx-axis.

4) Steepness matters: if ff is very steep upward, ff' should be a large positive value; if ff is flattening, ff' should approach zero.

5) Corners, cusps, and vertical tangents: if ff has a sharp corner (like an absolute value point), ff' typically does not exist there. On the sketch of ff', you show a break/open circle at that xx.

Example 2: From a piecewise-linear ff to a step-like ff'

If ff is made of straight-line segments, then each segment has constant slope, so ff' is constant on each interval.

For instance, if on (2,0)(-2,0) the graph of ff is a line rising with slope 22, then f(x)=2f'(x)=2 on (2,0)(-2,0). If on (0,3)(0,3) the graph is a line falling with slope 1-1, then f(x)=1f'(x)=-1 on (0,3)(0,3). At x=0x=0, if there is a corner, then ff' does not exist.

This is a powerful mental model: “curvy function” gives “smooth derivative,” while “straight segments” give “flat derivative.”

Sketching ff'' from the graph of ff (and from ff')

If you already have a sketch of ff', then sketching ff'' becomes the same task again: ff'' is the slope of ff'.

  • Where ff' is increasing, f>0f'' > 0.
  • Where ff' is decreasing, f<0f'' < 0.
  • Where ff' has a local max/min, f=0f'' = 0 (often).

Equivalently, from ff directly:

  • If ff is concave up, f>0f'' > 0.
  • If ff is concave down, f<0f'' < 0.
What can go wrong when sketching derivatives

A frequent mistake is to copy the shape of ff and call it ff'. Instead, you must _re-encode_ the information: heights of ff' are slopes of ff.

Another common pitfall: placing zeros of ff' at intercepts of ff. Intercepts are where f=0f=0, but zeros of ff' 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 ff, sketch ff' by identifying where slopes are positive/negative/zero and where ff' is undefined.
    • Given a graph of ff' (or a sign chart), sketch a possible graph of ff that matches the derivative information.
    • Use ff' and ff'' (from formulas or tables) to justify local extrema and inflection points for a sketch.
  • Common mistakes:
    • Confusing “f(x)=0f(x)=0” with “f(x)=0f'(x)=0” 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 Q(x)Q(x) represents the quantity you want to maximize or minimize, then interior extrema typically happen where the slope is zero:
Q(x)=0Q'(x)=0

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 Q(x)=0Q'(x)=0 or QQ' does not exist (and QQ does).
2) Evaluate QQ at each critical number in the interval.
3) Evaluate QQ 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 xx.

Step 2: Write the objective function

Decide what you are optimizing. Examples:

  • Area: AA
  • Volume: VV
  • Cost: CC
  • Distance/time: DD or TT

Write it as a function, like A=A(x)A = A(x).

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 A(x)A'(x) (or whatever derivative), solve A(x)=0A'(x)=0 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 xx).

Example 1: Maximize area with fixed perimeter (classic rectangle)

A rectangle has perimeter P=100P=100. What dimensions maximize the area?

1) Variables and constraint
Let length be LL and width be WW.
Perimeter constraint:
2L+2W=1002L + 2W = 100
So:
L+W=50L + W = 50
W=50LW = 50 - L

2) Objective function
Area:
A=LWA = LW
Substitute:
A(L)=L(50L)A(L) = L(50 - L)

3) Domain
You need L>0L > 0 and W>0W > 0, so:
0<L<500 < L < 50

4) Differentiate and find critical point
A(L)=50LL2A(L) = 50L - L^2
A(L)=502LA'(L) = 50 - 2L
Set to zero:
502L=050 - 2L = 0
L=25L = 25
Then:
W=5025=25W = 50 - 25 = 25

5) Conclude
The rectangle with maximum area is a square: 2525 by 2525.

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 V0V_0. Find the radius-to-height relationship that minimizes surface area.

1) Variables and formulas
Let radius be rr and height be hh.
Volume constraint:
V=πr2h=V0V = \pi r^2 h = V_0
Surface area (top + bottom + side):
S=2πr2+2πrhS = 2\pi r^2 + 2\pi r h

2) Reduce to one variable using the constraint
Solve the volume equation for hh:
h=V0πr2h = \frac{V_0}{\pi r^2}
Substitute into SS:
S(r)=2πr2+2πr(V0πr2)S(r) = 2\pi r^2 + 2\pi r\left(\frac{V_0}{\pi r^2}\right)
Simplify:
S(r)=2πr2+2V0rS(r) = 2\pi r^2 + \frac{2V_0}{r}

3) Domain
r>0r > 0.

4) Differentiate and solve
S(r)=4πr2V0r2S'(r) = 4\pi r - \frac{2V_0}{r^2}
Set to zero:
4πr2V0r2=04\pi r - \frac{2V_0}{r^2} = 0
4πr=2V0r24\pi r = \frac{2V_0}{r^2}
Multiply by r2r^2:
4πr3=2V04\pi r^3 = 2V_0
2πr3=V02\pi r^3 = V_0

Now use the volume constraint again:
V0=πr2hV_0 = \pi r^2 h
Set equal:
πr2h=2πr3\pi r^2 h = 2\pi r^3
Cancel πr2\pi r^2:
h=2rh = 2r

5) Interpret
The cylinder with minimum surface area for a fixed volume satisfies h=2rh = 2r (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
y=x2y = x^2
closest to the point (0,1)(0,1).

1) Choose what to minimize
Distance from (x,x2)(x, x^2) to (0,1)(0,1) is:
D=(x0)2+(x21)2D = \sqrt{(x-0)^2 + (x^2-1)^2}
Minimizing DD is equivalent to minimizing D2D^2 (because square root is increasing for nonnegative inputs):
D2=x2+(x21)2D^2 = x^2 + (x^2 - 1)^2
This is a common trick because it avoids messy square roots.

2) Objective function
Q(x)=x2+(x21)2Q(x) = x^2 + (x^2 - 1)^2
Expand:
(x21)2=x42x2+1(x^2 - 1)^2 = x^4 - 2x^2 + 1
So:
Q(x)=x2+x42x2+1=x4x2+1Q(x) = x^2 + x^4 - 2x^2 + 1 = x^4 - x^2 + 1

3) Differentiate
Q(x)=4x32xQ'(x) = 4x^3 - 2x
Set to zero:
4x32x=04x^3 - 2x = 0
Factor:
2x(2x21)=02x(2x^2 - 1) = 0
So:
x=0x = 0
2x21=02x^2 - 1 = 0
x2=12x^2 = \frac{1}{2}
x=±12x = \pm \frac{1}{\sqrt{2}}

4) Compare values (absolute min over all real numbers)
Evaluate QQ:

  • Q(0)=1Q(0)=1
  • If x2=12x^2=\frac{1}{2} then x4=14x^4=\frac{1}{4}, so:
    Q=1412+1=34Q = \frac{1}{4} - \frac{1}{2} + 1 = \frac{3}{4}
    Thus the minimum occurs at:
    x=±12x = \pm \frac{1}{\sqrt{2}}
    Corresponding yy values:
    y=x2=12y = x^2 = \frac{1}{2}
    So the closest points are:
    (12,12),(12,12)\left(\frac{1}{\sqrt{2}}, \frac{1}{2}\right), \left(-\frac{1}{\sqrt{2}}, \frac{1}{2}\right)
Common traps in optimization (and how to avoid them)
  • Optimizing the wrong function: For distance problems, minimizing DD vs minimizing D2D^2 gives the same xx-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 xx but the question asks for dimensions, a point, or a maximum value. Always translate back.
  • Domain errors: You might find a critical point like x=3x=-3, but if xx 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 C(x)C(x)).
    • Distance minimization (closest point) using D2D^2 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 xx value when the prompt asks for the optimized quantity (maximum area, minimum cost, or full dimensions).