Foundations to FrontierPart III: Calculus IBezhig

Module 13: Linear approximation, extrema, and the Mean Value Theorem

22 exercises, each with a complete solution. 7 figures. 1 code listing.

On this page
  1. A. Prerequisites and observable goals
  2. B. The central idea: local slopes constrain global change
  3. C. Three different statements
  4. D. Why these conclusions make sense
  5. E. Choose the question before choosing the theorem
  6. F. Worked teaching examples
  7. F1. Over or under? Concavity, borrowed from Module 14
  8. F2. Differentials: how a measurement error travels
  9. F3. Three traps and a faded example
  10. G. Independent practice
  11. Drill set: the friction points
  12. Frontier applications
  13. A robot’s position filter
  14. Hint ladders for M13.09–M13.22
  15. H. Complete solutions: Module 13
  16. Spaced review answers
  17. Faded example answer
  18. I. Retention and readiness

A. Prerequisites and observable goals#

Before

Tangent lines, derivative rules, continuity, and interval notation.

After

Estimate a nearby value with a tangent line, identify candidate extrema, and use the Mean Value Theorem with its hypotheses intact.

Picture 13.1. Zoom in until the curve is a line. Three views of y=xy=\sqrt x (black) and its tangent line at x=16x=16 (blue, dashed). The vertical axis is stretched six times so that the bend shows, and each zoom multiplies both scales by 55. At the widest view the curve visibly bends below the line. Each zoom shrinks the gap at the window’s edge about 2020 to 2424 times, close to 25=5225=5^2 and far more than 55: for a smooth curve like this one, whose second derivative exists, the tangent line’s error shrinks like the square of the step (Module 30 makes this exact: about 12∣f′′∣h2\tfrac12|f''|h^2). Differentiability alone promises less, only that the error shrinks faster than the step. Either way, L(x)L(x) is an excellent estimate close to 1616 and a poor one far away.

B. The central idea: local slopes constrain global change#

A derivative is local: it describes change near one input. A tangent line turns that information into a nearby approximation. The Mean Value Theorem (MVT) connects local slopes to an average slope over an entire interval. Extrema ask where a function becomes largest or smallest; derivatives help locate candidates but do not replace comparison of their values.

C. Three different statements#

The linearization of a differentiable function at aa is the exact affine function

L(x)=f(a)+f′(a)(x−a).L(x)=f(a)+f'(a)(x-a).

The statement f(x)≈L(x)f(x)\approx L(x) is an approximation. More precisely, differentiability means f(a+h)=f(a)+f′(a)h+o(h)f(a+h)=f(a)+f'(a)h+o(h): the error divided by hh tends to zero. This is not a promise that an arbitrary step such as h=10h=10 is small enough.

The Extreme Value Theorem (EVT) says that a continuous real function on a closed bounded interval [a,b][a,b] attains an absolute maximum and an absolute minimum. A critical number is an interior domain input where f′=0f'=0 or f′f' does not exist. An interior local extremum of a differentiable function has derivative zero (Fermat’s theorem); the converse is false.

The Mean Value Theorem assumes continuity on [a,b][a,b] and differentiability on (a,b)(a,b), with a<ba<b. It guarantees at least one 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 f(a)=f(b)f(a)=f(b), which gives f′(c)=0f'(c)=0. The theorem guarantees existence, not a unique cc or a method for finding it in every problem. Definitions and hypotheses: [O1MVT].

Picture 13.2. The speed trap. Two cameras 1010 km apart log a car 55 minutes apart, so its average speed is 120120 km/h, the slope of the blue secant. The car passed camera A at 168168 km/h, slowed to 9696 km/h, and sped back up to 168168 km/h at camera B (the shaded arc on the dial is that range). Whatever happened in between, the Mean Value Theorem guarantees a moment cc when the speedometer read exactly 120120: a tangent parallel to the secant. Here there are two such moments. A ticket based on average speed is a theorem, not a guess.

D. Why these conclusions make sense#

For a differentiable local maximum at aa, sufficiently small positive increments give (f(a+h)−f(a))/h≤0(f(a+h)-f(a))/h\le0, while negative increments give a quotient ≥0\ge0. If the common finite limit exists, it must be zero. This argument fails at an endpoint because one of the two directions may be unavailable.

To see the MVT, subtract the secant line from ff. The new function has equal endpoint values. Rolle’s theorem supplies a horizontal tangent to that difference, meaning that ff has a tangent parallel to its secant. Rolle’s theorem follows from the EVT: either the function is constant or a maximum or minimum occurs in the interior, where Fermat’s theorem applies. Each hypothesis has a job: endpoints secure extrema, continuity prevents jumps, and differentiability excludes corners at the crucial interior extremum.

Picture 13.3. Every hypothesis has a job. Remove one hypothesis and the conclusion can fail. Left: without continuity, the Mean Value Theorem fails. Middle: without differentiability, Rolle’s theorem fails. Right: without a closed interval, the Extreme Value Theorem fails. A failed hypothesis means the theorem is silent, not that its conclusion must be false.

E. Choose the question before choosing the theorem#

For a nearby estimate, choose a convenient base point with known f(a)f(a) and f′(a)f'(a). For absolute extrema on [a,b][a,b], confirm continuity, find all interior critical numbers, and compare their function values with both endpoints. For an existence or rate-bound question, inspect the MVT hypotheses first. An unavailable hypothesis means the theorem cannot justify the conclusion; it does not automatically mean the conclusion is false.

Picture 13.4. Every candidate gets a vote. The closed-interval method in pictures. List three kinds of candidates: both endpoints (squares), every interior xx with f′(x)=0f'(x)=0 (circles), and every interior xx where f′f' does not exist (diamond). Then compare their heights: the largest is the absolute maximum and the smallest the absolute minimum. Skip a kind of candidate and you can miss the answer.

F. Worked teaching examples#

Estimating a square root. Let f(x)=xf(x)=\sqrt x, and use a=16a=16 because 16=4\sqrt{16}=4. Then f′(16)=1/8f'(16)=1/8 and

