Differential Calculus for Social Science 201-103 • CEGEP, Montreal

Corrected exercises: differentials and linear approximation (201-103)

These ten corrected exercises are about the differential, that is, the derivative used to ESTIMATE a change rather than to describe it. It is the tool behind every sentence that begins with “at the current rate” and every sentence that ends with “give or take”.

Exercise 0.1 opens the set with ten direct calculations, as in textbook drill lists: three differentials dy=f′(a) dxdy=f'(a)\,dx, four estimates by linear approximation, of 63\sqrt{63}, 283\sqrt[3]{28}, 14.02\frac{1}{4.02} and (1.98)5(1.98)^{5}, then the propagation of relative errors through a power, a product and a quotient, each with a value to find and checked as you type it.

The thread of the set fits in one sentence: linear approximation follows the TANGENT while reality follows the CURVE, and the gap between the two grows like the square of the step. Knowing by how much you are wrong, and in which direction, is worth as much as the estimate itself.

Three pitfalls are named outright: believing that the differential is the actual change, subtracting relative uncertainties instead of adding them, and putting the measurement effort on the biggest quantity rather than on the least well known one.

11 corrected exercises • 110 points • 150 minutes

This chapter is part of 201-103, every chapter with its set and sheet Before you start Revision sheet: the traps and the method for this chapter

Self-checking set Type your answers and check them question by question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points, and your right answers stay filled in when you come back.

Course recap

  • • dy=f′(a) dxdy=f'(a)\,dx is the change along the TANGENT; Δy=f(a+dx)−f(a)\Delta y=f(a+dx)-f(a) is the change along the CURVE.
  • • LINEARIZATION: L(x)=f(a)+f′(a)(x−a)L(x)=f(a)+f'(a)(x-a). It is the equation of the tangent line, and nothing else.
  • • The linearization error is approximately 12 ∣f′′(a)∣ (Δx)2\dfrac{1}{2}\,|f''(a)|\,(\Delta x)^{2}: it grows like the SQUARE of the step.
  • • f′′>0f''>0 puts the tangent BELOW the curve, so dydy underestimates. f′′<0f''<0 puts it above, so dydy overestimates.
  • • A linearization sees no maximum, no ceiling and no turning point: curvature is exactly what it ignores.
  • • RELATIVE ERRORS: dRR=dpp+dqq\dfrac{dR}{R}=\dfrac{dp}{p}+\dfrac{dq}{q} for a product, and a power MULTIPLIES the error by its exponent.
  • • For a QUOTIENT, rates of change subtract but UNCERTAINTIES add in absolute value: the worst case never cancels out.
  • • Margin on a rate UA\dfrac{U}{A}: ∣du∣≤∣dU∣A+U ∣dA∣A2|du|\le\dfrac{|dU|}{A}+\dfrac{U\,|dA|}{A^{2}}.
  • • Never comment on a change smaller than the margin of error, and every published rate goes with its margin.
  • • Relative sensitivity of an investment: V′V=−n1+r\dfrac{V'}{V}=\dfrac{-n}{1+r} for V=K(1+r)nV=\dfrac{K}{(1+r)^{n}}, where nn is the term.
  • • Inverse problem: to reach a given precision on a product, the SUM of the relative precisions, weighted by the exponents, must stay under the target.
  • • The measurement effort goes to the variable whose exponent times relative precision is the largest, never to the one whose value is the largest.
  • • Real wage W=100 SIW=\dfrac{100\,S}{I}: W′W=S′S−I′I\dfrac{W'}{W}=\dfrac{S'}{S}-\dfrac{I'}{I}. A nominal raise below inflation is a cut.

Calculations: differentials and estimates to compute

Exercise 0.1: Computing a differential and estimating with the tangent: ten direct calculations

In lines a) to c), compute the differential dy=f′(a) dxdy=f'(a)\,dx at the given point and for the given change. In lines d) to g), estimate the requested number by linear approximation L(a+dx)=f(a)+f′(a) dxL(a+dx)=f(a)+f'(a)\,dx, WITHOUT using the corresponding calculator key. In lines h) to j), give the maximum relative error on yy, as a percentage.

One method only: choose the function ff and the point aa where everything can be computed in your head, a perfect square or cube; compute f(a)f(a) and f′(a)f'(a); multiply f′(a)f'(a) by the change dxdx, with its sign. For a relative error, write dyy\frac{dy}{y} from the differential: an exponent multiplies the relative error, and in the worst case relative errors ADD UP, for a product as for a quotient.

  • a) y=x3−2xy=x^{3}-2x, at a=2a=2, with dx=0.5dx=0.5: dydy.
  • b) y=6xy=6\sqrt{x}, at a=36a=36, with dx=3dx=3: dydy.
  • c) y=200xy=\frac{200}{x}, at a=20a=20, with dx=−0.4dx=-0.4: dydy.
  • d) Estimate 63\sqrt{63}.
  • e) Estimate 283\sqrt[3]{28}.
  • f) Estimate 14.02\frac{1}{4.02}.
  • g) Estimate (1.98)5(1.98)^{5}.
  • h) y=x3y=x^{3}, with xx known to within 2 %; then y=1xy=\frac{1}{\sqrt{x}}, with xx known to within 4 %.
  • i) y=uv2y=uv^{2}, with uu known to within 0.80.8 % and vv to within 1.21.2 %.
  • j) y=uvy=\frac{u}{v}, with uu known to within 2 % and vv to within 0.60.6 %.

Type your answers, the page tells you right or wrong 0/11

a)
b)
c)
d)
e)
f)
g)
h)
i)
j)
Show the solution

