Analytical Applications of Differentiation

Study Sheet

Analytical Applications of Differentiation

Using f′f' and f′′f'' to analyze and sketch functions

The Mean Value Theorem & Rolle's Theorem

Concept
Mean Value Theorem (MVT)

If ff is continuous on the closed interval [a,b][a,b] and differentiable on the open interval (a,b)(a,b), then there exists at least one cc in (a,b)(a,b) with

f′(c)=f(b)−f(a)b−a.f'(c)=\frac{f(b)-f(a)}{b-a}.

That is, the instantaneous rate at some interior point equals the average rate of change over [a,b][a,b]: some tangent line is parallel to the secant line.

Tilt the picture so the secant line is horizontal: then the function starts and ends at the same height, and somewhere in between it must reach a highest or lowest point, where the tangent is flat. Flat in the tilted picture means parallel to the secant in the original. Continuity guarantees the extreme point exists; differentiability guarantees a tangent there.

Concept
Rolle's Theorem (special case)

If ff is continuous on [a,b][a,b], differentiable on (a,b)(a,b), and f(a)=f(b)f(a)=f(b), then there is a cc in (a,b)(a,b) with f′(c)=0f'(c)=0.

Reminder — The Mean Value Theorem:  f′(c)=f(b)−f(a)b−afor some c∈(a,b)f'(c)=\frac{f(b)-f(a)}{b-a} \quad\text{for some } c \in (a,b)
Example
Applying the MVT
xy1232468c = 2
The tangent at c=2c=2 (solid) is parallel to the secant from x=1x=1 to x=3x=3 (dashed): both have slope 44.

Let f(x)=x2f(x)=x^2 on [1,3][1,3]. It is a polynomial, so continuous and differentiable everywhere. The average rate is

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

Set f′(c)=2c=4f'(c)=2c=4, so c=2c=2, which lies in (1,3)(1,3). ✓

Side note
Where it goes wrong

Calling every critical point a maximum or minimum. f(x)=x3f(x) = x^3 has f′(0)=0f'(0) = 0 with no extremum there; check the sign change of f′f' or the endpoints of the interval.

Example
Applying Rolle's Theorem

Let f(x)=x2−2xf(x)=x^2-2x on [0,2][0,2]. Then f(0)=0=f(2)f(0)=0=f(2), and ff is a polynomial, so Rolle applies. Solving f′(c)=2c−2=0f'(c)=2c-2=0 gives c=1c=1 in (0,2)(0,2). ✓

Tip

Tip: Always verify the hypotheses first. For f(x)=∣x∣f(x)=|x| on [−1,1][-1,1] we have f(−1)=f(1)f(-1)=f(1), but ff is not differentiable at 00, so Rolle's Theorem does not apply.

Try it
Quick check

Find the value cc guaranteed by the Mean Value Theorem for f(x)=x3f(x)=x^3 on [0,3][0,3].

Show the answer

Answer: c=3≈1.732c=\sqrt3\approx1.732. Average rate: 27−03−0=9\dfrac{27-0}{3-0}=9. Solve f′(c)=3c2=9f'(c)=3c^2=9: c=3c=\sqrt3, which lies in (0,3)(0,3).

Increasing/Decreasing & the First Derivative Test

Concept
Monotonicity and local extrema

On an interval where f′(x)>0f'(x)>0, ff is increasing; where f′(x)<0f'(x)<0, ff is decreasing. First Derivative Test: at a critical number cc (where f′(c)=0f'(c)=0 or f′f' is undefined):

  • f′f' changes +→−+\to- at cc ⇒\Rightarrow local maximum;
  • f′f' changes −→+-\to+ at cc ⇒\Rightarrow local minimum;
  • no sign change ⇒\Rightarrow neither.

A positive derivative means every tangent tilts upward, and the Mean Value Theorem turns that into a statement about the function: for a<ba<b, f(b)−f(a)=f′(c)(b−a)>0f(b)-f(a)=f'(c)(b-a)>0. So ff rises wherever f′>0f'>0. A local maximum is where rising turns into falling, which is where f′f' changes from positive to negative.

Example
Sign chart for f(x)=x3−3xf(x)=x^3-3x
f′+−+frisingfallingrising−1 (max)1 (min)
The sign of f′f' switches +→−+\to- at x=−1x=-1 (a peak) and −→+-\to+ at x=1x=1 (a valley).