16.2≈4+18(0.2)=4.025.\sqrt{16.2}\approx4+\frac18(0.2)=4.025.

Since f′′(x)=−1/(4x3/2)<0f''(x)=-1/(4x^{3/2})<0 for x>0x>0, the graph is concave down and its tangent lies above it; the estimate is an overestimate. The value 4.0254.025 is exact for L(16.2)L(16.2), not for the square root.

An MVT calculation. For f(x)=x2f(x)=x^2 on [1,4][1,4], the average slope is (16−1)/3=5(16-1)/3=5. Solving f′(c)=2c=5f'(c)=2c=5 gives c=5/2c=5/2, which is inside the open interval. Checking location is part of using the theorem.

Finish the candidate list. For f(x)=x3−3xf(x)=x^3-3x on [−2,2][-2,2], f′=3(x−1)(x+1)f'=3(x-1)(x+1). Before calculating values, list the four inputs that must be checked. They are −2,−1,1,2-2,-1,1,2, not just the two derivative zeros. Their heights are −2,2,−2,2-2,2,-2,2; both absolute extrema occur more than once.

F1. Over or under? Concavity, borrowed from Module 14#

Every linearization in this module ends with the question “too high or too low?” The answer comes from the way the graph bends. Module 14 develops bending fully; here is the one fact you need now, proved with this module’s own theorem.

Picture 13.1 shows the fact at work: x\sqrt x has f′′(x)=−14x3/2<0f''(x)=-\dfrac{1}{4x^{3/2}}<0, so the curve stays under its tangent, and L(16.2)=4.025L(16.2)=4.025 is a little too high.

F2. Differentials: how a measurement error travels#

Linearization has a second job. Besides estimating a value, it predicts how an error in an input becomes an error in an output. Call a small change in the input  dx\dd x, and call the tangent line’s change  dy\dd y:

 dy=f′(x)  dx.\dd y=f'(x)\,\dd x.

The true change Δy=f(x+ dx)−f(x)\Delta y=f(x+\dd x)-f(x) is close to  dy\dd y when  dx\dd x is small; Picture 13.1 shows how close. Engineers use this line to build error budgets: how precisely must each part be measured for the result to be good enough?

Worked example. A cube’s edge is measured as 5.005.00 cm, possibly off by 0.020.02 cm either way. Its volume is V=s3V=s^3, so

 dV=3s2  ds=3(25)(0.02)=1.5 cm3.\dd V=3s^2\,\dd s=3(25)(0.02)=1.5\text{ cm}^3.

The volume is 125125 cm3^3, possibly off by about 1.51.5 cm3^3. As fractions of the whole, the edge is off by 0.02/5=0.4%0.02/5=0.4\% and the volume by 1.5/125=1.2%1.5/125=1.2\%: three times as much.

The exponent multiplies the relative error. For any power law y=kxny=kx^n,

 dyy=knxn−1  dxkxn=n  dxx.\frac{\dd y}{y}=\frac{knx^{n-1}\,\dd x}{kx^n}=n\,\frac{\dd x}{x}.

The cube’s exponent is 33, so its 0.4%0.4\% edge error becomes a 1.2%1.2\% volume error. A square root (n=12n=\tfrac12) halves a relative error, and a cube triples it. High exponents are where precision matters: in slow, smooth (laminar) pipe flow under a fixed pressure drop, the flow rate grows like the fourth power of the radius (Poiseuille’s law), so a 1%1\% error in a pipe’s radius becomes a 4%4\% error in its predicted flow.

F3. Three traps and a faded example#

G. Independent practice#

F foundation C standard course work T transfer S optional stretch L runnable lab or project. Attempt the complete set before opening its solutions.

M13.01FSolution

Use linearization to estimate 25.3\sqrt{25.3}. State the base point and distinguish the estimate from an exact value.

M13.02CSolution

Use f(x)=1/xf(x)=1/x at a=2a=2 to estimate 1/2.041/2.04. Decide whether the tangent estimate is above or below the true value.

M13.03CSolution

Find the absolute extrema of f(x)=x3−3x2+1f(x)=x^3-3x^2+1 on [−1,3][-1,3].

M13.04CSolution

Find every MVT point for f(x)=x3f(x)=x^3 on [−1,1][-1,1].

M13.05TSolution

Why does Rolle’s theorem not apply to f(x)=∣x∣f(x)=|x| on [−1,1][-1,1]? Show directly that its conclusion fails.

M13.06TSolution

Suppose ff is continuous on [2,5][2,5], differentiable on (2,5)(2,5), f(2)=7f(2)=7, and −1≤f′(x)≤4-1\le f'(x)\le4. Bound f(5)f(5).

M13.07TSolution

Give a differentiable function whose derivative is zero at an input that is not a local extremum. Give a continuous function on (0,1)(0,1) with neither an attained maximum nor an attained minimum.

M13.08SSolution

Use the MVT to prove ∣sin⁡b−sin⁡a∣≤∣b−a∣|\sin b-\sin a|\le|b-a| for all real a,ba,b. Explain what this says about input error.

Drill set: the friction points#

Each problem names the friction family it trains. Do them in order: they get less familiar as they go. Hint ladders follow the original hints.

M13.09FSolution

(Fractions under pressure; a root in disguise.) Linearize f(x)=x2/3f(x)=x^{2/3} at a=8a=8 and use it to estimate (8.06)2/3(8.06)^{2/3}. Is the estimate too high or too low?

M13.10FSolution

(Bookkeeping: negative exponents.) Linearize f(x)=5x3f(x)=\dfrac{5}{x^3} at a=1a=1 and use it to estimate 51.023\dfrac{5}{1.02^3}. Too high or too low?

M13.11CSolution

(Angle Fortress; small angles.) Linearize sin⁡x\sin x and cos⁡x\cos x at a=0a=0. Use them to estimate sin⁡(0.1)\sin(0.1) and cos⁡(0.1)\cos(0.1), compare with a calculator, and use concavity to explain why the cosine estimate has the larger error.

M13.12CSolution