Answers

  • a) dy=(3a2−2) dxdy=(3a^{2}-2)\,dx; dy=5dy=5
  • b) dy=3a dxdy=\frac{3}{\sqrt{a}}\,dx; dy=1.5dy=1.5
  • c) dy=−200a2 dxdy=-\frac{200}{a^{2}}\,dx; dy=0.2dy=0.2
  • d) 63≈8−116\sqrt{63}\approx 8-\frac{1}{16}; 7.93757.9375
  • e) 283≈3+127\sqrt[3]{28}\approx 3+\frac{1}{27}; 3.03703.0370
  • f) 14.02≈14−0.0216\frac{1}{4.02}\approx\frac{1}{4}-\frac{0.02}{16}; 0.248750.24875
  • g) (1.98)5≈32−80×0.02(1.98)^{5}\approx 32-80\times 0.02; 30.430.4
  • h) dyy=ndxx\frac{dy}{y}=n\frac{dx}{x}; 66 % and 22 %
  • i) dyy=duu+2dvv\frac{dy}{y}=\frac{du}{u}+2\frac{dv}{v}; 3.23.2 %
  • j) ∣dyy∣≤∣duu∣+∣dvv∣\left|\frac{dy}{y}\right|\le\left|\frac{du}{u}\right|+\left|\frac{dv}{v}\right|; 2.62.6 %

The move that decides everything: the differential follows the TANGENT, so everything is computed at the starting point aa, never at the arrival point. Take f′(a)f'(a), multiply it by the change, and never evaluate ff anywhere but at aa.

a)

f′(x)=3x2−2f'(x)=3x^{2}-2, so f′(2)=10f'(2)=10 and dy=10×0.5=5dy=10\times 0.5=5. Pitfall: confusing dydy with the actual change, Δy=f(2.5)−f(2)=10.625−4=6.625\Delta y=f(2.5)-f(2)=10.625-4=6.625; the differential is only an estimate of it.

b)

f′(x)=62x=3xf'(x)=\frac{6}{2\sqrt{x}}=\frac{3}{\sqrt{x}}, so f′(36)=36=0.5f'(36)=\frac{3}{6}=0.5 and dy=0.5×3=1.5dy=0.5\times 3=1.5.

c)

f′(x)=−200x2f'(x)=-\frac{200}{x^{2}}, so f′(20)=−200400=−0.5f'(20)=-\frac{200}{400}=-0.5 and dy=−0.5×(−0.4)=0.2dy=-0.5\times(-0.4)=0.2. Pitfall: the sign. xx DECREASES and 200x\frac{200}{x} is decreasing, so yy INCREASES: dydy is positive.

d)

f(x)=xf(x)=\sqrt{x}, a=64a=64, dx=−1dx=-1: f′(64)=12×8=116f'(64)=\frac{1}{2\times 8}=\frac{1}{16}, so 63≈8−116=7.9375\sqrt{63}\approx 8-\frac{1}{16}=7.9375. The calculator gives 7.93737.9373: the estimate is too high by two ten-thousandths, because the tangent lies above a concave curve. Pitfall: starting from 4949, much farther away, which gives 7+1414=87+\frac{14}{14}=8.

e)

f(x)=x3f(x)=\sqrt[3]{x}, a=27a=27, dx=1dx=1: f′(x)=13x23f'(x)=\frac{1}{3\sqrt[3]{x^{2}}}, so f′(27)=13×9=127f'(27)=\frac{1}{3\times 9}=\frac{1}{27} and 283≈3+127≈3.0370\sqrt[3]{28}\approx 3+\frac{1}{27}\approx 3.0370. The calculator gives 3.03663.0366.

f)

f(x)=1xf(x)=\frac{1}{x}, a=4a=4, dx=0.02dx=0.02: f′(4)=−116f'(4)=-\frac{1}{16}, so 14.02≈0.25−0.0216=0.25−0.00125=0.24875\frac{1}{4.02}\approx 0.25-\frac{0.02}{16}=0.25-0.00125=0.24875. Pitfall: forgetting the minus sign in the derivative of 1x\frac{1}{x} and ADDING 0.001250.00125, when dividing by a larger number gives less.

g)

f(x)=x5f(x)=x^{5}, a=2a=2, dx=−0.02dx=-0.02: f′(2)=5×24=80f'(2)=5\times 2^{4}=80, so (1.98)5≈32+80×(−0.02)=32−1.6=30.4(1.98)^{5}\approx 32+80\times(-0.02)=32-1.6=30.4. The exact value is 30.431630.4316: the gap comes from the curvature, which stays small because dxdx is small.

h)

For y=xny=x^{n}, dy=nxn−1dxdy=nx^{n-1}dx, so dyy=n dxx\frac{dy}{y}=n\,\frac{dx}{x}: the exponent multiplies the relative error. For y=x3y=x^{3}: 3×2=63\times 2=6 %. For y=x−12y=x^{-\frac{1}{2}}: ∣−12∣×4=2\left|-\frac{1}{2}\right|\times 4=2 %. Pitfall: keeping the sign of the exponent, when a margin of error is expressed in absolute value.

i)

ln⁡y=ln⁡u+2ln⁡v\ln y=\ln u+2\ln v, so dyy=duu+2dvv\frac{dy}{y}=\frac{du}{u}+2\frac{dv}{v}. In the worst case: 0.8+2×1.2=3.20.8+2\times 1.2=3.2 %. Pitfall: forgetting the exponent of vv and finding 22 %.

j)

dyy=duu−dvv\frac{dy}{y}=\frac{du}{u}-\frac{dv}{v}. In the worst case the two errors work in opposite directions, so the margin is 2+0.6=2.62+0.6=2.6 %. Pitfall: subtracting the margins and announcing 1.41.4 %, which assumes that the two errors always cancel out.

Check: for an estimate, the calculator gives the true value, which must be VERY close without being equal; if the gap exceeds a few thousandths, the starting point or the sign of dxdx is wrong. For a relative error, recompute yy with each datum pushed to its margin in the unfavourable direction: the relative gap you get is very close to the announced margin.

Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.

Part A: the basics (/50)

Exercise 1: The differential and the actual change

The derivative says how fast a quantity changes; the DIFFERENTIAL uses it to estimate by how much the quantity will change. The two notions are the same, written differently, and the whole point is to know by how much the estimate is wrong.

The number of users served by a program is U(b)=140bU(b)=140\sqrt{b}, where bb is the budget in thousands of dollars. The current budget is 900 thousand dollars.

