Skip to content

Unit 5: Analytical Applications of Differentiation

AP Calc cheatsheet

Open β†—

Loading…

Theorem (Mean Value Theorem). If ff is continuous on [a,b][a,b] and differentiable on (a,b)(a,b), then there exists c∈(a,b)c \in (a,b) such that

fβ€²(c)=f(b)βˆ’f(a)bβˆ’a.f'(c) = \frac{f(b)-f(a)}{b-a}.

Rolle’s Theorem is the special case where f(a)=f(b)f(a)=f(b).

The Mean Value Theorem says that under the right smoothness conditions, some instantaneous rate equals the average rate over the interval.

The hypotheses are essential:

If either hypothesis fails, the theorem may not apply, even if the conclusion happens to be true.

Rolle’s Theorem is the same idea when the average rate is zero. If a smooth function starts and ends at the same height, then somewhere in between it has a horizontal tangent.

Proof (MVT). Define the secant-line function through the endpoints:

L(x)=f(a)+f(b)βˆ’f(a)bβˆ’a(xβˆ’a).L(x)=f(a)+\frac{f(b)-f(a)}{b-a}(x-a).

Now define

g(x)=f(x)βˆ’L(x).g(x)=f(x)-L(x).

Because ff and LL are continuous on [a,b][a,b] and differentiable on (a,b)(a,b), so is gg. Also,

g(a)=f(a)βˆ’L(a)=0,g(a)=f(a)-L(a)=0,

and

g(b)=f(b)βˆ’L(b)=0.g(b)=f(b)-L(b)=0.

By Rolle’s Theorem, there is some c∈(a,b)c\in(a,b) such that gβ€²(c)=0g'(c)=0. Since

gβ€²(x)=fβ€²(x)βˆ’f(b)βˆ’f(a)bβˆ’a,g'(x)=f'(x)-\frac{f(b)-f(a)}{b-a},

we get

0=fβ€²(c)βˆ’f(b)βˆ’f(a)bβˆ’a.0=f'(c)-\frac{f(b)-f(a)}{b-a}.

Therefore,

fβ€²(c)=f(b)βˆ’f(a)bβˆ’a.f'(c)=\frac{f(b)-f(a)}{b-a}.

Example. Verify Rolle’s Theorem for

f(x)=x2βˆ’4x+3f(x)=x^2-4x+3

on [1,3][1,3], then find the value of cc.

The function is a polynomial, so it is continuous on [1,3][1,3] and differentiable on (1,3)(1,3). Check the endpoint values:

f(1)=1βˆ’4+3=0,f(1)=1-4+3=0,

and

f(3)=9βˆ’12+3=0.f(3)=9-12+3=0.

Since f(1)=f(3)f(1)=f(3), Rolle’s Theorem applies. Differentiate:

fβ€²(x)=2xβˆ’4.f'(x)=2x-4.

Set fβ€²(c)=0f'(c)=0:

2cβˆ’4=0⟹c=2.2c-4=0 \quad\Longrightarrow\quad c=2.

The value c=2c=2 lies in (1,3)(1,3), so it is the point guaranteed by Rolle’s Theorem.

Example. For f(x)=x2f(x)=x^2 on [1,3][1,3], find the value cc guaranteed by the Mean Value Theorem.

The function is a polynomial, so it is continuous on [1,3][1,3] and differentiable on (1,3)(1,3), and the theorem applies. The average rate of change is

f(3)βˆ’f(1)3βˆ’1=9βˆ’12=4.\frac{f(3)-f(1)}{3-1}=\frac{9-1}{2}=4.

Since fβ€²(x)=2xf'(x)=2x, set the instantaneous rate equal to the average rate:

2c=4⟹c=2.2c=4\quad\Longrightarrow\quad c=2.

The value c=2c=2 lies in (1,3)(1,3), so it is the value guaranteed by the theorem.


The Extreme Value Theorem (EVT) guarantees that a continuous function on a closed interval has both an absolute maximum and an absolute minimum.

Theorem (EVT). If ff is continuous on [a,b][a,b], then there are numbers mm and MM in [a,b][a,b] such that

f(m)≀f(x)≀f(M)f(m)\le f(x)\le f(M)

for every xx in [a,b][a,b].

The proof for EVT is based in non-calculus fields like real analysis so it will not be shown here.

The two conditions matter. The interval must be closed, so endpoints are included, and the function must be continuous, so it cannot jump over or miss its highest or lowest value. EVT tells you the extrema exist; it does not tell you where they are. Critical points and endpoints are how you find the candidates.

