Analytical Applications of Differentiation: Curve Sketching & Optimization

Connecting ff, ff', and ff'' Graphs

When you “connect” the graphs of ff, ff', and ff'', you’re translating between three different views of the same function:

  • ff tells you position/output (the actual height of the graph).
  • ff' tells you **rate of change** (the slope of ff).
  • ff'' tells you **how the rate of change is changing** (concavity of ff).

This matters because many AP questions don’t give you a formula for ff. Instead, you might get a graph of ff' (or ff'') and be asked to deduce where ff increases, where it has a local maximum, where it is concave up, and so on. That’s curve sketching in its “information-based” form.

What ff' tells you about ff (increasing/decreasing and extrema)

The derivative ff' measures the slope of ff. If you imagine walking along the graph of ff from left to right:

  • If the graph is going upward, slopes are positive, so f>0f' > 0.
  • If the graph is going downward, slopes are negative, so f<0f' < 0.
  • If the graph is flat (horizontal tangent), then f=0f' = 0.

So the sign of ff' controls monotonicity:

  • ff is increasing on intervals where f>0f' > 0.
  • ff is decreasing on intervals where f<0f' < 0.

A critical point of ff is a point in the domain where f=0f' = 0 or ff' does not exist. Critical points are important because local extrema (local maxima/minima) can only occur at critical points.

But a very common mistake is thinking “f=0f' = 0 means max or min.” Not necessarily. A horizontal tangent could be a max, a min, or neither (like an S-shaped flattening).

To decide what happens at a critical point, you look for a sign change in ff':

  • If ff' changes from positive to negative, ff has a local maximum.
  • If ff' changes from negative to positive, ff has a local minimum.
  • If ff' does not change sign, ff has no local extremum there.
Example 1: Inferring behavior of ff from a sign chart of ff'

Suppose ff' is positive on (,1)(-\infty, 1), equals 00 at 11, is negative on (1,4)(1, 4), equals 00 at 44, and is positive on (4,)(4, \infty).

  • On (,1)(-\infty, 1), f>0f' > 0 so ff is increasing.
  • At x=1x = 1, ff' changes from ++ to -, so ff has a local maximum at x=1x = 1.
  • On (1,4)(1, 4), f<0f' < 0 so ff is decreasing.
  • At x=4x = 4, ff' changes from - to ++, so ff has a local minimum at x=4x = 4.

Notice that you can sketch a reasonable shape of ff (up then down then up) without ever knowing the exact formula.

What ff'' tells you about ff (concavity and inflection points)

Concavity is about how slopes are changing.

  • Concave up means the slopes of ff are increasing as xx increases (tangent lines get steeper). This corresponds to f>0f'' > 0.
  • Concave down means the slopes of ff are decreasing as xx increases (tangent lines get less steep). This corresponds to f<0f'' < 0.

So:

  • ff is concave up where f>0f'' > 0.
  • ff is concave down where f<0f'' < 0.

An inflection point of ff is a point where the concavity changes (from up to down, or down to up). A necessary condition is that f=0f'' = 0 or ff'' is undefined, but—again—this is not sufficient. You must confirm that ff'' changes sign.

A helpful way to remember concavity is:

  • Concave up: the graph of ff looks like a cup “holding water.”
  • Concave down: the graph of ff looks like a cap “spilling water.”
Connecting ff'' and ff' (increasing/decreasing of the derivative)

Since ff'' is the derivative of ff', it tells you whether ff' is increasing or decreasing:

  • If f>0f'' > 0 on an interval, then ff' is increasing there.
  • If f<0f'' < 0 on an interval, then ff' is decreasing there.

This is a powerful connection on AP problems where you’re shown the graph of ff'. You can often determine concavity of ff by checking whether ff' is increasing or decreasing.

  • ff is concave up where ff' is increasing.
  • ff is concave down where ff' is decreasing.

This works because “concavity of ff” is really “trend in the slope of ff.”

Example 2: Reading concavity of ff from a graph of ff'

Imagine you’re given a graph of ff' that rises from left to right on the interval (0,2)(0, 2) and falls from left to right on (2,5)(2, 5).

  • On (0,2)(0, 2), ff' is increasing, so f>0f'' > 0 there and ff is concave up.
  • On (2,5)(2, 5), ff' is decreasing, so f<0f'' < 0 there and ff is concave down.

If ff' changes from increasing to decreasing at x=2x = 2, that suggests ff'' changes sign, so ff likely has an inflection point at x=2x = 2 (as long as ff is continuous there).

