Topic 10

Linear Approximation & Error

Near a point (a,b)(a, b) a function is almost its tangent plane: f(x,y)≈f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)f(x,y) \approx f(a,b) + f_x(a,b)(x - a) + f_y(a,b)(y - b). Every recipe below uses that one formula, to estimate a value, a change, or the worst possible error.

4 kinds of question. Open the one you are stuck on.

1

Estimate a function value with a linear approximation

e.g. “Find an approximate value for f(0.98,2.03)f(0.98, 2.03) without using a calculator or computer”
  1. 1
    Pick a nearby base point (a,b)(a, b) where ff is easy

    Round each coordinate to a friendly value: a perfect square under a root, an exponent of 00.

  2. 2
    Compute f(a,b)f(a, b)
  3. 3
    Compute fx(a,b)f_x(a, b) and fy(a,b)f_y(a, b)

    Three variables: add fzf_z, and one more term in step 4.

  4. 4
    Write L(x,y)=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)L(x,y) = f(a,b) + f_x(a,b)(x - a) + f_y(a,b)(y - b)

    This is the tangent plane at (a,b)(a, b), solved for zz.

  5. 5
    Plug in the target point

Remember: Easy point, value, slopes, plane, plug in.

See it in a problem4 worked examples

Use a linear approximation to estimate f(2.03, 8.97)f(2.03,\ 8.97) for f(x,y)=xyf(x, y) = x\sqrt{y}.

  1. 1
    Pick a nearby base point (a,b)(a, b) where ff is easy

    (a,b)=(2,9)(a, b) = (2, 9): 99 is a perfect square.

  2. 2
    Compute f(a,b)f(a, b)

    f(2,9)=2⋅3=6f(2, 9) = 2 \cdot 3 = 6.

  3. 3
    Compute fx(a,b)f_x(a, b) and fy(a,b)f_y(a, b)

    fx=y⇒fx(2,9)=3f_x = \sqrt{y} \Rightarrow f_x(2,9) = 3.  fy=x2y⇒fy(2,9)=13\ f_y = \dfrac{x}{2\sqrt{y}} \Rightarrow f_y(2,9) = \dfrac{1}{3}.

  4. 4
    Write L(x,y)=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)L(x,y) = f(a,b) + f_x(a,b)(x - a) + f_y(a,b)(y - b)

    L(x,y)=6+3(x−2)+13(y−9)L(x,y) = 6 + 3(x - 2) + \dfrac{1}{3}(y - 9).

  5. 5
    Plug in the target point

    L(2.03,8.97)=6+3(0.03)+13(−0.03)=6+0.09−0.01=6.08L(2.03, 8.97) = 6 + 3(0.03) + \dfrac{1}{3}(-0.03) = 6 + 0.09 - 0.01 = 6.08.

Answer:

f(2.03,8.97)≈6.08f(2.03, 8.97) \approx 6.08

Common mistakes3
  • Sign of the step: going from a=1a = 1 to 0.980.98 means x−a=−0.02x - a = -0.02.
  • A base point that is not close. The error grows with the square of the step.
  • Trig in degrees. The partials assume radians, so a 1∘1^\circ step is π180\tfrac{\pi}{180}.
2

Estimate the change in a quantity using differentials

e.g. “Use the linear approximation to estimate the change in RR if R1R_1 decreases from … to … and R2R_2 increases from … to …”
  1. 1
    Write the formula and each change, with its sign

    Δx=new−old\Delta x = \text{new} - \text{old}, so a decrease is negative.

  2. 2
    Compute the partials at the starting values
  3. 3
    Write Δf≈fx Δx+fy Δy\Delta f \approx f_x\,\Delta x + f_y\,\Delta y

    One term per variable that changes. This is the df=fx dx+fy dydf = f_x\,dx + f_y\,dy.

  4. 4
    Plug in, keep the sign, add any units

Remember: Each slope times its own change, then add.

See it in a problem3 worked examples

A cone has radius r=3r = 3 cm and height h=8h = 8 cm. Estimate the change in its volume V=13πr2hV = \tfrac{1}{3}\pi r^2 h if rr increases to 3.053.05 cm and hh decreases to 7.97.9 cm.

  1. 1
    Write the formula and each change, with its sign

    V=13πr2hV = \tfrac{1}{3}\pi r^2h,  Δr=0.05\ \Delta r = 0.05,  Δh=−0.1\ \Delta h = -0.1.

  2. 2
    Compute the partials at the starting values

    Vr=23πrh=16πV_r = \tfrac{2}{3}\pi rh = 16\pi,  Vh=13πr2=3π\ V_h = \tfrac{1}{3}\pi r^2 = 3\pi.

  3. 3
    Write Δf≈fx Δx+fy Δy\Delta f \approx f_x\,\Delta x + f_y\,\Delta y

    ΔV≈16π Δr+3π Δh\Delta V \approx 16\pi\,\Delta r + 3\pi\,\Delta h.

  4. 4
    Plug in, keep the sign, add any units

    ΔV≈16π(0.05)+3π(−0.1)=0.8π−0.3π=0.5π≈1.57 cm3\Delta V \approx 16\pi(0.05) + 3\pi(-0.1) = 0.8\pi - 0.3\pi = 0.5\pi \approx 1.57\ \text{cm}^3.

Answer:

ΔV≈π2≈1.57 cm3\Delta V \approx \dfrac{\pi}{2} \approx 1.57\ \text{cm}^3 (an increase)

Common mistakes3
  • Evaluating the partials at the new values. Use the starting point.
  • Dropping a sign: a quantity that goes down has a negative Δ\Delta.
  • Answering with the new value when the question asks for the change, or the reverse. New value ≈f+Δf\approx f + \Delta f.
3

Estimate the maximum error in a calculated quantity