Definition. A critical point of ff occurs at x=cx=c when:

  • fβ€²(c)=0f'(c) = 0, or
  • fβ€²(c)f'(c) does not exist,

provided cc is in the domain of ff.

If ff has a local extremum at an interior point cc and fβ€²(c)f'(c) exists, then

fβ€²(c)=0.f'(c)=0.

This theorem explains why critical numbers matter, but it does not say every critical number is an extremum. It only says that if an interior local extremum happens at a differentiable point, the derivative must be zero there. A sign test or value comparison is still needed.

There are two different candidate lists:

  • for local extrema, check interior critical points,
  • for absolute extrema on a closed interval, check interior critical points and endpoints.

Endpoints matter for absolute extrema because EVT guarantees the largest and smallest output somewhere on the whole closed interval. Endpoints are included in that interval, even though they are not usually called local extrema in AP Calculus.

When justifying an absolute maximum or minimum, compare function values, not derivative values. The derivative helps you find candidates, but the output values decide the final answer.


When looking at a function, its first derivative can tell you a lot about the direction:

  • fβ€²(x)>0f'(x) > 0 on an interval implies ff is increasing there.
  • fβ€²(x)<0f'(x) < 0 on an interval implies ff is decreasing there.

Sign charts are the cleanest way to justify interval behavior.

When looking at a function, its second derivative can tell you a lot about the shape:

  • fβ€²β€²(x)>0f''(x)>0, then fβ€²(x)f'(x) is increasing. The graph of ff bends upward (concave up) because its slopes are becoming more positive or less negative.
  • fβ€²β€²(x)<0f''(x)<0, then fβ€²(x)f'(x) is decreasing. The graph of ff bends downward (concave down) because its slopes are becoming less positive or more negative.

An inflection point is a point where concavity changes. The equation fβ€²β€²(x)=0f''(x)=0 only gives a possible location; you still need to check that the concavity actually changes.

Β‘2Β‘1123Β‘4Β‘224localmaxlocalmininΒ°ectionf0>0f00<0f0>0f00>0xf(x)

A very useful test to find local extrema is the First Derivative Test. At points where fβ€²(x)=0f'(x)=0 (critical points), we can use this test to see if there is a local minimum, local maximum, or neither.

Theorem (First Derivative Test). If fβ€²f' changes:

  • positive to negative at cc: local maximum,
  • negative to positive at cc: local minimum,
  • no sign change: neither.

Proof (First Derivative Test). Suppose fβ€²f' changes from positive to negative at cc. Then ff is increasing just to the left of cc and decreasing just to the right of cc. So values near cc on the left rise toward f(c)f(c), and values near cc on the right fall away from f(c)f(c). This makes f(c)f(c) a local maximum.

If fβ€²f' changes from negative to positive, the same reasoning reverses: ff decreases into cc and increases after cc, so f(c)f(c) is a local minimum.

If fβ€²f' does not change sign, then ff keeps increasing on both sides or keeps decreasing on both sides. In that case, cc is not a local extremum.

Example. Find and classify the critical points of f(x)=x3βˆ’3x2f(x)=x^3-3x^2.

Differentiate and factor:

fβ€²(x)=3x2βˆ’6x=3x(xβˆ’2).f'(x)=3x^2-6x=3x(x-2).

So fβ€²(x)=0f'(x)=0 at x=0x=0 and x=2x=2. Test the sign of fβ€²f' on each interval:

Test one point in each interval:

fβ€²(βˆ’1)=3(βˆ’1)(βˆ’3)=9>0.f'(-1)=3(-1)(-3)=9>0. fβ€²(1)=3(1)(βˆ’1)=βˆ’3<0.f'(1)=3(1)(-1)=-3<0. fβ€²(3)=3(3)(1)=9>0.f'(3)=3(3)(1)=9>0.

The derivative goes positive to negative at x=0x=0, so ff has a local maximum there, with f(0)=0f(0)=0. The derivative goes negative to positive at x=2x=2, so ff has a local minimum there, with f(2)=8βˆ’12=βˆ’4f(2)=8-12=-4.


Definition. The absolute extrema of an interval [a,b][a,b] is defined as the point x=cx=c where

  • f(c)f(c) is at a maximum (for absolute maxima),
  • f(c)f(c) is at a minimum (for absolute minima).

To find absolute max/min (extrema) of ff on [a,b][a,b]:

The largest output is the absolute maximum, and the smallest output is the absolute minimum. Endpoints must be included because absolute extrema can occur at endpoints even though local extrema usually focus on interior points.

Example. Find the absolute maximum and minimum of f(x)=x3βˆ’3xf(x)=x^3-3x on [0,2][0,2].

Differentiate to locate interior critical points:

fβ€²(x)=3x2βˆ’3=3(x2βˆ’1),f'(x)=3x^2-3=3(x^2-1),

so fβ€²(x)=0f'(x)=0 at x=Β±1x=\pm1. Only x=1x=1 lies inside (0,2)(0,2). Evaluate ff at this critical point and at both endpoints:

f(0)=0,f(1)=1βˆ’3=βˆ’2,f(2)=8βˆ’6=2.f(0)=0,\qquad f(1)=1-3=-2,\qquad f(2)=8-6=2.

Comparing the candidate values, the absolute maximum is 22 at x=2x=2, and the absolute minimum is βˆ’2-2 at x=1x=1.


Concavity describes how the slopes of a function are changing.

  • If fβ€²β€²(x)>0f''(x)>0, then fβ€²f' is increasing and the graph is concave up.
  • If fβ€²β€²(x)<0f''(x)<0, then fβ€²f' is decreasing and the graph is concave down.

An inflection point occurs where concavity changes. The equation fβ€²β€²(x)=0f''(x)=0 gives possible inflection points, but it is not enough by itself. You still need to check that fβ€²β€²f'' changes sign or that the graph actually changes concavity.

Example. Find the concavity intervals and inflection point of

f(x)=x3βˆ’3x2.f(x)=x^3-3x^2.

Compute the second derivative:

fβ€²(x)=3x2βˆ’6x,fβ€²β€²(x)=6xβˆ’6.f'(x)=3x^2-6x, \qquad f''(x)=6x-6.

Set fβ€²β€²(x)=0f''(x)=0:

6xβˆ’6=0⟹x=1.6x-6=0 \quad\Longrightarrow\quad x=1.

Test around x=1x=1. If x<1x<1, then fβ€²β€²(x)<0f''(x)<0, so the graph is concave down. If x>1x>1, then fβ€²β€²(x)>0f''(x)>0, so the graph is concave up. Since concavity changes at x=1x=1, there is an inflection point there:

f(1)=1βˆ’3=βˆ’2.f(1)=1-3=-2.

The inflection point is (1,βˆ’2)(1,-2).


The Second Derivative Test is an alternate way of finding minima and maxima.

Theorem (Second Derivative Test). If fβ€²(c)=0f'(c)=0 and:

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

Example. Use the second derivative test to classify the critical points of f(x)=x3βˆ’12xf(x)=x^3-12x.

First find the critical points:

fβ€²(x)=3x2βˆ’12=3(x2βˆ’4)=3(xβˆ’2)(x+2),f'(x)=3x^2-12=3(x^2-4)=3(x-2)(x+2),

so fβ€²(x)=0f'(x)=0 at x=βˆ’2x=-2 and x=2x=2. The second derivative is

fβ€²β€²(x)=6x.f''(x)=6x.

Evaluate at each critical point:

fβ€²β€²(2)=12>0,fβ€²β€²(βˆ’2)=βˆ’12<0.f''(2)=12>0,\qquad f''(-2)=-12<0.

Since fβ€²β€²(2)>0f''(2)>0, there is a local minimum at x=2x=2, with f(2)=8βˆ’24=βˆ’16f(2)=8-24=-16. Since fβ€²β€²(βˆ’2)<0f''(-2)<0, there is a local maximum at x=βˆ’2x=-2, with f(βˆ’2)=βˆ’8+24=16f(-2)=-8+24=16.

The First Derivative Test is usually more reliable because it checks what the function is actually doing on both sides of the critical point. It works for critical points where fβ€²(c)=0f'(c)=0 and for critical points where fβ€²(c)f'(c) does not exist, as long as you can test signs around cc.

The Second Derivative Test is faster when it applies, but it has two limits:

  • it only applies when fβ€²(c)=0f'(c)=0,
  • if fβ€²β€²(c)=0f''(c)=0, the test gives no conclusion.

A solid derivative-based sketch includes:

  • intercepts,
  • asymptotes if relevant,
  • intervals increasing/decreasing,
  • local extrema,
  • intervals concave up/down,
  • inflection points,
  • end behavior.

You do not need a perfect drawing at first. The goal is to collect enough structure that the graph has the correct shape. Start with the domain and discontinuities, then use derivatives to decide how the graph moves.