(Derivative on top.) Linearize ln⁡x\ln x at a=1a=1 and exe^x at a=0a=0. Estimate ln⁡(1.05)\ln(1.05) and e−0.03e^{-0.03}, and decide whether each estimate is too high or too low.

M13.13CSolution

(Differentials.) A sphere’s radius is measured as 1010 cm, possibly off by 0.10.1 cm. Estimate the largest possible error in its computed volume, and the relative error.

M13.14TSolution

(An error budget.) For small swings, a pendulum of length ℓ\ell has period T=2πℓ/gT=2\pi\sqrt{\ell/g}. If its length is measured with a 0.5%0.5\% relative error, estimate the relative error in TT. How precisely must ℓ\ell be measured for TT to be good to 0.1%0.1\%?

M13.15CSolution

(The forgotten candidates; fractions.) Find the absolute extrema of f(x)=x−3x1/3f(x)=x-3x^{1/3} on [−1,8][-1,8].

M13.16CSolution

(Angle Fortress.) Find the absolute extrema of f(x)=x+2cos⁡xf(x)=x+2\cos x on [0,π][0,\pi].

M13.17CSolution

(The Mean Value Theorem with a root.) Check the Mean Value Theorem’s hypotheses for f(x)=xf(x)=\sqrt x on [1,9][1,9], then find every cc it promises.

M13.18TSolution

(The Mean Value Theorem as a bound.) Use the Mean Value Theorem on x\sqrt x to prove, without a calculator, that 122<101−10<120\dfrac{1}{22}<\sqrt{101}-10<\dfrac{1}{20}.

M13.19TSolution

(Rolle: exactly one root.) Show that x3+x−1=0x^3+x-1=0 has exactly one real solution, and that it lies between 00 and 11.

Frontier applications#

Picture 13.5. A barometer’s straight-line model. Pressure (black) is concave up, so its tangent line at the ground (blue, dashed) lies below it everywhere else. Near the ground the line is excellent; by 33 km it is off by 5.65.6 kPa, about 470470 m of altitude.

M13.20TSolution

The altimeter in your drone. (a) Linearize pp at h=0h=0 and give the slope in pascals per metre. Check it against the hydrostatic rule  dp/ dh=−ρg\dd p/\dd h=-\rho g, with ρ0=1.225\rho_0=1.225 kg/m3^3 and g=9.81g=9.81 m/s2^2. (b) In flight, the reading has dropped 6060 Pa since takeoff. Estimate the altitude. (c) If the pressure reading jitters by ±3\pm3 Pa, how much does the altitude estimate jitter? (d) At a true altitude of 300300 m, find the exact pressure, then the altitude the straight-line model would report from it. Is the line too high or too low, and is it good enough for a 300300 m flight?

Picture 13.6. The sigmoid’s speed limit. Left: σ\sigma and its tangent line at 00. Right: its slope, which is never more than 14\tfrac14. By the Mean Value Theorem, that slope limit becomes a global promise: from the point (0,12)(0,\tfrac12) the curve stays inside the shaded bowtie of slopes ±14\pm\tfrac14, which beyond ∣x∣=2|x|=2 already covers the whole strip between 00 and 11. In a real network each layer also multiplies by its weights, so this limit does not force learning signals to fade; with weights of modest size, fading is the typical case.

M13.21TSolution

Why deep sigmoid networks learn slowly. (a) Show that σ′(x)=σ(x)(1−σ(x))\sigma'(x)=\sigma(x)\bigl(1-\sigma(x)\bigr). (b) Linearize σ\sigma at 00 and estimate σ(0.4)\sigma(0.4). Is the estimate too high or too low, and why? (c) Show that 0<σ′(x)≤140<\sigma'(x)\le\tfrac14 for every xx, and use the Mean Value Theorem to prove ∣σ(a)−σ(b)∣≤14∣a−b∣|\sigma(a)-\sigma(b)|\le\tfrac14|a-b| for all aa and bb. (d) A signal passes through a chain of 1010 sigmoids, each one’s output the next one’s input, with no weights in between: y1=σ(y0)y_1=\sigma(y_0), y2=σ(y1)y_2=\sigma(y_1), and so on to y10y_{10}. By the chain rule, how large can  dy10/ dy0\dd y_{10}/\dd y_0 possibly be? A real network also multiplies by a weight at every layer; in one sentence, explain why this fading still helped push modern networks toward activations such as ReLU, whose slope is exactly 11 for positive inputs.

A robot’s position filter#

A sidewalk delivery robot drives at walking pace and reports its position to a tracking computer twenty-five times a second. Position fixes are slightly noisy, and now and then one is wildly wrong. The tracker keeps the last position it accepted and discards any report that lies farther away than the robot could have driven since then, plus a fixed allowance:

C++
float dist    = distance(lastAccepted, reported);   // cm
float maxDist = MAX_SPEED * speedFactor * gap;      // cm

if (dist > maxDist + TOLERANCE) {
    // a glitch: discard the report and keep lastAccepted
} else {
    lastAccepted = reported;
}

Here MAX_SPEED is 125125 cm/s, TOLERANCE is 150150 cm, and speedFactor is 11 unless a setting raises the robot’s top speed. The time gap starts from the gap on the tracker’s own clock since the previous report. That clock is a tick count: it moves in steps of 0.040.04 s, twenty-five times a second. When a report carries the robot’s own timestamp, later than its previous one, the gap is raised to the robot’s own gap, capped at 0.060.06 s; and the result is never less than 0.0020.002 s.

M13.22TSolution

