Contents / Calculus / Applications of Derivatives
Chapter 3
Applications of Derivatives
Extrema, the Mean Value Theorem, curve sketching, optimization, related rates, and Newton's method.
Introduction
The derivative was built to answer one question: how fast is changing at this instant? This chapter turns that single number into a toolkit. Where the derivative vanishes, a function may peak or bottom out; where it is positive, the graph climbs; where its own derivative is positive, the graph bends upward. Read together, these signs let you sketch a curve you have never seen, find the cheapest can that holds a liter, or tell how fast a shadow lengthens as a man walks away from a lamp.
Everything here rests on one theorem, the Mean Value Theorem. It is the bridge between the derivative, which is defined at a point, and the behavior of a function across an interval. Every test in this chapter — increasing and decreasing, the first and second derivative tests, the concavity test — is a corollary of it, and each is proved here.
The second half of the chapter is about translation: turning a sentence about fences, ladders or profits into a function of one variable, and reading the answer back. That translation step is where most errors live, so the worked problems show every line of it.
3.1Maximum and minimum values
Some of the most important applications of calculus are optimization problems: find the largest, the smallest, the cheapest, the fastest. The first job is to say precisely what a maximum is, and then to discover where one can hide.
Definition 3.1 (Absolute and local extrema). Let be a number in the domain of . Then is the absolute maximum value of on if for all in , and the absolute minimum value if for all in .
The number is a local maximum value of if for all in some open interval containing , and a local minimum value if on some open interval containing . Maximum and minimum values are called extreme values, or extrema.
An absolute extremum is the largest or smallest value the function ever takes; a local extremum only has to win against its immediate neighbors. Every absolute extremum attained at an interior point is also a local one, but not the other way around. The function has absolute maximum , reached infinitely often, at every ; each of these is a local maximum as well. The function has absolute (and local) minimum at and no maximum of any kind. The function has no extrema at all: it is increasing everywhere, so every value is beaten by the next.
The domain matters. On the whole real line has no maximum, but on its maximum is , at the endpoint . Because a local extremum is compared with points on both sides, an endpoint can carry an absolute extremum but never a local one. That convention is what makes the closed interval method below work: interior extrema are local, and local extrema are caught by the derivative, while endpoints are simply checked by hand.
Theorem 3.2 (Extreme Value Theorem). If is continuous on a closed interval , then attains an absolute maximum value and an absolute minimum value at some numbers and in .
The theorem is intuitively clear: a continuous graph over a closed interval is an unbroken curve with two endpoints, and such a curve has a highest point and a lowest point. The proof belongs to real analysis, because it depends on the completeness of the real numbers — the fact that a bounded set of reals has a least upper bound — and that is why it is stated here without proof. What can be shown here is that both hypotheses are needed.
Drop closedness and the theorem fails: on the open interval takes values as close to as you like but never reaches , so it has no maximum, and no minimum either. Drop continuity and it fails again: the function on equal to for and to for climbs toward , jumps down, and never attains a largest value. The theorem promises that extrema exist; it says nothing about where. Finding them is the work of the next result.
Theorem 3.3 (Fermat's Theorem). If has a local maximum or minimum at , and exists, then .
Proof. Suppose has a local maximum at , so for every close enough to , and therefore for every small enough in absolute value. Because exists, both one-sided limits of the difference quotient exist and equal .
For the quotient is a non-positive number over a positive one,
so letting gives .
For the same numerator is divided by a negative number, so
and letting gives .
The only number that is both and is , so . The case of a local minimum is identical with the inequalities reversed, or follows by applying this case to .∎
Fermat's Theorem says that at a local extremum the tangent line is horizontal — provided there is a tangent line. Two cautions keep it honest. First, the converse is false: has , yet is not a local extremum, since is negative just to the left and positive just to the right. Second, a local extremum need not have a derivative at all: has its absolute and local minimum at , where does not exist. So is a place to look for extrema, not a guarantee, and places where fails to exist must be searched too. That pair of conditions deserves a name.
Definition 3.4 (Critical number). A critical number of a function is a number in the domain of such that either or does not exist.
Proposition 3.5 (Extrema occur at critical numbers). If has a local maximum or minimum at , then is a critical number of .
Proof. Either exists, in which case Fermat's Theorem gives , or it does not exist. Both cases are covered by the definition of a critical number.∎
Combine this proposition with the Extreme Value Theorem and the earlier remark about endpoints. On a closed interval, the absolute maximum of a continuous function exists; it is attained either at an endpoint or at an interior point, and an interior absolute maximum is a local maximum, hence at a critical number. There is nowhere else for it to be.
Method 3.6 (The Closed Interval Method). To find the absolute maximum and minimum values of a continuous function on a closed interval :
- Find the critical numbers of in the open interval : solve and locate any points where is undefined.
- Evaluate at each of those critical numbers.
- Evaluate at the endpoints and .
- The largest of the values from steps 2 and 3 is the absolute maximum; the smallest is the absolute minimum.
Intuition. Walk a hiking trail from trailhead A to trailhead B. Somewhere along it there is a highest point and a lowest point — that is the Extreme Value Theorem. Where could the highest point be? Either at one of the trailheads, or at a summit in the middle. At a smooth summit the ground is momentarily level (that is Fermat: the slope is zero), and at a jagged rocky peak the slope is undefined. So the candidates are: the two trailheads, every level spot, and every sharp spot. Measure the altitude at each candidate and pick the largest. That is the whole closed interval method.
Example 3.7 (Finding critical numbers). Find the critical numbers of .
Solution.
- Expand first so the differentiation is a pair of power rules: .
- Differentiate:
- when the numerator vanishes: , so .
- does not exist when the denominator vanishes, at . Since is defined, is in the domain and counts.
- The critical numbers are and . Sanity check: near the graph has a vertical tangent (the factor rises steeply), which is exactly the kind of point Fermat's Theorem cannot see.
Example 3.8 (The closed interval method for a cubic). Find the absolute maximum and minimum values of on .
Solution.
- is a polynomial, so it is continuous and the Extreme Value Theorem applies.
- , which exists everywhere and vanishes at and . Both lie in .
- Values at the critical numbers: and .
- Values at the endpoints: and .
- Comparing , , , : the absolute maximum is and the absolute minimum is .
The maximum sits at an endpoint and the minimum at an interior critical number. Skip either kind of candidate and you get the wrong answer.□
Example 3.9 (The closed interval method with trigonometry). Find the absolute extrema of on .
Solution.
- . Use to write everything in terms of :
- On we have , so only when , that is .
- .
- Endpoints: and .
- Absolute maximum at ; absolute minimum at .
Pitfall. The closed interval method needs a closed interval and a continuous function. On the function has a minimum but no maximum, and no table of endpoint values will tell you that; open-interval problems are handled by the first derivative test for absolute extrema in the optimization section. And a critical number outside the interval must be discarded: for on , the critical number plays no part.
3.2The Mean Value Theorem
The derivative is defined at a point. Almost everything we want to know — is increasing on this interval, how far can move if its derivative is small — concerns an interval. The Mean Value Theorem is the link, and it is proved through a special case that is worth stating on its own.
Theorem 3.10 (Rolle's Theorem). Let satisfy three hypotheses: is continuous on the closed interval ; is differentiable on the open interval ; and . Then there is a number in with .
Proof. There are three cases.
If is constant on , then for every in and any will do.
If for some in , then by the Extreme Value Theorem (continuity on a closed interval) attains an absolute maximum at some in . That maximum value exceeds , so is not an endpoint: it lies in the open interval , where the absolute maximum is also a local maximum. Since is differentiable at , Fermat's Theorem gives .
If for some in , the same argument with the absolute minimum gives a in with .∎
Each hypothesis earns its place. Differentiability fails for on : it is continuous, , but the derivative is never zero — the only candidate is the corner at , where there is no derivative. Continuity fails for the function equal to on and at : the endpoint values agree, the derivative is everywhere it exists, and no horizontal tangent appears. Equal endpoint values fail for on , whose derivative is identically .
Rolle's Theorem says that a smooth curve which returns to its starting height must be level somewhere in between. Tilt the picture and you get the general statement.
Theorem 3.11 (The Mean Value Theorem). Let be continuous on and differentiable on . Then there is a number in such that
or equivalently .
Proof. The right-hand side is the slope of the secant line through and . Subtract that line from : define
Then is continuous on and differentiable on , because is and the subtracted part is a polynomial. At the endpoints, and
So satisfies the hypotheses of Rolle's Theorem, and there is a in with . But
so is precisely .∎
Geometrically: somewhere between and the tangent line is parallel to the secant line joining the endpoints. In the language of rates: over any interval, the instantaneous rate of change equals the average rate of change at least once. The theorem does not say where is, and there may be several such ; it only says one exists. That is enough for everything that follows.
Intuition. You drive miles in hours, an average of mph. At some instant the speedometer read exactly . It cannot have read below the whole way, or you would have covered fewer than miles; it cannot have read above the whole way either. A speedometer needle moves continuously, so on its way from below to above (or the reverse) it passes through . Police forces use exactly this: two cameras miles apart that clock you passing minutes apart know, by the Mean Value Theorem, that you touched mph somewhere in between.
Example 3.12 (Finding the number guaranteed by the theorem). Find every number that satisfies the conclusion of the Mean Value Theorem for on .
Solution.
- is a polynomial, so it is continuous on and differentiable on ; the theorem applies.
- The average rate of change is .
- . Solve : , so .
- Only lies in . The negative root is discarded.
Sanity check: the tangent at has slope , matching the secant.□
Example 3.13 (Bounding a function by bounding its derivative). Suppose and for all . How large can possibly be?
Solution.
- is differentiable everywhere, hence continuous, so the Mean Value Theorem applies on : there is a in with .
- Therefore .
- The largest possible value is , and it is attained by , so the bound is sharp.
Example 3.14 (Counting roots with Rolle's Theorem). Show that the equation has exactly one real root.
Solution.
- Existence: is continuous with and , so by the Intermediate Value Theorem there is a root in .
- Uniqueness: suppose there were two roots . Then , and Rolle's Theorem would give a in with .
- But for every , so is never zero. The supposition is impossible, and the root is unique.
The Mean Value Theorem's first consequences look almost too obvious to need proof, yet without the theorem there is no way to prove them.
Corollary 3.15 (Zero derivative means constant). If for all in an interval , then is constant on .
Proof. Take any two points in . Since is differentiable on it is continuous on and differentiable on , so the Mean Value Theorem gives a with . Thus : any two values of agree, which is what constant means.∎
Corollary 3.16 (Equal derivatives differ by a constant). If for all in an interval , then there is a constant with on .
Proof. Apply the previous corollary to , whose derivative is zero on . Then is constant, say , and .∎
This second corollary is the reason an antiderivative is determined only up to , which the integrals chapter will use on every page. It also proves identities. On ,
so the sum is constant there; evaluating at gives the constant , and so for all in .
Pitfall. The word interval in the corollary is not decoration. The function has at every point of its domain, yet on the left and on the right. Its domain, , is not an interval, so the Mean Value Theorem cannot cross the gap at and the corollary does not apply.
3.3How derivatives determine the shape of a graph
The Mean Value Theorem converts information about at every point into information about over an interval. The first payoff is the test that every sign chart in this chapter silently uses.
Theorem 3.17 (Increasing/Decreasing Test). Let be continuous on an interval and differentiable in its interior.
If on the interior of , then is increasing on .
If on the interior of , then is decreasing on .
Proof. Suppose throughout, and take any in . The Mean Value Theorem on gives a in with
Both factors on the right are positive — by hypothesis and by choice — so , that is . Since were arbitrary, is increasing. The decreasing case is identical with .∎
Notice how little the proof needs and how much it gives. The hypothesis is about the derivative at single points; the conclusion compares values at points possibly far apart, and only the Mean Value Theorem can carry information across that gap. Notice also that the conclusion holds on the closed interval even though the hypothesis is only about the interior: has but is still increasing on .
To use the test, find where can change sign. A continuous changes sign only at its zeros, and can also flip across a point where it fails to exist — so the critical numbers, together with points outside the domain, cut the line into intervals on which keeps one sign. Pick a test value inside each interval, evaluate the sign of there, and the sign holds across the whole interval. That table is called a sign chart.
Theorem 3.18 (First Derivative Test). Suppose is a critical number of a continuous function .
If changes from positive to negative at , then has a local maximum at .
If changes from negative to positive at , then has a local minimum at .
If does not change sign at — positive on both sides, or negative on both sides — then has no local extremum at .
Proof. Suppose on an interval and on an interval . By the Increasing/Decreasing Test, is increasing on and decreasing on , using continuity at to include the endpoint in each. Increasing on the left gives for in , and decreasing on the right gives for in . So on the whole interval , which is a local maximum. The second case is the same argument with the inequalities reversed. In the third case is increasing (or decreasing) on both sides of , hence on the whole interval by continuity, so values to the left of are smaller and values to the right are larger: neither a maximum nor a minimum.∎
The test is exhaustive and it never fails. It applies where does not exist — at the corner of , where goes from to and the test correctly reports a minimum — and it applies where the second derivative test will later be silent.
Intuition. Walk left to right along the graph. means you are walking uphill, means downhill. A local maximum is the instant walking uphill turns into walking downhill: you just crossed a summit. A local minimum is downhill turning into uphill: the bottom of a valley. If you were going uphill before and after, you merely stepped over a level patch on the way up — no summit, no valley. That level patch is at the origin.
Example 3.19 (Increase, decrease, and local extrema). Find the intervals of increase and decrease and all local extrema of .
Solution.
- .
- exists everywhere, and vanishes at , and : three critical numbers cutting the line into four intervals.
- Sign chart, using one test value per interval. On take : . On take : . On take : . On take : .
- So decreases on , increases on , decreases on , increases on .
- First Derivative Test: at , goes to , a local minimum, . At , goes to , a local maximum, . At , goes to , a local minimum, .
Sanity check: the pattern down-up-down-up must alternate min, max, min, and it does.□
Example 3.20 (A critical number where the derivative does not exist). Find the local extrema of .
Solution.
- Write , so
- at ; does not exist at , which is in the domain. Both are critical numbers.
- Signs: for both and are negative, so . For the numerator is negative and the denominator positive, so . For both are positive, so .
- At : to , a local maximum, . At : to , a local minimum, .
The local maximum at is a cusp: blows up to on one side and on the other. Fermat's Theorem could not have found it, but the First Derivative Test has no trouble.□
Pitfall. A sign chart is built from the critical numbers and from the numbers where itself is undefined. For the derivative is never zero, so there are no critical numbers, yet the sign chart still needs a break at — and is not a critical number, because it is not in the domain. It follows that is decreasing on and on , but not on their union: is less than .
3.4Concavity and inflection points
Increasing or decreasing describes where the graph is going. Concavity describes how it bends on the way, and it is what separates a curve that flattens out from one that accelerates away.
Definition 3.21 (Concavity). If the graph of lies above all of its tangent lines on an interval , then is called concave upward on . If the graph lies below all of its tangents on , is concave downward on .
An equivalent and often handier description: is concave upward exactly when is an increasing function, and concave downward exactly when is decreasing. Slopes that grow as you move right produce a curve that turns leftward, opening up like a bowl; slopes that shrink produce an arch. Since " is increasing" is decided by the sign of , the Increasing/Decreasing Test applied to gives the working test at once.
Theorem 3.22 (Concavity Test). If for all in an interval , then is concave upward on . If for all in , then is concave downward on .
Proof. Suppose on and fix in ; we show the graph lies above the tangent at , whose equation is . Take in . The Mean Value Theorem on gives a in with . Because , the Increasing/Decreasing Test applied to says is increasing, and , so . Multiplying by the positive number ,
which rearranges to : the graph is above the tangent. For the same Mean Value Theorem gives a in with , and multiplying by the negative number reverses the inequality to the same conclusion. The concave downward case follows by applying this to .∎
Definition 3.23 (Inflection point). A point on a curve is called an inflection point if is continuous there and the curve changes from concave upward to concave downward, or from concave downward to concave upward, at .
To hunt for inflection points, list the numbers where or fails to exist, then check that actually changes sign there. Both halves matter. For we have , which is zero at but positive on both sides: the curve is concave up throughout and is not an inflection point. For the second derivative never vanishes but does not exist at , and it changes sign there, so the origin is an inflection point — with a vertical tangent.
Intuition. Drive along the curve as if it were a road. Concave up means you are turning the steering wheel to the left; concave down means turning right. An inflection point is the instant the wheel passes through center as you switch from one turn to the other.
Concavity is also the difference between good news and bad news about a trend. If the number of new cases in an epidemic is still rising () but the curve has turned concave down (), the rise is slowing: the inflection point is the day the outbreak passed its worst rate of growth, even though the total is still climbing.
Example 3.24 (Concavity and inflection points of a quartic). Discuss the concavity of and find its inflection points.
Solution.
- and .
- at and ; exists everywhere.
- Signs: on take , , concave up. On take , , concave down. On take , , concave up.
- changes sign at both numbers, so both give inflection points: and .
Note that is a critical number too — — but the graph has neither a maximum nor a minimum there, only a flat inflection.□
Example 3.25 (Concavity of an exponential model). On what intervals is concave upward, and where is its inflection point?
Solution.
- Product rule: .
- Again: .
- Since always, the sign of is the sign of . So is concave downward on and concave upward on .
- The concavity changes at , so the inflection point is .
Sanity check against the first derivative: at , a local maximum, and the curve is concave down there, as an arch should be.□
3.5The second derivative test
At a critical number with , the concavity near decides the question immediately, with no sign chart to build.
Theorem 3.26 (Second Derivative Test). Suppose is continuous near .
If and , then has a local minimum at .
If and , then has a local maximum at .
Proof. Suppose and . Because is continuous at and positive there, on some open interval containing . By the Concavity Test, is concave upward on , so on the graph lies above the tangent line at . That tangent is the horizontal line , because . Hence for every in : a local minimum. The other case follows by applying this to .∎
The test is quick and it is the one to reach for when is easy to compute — polynomials, exponentials, most textbook optimization problems. It has two blind spots, and both are worth knowing precisely.
It says nothing when . All three behaviors occur: has and a minimum; has and a maximum; has and neither. When the test is inconclusive, fall back on the First Derivative Test, which always decides.
It also says nothing when fails to exist, since it assumes outright. The cusp of at the origin is invisible to it. The First Derivative Test handles that case too.
Intuition. At a critical number the graph is momentarily flat, and the second derivative says which way it is about to bend. Positive means the curve smiles around you — you are at the bottom of a bowl, a minimum. Negative means it frowns — you are on top of an arch, a maximum. Zero means the bend is too gentle to read at this order and you must look at what happens on each side instead.
Example 3.27 (Second derivative test on a cubic). Use the Second Derivative Test to classify the critical numbers of .
Solution.
- , so the critical numbers are and .
- .
- : local minimum, value .
- : local maximum, value .
Sanity check: a cubic with positive leading coefficient rises, dips and rises, so the maximum must come before the minimum — and .□
Example 3.28 (When the test is inconclusive). Classify the critical numbers of .
Solution.
- , so the critical numbers are and .
- . At : , a local minimum with .
- At : , so the Second Derivative Test is silent.
- Use the First Derivative Test instead. Near the factor is positive and is negative on both sides, so on and on . No sign change, so is not a local extremum — it is the flat inflection point found earlier.
Pitfall. Confirming a critical number is a local minimum does not make it the absolute minimum, and a problem that asks for the smallest value on an interval is not finished until the endpoints have been checked or the function's behavior at the ends of an open interval has been argued. The optimization section gives the tool for the open-interval case.
3.6Curve sketching
Calculators plot points; you are about to do something they cannot, which is to know in advance exactly what the graph must look like and why. Every feature worth marking comes from one of the tests already proved, and the checklist below simply runs through them in an order that never doubles back.
Method 3.29 (Guidelines for sketching a curve).
- Domain. Find the set of for which is defined. Every later step is restricted to it.
- Intercepts. The -intercept is ; the -intercepts solve . Skip them if the equation is hard.
- Symmetry. If the curve is even, symmetric about the -axis; if it is odd, symmetric about the origin. Either halves the work. Check also for periodicity.
- Asymptotes. Horizontal: compute ; a finite limit gives the asymptote . Vertical: at each excluded from the domain, compute the one-sided limits; an infinite one gives the asymptote . Slant: if , the line is a slant asymptote — for a rational function whose numerator exceeds the denominator in degree by exactly one, long division produces it.
- Intervals of increase and decrease. Compute , find the critical numbers, build the sign chart.
- Local extrema. Apply the First Derivative Test (or the Second, where is cheap) at each critical number.
- Concavity and inflection points. Compute , find where it is zero or undefined, build its sign chart, and keep the places where the sign actually changes.
- Sketch. Draw the asymptotes as dashed lines, plot the intercepts, extrema and inflection points, then join them respecting the direction from step 5 and the bend from step 7.
Intuition. The checklist is a police sketch built from witness statements. Each step is a witness: the domain says where the suspect can be, the asymptotes say what walls it hugs, the first derivative says it climbs here and falls there, the second says it bends this way. Any one statement leaves a thousand possible faces. All of them together leave essentially one.
Example 3.30 (A rational function with a slant asymptote). Sketch the curve .
Solution.
- Domain: all .
- Intercepts: , and gives . The curve meets the axes only at the origin.
- Symmetry: , which is neither nor . None.
- Asymptotes. Long division gives
As the remainder , so is a slant asymptote; there is no horizontal one. At the numerator is , so is a vertical asymptote, with and . 5. From the divided form, . The denominator is positive, so the sign is that of : positive on , negative on and , positive on . So increases on and , decreases on and . 6. First Derivative Test: local maximum at with ; local minimum at with . A local maximum lying below a local minimum is only possible because the vertical asymptote separates them. 7. , which is never zero. It is negative for and positive for , so the curve is concave down on and concave up on . There is no inflection point, since is not in the domain. 8. The left branch rises to , turns over, and plunges to along , hugging the line from below far to the left. The right branch descends from to the minimum , then rises, approaching from above.□
Example 3.31 (A curve with a vertical tangent). Sketch .
Solution.
- Domain: all real , since cube roots accept negatives.
- Intercepts: at and ; .
- Symmetry: none.
- Asymptotes: none. As the term dominates and ; as , so and again.
- Differentiate:
The denominator is positive for every , so the sign of is the sign of : increases on and decreases on . Critical numbers: (where ) and (where is undefined). 6. At , changes from to : a local — in fact absolute — maximum, . At there is no sign change, so no extremum; instead from both sides, which is a vertical tangent at the origin. 7. Second derivative:
For both and are positive, so : concave down. For , while , so : concave up. For both are negative, so : concave down. Sign changes at and at , so both give inflection points: and . 8. Coming from the far left the curve rises steeply, flexes at , passes through the origin with a vertical tangent, tops out at , crosses the axis again at and falls away concave down.□
Pitfall. A slant asymptote exists only when the numerator's degree is exactly one more than the denominator's. If the degrees are equal there is a horizontal asymptote instead (the ratio of leading coefficients); if the numerator's degree exceeds the denominator's by two or more, the graph follows a parabola or higher curve and there is no linear asymptote at all. And a curve is allowed to cross a horizontal or slant asymptote — the asymptote describes behavior far out, not a barrier.
3.7Optimization problems
An optimization problem is a maximum-minimum problem dressed in a story. The calculus is the easy part; the work is turning the story into a function of a single variable, with a domain you can defend.
Method 3.32 (Steps in solving an optimization problem).
- Understand the problem. Identify the quantity to be maximized or minimized, and the data given.
- Draw a diagram and assign symbols to every length, area or quantity that can vary.
- Write the objective — an expression for the quantity to be optimized, in terms of those symbols.
- Write the constraint — the equation the data forces on the symbols — and use it to eliminate variables until is a function of one variable, .
- State the domain of : the set of values of that make physical sense.
- Find the absolute extremum by the Closed Interval Method if the domain is a closed interval, or by the First Derivative Test for Absolute Extrema below if it is open.
- Answer the question asked — often a dimension or a price rather than the extreme value itself — and check that the answer is plausible.
Step 6 needs a tool the Extreme Value Theorem cannot supply, because an open or infinite domain has no endpoints to check.
Theorem 3.33 (First Derivative Test for Absolute Extrema). Suppose is a critical number of a continuous function defined on an interval .
If for all in and for all in , then is the absolute maximum value of on .
If for all in and for all in , then is the absolute minimum value of on .
Proof. Take the first case and any in with . The Increasing/Decreasing Test says is increasing on the part of to the left of , so . For , is decreasing to the right of , so again . Every value of on is therefore at most , which is the definition of an absolute maximum. The second case is the same with the inequalities reversed.∎
The difference from the ordinary First Derivative Test is the quantifier: there the sign condition held near and the conclusion was local; here it holds on all of and the conclusion is global. When a problem produces exactly one critical number on an interval and the derivative's sign is easy to read on each side, this theorem finishes it in one line.
Intuition. Every one of these problems has the same shape. Two effects pull against each other, and the answer is the balance point. Make a fence deeper and it must get narrower; make a can taller and it needs less metal in the lids but more in the wall. The objective function adds the two effects, one of which grows with and one of which shrinks, so the sum falls then rises — and the bottom of that "V" is where the derivative is zero.
Example 3.34 (Fencing a field: maximum area). A farmer has ft of fencing and wants to fence a rectangular field bordering a straight river, with no fence needed along the river. What dimensions give the largest area?
Solution.
- Let be the width of the two sides perpendicular to the river and the length of the side parallel to it. The area is .
- Constraint: only three sides are fenced, so , giving .
- Objective in one variable: .
- Domain: and , so — a closed interval.
- at .
- Closed Interval Method: , , . The maximum is ft².
- Dimensions: ft by ft. Sanity check: the fenced side parallel to the river is twice each perpendicular side, the familiar half-square answer for a three-sided rectangle.
Example 3.35 (A cylindrical can: minimum material). Find the dimensions of a closed cylindrical can holding L that uses the least metal.
Solution.
- Let be the radius and the height. The surface area of top, bottom and side is
- Constraint: , so .
- Substituting,
- Domain: , an open interval with no endpoints to test.
- , which is zero when , that is cm.
- For below that value so ; above it . By the First Derivative Test for Absolute Extrema this single critical number gives the absolute minimum on .
- Then , and a short computation gives cm. The cheapest can is exactly as tall as it is wide — a fact real cans ignore, because the lids are cut from sheet with waste and the seam costs extra.
Example 3.36 (Shortest distance to a curve). Find the point on the parabola closest to the point .
Solution.
- The distance from to is .
- Minimizing is the same as minimizing , because is increasing: the two have their minimum at the same point, and dropping the root avoids a messy derivative.
- Use the constraint to eliminate : on the parabola , so
- Domain: all real .
- .
- when . Since for and for , the First Derivative Test for Absolute Extrema gives the absolute minimum at .
- Then , so the closest point is , at distance .
Example 3.37 (An angle problem: the best viewing distance). A painting m high is hung on a wall with its bottom edge m above your eye level. How far from the wall should you stand so that the painting subtends the largest possible angle at your eye?
Solution.
- Let be your distance from the wall and the angle subtended by the painting. The lines of sight to the top and bottom edges make angles and with the horizontal, where (top edge, m up) and .
- Objective: , for .
- Differentiate, using :
- Setting this to zero: , so and (the positive root).
- For the expression is positive and for negative, so gives the absolute maximum.
- Stand m from the wall. Sanity check: , the geometric mean of the two heights — the classical answer to this problem.
Example 3.38 (Maximizing revenue). A theatre sells seats at each. A survey shows that for every increase in price, fewer people attend. What ticket price maximizes revenue?
Solution.
- Let be the number of increases. The price is dollars and attendance is .
- Revenue: .
- Domain: , since attendance cannot go negative.
- , zero only at , and for .
- So revenue is greatest at : the price should stay at , for revenue .
The linear terms cancelled exactly, which is the signal that the current price is already at the peak — any increase loses more customers than it gains in margin. If instead each rise cost only customers, the revenue would be , maximized at and a price of .□
Pitfall. Two traps recur. First, minimizing the wrong quantity: if the question asks for the dimensions, the answer is and , not the minimum surface area. Second, forgetting the domain. A critical number at is irrelevant if is a length, and a problem whose domain is a closed interval is not finished until the endpoints have been compared.
3.9Motion along a line
The derivative was invented partly to describe motion, and the vocabulary of motion is the clearest place to see what the first and second derivatives mean together.
Definition 3.45 (Velocity, speed and acceleration). If a particle moves along a straight line with position at time , its velocity, speed and acceleration are
Velocity is signed: means the particle is moving in the positive direction, in the negative direction, and means it is momentarily at rest. Speed discards the sign and reports only how fast. Acceleration is the rate of change of velocity, which is not the same as the rate of change of speed — a distinction that settles the most-asked question about motion problems.
Proposition 3.46 (When a particle speeds up). A particle speeds up when and have the same sign, and slows down when they have opposite signs.
Proof. Speed is . Where , speed equals , so its rate of change is : the speed increases exactly when , that is when has the same sign as . Where , speed equals , so its rate of change is , which is positive exactly when — again the same sign as .∎
A particle changes direction at a time when changes sign; if touches zero without changing sign, the particle merely pauses. Over an interval , the net change of position is the displacement , while the total distance travelled adds up the unsigned motion and is found by splitting at the times when and summing over the pieces. (The integrals chapter writes these as and .)
Intuition. Sit in a car facing forward. Velocity is the speedometer plus a sign for whether you are in drive or reverse. Acceleration is the pedal: positive means pressing the accelerator in the forward direction, negative means pressing the brake or reversing.
Reversing down a driveway with your foot pressing harder, velocity is negative and acceleration is negative too — same sign, and you are indeed speeding up, even though both numbers are negative. That is why "negative acceleration" does not mean "slowing down".
Example 3.47 (A full analysis of a motion). A particle moves with position metres for . Find when it is at rest, when it moves forward, when it is speeding up, and the total distance travelled in the first s.
Solution.
- and .
- At rest when : and s.
- Sign of : positive on , negative on , positive on . So the particle moves forward on and after , backward between.
- Sign of : negative for , positive for .
- Same signs — speeding up — on (both negative) and on (both positive). Opposite signs — slowing down — on and .
- Total distance: , , , . The legs measure , and , so the total distance is m, while the displacement is only m.
Example 3.48 (Projectile motion). A ball is thrown upward from ground level with initial velocity ft/s, so that . Find its maximum height, its velocity on impact, and its speed at s.
Solution.
- , and ft/s² — constant, the acceleration due to gravity.
- Maximum height where : s, and ft. The Second Derivative Test confirms a maximum since .
- Impact when : , so s. Then ft/s: it returns with the same speed it left, directed downward.
- At : ft/s, so the speed is ft/s. Since and agree in sign, the ball is speeding up as it falls.
3.10Linear approximation and differentials
The tangent line was built to describe a curve at one point. Because it stays close to the curve for a while on either side, it can also stand in for the curve — and a line is something you can evaluate in your head.
Definition 3.49 (Linearization). If is differentiable at , the linearization of at is the function
and the approximation for near is called the linear approximation, or tangent line approximation, of at .
Why it works is the definition of the derivative read backwards. Since
the difference between the true value and the linear one,
is a product of two factors that both tend to . So the error vanishes faster than itself — for twice-differentiable it is proportional to , a fact the Taylor series makes exact. Halve your distance from and the error drops by about a factor of four.
The base point must be chosen so that and are known exactly and is close to the value you want. To estimate take ; to estimate take , not .
Notation. Leibniz's differentials repackage the same statement. If , let be an independent variable — any real number — and define the differential by
Then is the change in height along the tangent line when changes by , while is the change along the curve. The linear approximation says for small . This is also why can be treated as a quotient in the substitution rule later.
Intuition. Zoom in on any smooth curve far enough and it becomes indistinguishable from a straight line — that is what differentiable means. Linearization says: stop zooming, keep the line, and use it for anything close to where you zoomed.
Concretely, is exact and the slope there is . So . The true value is — an error of six millionths, from arithmetic you can do while walking.
Example 3.50 (Estimating a cube root). Use a linear approximation to estimate , and estimate the error.
Solution.
- Take and , since exactly.
- , so .
- .
- .
- The true value is , so the error is about — and the curve is concave down here (), which is why the tangent line estimate comes out slightly too large.
Example 3.51 (Error propagation with differentials). The radius of a sphere is measured as cm with a possible error of at most cm. Estimate the resulting error in the computed volume, and the relative error.
Solution.
- , so .
- With and :
- The computed volume is , so the relative error is
about .
An absolute error of sounds alarming and is in fact tiny. Note the general rule the algebra exposed: a relative error in a radius is tripled in a volume, because volume is the third power of length.□
Pitfall. A linear approximation is only trustworthy near its base point, and "near" is measured against the curvature. Estimating from the linearization of at gives , against the true value . The error term grows like , so moving times further from the base point makes the error roughly times worse.
3.11Newton's method
Most equations cannot be solved in closed form. There is no formula for the root of that a calculator could not have found faster numerically, and no formula at all for . Newton's method turns the linear approximation into a root-finding machine.
Suppose is a root of and is a guess near it. Replace by its linearization at ,
and solve the easy equation instead. That gives , and calling the result the next guess produces the method.
Method 3.52 (Newton's method). To approximate a root of , choose an initial guess and iterate
provided . Stop when successive iterates agree to the accuracy required, that is when is smaller than the tolerance, and confirm by checking that is small.
Geometrically, each step draws the tangent line to the curve at the current guess and slides down it to the -axis. Where the curve is nearly straight, the tangent nearly is the curve, and the landing point is nearly the root.
Proposition 3.53 (Quadratic convergence). If is continuous, at the root , and is chosen close enough to , then the errors satisfy
The full proof is a Taylor-expansion argument that belongs with the error analysis of Taylor series; the idea is that expanding around to second order and substituting the iteration formula makes the first-order terms cancel exactly, leaving a term in . The practical meaning is the memorable part: squaring a small error roughly doubles the number of correct decimal places at each step. Three correct digits become six, then twelve.
Intuition. You are standing on a hillside above a valley whose lowest point touches sea level, and you want to find where the ground meets the sea. Look at the slope right where you stand, assume the hill keeps that slope, and walk to where that straight line would hit sea level. You overshoot or undershoot, but you are much closer. Look at the new slope and repeat. Each look corrects most of the remaining error, which is why the method converges so fast — and also why it fails when the slope where you stand points somewhere misleading.
Example 3.54 (Computing a cube root). Use Newton's method to approximate to six decimal places, starting from .
Solution.
- is the root of , with .
- The iteration is
- gives .
- .
- , .
- and agree to four decimals and is correct to eight:
Count the correct digits: , then , then , then . That doubling is quadratic convergence.□
Example 3.55 (A failure: divergence). Apply Newton's method to , whose only root is , starting from .
Solution.
- , so
- From the iterates are : the guesses alternate in sign and double in size, running away from the root that sits at .
- The cause is visible in the graph. At the root the tangent is vertical — does not exist — so the hypothesis of the convergence result fails, and each tangent line crosses the axis further out than the point it was drawn at.
Pitfall. Newton's method can fail in three ways beyond the one just seen. If the tangent is horizontal and the next iterate does not exist — the method divides by zero. If the initial guess is poor the iterates may converge to a different root than the one you wanted, or wander off. And the iteration can cycle: for starting at one computes , then , and the sequence oscillates between and forever. A quick sketch, or a bisection step or two to get close first, prevents most of this.
3.12Antiderivatives
Every application so far has started from and computed . A physicist usually has the opposite problem: acceleration is known, and position is wanted. That reverses the arrow.
Definition 3.56 (Antiderivative). A function is called an antiderivative of on an interval if for all in .
Theorem 3.57 (The general antiderivative). If is an antiderivative of on an interval , then the most general antiderivative of on is , where is an arbitrary constant.
Proof. Each has derivative , so all of them are antiderivatives. Conversely, if is any antiderivative then on , so by the corollary on equal derivatives, is constant on : for some constant .∎
Reversing each differentiation rule gives the basic table — has antiderivative for , has , has , has , has , has , and has — each up to an additive constant. Antidifferentiation is also linear: an antiderivative of is times one of plus one of . The integrals chapter takes this up properly; here it is the tool that turns a rate back into a quantity.
Example 3.58 (Recovering position from acceleration). A particle moves with acceleration , initial velocity and initial position . Find .
Solution.
- is an antiderivative of : .
- The initial condition gives , so .
- is an antiderivative of : .
- The condition gives , so .
- Check by differentiating twice: and .
Two antidifferentiations needed two initial conditions. That pattern — one arbitrary constant per integration, one condition to pin it down — is the whole theory of initial value problems in miniature.□
3.13Rates of change in the sciences
The derivative is the general-purpose language for "how fast". Only the names of the variables change from field to field, and recognising that saves relearning the calculus in each one.
In physics, if is position then is velocity and is acceleration, and Newton's second law reads . If is charge through a wire, the current is ; if is the mass of a rod from one end to the point , the linear density is .
In chemistry, the rate of a reaction is , the rate at which the concentration of reactant falls, and a rate law such as relates it to concentration. The compressibility of a gas is , the relative change in volume per unit change in pressure.
In biology, if is a population then is the growth rate and is the per-capita or relative growth rate. Constant relative growth gives and exponential growth; the logistic model bends that to a carrying capacity , and is exactly the inflection point of the population curve.
In economics, the marginal cost is , the cost of one more unit; marginal revenue is ; and profit is maximized where , that is where — marginal revenue equals marginal cost, with the Second Derivative Test requiring to confirm it is a maximum and not a minimum.
Intuition. Every one of these is the same sentence with the nouns swapped: "the derivative of a stock is its flow". Position and velocity, charge and current, mass and density, population and births per year, total cost and cost of the next unit. When you meet a new field, the question to ask is only which quantity is the stock and which the flow.
Example 3.59 (Marginal cost and average cost). A firm's cost function is dollars for units. Find the marginal cost at , the actual cost of the st unit, and the production level that minimizes average cost.
Solution.
- Marginal cost is , so dollars per unit.
- The actual cost of the st unit is dollars. The marginal cost approximates it, and the small discrepancy is exactly the linear approximation error.
- Average cost is for .
- gives , so units.
- is negative below and positive above that value, so by the First Derivative Test for Absolute Extrema it is the absolute minimum. There dollars per unit.
Notice that as well: average cost is minimized exactly where marginal cost equals average cost, which is true for every differentiable cost function.□
Example 3.60 (Relative growth rate). A bacterial culture grows so that thousand cells after hours. Find the growth rate at and the relative growth rate at any time.
Solution.
- thousand cells per hour.
- At : thousand cells per hour.
- Relative growth rate: , a constant per hour.
The absolute growth rate climbs forever while the relative rate never changes — the defining signature of exponential growth, and the reason biologists quote the percentage rather than the raw number.□
Summary. A continuous on a closed interval attains an absolute maximum and minimum (Extreme Value Theorem), and Fermat's Theorem says an interior extremum can only sit at a critical number, where or fails to exist — hence the Closed Interval Method: compare at the critical numbers in and at the two endpoints. The Mean Value Theorem, for continuous on and differentiable on , proves everything after it: means increasing and decreasing; the First Derivative Test reads a local maximum off a sign change of from to (and an absolute one when the sign change governs the whole interval); means concave upward, concave downward, with an inflection point where actually changes sign; and if is continuous near with , then gives a local minimum and a local maximum, with silent. Locally, with error of order , which iterated as is Newton's method, converging quadratically when . Finally on an interval makes the general antiderivative.
- Treating every critical number as an extremum. Fermat's Theorem runs one way only: at a local extremum, but has and no extremum there. Always apply the First or Second Derivative Test.
- Forgetting the critical numbers where fails to exist. A cusp or a corner can carry a maximum, and will never find it.
- Forgetting the endpoints in a closed-interval problem, or checking endpoints on an interval that has none. Closed interval: compare critical values and endpoint values. Open interval: use the First Derivative Test for Absolute Extrema instead.
- Concluding ", therefore inflection point". The concavity must actually change: has and is concave up on both sides.
- Using the Second Derivative Test when . It is inconclusive, not negative — fall back on the First Derivative Test.
- Saying " everywhere, so is constant" on a domain that is not an interval. The corollary needs an interval; is the counterexample.
- Plugging numbers in before differentiating in a related-rates problem. A quantity replaced by a constant has derivative zero, which silently deletes the term you wanted.
- Confusing velocity with speed, and reading "negative acceleration" as "slowing down". A particle speeds up whenever and share a sign.
- In optimization, answering with the extreme value when the question asked for the dimensions, or forgetting to check that the variable's domain excludes negative lengths.
- Trusting a linear approximation far from its base point. The error grows like the square of the distance, so doubling the distance quadruples it.
- Applying Newton's method without a sketch. A guess near a horizontal tangent, or near a root with a vertical tangent, can diverge or cycle no matter how many iterations you run.
- Writing an antiderivative without , then being surprised that an initial condition cannot be satisfied.