60065070075080085090095010001050110011501200300032003400360038004000420044004600480050005200users served U(b)tangent at b = 900b, budget in thousands of dollars
  • a) Compute U(900)U(900) and U′(900)U'(900).
  • b) The budget goes from 900 to 940. Compute the differential dU=U′(900) dbdU=U'(900)\,db and the actual change ΔU\Delta U.
  • c) Give the error, in absolute value and as a percentage of ΔU\Delta U.
  • d) Repeat for a budget raised to 1,000. By what factor is the error multiplied?
  • e) Does the differential overestimate or underestimate? Answer with a property of the curve.

Type your answers, the page tells you right or wrong 0/10

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) U(900)=4,200U(900)=4{,}200 users and U′(900)=73≈2.333U'(900)=\dfrac{7}{3}\approx 2.333 users per thousand dollars.
  • b) dU≈93.33dU\approx 93.33 against ΔU≈92.32\Delta U\approx 92.32 users.
  • c) Error of 1.011.01 users, about 1.11.1 % of the actual change.
  • d) Error of 6.146.14 users, six times larger: it grows like the square of the step.
  • e) It overestimates: U′′<0U''<0, so the curve is below its tangent.
a)

U(900)=140900=140×30=4,200U(900)=140\sqrt{900}=140\times 30=4{,}200 users. Writing U(b)=140 b1/2U(b)=140\,b^{1/2}: U′(b)=70 b−1/2=70bU'(b)=70\,b^{-1/2}=\dfrac{70}{\sqrt{b}}, so U′(900)=7030≈2.333U'(900)=\dfrac{70}{30}\approx 2.333 users per thousand dollars.

b)

With db=40db=40: dU=2.333×40≈93.33dU=2.333\times 40\approx 93.33 users. The actual change is ΔU=U(940)−U(900)=140940−4,200=140×30.659 4−4,200≈4,292.32−4,200=92.32\Delta U=U(940)-U(900)=140\sqrt{940}-4{,}200=140\times 30.659\,4-4{,}200\approx 4{,}292.32-4{,}200=92.32 users. The differential is the change along the TANGENT, the actual change is the change along the CURVE; the figure shows the gap between the two.

c)

The error is 93.33−92.32≈1.0193.33-92.32\approx 1.01 users, about 1.11.1 % of the actual change. On a budget decision, being off by one user out of ninety-two is perfectly acceptable: this is what justifies using the differential rather than the exact calculation.

d)

With db=100db=100: dU=2.333×100≈233.33dU=2.333\times 100\approx 233.33, whereas ΔU=1401,000−4,200≈4,427.19−4,200=227.19\Delta U=140\sqrt{1{,}000}-4{,}200\approx 4{,}427.19-4{,}200=227.19. The error rises to 6.146.14 users, about six times the previous error for a step only two and a half times larger. This is no coincidence: the error of linear approximation grows like the SQUARE of the step, and 2.52=6.252.5^{2}=6.25, which fits.

e)

It OVERESTIMATES, in both cases. The reason is concavity: U′′(b)=−35 b−3/2<0U''(b)=-35\,b^{-3/2}<0, so the curve is concave down and lies BELOW its tangent. The general rule is easy to remember and holds for the whole chapter: if f′′<0f''<0, the tangent lies above and the differential overestimates; if f′′>0f''>0, the tangent lies below and the differential underestimates. For a budget, this means the linear estimate is always a little optimistic about the number of users gained.

Exercise 2: Linear approximation: predicting without recomputing

A LINEARIZATION replaces a function by its tangent around a point. This is what every report does when it writes “at the current rate”, and it is valid on a small interval only.

We return to the adjusted graduation rate from chapter 3: D(t)=71.2+t−0.05t2D(t)=71.2+t-0.05t^{2}, in percent, tt years after 2014.

2468101214167071727374757677787980D(t)t, years since 2014D(t), in %
  • a) Write the linearization L(t)L(t) of DD around t=8t=8.
  • b) Estimate D(9)D(9) by L(9)L(9), compare with the exact value and give the error.
  • c) Estimate D(12)D(12) by L(12)L(12), compare, and give the error.
  • d) Explain why the error is sixteen times larger in c) than in b).
  • e) The true maximum of DD is at t=10t=10. Can the linearization predict it? Justify.

Type your answers, the page tells you right or wrong 0/11

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) L(t)=76+0.2 (t−8)L(t)=76+0.2\,(t-8).
  • b) L(9)=76.2L(9)=76.2 against D(9)=76.15D(9)=76.15: error of 0.050.05 points.
  • c) L(12)=76.8L(12)=76.8 against D(12)=76.0D(12)=76.0: error of 0.800.80 points.
  • d) The step is multiplied by 4, so the error by 42=164^{2}=16.
  • e) No: a line ignores curvature, so it sees no maximum and no ceiling.
a)

D(8)=71.2+8−0.05×64=71.2+8−3.2=76.0D(8)=71.2+8-0.05\times 64=71.2+8-3.2=76.0 and D′(t)=1−0.1tD'(t)=1-0.1t, so D′(8)=0.2D'(8)=0.2. The linearization is L(t)=D(8)+D′(8)(t−8)=76+0.2 (t−8)L(t)=D(8)+D'(8)(t-8)=76+0.2\,(t-8). It is exactly the equation of the tangent line, and it is the phrase “at the current rate of 0.20.2 points per year” written in symbols.

b)

L(9)=76+0.2=76.2L(9)=76+0.2=76.2 %. The exact value is D(9)=71.2+9−0.05×81=71.2+9−4.05=76.15D(9)=71.2+9-0.05\times 81=71.2+9-4.05=76.15 %. The error is 0.050.05 points, negligible next to the precision of a graduation statistic.

c)

L(12)=76+0.2×4=76.8L(12)=76+0.2\times 4=76.8 %. The exact value is D(12)=71.2+12−0.05×144=71.2+12−7.2=76.0D(12)=71.2+12-0.05\times 144=71.2+12-7.2=76.0 %. The error is 0.80.8 points, sixteen times larger, and this time it is of the same order as the changes you are trying to measure: the forecast is unusable.

d)