(The Mean Value Theorem as a glitch filter.) Take speedFactor =1=1 unless told otherwise, so the speed cap is vmax⁡=125v_{\max}=125 cm/s. (a) The robot drives along any path at a speed that never exceeds vmax⁡v_{\max}. Let D(t)D(t) be the distance driven along the path by time tt, so D′(t)D'(t) is the speed. Use the Mean Value Theorem on DD to show that between two reports Δt\Delta t apart the straight-line jump dist is at most vmax⁡Δtv_{\max}\Delta t, so the filter never discards an accurate report, provided gap is at least the true Δt\Delta t. (b) A report claims a 200200 cm jump 0.040.04 s after the previous one. Is it discarded? If the jump had been real, what does the Mean Value Theorem say about the robot’s speed at some instant? (c) Network delay bunches two reports that were sent 0.040.04 s apart, so the tracker handles both in the same tick. What maxDist does the tracker use if the reports carry no timestamps, and if they do? Why does a genuine 55 cm step pass either way? What job does the 150150 cm tolerance do? (d) A software update raises the robot’s top speed by 20%20\%, so speedFactor becomes 1.21.2. How long a gap makes the 200200 cm jump acceptable?

Optional small hints

For M13.03, endpoints are candidates too. For M13.06, the MVT places the average slope between the derivative bounds. For M13.08, use the derivative of sine and ∣cos⁡c∣≤1|\cos c|\le1.

Hint ladders for M13.09–M13.22#

Climb one rung at a time, and try the problem again after each rung.

Rung 1: a nudge

Which nearby input has a 2/32/3 power you can do in your head?

Rung 2: the idea

The linearization L(x)=f(a)+f′(a)(x−a)L(x)=f(a)+f'(a)(x-a); top minus bottom over bottom for 23−1\tfrac23-1.

Rung 3: a skeleton

f(8)=□f(8)=\square, f′(8)=23⋅8−1/3=□f'(8)=\tfrac23\cdot8^{-1/3}=\square; L(8.06)=□+□(0.06)L(8.06)=\square+\square(0.06); the sign of f′′f'' decides over or under.

Rung 1: a nudge

What does 5/x35/x^3 look like with no fraction bar?

Rung 2: the idea

Parentheses Rewrite, then the power rule; watch the exponent’s sign.

Rung 3: a skeleton

f=5x□f=5x^{\square}, f′=□x−4f'=\square x^{-4}; L(1.02)=5+f′(1)(0.02)L(1.02)=5+f'(1)(0.02); f′′=60x−5f''=60x^{-5}, so the graph is concave □\square.

Rung 1: a nudge

What are sin⁡0\sin0, cos⁡0\cos0, and their slopes?

Rung 2: the idea

Each linearization is f(0)+f′(0)xf(0)+f'(0)x. The error depends on how much the graph bends at 00, which is f′′(0)f''(0).

Rung 3: a skeleton

sin⁡x≈□\sin x\approx\square and cos⁡x≈□\cos x\approx\square; compare sin⁡′′(0)=□\sin''(0)=\square with cos⁡′′(0)=□\cos''(0)=\square.

Rung 1: a nudge

What are ln⁡1\ln1 and e0e^0, and their slopes?

Rung 2: the idea

Derivative on top, original on bottom:  d dxln⁡x=1x\tfrac{\dd}{\dd x}\ln x=\tfrac1x. Concavity decides over or under.

Rung 3: a skeleton

ln⁡x≈x−□\ln x\approx x-\square near 11; ex≈1+□e^x\approx1+\square near 00; ln⁡\ln is concave □\square and exe^x is concave □\square.

Rung 1: a nudge

Which formula links radius and volume, and what is its derivative?

Rung 2: the idea

Differentials:  dV=V′(r)  dr\dd V=V'(r)\,\dd r. For the relative error, use the exponent rule from F2.

Rung 3: a skeleton

 dV=4π(□)2(0.1)\dd V=4\pi(\square)^2(0.1); relative error =3×□%=3\times\square\%.

Rung 1: a nudge

What power of ℓ\ell is hiding inside the square root?

Rung 2: the idea

The exponent multiplies the relative error (F2).

Rung 3: a skeleton

T∝ℓ□T\propto \ell^{\square}, so  dT/T=□⋅ dℓ/ℓ\dd T/T=\square\cdot\dd\ell/\ell.

Rung 1: a nudge

Before any algebra: what kinds of xx belong on a closed interval’s candidate list?

Rung 2: the idea

Trap 2: three labelled lines of candidates. Rewrite x−2/3x^{-2/3} as 1/x2/31/x^{2/3} to see where it breaks.

Rung 3: a skeleton

f′=1−x−2/3f'=1-x^{-2/3}: zero at x=±□x=\pm\square, undefined at x=□x=\square; compare ff at −1-1, 00, 11, 88.

Rung 1: a nudge

What equation do the critical numbers solve here?

Rung 2: the idea

Closed-interval method; the Angle Fortress keeps the angle xx throughout.

Rung 3: a skeleton

f′=1−2sin⁡xf'=1-2\sin x; candidates 00, π□\tfrac{\pi}{\square}, 5π□\tfrac{5\pi}{\square}, π\pi; compare the four heights.

Rung 1: a nudge

Is x\sqrt x continuous on [1,9][1,9] and differentiable on (1,9)(1,9)?

Rung 2: the idea

The secant slope equals f′(c)f'(c).

Rung 3: a skeleton

9−19−1=□=12c\dfrac{\sqrt9-\sqrt1}{9-1}=\square=\dfrac{1}{2\sqrt c}, so c=□\sqrt c=\square.

Rung 1: a nudge

Which interval makes 101−10\sqrt{101}-10 a change in x\sqrt x?

Rung 2: the idea

Mean Value Theorem on [100,101][100,101], then bound f′(c)f'(c) using 100<c<101<121100<c<101<121.

Rung 3: a skeleton

101−10=12c\sqrt{101}-10=\dfrac{1}{2\sqrt c} with □<c<□\square<\sqrt c<\square.

Rung 1: a nudge

What are f(0)f(0) and f(1)f(1) for f(x)=x3+x−1f(x)=x^3+x-1?

Rung 2: the idea

Existence from the Intermediate Value Theorem; uniqueness from Rolle’s theorem.

Rung 3: a skeleton

If f(a)=f(b)=0f(a)=f(b)=0 with a<ba<b, Rolle gives f′(c)=0f'(c)=0; but f′(x)=3x2+1≥□f'(x)=3x^2+1\ge\square.

Rung 1: a nudge

What is the slope of p0e−h/Hp_0e^{-h/H} at h=0h=0?