f′(x)=3x2−3=3(x−1)(x+1)f'(x)=3x^2-3=3(x-1)(x+1), so critical numbers are x=−1, 1x=-1,\,1. The sign chart (above) tests f′f' once in each interval: f′(−2)=9>0f'(-2)=9>0, f′(0)=−3<0f'(0)=-3<0, f′(2)=9>0f'(2)=9>0.

Local max at x=−1x=-1 with f(−1)=2f(-1)=2; local min at x=1x=1 with f(1)=−2f(1)=-2.

Tip

Tip: Critical numbers only name candidates. A sign change of f′f' is what confirms an extremum. Test one point in each interval.

Try it
Quick check

For f(x)=x3−3x2f(x)=x^3-3x^2, find all critical numbers and use the First Derivative Test to classify each.

Work it on paper before revealing the answer.

Show the answer

Answer: f′(x)=3x(x−2)f'(x)=3x(x-2), crit x=0,2x=0,2; local max f(0)=0f(0)=0, local min f(2)=−4f(2)=-4; increasing on (−∞,0)∪(2,∞)(-\infty,0)\cup(2,\infty), decreasing on (0,2)(0,2).

Concavity, the Second Derivative Test & Inflection Points

Concept
Concavity and inflection

Where f′′(x)>0f''(x)>0, ff is concave up (⌣\smile); where f′′(x)<0f''(x)<0, ff is concave down (⌢\frown). An inflection point is where concavity changes—so f′′f'' must change sign there. Second Derivative Test: if f′(c)=0f'(c)=0, then f′′(c)>0⇒f''(c)>0\Rightarrow local min, f′′(c)<0⇒f''(c)<0\Rightarrow local max, and f′′(c)=0f''(c)=0 is inconclusive.

f′′f'' is the rate of change of the slope. Where f′′>0f''>0 the slopes increase from left to right, so the curve bends upward like a cup and lies above its tangent lines; where f′′<0f''<0 it bends like a cap. That is also why the Second Derivative Test works: at a flat tangent, a cup shape must be a minimum and a cap shape a maximum.

Example
Concavity of f(x)=x3−3xf(x)=x^3-3x
xy−2−11−3−2−112concave downconcave up
The bend changes at the inflection point (0,0)(0,0), where f′′=6xf''=6x changes sign.

f′′(x)=6xf''(x)=6x. Then f′′<0f''<0 for x<0x<0 (concave down) and f′′>0f''>0 for x>0x>0 (concave up); the concavity changes at x=0x=0, so (0,0)(0,0) is an inflection point. Using the Second Derivative Test at the critical numbers: f′′(−1)=−6<0f''(-1)=-6<0 (local max) and f′′(1)=6>0f''(1)=6>0 (local min), matching the First Derivative Test.

Example
f′′=0f''=0 does not guarantee inflection

For f(x)=x4f(x)=x^4, f′′(x)=12x2f''(x)=12x^2, which is 00 at x=0x=0 but never changes sign (f′′≥0f''\ge 0). So x=0x=0 is not an inflection point—ff is concave up throughout.

Tip

Tip: An inflection point requires an actual sign change of f′′f'', not merely f′′=0f''=0.

Try it
Quick check

Find the intervals of concavity and the inflection points of f(x)=x4−6x2f(x)=x^4-6x^2.

Show the answer

Answer: concave up on (−∞,−1)(-\infty,-1) and (1,∞)(1,\infty), down on (−1,1)(-1,1); inflection points (±1,−5)(\pm1,-5). f′′(x)=12x2−12=12(x−1)(x+1)f''(x)=12x^2-12=12(x-1)(x+1) changes sign at ±1\pm1, and f(±1)=1−6=−5f(\pm1)=1-6=-5.