Because the error of a linear approximation grows like the SQUARE of the step. Here the step goes from 1 to 4 years, so the error is multiplied by 42=164^{2}=16. You can check this exactly on a parabola: the gap between DD and its tangent at 8 is −0.05 (t−8)2-0.05\,(t-8)^{2}, that is −0.05-0.05 for t=9t=9 and −0.80-0.80 for t=12t=12. For a quadratic function, the linearization error is therefore known in advance, which is not the case in general.

e)

No, never. A line of slope 0.20.2 is strictly increasing, so LL has no maximum and no change of direction: it predicts a graduation rate that rises forever, which is wrong as early as t=10t=10 and absurd well beyond, since it passes 79 % at t=24t=24 and would eventually exceed 100 %. A linearization cannot see what CURVATURE carries, that is, no maximum, no ceiling and no turning point. That is the price of its simplicity, and it is why any sentence of the type “at the current rate, in fifteen years” must be read as an extrapolation, like those of the first chapter.

2468101214167071727374757677787980D(t)gap 0.8L(t)t, years since 2014D(t), in %

Exercise 3: Relative errors that add up

A social science datum is never exact: it is known to within a few percent. When you combine it with another, the uncertainties do not cancel, they add up, and the differential says exactly how.

The rule is the same as for the relative rates of chapter 5, applied to an error instead of a speed.

  • a) For R=pqR=pq, write dRR\dfrac{dR}{R} in terms of dpp\dfrac{dp}{p} and dqq\dfrac{dq}{q}, and give the worst-case margin if pp is known to within 1.51.5 % and qq to within 2.52.5 %.
  • b) For an income per capita YP\dfrac{Y}{P}, with YY known to within 1 % and PP to within 0.50.5 %, give the worst-case margin.
  • c) An area is estimated by A=πr2A=\pi r^{2} from a radius known to within 3 %. What is the margin on AA?
  • d) Redo a) with p=24p=24 dollars and q=540q=540 units: give RR and its absolute margin, to the dollar.
  • e) For a quotient, do the relative errors subtract? Answer precisely.

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) dRR=dpp+dqq\dfrac{dR}{R}=\dfrac{dp}{p}+\dfrac{dq}{q}, so at worst 44 %.
  • b) At worst 1.51.5 %.
  • c) dAA=2drr\dfrac{dA}{A}=2\dfrac{dr}{r}, so 66 %.
  • d) R=12,960R=12{,}960 dollars, give or take about 518518 dollars.
  • e) No: rates of change subtract, uncertainties add in absolute value.
a)

By logarithmic differentiation, dRR=dpp+dqq\dfrac{dR}{R}=\dfrac{dp}{p}+\dfrac{dq}{q}. Since the two errors can have any sign, the WORST CASE adds their absolute values: ∣dRR∣≤1.5+2.5=4\left|\dfrac{dR}{R}\right|\le 1.5+2.5=4 %. Read “at worst” and not “on average”: if the two errors have opposite signs they partly cancel, but you cannot count on it.

b)

d(Y/P)Y/P=dYY−dPP\dfrac{d(Y/P)}{Y/P}=\dfrac{dY}{Y}-\dfrac{dP}{P}, and the worst case again adds the absolute values: 1+0.5=1.51+0.5=1.5 %. The minus sign in the formula does not shrink the margin, because a negative error on PP combined with a positive error on YY produces precisely the accumulation.

c)

dAA=2 drr\dfrac{dA}{A}=2\,\dfrac{dr}{r}, the exponent 2 coming out through logarithmic differentiation. The margin is therefore 2×3=62\times 3=6 %. A power MULTIPLIES the relative error by its exponent, which is why you never measure an area or a volume by measuring a length alone when you can do otherwise.

d)

R=24×540=12,960R=24\times 540=12{,}960 dollars, and the margin is 44 % of that amount, that is 0.04×12,960≈5180.04\times 12{,}960\approx 518 dollars. You would therefore write “12,96012{,}960 dollars, give or take 518518 dollars”, and take care not to comment on a 200 dollar gap from one month to the next.

e)

No. It is the RATES OF CHANGE that subtract, because they have a known sign; the UNCERTAINTIES have no sign, so their absolute values add. The difference is fundamental and fits in one sentence: for a speed, x′x−y′y\dfrac{x'}{x}-\dfrac{y'}{y}; for an uncertainty, ∣dxx∣+∣dyy∣\left|\dfrac{dx}{x}\right|+\left|\dfrac{dy}{y}\right|. Confusing the two leads you to announce a precision you do not have, which is the most serious fault of a quantitative report.

Exercise 4: The value of a bond and its sensitivity to the interest rate

A fixed-income investment that pays 1,000 dollars in five years is worth less than 1,000 dollars today, and its value depends on the interest rate. The differential measures exactly how much it moves when the rate moves.

The present value is V(r)=1,000(1+r)5V(r)=\dfrac{1{,}000}{(1+r)^{5}} dollars, where rr is the annual rate. Today r=4r=4 %. The figure below shows the situation.

0.010.020.030.040.050.060.070.080.090.16006507007508008509009501000V(r)r, annual rateV(r), in dollars
  • a) Compute V(0.04)V(0.04) to the nearest cent.
  • b) Compute V′(r)V'(r) and evaluate it at r=0.04r=0.04.
  • c) The central bank raises its rate by 0.250.25 points. Estimate the change in VV using the differential, then compare with the exact value.
  • d) Compute the RELATIVE sensitivity V′(r)V(r)\dfrac{V'(r)}{V(r)} and express as a percentage the effect of a rise of 0.250.25 points.
  • e) Explain in one sentence why the value of a bond falls when rates rise.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) V(0.04)≈821.93V(0.04)\approx 821.93 dollars.
  • b) V′(r)=−5,000(1+r)6V'(r)=\dfrac{-5{,}000}{(1+r)^{6}}, so V′(0.04)≈−3,951.6V'(0.04)\approx -3{,}951.6 dollars.
  • c) dV≈−9.88dV\approx -9.88 dollars against −9.81-9.81 dollars in reality.
  • d) V′V=−51+r≈−4.808\dfrac{V'}{V}=\dfrac{-5}{1+r}\approx -4.808, that is −1.20-1.20 % for +0.25+0.25 points.
  • e) The promised amount is fixed: if rates rise, that amount can be obtained by investing less today.