Rung 2: the idea

Linearization; then read the line backwards to turn pressure into altitude.

Rung 3: a skeleton

L(h)=p0−p0HhL(h)=p_0-\dfrac{p_0}{H}h; altitude ≈Δp□\approx\dfrac{\Delta p}{\square}; for (d), hline=H(1−p/p0)h_{\text{line}}=H(1-p/p_0).

Rung 1: a nudge

Rewrite σ\sigma as a power of (1+e−x)(1+e^{-x}). Which rule comes next?

Rung 2: the idea

Nesting dolls; then complete the square in σ(1−σ)\sigma(1-\sigma); then the Mean Value Theorem with ∣σ′∣≤14|\sigma'|\le\tfrac14.

Rung 3: a skeleton

σ′=e−x(1+e−x)2\sigma'=\dfrac{e^{-x}}{(1+e^{-x})^2}; σ(1−σ)=14−(σ−□)2\sigma(1-\sigma)=\tfrac14-(\sigma-\square)^2; chain rule:  dy10/ dy0=∏σ′(yk)≤(□)10\dd y_{10}/\dd y_0=\prod\sigma'(y_k)\le(\square)^{10}.

Rung 1: a nudge

What does the Mean Value Theorem say about D(t2)−D(t1)D(t_2)-D(t_1)?

Rung 2: the idea

The Mean Value Theorem on DD; a straight line is the shortest path; read gap from the description.

Rung 3: a skeleton

D(t2)−D(t1)=D′(c) Δt≤□D(t_2)-D(t_1)=D'(c)\,\Delta t\le\square; (b) 125(0.04)+150=□125(0.04)+150=\square; (d) 125(1.2)Δt+150≥200125(1.2)\Delta t+150\ge200.

H. Complete solutions: Module 13#

Compare the first step where your work differs. A corrected answer is not yet an independent success.

M13.01Show solution

Choose a base point with a known height

Set f(x)=xf(x)=\sqrt x and a=25a=25. Then f(25)=5f(25)=5 and f′(25)=1/(225)=1/10f'(25)=1/(2\sqrt{25})=1/10. Thus L(x)=5+(x−25)/10L(x)=5+(x-25)/10 and 25.3≈5.03\boxed{\sqrt{25.3}\approx5.03}. The step is 0.30.3, not 25.325.3. Concavity makes this an overestimate; only L(25.3)=5.03L(25.3)=5.03 is exact.

Back to M13.01
M13.02Show solution

A negative slope does not mean a negative value

The derivative is −1/x2-1/x^2, so L(x)=1/2−(x−2)/4L(x)=1/2-(x-2)/4. At 2.042.04, L=0.5−0.01=0.49L=0.5-0.01=\boxed{0.49}. Because f′′(x)=2/x3>0f''(x)=2/x^3>0 for positive xx, this tangent estimate is below the true reciprocal. As a numerical check, 1/2.04=25/51≈0.4901961/2.04=25/51\approx0.490196.

Back to M13.02
M13.03Show solution

Compare all candidates

Continuity ensures attained extrema. Differentiate: f′=3x2−6x=3x(x−2)f'=3x^2-6x=3x(x-2), with interior critical numbers 0,20,2. Evaluate

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

The absolute maximum is 1\boxed1 at 0,30,3; the absolute minimum is −3\boxed{-3} at −1,2-1,2. Derivative zeros alone would miss the endpoint ties.

Back to M13.03
M13.04Show solution

The MVT point need not be unique

The polynomial meets both hypotheses. Its secant slope is (1−(−1))/(1−(−1))=1(1-(-1))/(1-(-1))=1. Solve 3c2=13c^2=1 to obtain c=±1/3\boxed{c=\pm1/\sqrt3}. Both lie in (−1,1)(-1,1), so both qualify.

Back to M13.04
M13.05Show solution

Locate the missing hypothesis

The function is continuous and has equal endpoint values, but is not differentiable at the interior point 00. On (−1,0)(-1,0) its derivative is −1-1, and on (0,1)(0,1) it is 11. It has no input in the open interval with derivative zero. The corner is precisely where the minimum occurs.

Back to M13.05
M13.06Show solution

Bound an unknown endpoint height

For some c∈(2,5)c\in(2,5), (f(5)−7)/3=f′(c)(f(5)-7)/3=f'(c). Thus −1≤(f(5)−7)/3≤4-1\le(f(5)-7)/3\le4. Multiplying by positive 33 and adding 77 gives 4≤f(5)≤19\boxed{4\le f(5)\le19}. The units would be output units; the derivative bound must be multiplied by the interval length.

Back to M13.06
M13.07Show solution

Two counterexamples to overextended rules

For f(x)=x3f(x)=x^3, f′(0)=0f'(0)=0 but the function increases through zero, so there is no local extremum there. For g(x)=xg(x)=x on (0,1)(0,1), every value has smaller and larger nearby values. Its infimum is 00 and supremum is 11, neither attained. The EVT’s closed-interval hypothesis is missing.

Back to M13.07
M13.08Show solution

A global sensitivity bound from local slopes

When a=ba=b, both sides are zero. For a<ba<b, sine is continuous and differentiable, so the MVT gives sin⁡b−sin⁡a=cos⁡c (b−a)\sin b-\sin a=\cos c\,(b-a) for an intermediate cc. Taking absolute values yields ∣sin⁡b−sin⁡a∣≤b−a|\sin b-\sin a|\le b-a. Interchanging a,ba,b handles the other order. Therefore a radian input error of magnitude at most η\eta changes sine by at most η\eta; this is an exact bound, not a linear approximation.

Back to M13.08
M13.09Show solution

A known cube root, then a slope

