Updated · Equations updated; Sections updated; Examples or practice updated; Note content revised What changed?
- — Equations updated; Sections updated; Examples or practice updated; Note content revised
- — Sections updated; Note content revised
Mean Value Theorem (MVT) and Rolle’s Theorem
Section titled “Mean Value Theorem (MVT) and Rolle’s Theorem”Theorem (Mean Value Theorem). If is continuous on and differentiable on , then there exists such that
Rolle’s Theorem is the special case where .
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:
Now define
Because and are continuous on and differentiable on , so is . Also,
and
By Rolle’s Theorem, there is some such that . Since
we get
Therefore,
// prove MVT without Rolle’s theorem (its circular reasoning)
Example. Verify Rolle’s Theorem for
on , then find the value of .
The function is a polynomial, so it is continuous on and differentiable on . Check the endpoint values:
and
Since , Rolle’s Theorem applies. Differentiate:
Set :
The value lies in , so it is the point guaranteed by Rolle’s Theorem.
Example. For on , find the value guaranteed by the Mean Value Theorem.
The function is continuous on and differentiable on because the interval excludes zero. The average rate of change is
Since , set the instantaneous rate equal to the average rate:
Only lies in , so it is the value guaranteed by the theorem.
Using the derivative in graphs
Section titled “Using the derivative in graphs”When looking at a function, its first derivative can tell you a lot about the direction, as we know from previous units:
- on an interval implies is increasing there.
- on an interval implies is decreasing there.
Sign charts are the easiest way to justify interval behavior.
When looking at a function, its second derivative can tell you a lot about the shape:
- , then is increasing. The graph of bends upward (concave up) because its slopes are becoming more positive or less negative.
- , then is decreasing. The graph of bends downward (concave down) because its slopes are becoming less positive or more negative.
An inflection point is a point on the graph where concavity changes. Find candidates where or is undefined, then test the sign of on either side. A change from positive to negative or negative to positive gives an inflection point when the function is continuous at the candidate. A zero of alone is not enough, and an excluded input cannot be a point on the graph.
A local maximum at means is at least as large as all nearby function values; a local minimum means it is at most as large as all nearby values. These are local comparisons, so a higher or lower value may occur elsewhere. In the graph, is a local maximum and is a local minimum.
Critical Points
Section titled “Critical Points”Interior local extrema occur at critical points, although an inflection point does not have to be a critical point. In the graph above, the inflection point at has a nonzero derivative.
Definition. A critical point of occurs at when:
- , or
- does not exist,
provided is in the domain of .
Theorem. If has a local extremum at an interior point and exists, then
Proof (Fermat’s theorem). Suppose has a local maximum at an interior point and is differentiable there. For sufficiently small positive ,
because the numerator is nonpositive. For sufficiently small negative , the numerator is still nonpositive, but dividing by a negative denominator gives
If the two-sided derivative exists, its value must be both nonpositive and nonnegative. Therefore . At a local minimum, the inequalities reverse and give the same result.
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.
// add an example question
The First Derivative Test
Section titled “The First Derivative Test”The First Derivative Test classifies interior critical points by the signs of the derivative nearby. It applies both where the derivative is zero and where it is undefined, provided the function is continuous at the point and differentiable on the nearby intervals being tested.
Theorem (First Derivative Test). If changes:
- positive to negative at : local maximum,
- negative to positive at : local minimum,
- no sign change: neither.
Assume is continuous at and differentiable on each side near , with the stated strict derivative signs on those intervals.
Proof (First Derivative Test). Suppose changes from positive to negative at . Then is increasing just to the left of and decreasing just to the right of . So values near on the left rise toward , and values near on the right fall away from . This makes a local maximum.
If changes from negative to positive, the same reasoning reverses: decreases into and increases after , so is a local minimum.
If does not change sign, then keeps increasing on both sides or keeps decreasing on both sides. In that case, is not a local extremum.
Example. Find and classify the critical points of .
Differentiate and factor:
So at and . Test the sign of on each interval:
Test one point in each interval:
The derivative goes positive to negative at , so has a local maximum there, with . The derivative goes negative to positive at , so has a local minimum there, with .
Example. Find and classify all critical points of .
Factoring the derivative gives
Its signs on , , , and are negative, positive, negative, and positive, respectively. Therefore has local minima at and and a local maximum at . A derivative sign chart distinguishes the three critical points even though the derivative is zero at all of them.
Concavity and the second derivative
Section titled “Concavity and the second derivative”Concavity describes how the slopes of a function are changing.
- If , then is increasing and the graph is concave up.
- If , then is decreasing and the graph is concave down.
An inflection point occurs where concavity changes. The equation gives possible inflection points, but it is not enough by itself. You still need to check that changes sign or that the graph actually changes concavity.
Example. Find the concavity intervals and inflection point of
Compute the second derivative:
Set :
Test around . If , then , so the graph is concave down. If , then , so the graph is concave up. Since concavity changes at , there is an inflection point there:
The inflection point is .
The Second Derivative Test
Section titled “The Second Derivative Test”The Second Derivative Test is an alternate way of finding minima and maxima.
Theorem (Second Derivative Test). If and:
- , then has a local minimum at ,
- , then has a local maximum at ,
- , the test is inconclusive.
Proof (Second Derivative Test). Suppose and . By the definition of the derivative of ,
For sufficiently small nonzero , this quotient is positive. Since , the sign of is the sign of : it is negative to the left and positive to the right. The First Derivative Test therefore gives a local minimum. If , the signs reverse and give a local maximum. This argument does not require to be continuous near .
When , why is the test inconclusive? Compare , , and at zero. All three have zero first and second derivatives there, but their behaviors differ: the first has a minimum, the second has a maximum, and the third has neither. Therefore an inconclusive second derivative test requires another method, usually a sign chart for the first derivative.
Inflection points require a change in concavity and a point on the graph where the change occurs. For , the second derivative is positive on both sides of zero, so there is no inflection. For , the second derivative is undefined at zero, but concavity changes across the continuous point, so there is an inflection there.
For , concavity changes sign across zero, but zero is outside the domain. There is no inflection point at the vertical asymptote. A sign change across an excluded input describes two separate branches.
Example. Use the second derivative test to classify the critical points of .
First find the critical points:
so at and . The second derivative is
Evaluate at each critical point:
Since , there is a local minimum at , with . Since , there is a local maximum at , with .
Choosing between the tests
Section titled “Choosing between the tests”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 and for critical points where does not exist, as long as you can test signs around .
The Second Derivative Test is faster when it applies, but it has two limits:
- it only applies when ,
- if , the test gives no conclusion.
Corners, cusps, and vertical tangents
Section titled “Corners, cusps, and vertical tangents”When doing the First Derivative Test, we often talk about cases where , but we also know that we have the case where . At each of these points a function can be continuous even though its ordinary derivative does not exist. To distinguish them, compare the slopes as you approach from each side:
- A corner has different finite one-sided slopes. For at zero, they are and .
- A cusp has slopes that become infinite with opposite signs. For at zero, the left slopes approach and the right slopes approach .
- A vertical tangent has slopes that become infinite with the same sign from both sides. For at zero, both approach .
All three are critical points when they lie in the domain. A cusp or corner can be an extremum, but the vertical tangent is usually not: the function increases on both sides. Check the first-derivative signs rather than assuming the point is an extremum.
// add an example of graphing with vertical tangents/cusps and stuff
Curve sketching framework
Section titled “Curve sketching framework”When sketching curves, you should always include:
- 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 features of
The domain is all real numbers. The intercepts are and . For ,
The first derivative is undefined at and zero at . Its signs show that increases on , decreases on , and increases on . Thus is a cusp and local maximum, while the local minimum is
The denominator of is positive wherever it is defined. The numerator changes from negative to positive at , so the graph is concave down on and concave up on and . The inflection point is
Although is undefined at the cusp, concavity is up on both sides, so zero is not an inflection point. Finally, as and as ; there are no asymptotes.
// give a graph of the function
Example. Sketch on , marking its extrema and inflection point.
We have and . The first derivative is zero at and . It is positive, negative, and positive on the three successive intervals, so the interior local maximum and minimum are
The second derivative is negative on and positive on , giving an inflection point at . The endpoints are and ; these, together with the two extrema and the inflection point, determine the shape of the sketch.
// give a graph of the function
Absolute extrema on a closed interval
Section titled “Absolute extrema on a closed interval”Definition. The absolute extrema of an interval is defined as the point where
- is at a maximum (for absolute maxima),
- is at a minimum (for absolute minima).
The largest output is the absolute maximum, and the smallest output is the absolute minimum. Absolute extrema can occur on open or unbounded domains, but their existence is not guaranteed there: for example, on has neither one.
Extreme Value Theorem (EVT)
Section titled “Extreme Value Theorem (EVT)”How can we find absolute extrema? 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 is continuous on , then there are numbers and in such that
for every in .
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. While EVT tells you the extrema exist, it does not tell you where they are. In order to find those points, we can use critical points and endpoints. The proof for EVT uses topics outside of AP Calc so I will not cover it here.
Thus, when graphing, 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.
The interior condition allows changes to the left and right. At an endpoint, only one of those directions is available, so there is no reason for the derivative to be zero. For example, reaches its maximum on at even though its slope is always one.
This also proves Rolle’s Theorem once EVT is available. Equal endpoint values either belong to a constant function, whose derivative is zero throughout, or force a nonconstant continuous function to have an absolute extremum somewhere inside the interval. Differentiability at that interior extremum then gives a horizontal tangent.
One critical point and an absolute extremum
Section titled “One critical point and an absolute extremum”On an interval, if a continuous function has a critical point and is differentiable elsewhere, a first-derivative sign change from negative to positive at with everywhere to its left and everywhere to its right proves that is an absolute minimum. Reverse the signs for an absolute maximum. The sign information establishes the comparison over the entire domain, including any endpoints by continuity.
A single local extremum by itself is not a substitute for checking the domain and global behavior. For example, on the disconnected domain has only one interior local extremum, a local maximum at , but . Verify the sign pattern on the whole feasible interval before using the shortcut.
Example. Find the absolute extrema of on .
Since is continuous on the closed interval, EVT guarantees both extrema. Its derivative is , so the interior critical numbers are and . Compare their outputs with both endpoints:
The absolute maximum is , attained at and ; the absolute minimum is , attained at . The endpoint comparison matters even when a local maximum has already been found.
Optimization
Section titled “Optimization”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 (e.g. side lengths cannot be negative)
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.
If the allowed domain is closed, we can use EVT to determine the extrema. If the domain is open or unbounded, we can use critical points and do limits at the endpoints.
Example. A rectangular pen is divided into two smaller pens by one fence parallel to a pair of its sides. If meters of fencing are available for the perimeter and the divider, find the dimensions that maximize the total enclosed area.
Let be the length of each of the three parallel fences, including the divider, and let be the other side length. The fencing constraint is
The area, written as a one-variable function, is
Differentiate and find the critical point:
The derivative is positive on and negative on . Thus area increases up to and decreases afterward throughout the feasible interval, so this is the absolute maximum. Then , and the pen measures meters by meters, with maximum area
Example. A rectangular box with a square base and no top must have volume cubic centimeters. Find the dimensions that minimize the surface area.
Let be the side length of the square base and be the height. The volume constraint is
so
The surface area includes the square base and four side rectangles:
Substitute the constraint:
Differentiate:
Set the derivative equal to zero:
Multiply by :
Then
For every , the sign of is negative when and positive when . The surface area therefore decreases up to its only critical point and increases afterward on the entire feasible interval, so this point gives the absolute minimum. The box should have square base side length cm and height cm.
Optimizing a model with unequal costs
Section titled “Optimizing a model with unequal costs”Symmetry of the geometry does not guarantee symmetry of the best design. If different sides have different costs, optimize cost rather than area or perimeter. The variable being eliminated must still come from the physical constraint.
Example. A rectangular enclosure beside a straight river must have area square meters. No fence is needed along the river. The opposite side costs dollars per meter, and each side perpendicular to the river costs dollars per meter. Find the dimensions minimizing fencing cost.
Let be each perpendicular length and the length parallel to the river. The area constraint is , so for .
There are two sides of length and one fenced side of length . Therefore,
The critical-point equation is
which gives and . The other dimension is
For , the denominator of is positive, while the numerator is negative for and positive for . Thus cost decreases up to the only critical point and increases afterward throughout the feasible interval, making this design the absolute minimum.
The minimizing enclosure happens to be square because the total cost of the two perpendicular sides matches the cost coefficient of the parallel side. With uniform cost per meter instead, the optimal parallel side would be twice a perpendicular side. The objective function, not a memorized rectangle pattern, determines the dimensions.
Newton’s method
Section titled “Newton’s method”As a reminder, linearization is the process of estimating the value of a function using its derivative:
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 , start with a guess and repeatedly use
The input is the current approximation, and is the next approximation. Convergence is not automatic: the method works best near a root when the derivative is nonzero and the local tangent gives a useful prediction. A nearly horizontal tangent can send the next approximation far away.
Proof (Newton’s Method). The linearization of at is
Newton’s method uses the root of this tangent line as the next guess, so set :
Solve for :
Therefore,
This new -value is called .
Example. Use Newton’s method to approximate by solving , starting with .
Let
The Newton update is
Starting with :
Apply the formula again:
So .
Example. Use Newton’s method to approximate a solution of , starting with .
Write the equation as a root problem:
Then
Newton’s method gives
Starting with :
One more iteration gives
So the solution is approximately .
Recognizing a failed iteration
Section titled “Recognizing a failed iteration”Before accepting a decimal answer, check that it approximately satisfies the original equation. Nearby successive guesses are useful evidence only if the formula was implemented correctly and the original function is defined there.
For , starting at gives , and starting from gives . The iteration repeats forever even though the polynomial has a real root elsewhere. The tangent construction itself is valid, but this starting value produces a cycle.
For a root at which , the update may become undefined or converge more slowly. If an iterate hits a point where the denominator vanishes, choose a different starting value or another numerical method. Newton’s method supplies an approximation procedure, not the existence guarantee supplied by IVT or the uniqueness argument supplied by monotonicity.
Tips for the exam
Section titled “Tips for the exam”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.