The Extreme Value Theorem & Absolute Extrema (Candidates' Test)

Concept
Extreme Value Theorem (EVT)

If ff is continuous on a closed interval [a,b][a,b], then ff attains an absolute maximum and an absolute minimum on [a,b][a,b]. Candidates' Test: the absolute extrema occur at (i) critical numbers in (a,b)(a,b) or (ii) the endpoints. Evaluate ff at every candidate and compare.

A continuous function on a closed interval cannot escape to infinity or approach a value it never reaches, so it attains a highest and a lowest value. Such a point is either inside the interval, where the tangent must be flat (or undefined), or at an end. Listing those few candidates and comparing their values is therefore guaranteed to find both.

Example
Candidates' Test for f(x)=x2−4x+3f(x)=x^2-4x+3 on [0,3][0,3]
xy123−1123max 3min −1
On a closed interval the extremes are at a critical point or an endpoint.

f′(x)=2x−4=0⇒x=2f'(x)=2x-4=0\Rightarrow x=2 (in the interval). Evaluate all candidates:

f(0)=3,f(2)=−1,f(3)=0.f(0)=3,\qquad f(2)=-1,\qquad f(3)=0.

Absolute maximum 33 at x=0x=0; absolute minimum −1-1 at x=2x=2.

Tip

Tip: On a closed interval you compare numbers, not signs. Never forget the endpoints—they are candidates too.

Try it
Quick check

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

Show the answer

Answer: maximum 22 at x=2x=2; minimum −2-2 at x=1x=1. f′(x)=3x2−3=0f'(x)=3x^2-3=0 at x=±1x=\pm1; only x=1x=1 is in the interval. Candidates: f(0)=0f(0)=0, f(1)=−2f(1)=-2, f(2)=2f(2)=2.

Optimization (Applied Max/Min)

Concept
A reliable setup
  • Draw a picture; name variables.
  • Write the quantity to optimize (the objective).
  • Use a constraint to reduce to one variable; state the domain.
  • Differentiate, find critical numbers, and justify the extremum (1st/2nd derivative test or endpoints).

An optimization problem is the Candidates' Test in disguise: once the quantity is written as a function of one variable on a definite interval, its largest value occurs at a critical number or an endpoint. The work is in the setup, turning a picture with two or three unknowns into a function of one, which is what the constraint is for.

Example
Largest open-top box from a 12×1212\times 12 sheet
xx12 − 2x12
Cut an x×xx\times x square from each corner and fold on the dashed lines: base (12−2x)2(12-2x)^2, height xx.

Cut squares of side xx from each corner and fold. The volume is

V(x)=x(12−2x)2,0<x<6.V(x)=x(12-2x)^2,\qquad 0<x<6.

Then V′(x)=(12−2x)2+x⋅2(12−2x)(−2)=(12−2x)(12−6x)V'(x)=(12-2x)^2+x\cdot 2(12-2x)(-2)=(12-2x)(12-6x). Setting V′=0V'=0: x=6x=6 (gives V=0V=0) or x=2x=2. Since V′V' changes +→−+\to- at x=2x=2, it is a maximum:

V(2)=2(12−4)2=2⋅64=128 cubic units.V(2)=2(12-4)^2=2\cdot 64=128 \text{ cubic units.}
Tip

Tip: Always state the domain from the physical situation, then justify that your critical number gives the max or min—do not just assert it.

Try it
Quick check

A farmer has 120120 m of fence to enclose a rectangular pen along a straight river; no fence is needed on the river side. What dimensions give the largest area?

Show the answer

Answer: 3030 m by 6060 m (the 6060 m side parallel to the river), area 18001800 m2^2. With xx the two sides perpendicular to the river, the third side is 120−2x120-2x, so A=x(120−2x)A=x(120-2x) on 0<x<600<x<60. A′=120−4x=0A'=120-4x=0 at x=30x=30, and A′′=−4<0A''=-4<0 confirms a maximum.

Curve Sketching & Connecting ff, f′f', f′′f''

Example
Sketch of f(x)=x3−3xf(x)=x^3-3x

Combining the work above: increasing on (−∞,−1)(-\infty,-1) and (1,∞)(1,\infty), decreasing on (−1,1)(-1,1); local max (−1,2)(-1,2), local min (1,−2)(1,-2); concave down for x<0x<0, up for x>0x>0; inflection (0,0)(0,0).

Example
The graphs of ff, f′f', and f′′f'' together
xy−2−11−3−2−112ff′f″
The local max of ff sits above a zero of f′f'; the inflection sits above the zero of f′′f'' and the lowest point of f′f'.

For f(x)=13x3−xf(x)=\tfrac13x^3-x we get f′(x)=x2−1f'(x)=x^2-1 and f′′(x)=2xf''(x)=2x. Notice: ff has a local max where f′f' crosses zero going +→−+\to- (x=−1x=-1); ff has an inflection where f′′f'' crosses zero and f′f' bottoms out (x=0x=0).

Tip

Tip: When reading a graph of f′f': the height of f′f' tells the slope of ff; the zeros of f′f' mark candidate extrema of ff; where f′f' is increasing, ff is concave up.

Try it
Quick check

For f(x)=x3−3xf(x)=x^3-3x, find where ff is concave up and concave down, and give the inflection point.

Work it on paper before revealing the answer.

Show the answer

Answer: f′′(x)=6xf''(x)=6x; concave down on (−∞,0)(-\infty,0), up on (0,∞)(0,\infty); inflection (0,0)(0,0).

Going Deeper: Advanced Analysis

Concept
1. A proof-flavored MVT application

Claim: If f′(x)=0f'(x)=0 for every xx in an interval II, then ff is constant on II. Why: Pick any two points a<ba<b in II. By the MVT there is a cc with

f(b)−f(a)b−a=f′(c)=0,\frac{f(b)-f(a)}{b-a}=f'(c)=0,

so f(b)=f(a)f(b)=f(a). Since a,ba,b were arbitrary, ff takes one value throughout II. This is the theorem behind “antiderivatives differ by a constant.”

Example
2. MVT as an inequality machine

Show ∣sin⁡a−sin⁡b∣≤∣a−b∣|\sin a-\sin b|\le|a-b| for all a,ba,b. Apply the MVT to g(x)=sin⁡xg(x)=\sin x on [a,b][a,b]: there is a cc with

sin⁡b−sin⁡ab−a=cos⁡c.\frac{\sin b-\sin a}{b-a}=\cos c.

Taking absolute values, ∣sin⁡b−sin⁡a∣∣b−a∣=∣cos⁡c∣≤1\dfrac{|\sin b-\sin a|}{|b-a|}=|\cos c|\le 1, so ∣sin⁡a−sin⁡b∣≤∣a−b∣|\sin a-\sin b|\le|a-b|.

Example
3. Reading ff from a graph of f′f'
xy−2−11−112y = f′(x)
Read signs, not heights: f′f' is above the axis outside [−1,1][-1,1], so ff rises there.

Suppose the graph shown is f′f' (not ff), with f′(x)=x2−1f'(x)=x^2-1. Then ff is increasing where f′>0f'>0: on (−∞,−1)(-\infty,-1) and (1,∞)(1,\infty); decreasing on (−1,1)(-1,1). So ff has a local max at x=−1x=-1 and a local min at x=1x=1. Since f′f' is decreasing for x<0x<0 and increasing for x>0x>0, ff is concave down then concave up, with an inflection point at x=0x=0.

Example
4. Inflection from a sign change of f′′f''

For f(x)=x4−4x3f(x)=x^4-4x^3, f′′(x)=12x2−24x=12x(x−2)f''(x)=12x^2-24x=12x(x-2). Sign of f′′f'': positive for x<0x<0, negative on (0,2)(0,2), positive for x>2x>2. Two sign changes give two inflection points, at x=0x=0 and x=2x=2. Contrast with f(x)=x4f(x)=x^4, where f′′=12x2≥0f''=12x^2\ge0 never changes sign—no inflection despite f′′(0)=0f''(0)=0.

Concept
5. Why the Candidates' Test works

The EVT guarantees a continuous ff attains its max and min on [a,b][a,b]. Wherever such an extremum occurs at an interior point where ff is differentiable, Fermat's Theorem forces f′=0f'=0 there. So an absolute extremum can only hide at (i) an interior point with f′=0f'=0 or f′f' undefined, or (ii) an endpoint. Checking that finite list of candidates is therefore guaranteed to find the answer.

Example
6. Harder optimization with a constraint

Minimize the surface area of a closed cylinder of fixed volume VV. Constraint: πr2h=V⇒h=Vπr2\pi r^2 h=V\Rightarrow h=\dfrac{V}{\pi r^2}. Objective:

S=2πr2+2πrh=2πr2+2Vr.S=2\pi r^2+2\pi r h=2\pi r^2+\frac{2V}{r}.

Then S′(r)=4πr−2Vr2=0⇒r3=V2π⇒r=V2π3S'(r)=4\pi r-\dfrac{2V}{r^2}=0\Rightarrow r^3=\dfrac{V}{2\pi}\Rightarrow r=\sqrt[3]{\dfrac{V}{2\pi}}. Since S′′=4π+4Vr3>0S''=4\pi+\dfrac{4V}{r^3}>0, this is a minimum. Substituting back gives h=2rh=2r: the most economical can is as tall as it is wide.

Example
7. Optimization by distance-squared

Closest point on y=1xy=\tfrac1x (x>0x>0) to the origin. Minimize D2=x2+1x2D^2=x^2+\dfrac{1}{x^2} (minimizing D2D^2 minimizes DD). Then d(D2)dx=2x−2x3=0⇒x4=1⇒x=1\dfrac{d(D^2)}{dx}=2x-\dfrac{2}{x^3}=0\Rightarrow x^4=1\Rightarrow x=1. The point is (1,1)(1,1) with distance 2\sqrt2.

Tip

Big picture: f′f' controls slope (rising/falling and where it turns); f′′f'' controls bending (concavity and inflection). Every result in this topic—MVT, the derivative tests, EVT, optimization, curve sketching—is a way of turning information about f′f' and f′′f'' into conclusions about ff.

Try it
Quick check

For f(x)=x3−6x2+9xf(x)=x^3-6x^2+9x, find the inflection point and use the Second Derivative Test to classify the critical numbers.

Work it on paper before revealing the answer.

Show the answer

Answer: f′′(x)=6(x−2)f''(x)=6(x-2); inflection (2,2)(2,2); f′′(1)=−6⇒f''(1)=-6\Rightarrow local max, f′′(3)=6⇒f''(3)=6\Rightarrow local min.

Why It Works

The mean value theorem comes from Rolle's theorem (a differentiable function equal at two points has a horizontal tangent between them, because its maximum or minimum on the interval occurs at an interior point where f′=0f' = 0). Tilt: apply Rolle to f(x)−(secant line)f(x) - (\text{secant line}). The MVT is why f′>0f' > 0 on an interval forces ff to increase: for a<ba < b, f(b)−f(a)=f′(c)(b−a)>0f(b) - f(a) = f'(c)(b - a) > 0. Every "sign of the derivative" fact rests on it.