How to sketch ff when you’re given ff' (a practical workflow)

On many free-response questions, you’re given a graph of ff' and asked to sketch a graph of ff that is consistent with it. You’re not expected to find the exact formula—just a graph that matches the derivative information.

A reliable approach:

  1. Mark where f=0f' = 0 or undefined. These are candidate points where ff could have local extrema or corners/cusps.
  2. Determine increasing/decreasing for ff using the sign of ff'.
  3. Determine concavity for ff by checking whether ff' is increasing or decreasing.
  4. Combine them into a coherent shape. Increasing + concave up looks different from increasing + concave down.

A common error is to mix up what you’re sketching: if the given graph is ff', intercepts on that graph correspond to where ff has horizontal tangents—not where ff crosses the xx-axis.

How to sketch ff' when you’re given ff

If you’re given ff and asked about ff', you’re essentially graphing “slope as a function of xx.” Conceptually:

  • Where ff is increasing steeply, ff' is large and positive.
  • Where ff is decreasing steeply, ff' is large in magnitude and negative.
  • Where ff has a horizontal tangent, f=0f' = 0.

If ff has a corner/cusp/vertical tangent, ff' may not exist there.

It helps to pick a few representative xx-values, estimate the slope of ff at each, and plot those slope values on the ff' graph.

Putting the relationships in one place

The key ideas can be organized as “sign and trend.”

Information you seeWhat it impliesWhat you conclude
f>0f' > 0slopes of ff are positiveff increasing
f<0f' < 0slopes of ff are negativeff decreasing
ff' changes ++ to - at x=cx=cslope goes from up to downff local max at x=cx=c
ff' changes - to ++ at x=cx=cslope goes from down to upff local min at x=cx=c
f>0f'' > 0slopes of ff are increasingff concave up
f<0f'' < 0slopes of ff are decreasingff concave down
ff'' changes sign at x=cx=cconcavity changesff inflection point at x=cx=c
f>0f'' > 0ff' increasinggraph of ff' rising
f<0f'' < 0ff' decreasinggraph of ff' falling
A note about “height” vs “slope” (avoiding a classic confusion)

Students often confuse these statements:

  • ff is positive” means the graph of ff is above the xx-axis.
  • ff is increasing” means the graph goes up as you move right.

Similarly:

  • ff' is positive” does **not** mean ff is above the axis; it means ff is increasing.
  • Zeros of ff' do **not** mean zeros of ff.

Keeping “value” (height) separate from “rate of change” (slope) is the whole point of connecting these graphs.

Exam Focus
  • Typical question patterns:
    • Given a graph of ff' (or a sign chart/table of ff'), determine where ff is increasing/decreasing and identify local maxima/minima.
    • Given a graph of ff', determine where ff is concave up/down and locate inflection points by analyzing where ff' increases/decreases.
    • Sketch a possible graph of ff consistent with a provided graph of ff' (often with one point of ff given to anchor vertical position).
  • Common mistakes:
    • Treating f=0f' = 0 as automatically giving a local extremum; you must check a sign change in ff'.
    • Confusing the zeros of ff' with the zeros of ff.
    • Claiming an inflection point just because f=0f'' = 0; you must confirm concavity changes (a sign change in ff'', or equivalently a change in increasing/decreasing of ff').

Optimization Problems

An optimization problem asks you to find the maximum or minimum value of some quantity (area, cost, distance, volume, time, etc.) subject to given constraints. In calculus, the central idea is that maxima/minima often occur where a function’s derivative is zero or undefined—because at a “best possible” point, small changes usually don’t improve the outcome.

Optimization matters because it’s one of the most direct ways calculus models real decisions: minimizing materials in manufacturing, maximizing profit, designing containers, or finding the closest point to a location.

The big picture: objective function + constraints

Every optimization problem has two core ingredients:

  1. Objective function: the quantity you want to optimize. Call it QQ.
  2. Constraints: equations/inequalities that limit possible choices.

Your job is usually to rewrite the objective function as a function of one variable, using the constraints. Then you can use derivatives to locate maxima/minima.

A very common place students go wrong is differentiating too early—before reducing to one variable. If you still have two variables, you either need more constraints or you haven’t used the given constraint fully.

Local vs absolute extrema (and why endpoints matter)

On AP problems, you’re often asked for an absolute maximum/minimum on a closed interval. The calculus fact you rely on is the Closed Interval Method:

  • If QQ is continuous on [a,b][a,b], then its absolute max and min occur either at:
    • endpoints x=ax=a or x=bx=b, or
    • critical points inside (a,b)(a,b) where Q=0Q' = 0 or QQ' does not exist.

So optimization is not just “set derivative equal to zero.” You must also check endpoints if the domain is closed/bounded.

A standard step-by-step strategy (what you should actually do)

When you face an optimization prompt, a consistent workflow helps:

  1. Draw a picture (even a rough one). Label variables.
  2. Write the objective function QQ in terms of your variables.
  3. Write the constraint equation(s) from the given conditions.
  4. Reduce to one variable by solving the constraint for one variable and substituting.
  5. Determine the domain of the remaining variable (physical constraints like lengths must be positive; also geometric limits).
  6. Differentiate to find QQ'.
  7. Find critical points (solve Q=0Q' = 0 and note where QQ' undefined in the domain).
  8. Decide max/min using:
    • the Closed Interval Method, or
    • the First Derivative Test, or
    • the Second Derivative Test (when appropriate).
  9. Interpret your answer with units and a sentence (“maximum area occurs when …”).
Deciding whether you found a max or a min

After you find a critical point, you still must justify it produces the requested optimum.

First Derivative Test: If QQ' changes sign from positive to negative at a critical point, QQ has a local maximum there. If QQ' changes from negative to positive, QQ has a local minimum.

Second Derivative Test: If Q(c)=0Q'(c)=0 and Q(c)>0Q''(c)>0, then QQ has a local minimum at x=cx=c. If Q(c)<0Q''(c)<0, then QQ has a local maximum.

A common mistake is to apply the Second Derivative Test when Q(c)Q'(c) is not zero; it’s not valid in that case.

Example 1: Max area with fixed perimeter (classic fencing rectangle)

A farmer has 200200 meters of fencing to build a rectangular enclosure. What dimensions maximize the area?

1) Define variables. Let the rectangle have length LL and width WW.