a)

(1.04)5≈1.216 653(1.04)^{5}\approx 1.216\,653, so V(0.04)=1,0001.216 653≈821.93V(0.04)=\dfrac{1{,}000}{1.216\,653}\approx 821.93 dollars.

b)

Write V(r)=1,000 (1+r)−5V(r)=1{,}000\,(1+r)^{-5}, so V′(r)=−5,000 (1+r)−6=−5,000(1+r)6V'(r)=-5{,}000\,(1+r)^{-6}=\dfrac{-5{,}000}{(1+r)^{6}}. At r=0.04r=0.04: (1.04)6≈1.265 319(1.04)^{6}\approx 1.265\,319, so V′(0.04)≈−3,951.6V'(0.04)\approx -3{,}951.6 dollars per unit of rate. The unit is puzzling and has to be read correctly: a rise of one FULL point of rate, that is dr=0.01dr=0.01, would cost about 39.52 dollars.

c)

With dr=0.002 5dr=0.002\,5: dV=−3,951.6×0.002 5≈−9.88dV=-3{,}951.6\times 0.002\,5\approx -9.88 dollars. The exact value is V(0.042 5)=1,000(1.042 5)5≈812.12V(0.042\,5)=\dfrac{1{,}000}{(1.042\,5)^{5}}\approx 812.12 dollars, a real drop of 9.819.81 dollars. The estimate is off by 7 cents out of nearly ten dollars, which is more than enough for a trading floor as for an exam.

d)

V′(r)V(r)=−5,000 (1+r)−61,000 (1+r)−5=−51+r\dfrac{V'(r)}{V(r)}=\dfrac{-5{,}000\,(1+r)^{-6}}{1{,}000\,(1+r)^{-5}}=\dfrac{-5}{1+r}, that is −51.04≈−4.808\dfrac{-5}{1.04}\approx -4.808 per unit of rate. For dr=0.002 5dr=0.002\,5: −4.808×0.002 5≈−0.012 02-4.808\times 0.002\,5\approx -0.012\,02, that is −1.20-1.20 %. This agrees with −0.012 02×821.93≈−9.88-0.012\,02\times 821.93\approx -9.88 dollars. The number 5 that appears in the numerator is the TERM of the investment: the farther away the maturity, the more sensitive the value is to the rate, which portfolio managers call duration.

e)

Because a bond already issued promises a FIXED amount: if rates rise, the same amount can now be obtained by investing less money today, so the right to that amount is worth less. Present value and rate always move in opposite directions, and the calculation says so through the negative sign of V′V', without any financial interpretation being needed.

Exercise 5: When linear approximation turns bad

A linearization is not wrong, it is LOCAL. The only place where it goes badly wrong is where the curvature is strong, and the queueing model of chapter 2 gives the extreme case.

Return to W(ρ)=ρ1−ρW(\rho)=\dfrac{\rho}{1-\rho}, the waiting time in service times, and linearize around ρ=0.80\rho=0.80.

0.50.550.60.650.70.750.80.850.90.9512468101214161820W(ρ)ρ, utilization rateW, in service times
  • a) Compute W(0.80)W(0.80) and W′(0.80)W'(0.80), then write the linearization L(ρ)L(\rho).
  • b) Estimate W(0.85)W(0.85) by LL, compare with the exact value and give the relative error.
  • c) Repeat for ρ=0.90\rho=0.90, then ρ=0.95\rho=0.95.
  • d) Compute W′′(0.80)W''(0.80) and say what this number foretells.
  • e) A manager forecasts the wait at 95 % utilization “at the current rate”. By how much is the forecast off, and in which direction?

Type your answers, the page tells you right or wrong 0/10

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) W(0.80)=4W(0.80)=4, W′(0.80)=25W'(0.80)=25, L(ρ)=4+25(ρ−0.80)L(\rho)=4+25(\rho-0.80).
  • b) 5.255.25 against 5.675.67: error of about 7.47.4 %.
  • c) 6.56.5 against 99, then 7.757.75 against 1919: error of 2828 % then 5959 %.
  • d) W′′(0.80)=250W''(0.80)=250: the curvature is huge, so the approximation degrades fast.
  • e) By more than eleven service times, on the LOW side: W′′>0W''>0, the curve lies above its tangent.
a)

W(0.80)=0.800.20=4W(0.80)=\dfrac{0.80}{0.20}=4 service times. W′(ρ)=1(1−ρ)2W'(\rho)=\dfrac{1}{(1-\rho)^{2}}, so W′(0.80)=10.04=25W'(0.80)=\dfrac{1}{0.04}=25. The linearization is L(ρ)=4+25 (ρ−0.80)L(\rho)=4+25\,(\rho-0.80).

b)

L(0.85)=4+25×0.05=5.25L(0.85)=4+25\times 0.05=5.25, whereas W(0.85)=0.850.15≈5.667W(0.85)=\dfrac{0.85}{0.15}\approx 5.667. The error is 0.4170.417, about 7.47.4 % of the exact value. Already, over five percentage points, the approximation loses its value.

c)

L(0.90)=4+2.5=6.5L(0.90)=4+2.5=6.5 against W(0.90)=9W(0.90)=9: error of 2.52.5, that is 2828 %. L(0.95)=4+3.75=7.75L(0.95)=4+3.75=7.75 against W(0.95)=19W(0.95)=19: error of 11.2511.25, that is 5959 %. The approximation does not degrade, it collapses: it announces eight service times where there will be nineteen.

d)

W′(ρ)=(1−ρ)−2W'(\rho)=(1-\rho)^{-2}, so W′′(ρ)=2 (1−ρ)−3=2(1−ρ)3W''(\rho)=2\,(1-\rho)^{-3}=\dfrac{2}{(1-\rho)^{3}}, and W′′(0.80)=20.008=250W''(0.80)=\dfrac{2}{0.008}=250. This huge value foretells precisely what question c) finds: the linearization error is approximately 12W′′ (Δρ)2\dfrac{1}{2}W''\,(\Delta\rho)^{2}, that is 125×0.052=0.31125\times 0.05^{2}=0.31 for the first step, the right order of magnitude. For the last step, the estimate itself fails, because W′′W'' is no longer constant on the interval: we are approaching the asymptote.