f(8)=(81/3)2=4f(8)=(8^{1/3})^2=4. With 23−1=2−33=−13\tfrac23-1=\tfrac{2-3}{3}=-\tfrac13, f′(x)=23x−1/3f'(x)=\tfrac23x^{-1/3}, so f′(8)=23⋅12=13f'(8)=\tfrac23\cdot\tfrac12=\tfrac13. Then L(x)=4+13(x−8)L(x)=4+\tfrac13(x-8) and (8.06)2/3≈L(8.06)=4+0.063=4.02(8.06)^{2/3}\approx L(8.06)=4+\tfrac{0.06}{3}=\boxed{4.02}. Next, f′′(x)=−29x−4/3<0f''(x)=-\tfrac29x^{-4/3}<0 for x>0x>0, so the graph is concave down, lies below its tangent, and 4.024.02 is too high. A calculator gives 4.019975…4.019975\ldots, just below.

Back to M13.09
M13.10Show solution

Rewrite first, and guard the sign

f=5x−3f=5x^{-3}, f′=−15x−4f'=-15x^{-4}, so f(1)=5f(1)=5 and f′(1)=−15f'(1)=-15. Then L(x)=5−15(x−1)L(x)=5-15(x-1) and L(1.02)=5−0.3=4.70L(1.02)=5-0.3=\boxed{4.70}. Since f′′=60x−5>0f''=60x^{-5}>0 for x>0x>0, the graph is concave up and lies above its tangent, so 4.704.70 is too low. A calculator gives 5/1.061208≈4.71165/1.061208\approx4.7116.

Back to M13.10
M13.11Show solution

Bending decides the error

For sine: sin⁡0=0\sin0=0 and sin⁡′(0)=cos⁡0=1\sin'(0)=\cos0=1, so sin⁡x≈x\sin x\approx x and sin⁡(0.1)≈0.1\sin(0.1)\approx\boxed{0.1}; the calculator gives 0.09983340.0998334, an error of about 0.000170.00017. For cosine: cos⁡0=1\cos0=1 and cos⁡′(0)=−sin⁡0=0\cos'(0)=-\sin0=0, so cos⁡x≈1\cos x\approx1 and cos⁡(0.1)≈1\cos(0.1)\approx\boxed{1}; the calculator gives 0.99500420.9950042, an error of about 0.0050.005, thirty times larger. The reason is bending: sin⁡′′(0)=−sin⁡0=0\sin''(0)=-\sin0=0, so sine is momentarily straight at 00 (an inflection point), while cos⁡′′(0)=−cos⁡0=−1\cos''(0)=-\cos0=-1, so cosine bends away from its flat tangent at once. Module 30 makes this exact: the error is about 12∣f′′(a)∣\tfrac12|f''(a)| times the square of the step.

Back to M13.11
M13.12Show solution

Two famous lines and their concavity

ln⁡1=0\ln1=0 and  d dxln⁡x=1x\tfrac{\dd}{\dd x}\ln x=\tfrac1x equals 11 at x=1x=1, so ln⁡x≈x−1\ln x\approx x-1 and ln⁡(1.05)≈0.05\ln(1.05)\approx\boxed{0.05}. Since (ln⁡x)′′=−1/x2<0(\ln x)''=-1/x^2<0, ln⁡\ln is concave down and this is too high (true value 0.048790.04879). Also e0=1e^0=1 with slope 11, so ex≈1+xe^x\approx1+x and e−0.03≈0.97e^{-0.03}\approx\boxed{0.97}. Since (ex)′′=ex>0(e^x)''=e^x>0, this is too low (true value 0.9704460.970446).

Back to M13.12
M13.13Show solution

A radius error becomes three times the relative error

V=43πr3V=\tfrac43\pi r^3, so  dV=4πr2  dr=4π(100)(0.1)=40π≈126 cm3\dd V=4\pi r^2\,\dd r=4\pi(100)(0.1)=\boxed{40\pi\approx126\text{ cm}^3}. The volume is 4000π3≈4189\tfrac{4000\pi}{3}\approx4189 cm3^3, so the relative error is 40π4000π/3=0.03=3%\dfrac{40\pi}{4000\pi/3}=0.03=\boxed{3\%}, three times the radius’s 1%1\%, because the exponent is 33.

Back to M13.13
M13.14Show solution

A square root halves relative error

T=2πg ℓ1/2T=\dfrac{2\pi}{\sqrt g}\,\ell^{1/2}, so by the exponent rule  dTT=12⋅ dℓℓ=12(0.5%)=0.25%\dfrac{\dd T}{T}=\dfrac12\cdot\dfrac{\dd\ell}{\ell}=\dfrac12(0.5\%)=\boxed{0.25\%}. For TT to be good to 0.1%0.1\%, ℓ\ell must be good to 0.2%\boxed{0.2\%}, 22 mm on a 11 m pendulum.

Back to M13.14
M13.15Show solution

Three kinds of candidates

f′(x)=1−x−2/3=1−1x2/3f'(x)=1-x^{-2/3}=1-\dfrac{1}{x^{2/3}}. It is zero when x2/3=1x^{2/3}=1, that is (x1/3)2=1(x^{1/3})^2=1, so x1/3=±1x^{1/3}=\pm1 and x=±1x=\pm1. It does not exist at x=0x=0, which is inside the interval and in ff’s domain: the formula divides by zero there, and the definition agrees, because f(h)−f(0)h=1−3h−2/3\dfrac{f(h)-f(0)}{h}=1-3h^{-2/3} falls without bound as h→0h\to0. Candidates: endpoints −1-1 and 88; f′=0f'=0 at 11 (and at −1-1, already listed); f′f' undefined at 00.

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

Absolute maximum 2\boxed{2} at x=−1x=-1 and x=8x=8; absolute minimum −2\boxed{-2} at x=1x=1.

Back to M13.15
M13.16Show solution

Two angles from one sine value

f′(x)=1−2sin⁡x=0f'(x)=1-2\sin x=0 when sin⁡x=12\sin x=\tfrac12, which on [0,π][0,\pi] happens at x=π6x=\tfrac\pi6 and x=5π6x=\tfrac{5\pi}6. Compare four heights:

f(0)=2,f ⁣(π6)=π6+3≈2.256,f ⁣(5π6)=5π6−3≈0.886,f(π)=π−2≈1.142.f(0)=2,\quad f\!\left(\tfrac\pi6\right)=\tfrac\pi6+\sqrt3\approx2.256,\quad f\!\left(\tfrac{5\pi}6\right)=\tfrac{5\pi}6-\sqrt3\approx0.886,\quad f(\pi)=\pi-2\approx1.142.

Absolute maximum π6+3\boxed{\tfrac\pi6+\sqrt3} at x=π6x=\tfrac\pi6; absolute minimum 5π6−3\boxed{\tfrac{5\pi}6-\sqrt3} at x=5π6x=\tfrac{5\pi}6. The cosine became cos⁡π6=32\cos\tfrac\pi6=\tfrac{\sqrt3}{2}, and the factor 22 made it 3\sqrt3.

Back to M13.16
M13.17Show solution

Hypotheses, then one equation

x\sqrt x is continuous for x≥0x\ge0, so on [1,9][1,9], and differentiable for x>0x>0, so on (1,9)(1,9). The secant slope is 3−19−1=14\dfrac{3-1}{9-1}=\dfrac14. Solve 12c=14\dfrac{1}{2\sqrt c}=\dfrac14: c=2\sqrt c=2, so c=4\boxed{c=4}, which lies in (1,9)(1,9). It is the only one, because f′(x)=12xf'(x)=\tfrac{1}{2\sqrt x} decreases and so takes each value once.

Back to M13.17
M13.18Show solution

Squeeze the unknown slope

On [100,101][100,101], x\sqrt x meets both hypotheses, so 101−100=12c(101−100)\sqrt{101}-\sqrt{100}=\dfrac{1}{2\sqrt c}(101-100) for some cc in (100,101)(100,101). Because 100<c<121100<c<121, 10<c<1110<\sqrt c<11, so 20<2c<2220<2\sqrt c<22 and 122<12c<120\dfrac1{22}<\dfrac{1}{2\sqrt c}<\dfrac1{20}. Therefore 122<101−10<120\boxed{\dfrac1{22}<\sqrt{101}-10<\dfrac1{20}}. (The true value is 0.0498756…0.0498756\ldots, close to the upper bound because c\sqrt c is close to 1010.)

Back to M13.18
M13.19Show solution

Existence, then uniqueness

f(x)=x3+x−1f(x)=x^3+x-1 is continuous, with f(0)=−1<0f(0)=-1<0 and f(1)=1>0f(1)=1>0, so the Intermediate Value Theorem gives a root in (0,1)(0,1). Suppose there were two roots a<ba<b. Then f(a)=f(b)=0f(a)=f(b)=0, and Rolle’s theorem would give f′(c)=0f'(c)=0 for some cc between them. But f′(x)=3x2+1≥1>0f'(x)=3x^2+1\ge1>0 everywhere, a contradiction. So there is exactly one real root; it is about 0.68230.6823.

Back to M13.19
M13.20Show solution

A line through the barometer’s reading

(a) p′(h)=−p0He−h/Hp'(h)=-\dfrac{p_0}{H}e^{-h/H}, so p′(0)=−101,3258,500≈−11.92 Pa/mp'(0)=-\dfrac{101{,}325}{8{,}500}\approx\boxed{-11.92\text{ Pa/m}} and L(h)=p0−11.92hL(h)=p_0-11.92h. The hydrostatic rule gives −ρ0g=−1.225(9.81)≈−12.02-\rho_0g=-1.225(9.81)\approx-12.02 Pa/m, within 1%1\%. That checks the model’s HH against an independent number, ρ0\rho_0: the two agree because HH is close to p0/(ρ0g)≈8.43p_0/(\rho_0g)\approx8.43 km. It cannot test the one-temperature assumption itself, since the exponential model is built on the same hydrostatic rule.

(b) A drop of 6060 Pa means h≈6011.92≈5.0 mh\approx\dfrac{60}{11.92}\approx\boxed{5.0\text{ m}}.

(c) ±311.92≈±0.25 m\pm\dfrac{3}{11.92}\approx\boxed{\pm0.25\text{ m}}. A raw barometer altitude wobbles by about a quarter metre, which is why flight controllers filter it and blend it with other sensors (the Kalman filter, module EL22 on the Engineering Lab’s route).

(d) Exact: p(300)=101,325 e−300/8500≈97,811 Pap(300)=101{,}325\,e^{-300/8500}\approx\boxed{97{,}811\text{ Pa}}. The line reaches that pressure at h=H(1−p/p0)=8500(1−e−300/8500)≈294.8 mh=H(1-p/p_0)=8500\bigl(1-e^{-300/8500}\bigr)\approx\boxed{294.8\text{ m}}, about 55 m too low. The line lies below the concave-up curve, so it reaches any given pressure too early. Five metres in three hundred, under 2%2\%, is fine for a rough altitude, but the error grows like the square of the height (Picture 13.1’s lesson): by 33 km it is about 470470 m. That is why flight controllers use the full formula.

Back to M13.20
M13.21Show solution

One slope limit, three consequences

(a) Nesting dolls on σ=(1+e−x)−1\sigma=(1+e^{-x})^{-1}: σ′=−(1+e−x)−2⋅(−e−x)=e−x(1+e−x)2\sigma'=-(1+e^{-x})^{-2}\cdot(-e^{-x})=\dfrac{e^{-x}}{(1+e^{-x})^2}. Since 1−σ=1+e−x−11+e−x=e−x1+e−x1-\sigma=\dfrac{1+e^{-x}-1}{1+e^{-x}}=\dfrac{e^{-x}}{1+e^{-x}}, the product σ(1−σ)\sigma(1-\sigma) is the same fraction, so σ′=σ(1−σ)\sigma'=\sigma(1-\sigma).

(b) σ(0)=12\sigma(0)=\tfrac12 and σ′(0)=12⋅12=14\sigma'(0)=\tfrac12\cdot\tfrac12=\tfrac14, so L(x)=12+x4L(x)=\tfrac12+\tfrac x4 and σ(0.4)≈0.6\sigma(0.4)\approx\boxed{0.6}. The true value is 1/(1+e−0.4)≈0.598691/(1+e^{-0.4})\approx0.59869, so the estimate is too high: σ′′=σ′(1−2σ)<0\sigma''=\sigma'(1-2\sigma)<0 when σ>12\sigma>\tfrac12, that is for x>0x>0, so the graph is concave down there.