2) Objective function (area).

A=LWA = LW

3) Constraint (perimeter).

2L+2W=2002L + 2W = 200

Solve for one variable, for example WW:

W=100LW = 100 - L

4) Substitute into objective (one variable).

A(L)=L(100L)=100LL2A(L) = L(100 - L) = 100L - L^2

5) Domain. Physical lengths require L>0L>0 and W>0W>0, so:

0<L<1000 < L < 100

6) Differentiate.

A(L)=1002LA'(L) = 100 - 2L

7) Critical point. Set derivative to zero:

1002L=0100 - 2L = 0

L=50L = 50

Then W=10050=50W = 100 - 50 = 50.

8) Max or min? Since A(L)A(L) is a downward-opening parabola (coefficient of L2L^2 is negative), the critical point is a maximum. Alternatively, check A(L)A''(L):

A(L)=2A''(L) = -2

Because A(50)<0A''(50) < 0, it’s a local maximum; on this domain it’s also the absolute maximum.

Conclusion: The maximum area occurs when L=W=50L=W=50 meters; the optimal rectangle is a square.

What to notice: Many geometry optimization problems end with symmetry (like a square), but you should still show it with calculus rather than guessing.

Example 2: Min distance from a point to a curve (closest point)

Find the point on the parabola y=x2y = x^2 closest to the point P(0,3)P(0,3).

This is optimization because “closest” means “minimum distance.” The distance from a point (x,x2)(x, x^2) on the parabola to (0,3)(0,3) is:

D=(x0)2+(x23)2D = \sqrt{(x-0)^2 + (x^2-3)^2}

Minimizing DD is annoying because of the square root, but the square root is increasing, so minimizing DD is equivalent to minimizing D2D^2.

1) Objective function (squared distance).

S(x)=D2=x2+(x23)2S(x) = D^2 = x^2 + (x^2 - 3)^2

Expand:

S(x)=x2+x46x2+9S(x) = x^2 + x^4 - 6x^2 + 9

S(x)=x45x2+9S(x) = x^4 - 5x^2 + 9

2) Differentiate.

S(x)=4x310xS'(x) = 4x^3 - 10x

3) Critical points.

4x310x=04x^3 - 10x = 0

Factor:

2x(2x25)=02x(2x^2 - 5) = 0

So:

x=0x = 0

or

2x25=02x^2 - 5 = 0

x2=52x^2 = \frac{5}{2}

x=±52x = \pm \sqrt{\frac{5}{2}}

4) Evaluate the objective at candidates. Since the domain is all real numbers, we compare values of S(x)S(x) at these points.

  • S(0)=9S(0) = 9.
  • For x2=5/2x^2 = 5/2, compute:

S(x)=x45x2+9=(52)25(52)+9S(x) = x^4 - 5x^2 + 9 = \left(\frac{5}{2}\right)^2 - 5\left(\frac{5}{2}\right) + 9

S(x)=254252+9S(x) = \frac{25}{4} - \frac{25}{2} + 9

S(x)=254504+364S(x) = \frac{25}{4} - \frac{50}{4} + \frac{36}{4}

S(x)=114S(x) = \frac{11}{4}

Since 11/4<911/4 < 9, the minimum occurs at x=±5/2x = \pm \sqrt{5/2}.

5) Give the actual points. On the parabola, y=x2y=x^2, so y=5/2y=5/2.

Closest points:

(52,52)\left(\sqrt{\frac{5}{2}}, \frac{5}{2}\right)

and

(52,52)\left(-\sqrt{\frac{5}{2}}, \frac{5}{2}\right)

Common pitfall: Minimizing DD vs minimizing D2D^2. It’s fine to minimize D2D^2, but you must not forget at the end that the point is asked for, not just the distance.

Example 3: Minimizing material for a box (surface area with fixed volume)

A box with a square base has volume V=32V = 32 cubic units. Find the dimensions that minimize surface area for an open-top box (no lid).

1) Variables. Let base side length be xx and height be hh.

2) Constraint (volume).

x2h=32x^2 h = 32

Solve for hh:

h=32x2h = \frac{32}{x^2}

3) Objective (surface area). For an open-top box:

  • Base area: x2x^2
  • Four sides: each is xhxh, so total side area is 4xh4xh

Thus:

S=x2+4xhS = x^2 + 4xh

Substitute hh:

S(x)=x2+4x(32x2)S(x) = x^2 + 4x\left(\frac{32}{x^2}\right)

Simplify:

S(x)=x2+128xS(x) = x^2 + \frac{128}{x}

4) Domain. x>0x>0.

5) Differentiate and find critical points.

S(x)=2x128x2S'(x) = 2x - \frac{128}{x^2}

Set to zero:

2x128x2=02x - \frac{128}{x^2} = 0

2x=128x22x = \frac{128}{x^2}

2x3=1282x^3 = 128

x3=64x^3 = 64

x=4x = 4

Then:

h=3242=2h = \frac{32}{4^2} = 2

6) Verify it’s a minimum. Use S(x)S''(x):

S(x)=2+256x3S''(x) = 2 + \frac{256}{x^3}

For x>0x>0, S(x)>0S''(x) > 0, so the critical point gives a minimum.

Conclusion: Minimum surface area occurs at base side x=4x=4 and height h=2h=2.

Why this makes sense: If the base is extremely small, you need a very tall box to keep volume fixed, increasing side area. If the base is huge, base area dominates. The minimum occurs at a balance point.

Optimization with contexts: what “reasonable domain” really means

AP problems often require you to state or use a domain. This isn’t just a formality—it prevents nonsense answers.

Examples of domain restrictions:

  • Lengths/areas/volumes: variables must be positive.
  • If you define xx as “distance from a corner along a side,” then xx must lie between 00 and the side length.
  • If you model revenue/cost with a demand function, you may need xx values that keep price nonnegative.

A subtle but common mistake is to find a critical point that is mathematically valid but physically impossible (like a negative radius). Always check units and constraints.

How curve sketching ideas support optimization

Optimization is basically curve sketching with a purpose. When you compute QQ' and analyze its sign, you’re doing the same work as “connecting ff and ff'”:

  • Sign of QQ' tells you where QQ increases/decreases.
  • Where QQ' changes sign tells you maxima/minima.
  • Sometimes QQ'' helps you confirm the type of extremum via concavity.

Thinking this way makes optimization feel less like a “word problem trick” and more like an application of derivative behavior.

Exam Focus
  • Typical question patterns:
    • “Find the dimensions that maximize area/minimize cost given a constraint” (perimeter, fixed volume, fixed surface area, fixed distance).
    • “Find the minimum distance” between a point and a curve (often by minimizing squared distance).
    • “Find absolute maximum/minimum on an interval” (explicitly requires checking endpoints plus critical points).
  • Common mistakes:
    • Not reducing to one variable before differentiating, or using the constraint incorrectly when substituting.
    • Finding critical points but failing to test them (no endpoint check on a closed interval; no justification of max vs min).
    • Ignoring domain/physical feasibility, leading to impossible dimensions (negative lengths, values outside the geometric setup).