e)

The forecast is 7.757.75 service times instead of 19, so it is off by more than eleven, and it errs on the LOW side: the curve is convex, W′′>0W''>0, so it lies above its tangent. This is the most dangerous direction of error for a public service, the one that reassures: the manager forecasts a queue two and a half times shorter than it will be. The rule to remember fits in one sentence: near an asymptote, any sentence beginning with “at the current rate” is wrong, and it is wrong on the optimistic side.

0.50.550.60.650.70.750.80.850.90.9512468101214161820W(ρ)19 vs 7.75L(ρ)ρ, utilization rateW, in service times

Part B: problems and reasoning (/50)

Exercise 6: Uncertainty on a rate: how far can you comment?

A published rate is a quotient of two numbers that are themselves estimated. The differential turns the uncertainties of these two numbers into a margin on the rate, and this margin decides what a report is allowed to comment on.

A survey estimates U=24,800U=24{,}800 unemployed people to within 400 and a labour force of A=412,000A=412{,}000 people to within 2,0002{,}000.

  • a) Compute the unemployment rate u=UAu=\dfrac{U}{A} as a percentage, to the thousandth.
  • b) Write dudu using the differential of a quotient, then bound ∣du∣|du| in the worst case.
  • c) Express this margin in percentage points, to the thousandth.
  • d) Chapter 5 established a drop of 0.1750.175 points over the year. Can this drop be commented on?
  • e) State the rule a quantitative report must follow before commenting on a change.

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) u≈6.019u\approx 6.019 %.
  • b) ∣du∣≤∣dU∣A+U∣dA∣A2|du|\le\dfrac{|dU|}{A}+\dfrac{U|dA|}{A^{2}}.
  • c) About 0.1260.126 points: the rate is between 5.8935.893 % and 6.1456.145 %.
  • d) No: 0.1750.175 points is of the same order as the margin of a single survey.
  • e) Never comment on a change smaller than the margin, and always publish the margin.
a)

u=24,800412,000≈0.060 194u=\dfrac{24{,}800}{412{,}000}\approx 0.060\,194, that is 6.0196.019 %.

b)

du=dU A−U dAA2=dUA−U dAA2du=\dfrac{dU\,A-U\,dA}{A^{2}}=\dfrac{dU}{A}-\dfrac{U\,dA}{A^{2}}. The two errors have unknown signs, so the worst case adds the absolute values: ∣du∣≤∣dU∣A+U ∣dA∣A2|du|\le \dfrac{|dU|}{A}+\dfrac{U\,|dA|}{A^{2}}. It is once again the rule of the chapter: for a quotient, rates of change subtract, UNCERTAINTIES add.

c)

400412,000≈0.000 971\dfrac{400}{412{,}000}\approx 0.000\,971 and 24,800×2,000412,0002=49,600,000169,744,000,000≈0.000 292\dfrac{24{,}800\times 2{,}000}{412{,}000^{2}}=\dfrac{49{,}600{,}000}{169{,}744{,}000{,}000}\approx 0.000\,292. The sum is about 0.001 2630.001\,263, that is 0.1260.126 percentage points. The rate must therefore be written 6.0196.019 % give or take 0.1260.126 points, that is, somewhere between 5.8935.893 % and 6.1456.145 %.

d)

No, or at least not as it stands. The announced drop, 0.1750.175 points, is of the same ORDER OF MAGNITUDE as the margin of a single survey, 0.1260.126 points. Now a change compares TWO surveys, each carrying its own margin: the uncertainty on the difference is therefore larger still, of the order of 0.250.25 points in the worst case. The observed drop is perfectly compatible with no change at all, and a headline about falling unemployment is not supported by the numbers.

e)

The rule fits in one sentence: never comment on a change smaller than the margin of error. It has two practical consequences. First, every published rate must come with its margin, otherwise the reader can do nothing with it. Second, a change that falls under the margin must not be called zero, which would be another unsupported claim, but NOT MEASURABLE by the survey as it was conducted. Increasing the sample size is then the only way to settle the matter, and exercise 7 shows how to set the precision to demand.

Exercise 7: Inverse problem: what precision should you demand?

The previous exercises started from the uncertainties and ended with a margin. The question in the field is the reverse: you want a given precision on the result, and you look for the precision to demand on each datum.

The budget of a program is B=c nB=c\,n, where cc is the unit cost and nn the number of beneficiaries, estimated at around 12,40012{,}400 people.

  • a) Write dBB\dfrac{dB}{B} and give the condition on the two relative precisions for BB to be known to within 1 %.
  • b) The unit cost is known to within 0.40.4 %. What relative precision is needed on nn?
  • c) Translate this precision into a number of people, to the nearest unit.
  • d) The model is actually B=c n1.2B=c\,n^{1.2}, since costs grow faster than headcount. Redo b) and c).
  • e) On which of the two data should the measurement effort be concentrated, and why?

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) dBB=dcc+dnn\dfrac{dB}{B}=\dfrac{dc}{c}+\dfrac{dn}{n}: the SUM of the relative precisions must stay under 1 %.
  • b) 0.60.6 % on the headcount.
  • c) 0.006×12,400≈740.006\times 12{,}400\approx 74 people.
  • d) 0.50.5 % and 62 people: the exponent 1.21.2 tightens the requirement.
  • e) On the one with the largest exponent, never the one with the largest value.
a)

By logarithmic differentiation, dBB=dcc+dnn\dfrac{dB}{B}=\dfrac{dc}{c}+\dfrac{dn}{n}. In the worst case, ∣dBB∣≤∣dcc∣+∣dnn∣\left|\dfrac{dB}{B}\right|\le\left|\dfrac{dc}{c}\right|+\left|\dfrac{dn}{n}\right|, so the condition is that the SUM of the two relative precisions must not exceed 1 %.

b)

∣dnn∣≤1−0.4=0.6\left|\dfrac{dn}{n}\right|\le 1-0.4=0.6 %. The precision budget, so to speak, is shared: every tenth of a point granted to the unit cost is taken away from the headcount.