Example. Sketch the important derivative information for

f(x)=x3βˆ’3x2.f(x)=x^3-3x^2.

First derivative:

fβ€²(x)=3x2βˆ’6x=3x(xβˆ’2).f'(x)=3x^2-6x=3x(x-2).

The critical points are x=0x=0 and x=2x=2. A sign chart for fβ€²f' gives:

  • increasing on (βˆ’βˆž,0)(-\infty,0),
  • decreasing on (0,2)(0,2),
  • increasing on (2,∞)(2,\infty).

So x=0x=0 is a local maximum and x=2x=2 is a local minimum.

Second derivative:

fβ€²β€²(x)=6xβˆ’6.f''(x)=6x-6.

The graph is concave down on (βˆ’βˆž,1)(-\infty,1) and concave up on (1,∞)(1,\infty), so there is an inflection point at x=1x=1.

Evaluate the key points:

f(0)=0,f(1)=βˆ’2,f(2)=βˆ’4.f(0)=0,\qquad f(1)=-2,\qquad f(2)=-4.

A good sketch should pass through those points, rise before 00, fall between 00 and 22, rise after 22, and change concavity at x=1x=1.


Optimization problems mix modeling with calculus. The derivative only works after the quantity being optimized is written as a one-variable function. Most optimization problems ask for a local or absolute minimum (such as the least time) or maximum (such as the greatest profit).

The hardest part of optimization is usually building the one-variable function. A good setup keeps three pieces separate:

  • the target quantity, which is what you want to maximize or minimize,
  • the constraint equation, which connects the variables,
  • the feasible domain, which says what values make sense in the context.

If the target quantity has two variables, use the constraint to solve for one variable and substitute. After that, the calculus part is standard: differentiate, find critical points, and test candidates.

Optimization problems often fail because the domain is ignored. After writing the target function, determine the allowed interval from the context:

  • lengths must usually be positive,
  • time may be restricted to a stated interval,
  • square roots require nonnegative radicands,
  • denominators cannot be zero.

If the allowed domain is closed, use endpoint comparison. If the domain is open or unbounded, use derivative signs and behavior at the ends.

Example. A rectangular pen is built with 4040 meters of fencing. What dimensions maximize the enclosed area?

Let the rectangle have width xx and height yy. The perimeter constraint is

2x+2y=40⟹y=20βˆ’x.2x+2y=40\quad\Longrightarrow\quad y=20-x.

The area, written as a one-variable function, is

A(x)=x(20βˆ’x)=20xβˆ’x2,0<x<20.A(x)=x(20-x)=20x-x^2,\qquad 0<x<20.

Differentiate and find the critical point:

Aβ€²(x)=20βˆ’2x=0⟹x=10.A'(x)=20-2x=0\quad\Longrightarrow\quad x=10.

Since Aβ€²β€²(x)=βˆ’2<0A''(x)=-2<0, this critical point is a maximum. Then y=20βˆ’10=10y=20-10=10, so the pen is a 10Γ—1010\times10 square with maximum area

A(10)=10β‹…10=100Β squareΒ meters.A(10)=10\cdot10=100\ \text{square meters}.

Example. A rectangular box with a square base and no top must have volume 500500 cubic centimeters. Find the dimensions that minimize the surface area.

Let xx be the side length of the square base and hh be the height. The volume constraint is

x2h=500,x^2h=500,

so

h=500x2.h=\frac{500}{x^2}.

The surface area includes the square base and four side rectangles:

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

Substitute the constraint:

S(x)=x2+4x(500x2)=x2+2000x,x>0.S(x)=x^2+4x\left(\frac{500}{x^2}\right)=x^2+\frac{2000}{x}, \qquad x>0.

Differentiate:

Sβ€²(x)=2xβˆ’2000x2.S'(x)=2x-\frac{2000}{x^2}.

Set the derivative equal to zero:

2xβˆ’2000x2=0.2x-\frac{2000}{x^2}=0.

Multiply by x2x^2:

2x3βˆ’2000=0⟹x3=1000⟹x=10.2x^3-2000=0 \quad\Longrightarrow\quad x^3=1000 \quad\Longrightarrow\quad x=10.

Then

h=500102=5.h=\frac{500}{10^2}=5.

Because S(x)β†’βˆžS(x)\to\infty as xβ†’0+x\to0^+ and as xβ†’βˆžx\to\infty, the critical point gives the absolute minimum. The box should have square base side length 1010 cm and height 55 cm.