Tip
Reading a proof

Do not read a proof the way you read a rule. Cover the last line, ask what the previous line forces, and only then uncover it. If a step feels like magic, that is the step to work by hand with a concrete number.

Formulas, Proofs & Tips

Tip
Critical points and concavity
f′(c)=0 or undefined⇒c critical;f′′>0⇒concave up, f′′<0⇒concave downf'(c)=0 \text{ or undefined} \Rightarrow c \text{ critical};\qquad f''>0 \Rightarrow \text{concave up},\ f''<0 \Rightarrow \text{concave down}

What it means. Maxima and minima hide where the slope is zero; the second derivative says which one it is.

Example. f(x)=x3−3xf(x)=x^3-3x: f′(x)=3x2−3=0f'(x)=3x^2-3=0 at x=±1x=\pm1, the critical points.

Why it works. At a smooth peak or valley the tangent is horizontal, so f′=0f'=0. If f′′>0f''>0 the slope is increasing, so the curve bends upward and a horizontal tangent must be a minimum; f′′<0f''<0 reverses it.

Tip. f′=0f'=0 alone is not enough — y=x3y=x^3 has f′(0)=0f'(0)=0 but no extremum. Check a sign change of f′f', or use f′′f''.

Tip
The Mean Value Theorem
f′(c)=f(b)−f(a)b−afor some c∈(a,b)f'(c)=\frac{f(b)-f(a)}{b-a} \quad\text{for some } c \in (a,b)

What it means. Somewhere in the interval the instantaneous rate equals the average rate.

Example. For f(x)=x2f(x)=x^2 on [0,2][0,2]: f′(c)=4−02−0=2f'(c)=\tfrac{4-0}{2-0}=2, which occurs at c=1c=1.

Why it works. Tilt the graph so the endpoints are level (subtract the secant line). The resulting function has equal endpoint values, so it has an interior max or min, where the derivative is 00 — untilting gives f′(c)f'(c) equal to the secant slope.

Tip. Needs ff continuous on [a,b][a,b] and differentiable on (a,b)(a,b). Rolle's Theorem is the special case f(a)=f(b)f(a)=f(b).