c)

0.006×12,400=74.40.006\times 12{,}400=74.4, so the headcount must be known to within 74 people. This is a concrete survey constraint, which translates into a sample size or the quality of an administrative file.

d)

With the exponent 1.21.2: dBB=dcc+1.2 dnn\dfrac{dB}{B}=\dfrac{dc}{c}+1.2\,\dfrac{dn}{n}. The condition becomes 1.2∣dnn∣≤0.61.2\left|\dfrac{dn}{n}\right|\le 0.6 %, so ∣dnn∣≤0.5\left|\dfrac{dn}{n}\right|\le 0.5 %, which makes 0.005×12,400=620.005\times 12{,}400=62 people. An exponent greater than 1 AMPLIFIES the error on the headcount, so it tightens the requirement.

e)

On the one whose COEFFICIENT is the largest in the sum of relative errors, here the headcount, which weighs 1.21.2 against 1 for the unit cost. The general rule, valid for B=cαnβB=c^{\alpha}n^{\beta}, is that the contribution of each datum to the error of the result is its exponent times its own relative precision. Note that this rule never mentions the SIZE of the quantities: whether the unit cost is 12 dollars or 12,000, it weighs in the error exactly as much as its exponent says. Concentrating the measurement effort on the big number rather than on the high exponent is the most frequent methodological mistake in a research budget.

Exercise 8: Five statements to correct

Each of these five sentences has been heard in class. Say whether it is true or false, and if it is false, write the correct statement.

A correction that merely says “false” earns no marks: the correct sentence is what is asked for.

  • a) The differential dydy is equal to the actual change Δy\Delta y.
  • b) A relative error of 2 % on each factor of a product gives a 2 % error on the product.
  • c) For a quotient, relative errors subtract.
  • d) Linear approximation is better the larger the values the function takes.
  • e) If f′′>0f''>0, the tangent lies above the curve.

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) False: dydy follows the tangent, Δy\Delta y follows the curve.
  • b) False: relative errors add up, so 4 %.
  • c) False: rates of change subtract, uncertainties add in absolute value.
  • d) False: curvature and the size of the step decide, not the size of ff.
  • e) False: f′′>0f''>0 puts the tangent BELOW the curve.
a)

FALSE. dy=f′(a) dxdy=f'(a)\,dx is the change along the TANGENT, whereas Δy=f(a+dx)−f(a)\Delta y=f(a+dx)-f(a) is the change along the CURVE. The two coincide only if ff is affine, or in the limit as dxdx tends to 0. Exercise 1 puts a number on the gap: 93.3393.33 against 92.3292.32. Correct statement: dydy APPROXIMATES Δy\Delta y, with an error that grows like the square of the step.

b)

FALSE. Relative errors ADD UP: 2+2=42+2=4 %. Exercise 3 shows it. One way to convince yourself without a formula: raising both factors by 2 % multiplies the product by 1.022=1.040 41.02^{2}=1.040\,4, so about 4 %. Correct statement: the relative error of a product is the sum of the relative errors of its factors.

c)

FALSE, and this is the subtlest confusion of the chapter. It is the RATES OF CHANGE that subtract, because they have a known sign; UNCERTAINTIES have none, so their absolute values add. Correct statement: d(x/y)x/y=dxx−dyy\dfrac{d(x/y)}{x/y}=\dfrac{dx}{x}-\dfrac{dy}{y}, but the worst-case margin is ∣dxx∣+∣dyy∣\left|\dfrac{dx}{x}\right|+\left|\dfrac{dy}{y}\right|.

d)

FALSE. The quality of the approximation depends neither on the size of ff nor on that of f′f': it depends on the CURVATURE f′′f'' and on the size of the step, the error being approximately 12∣f′′∣ (Δx)2\dfrac{1}{2}|f''|\,(\Delta x)^{2}. Exercise 5 proves it: WW is only 4 at ρ=0.80\rho=0.80, a modest value, and the approximation collapses there because W′′=250W''=250. Correct statement: linear approximation is good when the step is small compared with the scale on which the curvature varies.

e)

FALSE, it is the opposite. If f′′>0f''>0, the curve is CONVEX, so it turns upward and lies ABOVE its tangent: the differential underestimates. If f′′<0f''<0, the curve is concave and lies below: the differential overestimates. Exercise 1 illustrates the second case, with a square root, and exercise 5 the first, with the queue. Correct statement: f′′>0f''>0 puts the tangent below the curve, f′′<0f''<0 puts it above.

Exercise 9: Problem: the price index and purchasing power

The real wage is the nominal wage corrected for inflation. It is a quotient, so its rate of change is a difference, and that is where the whole debate on purchasing power is decided.

A nominal wage is S=52,000S=52{,}000 dollars and the price index is I=118.4I=118.4, base 100. The real wage is W=100 SIW=\dfrac{100\,S}{I}. The nominal wage grows by 2.82.8 % per year and the price index by 3.43.4 %.

123456789104000040500410004150042000425004300043500440004450045000W(t)t, in yearsW(t), in dollars
  • a) Compute the current real wage, to the nearest cent.
  • b) Compute the relative rate of change of WW, in percent per year, then the change in dollars in the first year.
  • c) What annual nominal raise would leave purchasing power unchanged?
  • d) Compute the exact real wage after five years, then the estimate obtained by applying the rate from b) five times. Give the gap.
  • e) Why can a 2.8 % pay raise be announced as good news and experienced as a loss?

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) W≈43,918.92W\approx 43{,}918.92 dollars.
  • b) −0.6-0.6 % per year, about −263.51-263.51 dollars in the first year.
  • c) 3.43.4 % per year, exactly inflation.
  • d) Exact 42,659.542{,}659.5 dollars, estimate 42,601.442{,}601.4 dollars, gap of about 58 dollars.
  • e) 2.82.8 % is a nominal change, −0.6-0.6 % the real change: both are true.
a)

W=100×52,000118.4=5,200,000118.4≈43,918.92W=\dfrac{100\times 52{,}000}{118.4}=\dfrac{5{,}200{,}000}{118.4}\approx 43{,}918.92 dollars. This is the wage expressed in dollars of the base year, the one when the index was 100.