(c) σ(1−σ)=σ−σ2=14−(σ−12)2≤14\sigma(1-\sigma)=\sigma-\sigma^2=\tfrac14-\left(\sigma-\tfrac12\right)^2\le\tfrac14, and it is positive because 0<σ<10<\sigma<1. If a=ba=b, both sides of the inequality are 00. If a≠ba\ne b, σ\sigma is continuous and differentiable everywhere, so the Mean Value Theorem applies on the interval between them: σ(a)−σ(b)=σ′(c)(a−b)\sigma(a)-\sigma(b)=\sigma'(c)(a-b) for some cc in between, and ∣σ(a)−σ(b)∣=σ′(c) ∣a−b∣≤14∣a−b∣|\sigma(a)-\sigma(b)|=\sigma'(c)\,|a-b|\le\tfrac14|a-b|.

(d) Ten nested dolls:  dy10 dy0=σ′(y9) σ′(y8)⋯σ′(y0)≤(14)10=11,048,576≈9.5×10−7\dfrac{\dd y_{10}}{\dd y_0}=\sigma'(y_9)\,\sigma'(y_8)\cdots\sigma'(y_0)\le\left(\tfrac14\right)^{10}=\boxed{\dfrac{1}{1{,}048{,}576}\approx9.5\times10^{-7}}. In a real network each factor is a weight times σ′\sigma', so large weights could offset the shrinking, but with weights of modest size a learning signal sent back through many sigmoids shrinks geometrically (the vanishing gradient). A ReLU passes positive signals back with slope exactly 11, so they do not shrink this way.

Back to M13.21
M13.22Show solution

The Mean Value Theorem, then its contrapositive

(a) DD is continuous on [t1,t2][t_1,t_2] and differentiable inside, with D′(t)≤vmax⁡D'(t)\le v_{\max}. The Mean Value Theorem gives D(t2)−D(t1)=D′(c) Δt≤vmax⁡ΔtD(t_2)-D(t_1)=D'(c)\,\Delta t\le v_{\max}\Delta t. A straight line is the shortest route between two points, so dist≤D(t2)−D(t1)≤vmax⁡Δt≤vmax⁡⋅gap=maxDist\texttt{dist}\le D(t_2)-D(t_1)\le v_{\max}\Delta t\le v_{\max}\cdot\texttt{gap}=\texttt{maxDist}, which is less than maxDist+150\texttt{maxDist}+150: the report is accepted.

(b) maxDist=125(1)(0.04)=5\texttt{maxDist}=125(1)(0.04)=5 cm, and 5+150=155<2005+150=155<200, so the report is discarded. If the jump had been real, the Mean Value Theorem on DD would give an instant cc with D′(c)≥2000.04=5000 cm/sD'(c)\ge\dfrac{200}{0.04}=\boxed{5000\text{ cm/s}}, 4040 times the cap. That is the contrapositive of (a): a jump too long for the speed limit proves the limit was broken at some instant. A robot that cannot reach 5050 m/s did not make the jump, so the fix was wrong.

(c) Both reports are handled in one tick, so the tracker’s own gap is 00, which the rule raises to its floor. With no timestamps, gap=0.002\texttt{gap}=0.002 s and maxDist=0.25\texttt{maxDist}=0.25 cm. With timestamps 0.040.04 s apart, gap=max⁡(0.002,min⁡(0.04,0.06))=0.04\texttt{gap}=\max\bigl(0.002,\min(0.04,0.06)\bigr)=0.04 s and maxDist=5\texttt{maxDist}=5 cm. (Had the two reports landed in neighbouring ticks, the tracker’s own gap would have been 0.040.04 s.) The genuine 55 cm step passes both times: 5≤5+1505\le5+150, and 5≤0.25+1505\le0.25+150, the second only because of the tolerance. Part (a) needs the true elapsed time, and the tracker can only estimate it. The 150150 cm tolerance absorbs the estimate’s error, along with the small noise in the fixes, so network delay does not throw away good reports.

(d) Accept when 125(1.2) Δt+150≥200125(1.2)\,\Delta t+150\ge200, that is 150 Δt≥50150\,\Delta t\ge50, so Δt≥13 s≈0.333 s\Delta t\ge\boxed{\tfrac13\text{ s}\approx0.333\text{ s}}. The robot’s own gap is capped at 0.060.06 s, so only the tracker’s gap can be that long, and on the 0.040.04 s tick clock the first gap that works is 0.360.36 s, nine ticks (eight ticks, 0.320.32 s, fall just short).

Back to M13.22

Spaced review answers#

1. f′(x)=23x−1/3f'(x)=\tfrac23x^{-1/3}, so f′(8)=23⋅12=13f'(8)=\tfrac23\cdot\tfrac12=\tfrac13. 2. Slowing down: vv and aa have opposite signs. 3. y=3+16(x−9)y=3+\tfrac16(x-9), the linearization of x\sqrt x at 99.

Faded example answer#

Move 4: L(x)=3+127(x−27)L(x)=3+\tfrac{1}{27}(x-27), so L(27.54)=3+0.5427=3.02L(27.54)=3+\tfrac{0.54}{27}=3.02. Move 5: f′′(x)=13⋅(−23)x−5/3=−29x−5/3f''(x)=\tfrac13\cdot\left(-\tfrac23\right)x^{-5/3}=-\tfrac29x^{-5/3}, which is negative for x>0x>0. The graph is concave down and the line lies above it, so 3.023.02 is too high; a calculator gives 27.543≈3.01987\sqrt[3]{27.54}\approx3.01987.

I. Retention and readiness#

Retrieve M08.04, M07.04, and M12.02. Explain why a derivative-zero input is only a candidate and why a tangent estimate is not a new exact formula for the original function. Advance when you can state and check all MVT hypotheses on a mixed set.