e.g. “… is measured to be 33 with a maximum possible error of ±0.1\pm 0.1 …”
  1. 1
    Write the formula and each measurement's maximum error

    A percent error becomes Δx=p100 x\Delta x = \tfrac{p}{100}\,x. An angle error of ±1∘\pm 1^\circ becomes π180\tfrac{\pi}{180}.

  2. 2
    Compute every partial at the measured values
  3. 3
    Add the worst cases: ∣fx∣ Δx+∣fy∣ Δy|f_x|\,\Delta x + |f_y|\,\Delta y

    Absolute values, because each error can push the way that hurts most. To compare sensitivity, compare these terms one by one.

  4. 4
    Answer in the form asked

    Percent error =100×max errorf= 100 \times \dfrac{\text{max error}}{f}, with ff at the measured values.

Remember: Absolute slopes times errors, all added.

See it in a problem4 worked examples

A cylinder's radius and height are measured as r=5±0.1r = 5 \pm 0.1 cm and h=10±0.2h = 10 \pm 0.2 cm. Estimate the maximum possible error in the computed volume V=πr2hV = \pi r^2h.

  1. 1
    Write the formula and each measurement's maximum error

    V=πr2hV = \pi r^2h,  Δr=0.1\ \Delta r = 0.1,  Δh=0.2\ \Delta h = 0.2.

  2. 2
    Compute every partial at the measured values

    Vr=2πrh=100πV_r = 2\pi rh = 100\pi,  Vh=πr2=25π\ V_h = \pi r^2 = 25\pi.

  3. 3
    Add the worst cases: ∣fx∣ Δx+∣fy∣ Δy|f_x|\,\Delta x + |f_y|\,\Delta y

    100π(0.1)+25π(0.2)=10π+5π=15π100\pi(0.1) + 25\pi(0.2) = 10\pi + 5\pi = 15\pi.

  4. 4
    Answer in the form asked

    Maximum error ≈15π≈47.1 cm3\approx 15\pi \approx 47.1\ \text{cm}^3.

Answer:

15π≈47.1 cm315\pi \approx 47.1\ \text{cm}^3

Common mistakes3
  • Letting terms cancel. The maximum error adds sizes: use ∣−0.125∣(0.4)|-0.125|(0.4), not −0.125(0.4)-0.125(0.4).
  • Leaving an angle error in degrees: ±1∘\pm 1^\circ is ±π180\pm\tfrac{\pi}{180}.
  • Giving the absolute error when the question asks for a percent, or the reverse.
4

Find the linear approximation of an implicitly defined function

e.g. “Let z=f(x,y)z = f(x,y) be given implicitly by … Use linear approximation at … to approximate …”
  1. 1
    Find z0z_0 at the base point

    Given, or plug the base point into the equation and solve. Use any sign condition to pick the root.

  2. 2
    Differentiate implicitly with respect to each independent variable

    Every zz term gets the chain rule: ∂∂xz3=3z2zx\dfrac{\partial}{\partial x}z^3 = 3z^2 z_x. Shortcut for F(x,y,z)=0F(x, y, z) = 0: zx=−FxFzz_x = -\dfrac{F_x}{F_z}, zy=−FyFzz_y = -\dfrac{F_y}{F_z}.

  3. 3
    Plug in the point and solve for zxz_x and zyz_y
  4. 4
    Write LL and plug in the target

Remember: Find the height, differentiate implicitly, then estimate as usual.

See it in a problem3 worked examples

Near (3,2)(3, 2) the equation z3+xz−y2=0z^3 + xz - y^2 = 0 defines z=f(x,y)z = f(x, y) with f(3,2)=1f(3, 2) = 1. Estimate f(2.94, 2.03)f(2.94,\ 2.03).

  1. 1
    Find z0z_0 at the base point

    z0=1z_0 = 1, given. Check: 1+3−4=01 + 3 - 4 = 0.

  2. 2
    Differentiate implicitly with respect to each independent variable

    In xx: 3z2zx+z+x zx=03z^2 z_x + z + x\,z_x = 0.  \ In yy: 3z2zy+x zy−2y=03z^2 z_y + x\,z_y - 2y = 0.

  3. 3
    Plug in the point and solve for zxz_x and zyz_y

    At (3,2,1)(3, 2, 1): 6zx+1=0⇒zx=−166z_x + 1 = 0 \Rightarrow z_x = -\tfrac{1}{6};  6zy−4=0⇒zy=23\ 6z_y - 4 = 0 \Rightarrow z_y = \tfrac{2}{3}.

  4. 4
    Write LL and plug in the target

    L=1−16(x−3)+23(y−2)L = 1 - \tfrac{1}{6}(x - 3) + \tfrac{2}{3}(y - 2), so L(2.94,2.03)=1+0.01+0.02=1.03L(2.94, 2.03) = 1 + 0.01 + 0.02 = 1.03.

Answer:

f(2.94,2.03)≈1.03f(2.94, 2.03) \approx 1.03

Common mistakes3
  • Losing a zxz_x in a product: ∂∂x(xz)=z+x zx\dfrac{\partial}{\partial x}(xz) = z + x\,z_x.
  • Picking the wrong root for z0z_0. Read the condition: "z>0z > 0", "f(−1,1)<0f(-1, 1) < 0".
  • Mixing up the roles: if x=g(y,z)x = g(y, z), then yy and zz are the .

Need the formulas? Must memorize · Flashcards

Found this helpful? Leave us a review on Google ↗Spotted a mistake?

Which topics are you reviewing?

The topic list, Flashcards, Must memorize and Exam words will only show these. Change it any time with the Topics button above the topic list.

Vectors & geometry
Partial derivatives
Optimization
Multiple integrals
11 of 20 topics selected