b)

By the quotient rule on relative rates, W′W=S′S−I′I=2.8−3.4=−0.6\dfrac{W'}{W}=\dfrac{S'}{S}-\dfrac{I'}{I}=2.8-3.4=-0.6 % per year. The change in dollars is −0.006×43,918.92≈−263.51-0.006\times 43{,}918.92\approx -263.51 dollars in the first year. The employee earns more dollars and can buy less.

c)

You would need S′S=I′I\dfrac{S'}{S}=\dfrac{I'}{I}, so a nominal raise of 3.43.4 % per year, exactly inflation. Any smaller raise is a loss of purchasing power, which is why a wage negotiation is always compared with the index, never with zero.

d)

Exact: W(5)=43,918.92×1.02851.0345=43,918.92×1.148 061.181 96≈43,918.92×0.971 31≈42,659.5W(5)=43{,}918.92\times\dfrac{1.028^{5}}{1.034^{5}}=43{,}918.92\times\dfrac{1.148\,06}{1.181\,96}\approx 43{,}918.92\times 0.971\,31\approx 42{,}659.5 dollars, a loss of 1,259.41{,}259.4 dollars. Linear estimate: five years at −0.6-0.6 % make −3-3 %, so 43,918.92×0.97≈42,601.443{,}918.92\times 0.97\approx 42{,}601.4 dollars. The gap between the two is about 58 dollars, less than 0.20.2 %: the approximation remains very good over five years, because the rates are small and the step modest.

e)

Because the employee is comparing two different things. The announced figure, 2.82.8 %, is a NOMINAL change, measured in dollars; what shows up at the store is a REAL change, measured in goods, and it is −0.6-0.6 %. Both statements are true at the same time. The only honest question is therefore what index the raise is compared with, and this is precisely what the formula W′W=S′S−I′I\dfrac{W'}{W}=\dfrac{S'}{S}-\dfrac{I'}{I} puts in plain view: a wage is never judged alone, it is judged against a denominator.

123456789104000040500410004150042000425004300043500440004450045000W(t)43,918.92W(5) ≈ 42,659t, in yearsW(t), in dollars

Exercise 10: Problem: where to invest the measurement effort?

A research proposal has a limited budget for collecting its data. The differential says which of the variables deserves the most care, and the answer is almost never the one you expect.

The annual cost of a housing program is B=c n dB=c\,n\,d, where c=86c=86 dollars is the daily cost, n=1,240n=1{,}240 the number of beneficiaries and d=14.5d=14.5 days the average length of stay. The relative precisions are 0.50.5 % on cc, 1.21.2 % on nn and 3.53.5 % on dd.

  • a) Compute BB.
  • b) Write dBB\dfrac{dB}{B} and compute the worst-case relative margin.
  • c) Give the absolute margin, to the nearest dollar.
  • d) A survey effort would bring the precision on dd down to 1 %. What happens to the absolute margin?
  • e) Another effort would make cc perfectly known. Compare the two gains and state the rule.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) B=1,546,280B=1{,}546{,}280 dollars.
  • b) dBB=dcc+dnn+ddd\dfrac{dB}{B}=\dfrac{dc}{c}+\dfrac{dn}{n}+\dfrac{dd}{d}, so at worst 5.25.2 %.
  • c) About 80,40780{,}407 dollars.
  • d) 2.72.7 %, about 41,75041{,}750 dollars.
  • e) Only 72,67572{,}675 dollars: the effort goes to the variable with the largest relative contribution.
a)

B=86×1,240×14.5B=86\times 1{,}240\times 14.5. Compute in steps: 86×1,240=106,64086\times 1{,}240=106{,}640, then 106,640×14.5=1,546,280106{,}640\times 14.5=1{,}546{,}280 dollars.

b)

By logarithmic differentiation, dBB=dcc+dnn+ddd\dfrac{dB}{B}=\dfrac{dc}{c}+\dfrac{dn}{n}+\dfrac{dd}{d}, and the worst case adds the absolute values: 0.5+1.2+3.5=5.20.5+1.2+3.5=5.2 %. The average length of stay alone accounts for 3.53.5 of the 5.25.2 points, two thirds of the total uncertainty.

c)

0.052×1,546,280≈80,4070.052\times 1{,}546{,}280\approx 80{,}407 dollars. The budget is therefore written 1,546,2801{,}546{,}280 dollars give or take 80,40780{,}407 dollars, a range about 161,000 dollars wide.

d)

The relative margin becomes 0.5+1.2+1.0=2.70.5+1.2+1.0=2.7 %, and the absolute margin 0.027×1,546,280≈41,7500.027\times 1{,}546{,}280\approx 41{,}750 dollars. The uncertainty is almost halved, for an effort on a single variable.

e)

If cc became perfectly known, the relative margin would drop to 1.2+3.5=4.71.2+3.5=4.7 %, about 72,67572{,}675 dollars: only 7,7007{,}700 dollars of uncertainty would be gained, against nearly 38,70038{,}700 by working on the length of stay. The rule is therefore this: the measurement effort goes to the variable whose CONTRIBUTION to the relative error is the largest, that is, the product of its exponent and its relative precision, and never to the one whose numerical value is the most imposing. Here the daily cost, 86 dollars, and the headcount, 1,240 people, are very different numbers, and this difference plays no role: only the three relative precisions matter, expressed in the same unit, the percentage.

Something missing from this set? A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.

Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space. Rather not create an account? Write to me directly.

What is it about?
I read every request myself, nobody else sees it. No need to write your name or your school.
When your request is dealt with, you hear about it by email and in your space.

By sending, you agree that I read your request to answer it. It is kept with your account, erased with it, and never published: privacy policy.

Previous chapter Related rates, 201-103 Next chapter Curve sketching, 201-103

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/cegep-103-differentials-approximation. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Looking for a differential calculus tutor in Montreal?

Get in touch for a first session. Calculus in the mathematics profile is the course that opens the limited-enrolment admissions to business and economics programs, and it is won or lost in the first weeks.

Site by Studio Squalli