As a reminder, linearization is the process of estimating the value of a function using its derivative:

L(x)=f(a)+fβ€²(a)(xβˆ’a).L(x) = f(a)+f'(a)(x-a).

Using linearization, we can approximate the roots of a function using Newton’s method (also known as the Newton-Raphson method) for approximating roots. Newton’s method uses tangent lines to approximate roots.

Theorem (Newton’s Method). To approximate a root of f(x)=0f(x)=0, start with a guess xnx_n and repeatedly use

xn+1=xnβˆ’f(xn)fβ€²(xn).x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}.

xnx_n represents the nnth iteration, where you keep using your previous attempts to estimate the root. The first number always starts out as a guess, as after many iterations, the value will get closer and closer to the real root. However, the method works best when the starting guess is close to the root and the derivative is not near zero. If the tangent line is nearly horizontal, the next approximation can jump far away.

Proof (Newton’s Method). The linearization of ff at xnx_n is

L(x)=f(xn)+fβ€²(xn)(xβˆ’xn).L(x)=f(x_n)+f'(x_n)(x-x_n).

Newton’s method uses the root of this tangent line as the next guess, so set L(x)=0L(x)=0:

0=f(xn)+fβ€²(xn)(xβˆ’xn).0=f(x_n)+f'(x_n)(x-x_n).

Solve for xx:

fβ€²(xn)(xβˆ’xn)=βˆ’f(xn),f'(x_n)(x-x_n)=-f(x_n), xβˆ’xn=βˆ’f(xn)fβ€²(xn).x-x_n=-\frac{f(x_n)}{f'(x_n)}.

Therefore,

x=xnβˆ’f(xn)fβ€²(xn).x=x_n-\frac{f(x_n)}{f'(x_n)}.

This new xx-value is called xn+1x_{n+1}.

11:552:224tangentatx0x1tangentatx1x2xy

Example. Use Newton’s method to approximate 2\sqrt2 by solving x2βˆ’2=0x^2-2=0, starting with x0=1.5x_0=1.5.

Let

f(x)=x2βˆ’2,fβ€²(x)=2x.f(x)=x^2-2, \qquad f'(x)=2x.

The Newton update is

xn+1=xnβˆ’xn2βˆ’22xn.x_{n+1}=x_n-\frac{x_n^2-2}{2x_n}.

Starting with x0=1.5x_0=1.5:

x1=1.5βˆ’1.52βˆ’22(1.5)=1.5βˆ’0.253β‰ˆ1.4167.x_1=1.5-\frac{1.5^2-2}{2(1.5)} =1.5-\frac{0.25}{3} \approx1.4167.

Apply the formula again:

x2=1.4167βˆ’1.41672βˆ’22(1.4167)β‰ˆ1.4142.x_2=1.4167-\frac{1.4167^2-2}{2(1.4167)} \approx1.4142.

So 2β‰ˆ1.4142\sqrt2\approx1.4142.

Example. Use Newton’s method to approximate a solution of cos⁑x=x\cos x=x, starting with x0=1x_0=1.

Write the equation as a root problem:

f(x)=cos⁑xβˆ’x.f(x)=\cos x-x.

Then

fβ€²(x)=βˆ’sin⁑xβˆ’1.f'(x)=-\sin x-1.

Newton’s method gives

xn+1=xnβˆ’cos⁑xnβˆ’xnβˆ’sin⁑xnβˆ’1.x_{n+1}=x_n-\frac{\cos x_n-x_n}{-\sin x_n-1}.

Starting with x0=1x_0=1:

x1=1βˆ’cos⁑(1)βˆ’1βˆ’sin⁑(1)βˆ’1β‰ˆ0.7504.x_1=1-\frac{\cos(1)-1}{-\sin(1)-1}\approx0.7504.

One more iteration gives

x2=0.7504βˆ’cos⁑(0.7504)βˆ’0.7504βˆ’sin⁑(0.7504)βˆ’1β‰ˆ0.7391.x_2=0.7504-\frac{\cos(0.7504)-0.7504}{-\sin(0.7504)-1}\approx0.7391.

So the solution is approximately xβ‰ˆ0.7391x\approx0.7391.


Analytical applications ask you to turn derivative information into a story about the original function. The safest approach is to separate where candidates occur from what those candidates mean.

For optimization, the derivative work is only the middle of the problem. A complete solution should also define variables, state the constraint, state the domain, and answer in the original units.