Chalk−1

Math · Calculus I · Concept

Linear approximation and differentials

Near a point a, a differentiable function is close to its tangent line, so L⁢(x) =f⁡(a)+f′(a)⁢(x−a) approximates f⁡(x) for x near a. The differential d⁢y=f′(x) d⁢x uses the same idea to estimate how much the output changes when the input changes by a small amount d⁢x.

Try one — Chalk checks each line

A concrete case

Estimate a square root by hand

A calculator gives 4.1≈2.024846. Without one, start from a number you know. The square root of 4 is exactly 2, and near x=4 the graph of x rises with slope 1⁢/4. Moving 0.1 to the right should raise the height by about a quarter of 0.1, which is 0.025. The estimate is 2+0.025=2.025, off by only 0.00015.

The same line does worse farther from 4. At x=5 it gives 2.25 against 5≈2.2361, and at x=9 it gives 3.25 against 3.

The line through (4,2) with slope 1⁢/4 is the tangent line to y=x at x=4. Close to its point, a smooth curve and its tangent line are almost the same.

2+14⁢(0.1)=2.025
The tangent line at x=4 against x
xLine: 2+(x−4)⁢/4xError
4.012.00252.0024980.0000016
4.12.0252.0248460.00015
4.52.1252.1213200.0037
52.252.2360680.014
93.2530.25

The rule

The linearization

Let f be differentiable at a, so the tangent line at (a,f⁡(a)) exists. Written as a function of x, that line is the linearization of f at a. In its formula f⁡(a) is the height at the base point a, f′(a) is the slope there, and x−a is the distance moved from a. For x near a, f⁡(x)≈L⁢(x).

L⁢(x)=f⁡(a)+f′(a)⁢(x−a),f⁡(x)≈L⁢(x)
L⁢(x)=f⁡(a)+f′(a)⁢(x−a)f⁡(x)≈L⁢(x)

Differentials

The same idea estimates a change instead of a value. Let d⁢x be a small change in the input. The tangent line predicts the change in the output, d⁢y=f′(x) d⁢x. The actual change, written Δ⁢y=f⁡(x+d⁢x)−f⁡(x), is close to d⁢y when d⁢x is small. For x at x=4 with d⁢x=0.1, d⁢y=(1⁢/4)⁢(0.1)=0.025, and Δ⁢y=0.024846.

d⁢y=f′(x)d⁢x≈Δ⁢y

Why it works

Why the tangent line is the right line

Every line through (a,f⁡(a)) matches f at a. The tangent line also matches its slope, and that makes the error shrink faster than the step. Divide the error by the step. The result, (f⁡(x)−L⁢(x))⁢/⁢(x−a), equals a secant slope minus the tangent slope, (f⁡(x)−f⁡(a))⁢/⁢(x−a)−f′(a). The definition of the derivative sends that difference to 0 as x approaches a.

The table shows it. For x at 4, a step of 0.1 leaves an error of 0.00015, and a step of 0.01 leaves 0.0000016. The step shrank by a factor of 10 and the error by about 100. The error behaves like the square of the step, which is why a tangent line is so good up close and so poor far away.

Concavity decides the direction of the error. A graph that is concave down, bending downward like x, lies below its tangent lines, so L overestimates. A graph that is concave up lies above them, so L underestimates.

f⁡(x)−L⁢(x)x−a=f⁡(x)−f⁡(a)x−a−f′(a)→x→a0
f⁡(x)−L⁢(x)x−a=f⁡(x)−f⁡(a)x−a−f′(a)→x→a0

The method

The method in six steps

The table estimates e0.1, whose graph bends the other way from x, one step to a row.

For a differential, steps 2 to 5 shrink to one line. Write d⁢y=f′(x) d⁢x, then put in the measured x and the small change d⁢x.

e0.1≈1+0.1=1.1
Estimating e0.1 with a tangent line
StepWhat to doFor e0.1
1Pick a near x where f⁡(a) and f′(a) are exactf⁡(x) =ex and a=0, since e0=1
2Find f⁡(a)f⁡(0)=1
3Find f′(a)f′(x) =ex, so f′(0) =1
4Write L⁢(x) =f⁡(a)+f′(a)⁢(x−a)L⁢(x) =1+x
5Evaluate L at the x you needL⁢(0.1) =1.1
6Say whether it is high or low, and write ≈ex is concave up, so 1.1 is low (e0.1≈1.10517)

Where it breaks

Where it breaks

The estimate is only good near a. The tangent to x at 4 gives 3.25 for 9, which is 3. Pick a base point close to the x you need, even if its arithmetic is a little harder.

The function must be differentiable at a. The cube root x3 has a vertical tangent at 0, so it has no linearization there. The absolute value ∣⁢x⁢∣ has a corner at 0 and no tangent at all.

Angles must be in radians. The derivative of sinx is cosx only when x is in radians. To estimate sin31⁢° from sin30⁢°=1⁢/2, the step is d⁢x=π⁢/180, not 1. The estimate is then 1⁢/2+cos(π⁢/6)⋅π⁢/180 ≈0.5151, close to sin31⁢°≈0.5150. A step of 1 would give about 1.37, which no sine can reach.

The differential d⁢y is not the actual change Δ⁢y. It is the change along the tangent line. When a sphere’s radius grows from 10 cm to 10.1 cm, d⁢V predicts 125.7 cm3 and the volume actually grows by 126.9 cm3.

sin31∘≈12+cos(π6)⋅π180≈0.5151
sin31∘≈12+cos(π6)⋅π180≈0.5151

Check your answer

Check your answer

A tangent-line estimate comes with a direction and a size of error, and both can be tested.

Undo the operation. Square the estimate of a square root, 2.0252=4.100625, a little more than 4.1. The estimate is a little high, as concavity predicted.

Match the concavity. The function x is concave down, so tangent-line estimates of it must come out high. An estimate on the wrong side of the true value points to a slip.

Halve the step. Halving x−a should cut the error to about a quarter. At x=4.05 the line gives 2.0125 against 2.012461, an error of 0.000039, a quarter of the 0.00015 at 4.1.

To have Chalk check the work, write f⁡(x)=… on the first row of a Math box, then f′(x), f′(a), L⁢(x) and L at your point on rows below. A wrong slope such as f′(4)=1⁢/2 reads ✗ with “That isn’t f′(4). Recheck the substitution.” With f′(x) written above it, the row L⁢(x)=… is checked against f. It reads ✓ for the tangent line at your point and ✗ when the slope or the height is wrong. Without an f′ row it is only a definition, marked •.

For a differential, write the formula, then d⁢V=…, then the measurement and its error on rows of their own, such as r=10 and d⁢r=0.1. The substituted row below them reads ✓.

The tangent line to sinx at 0 is y=x. Does it overestimate or underestimate sin0.1 and sin(−0.1)?

It overestimates sin0.1≈0.0998 and underestimates sin(−0.1)≈−0.0998. The second derivative, −sinx, is negative on (0,π) and positive on (−π,0). The graph bends below the line on one side and above it on the other, because 0 is an inflection point. One concavity rule for both sides gets one of them wrong.

The size of the error, and what comes next

The error has a formula of its own. Near a, f⁡(x)−L⁢(x) is close to (1⁢/2)f′⁢′(a)⁢(x−a)2. For x, f′⁢′(x)=−1⁢/⁢(4x3⁢/2), so f′⁢′(4)=−1⁢/32. With x−a=0.1 that predicts an error of −0.000156, and the actual error is −0.000154.

Adding that term to L gives a parabola that matches the value, the slope and the bending at a, and a better estimate. Taylor polynomials continue the pattern with higher derivatives. Newton’s method uses the same tangent line the other way round, solving L⁢(x)=0 to move toward a root of f.

f⁡(x)−L⁢(x)≈12f′′(a)⁢(x−a)2

Common mistakes

  • Choosing a base point far from x. The tangent to x at 4 estimates 9 as 3.25, not 3. Choose the nearest point where f⁡(a) and f′(a) are exact.
  • Mixing up d⁢x and d⁢y. The input’s change is d⁢x, and d⁢y=f′(x) d⁢x is the predicted change in the output. For a sphere, d⁢r is the radius error and d⁢V the volume error.
  • Using degrees with a trigonometric function. The derivative of sinx is cosx only in radians, so a step of 1⁢° is d⁢x=π⁢/180, not 1.
  • Writing the estimate with an equals sign. Write 4.1≈2.025, not 4.1=2.025, because the true value is 2.024846 to six places.
  • Putting f′(x) in L where f′(a) belongs. The slope in L⁢(x) is the number f′(4)=1⁢/4, not the expression 1⁢/⁢(2x), so that L is a straight line.

Key terms

Linearization
The tangent-line function L⁢(x) =f⁡(a)+f′(a)⁢(x−a), which approximates f⁡(x) for x near a.
Differential
For y=f⁡(x), the differential d⁢y=f′(x) d⁢x is the change in y predicted by the tangent line when x changes by d⁢x. For small d⁢x it approximates the true change Δ⁢y.
Tangent line
The line that matches a curve’s direction at a point, with slope equal to the derivative there. It can cross the curve elsewhere. In trigonometry, “tangent” also names tanθ=sinθ⁢/cosθ.
Derivative
The instantaneous rate of change of a function: the limit of the average rate of change as the step shrinks to zero, when that limit exists. On a graph it is the slope of the tangent line.

Work through an example

Use a linear approximation to estimate 4.1.

Estimate a square root with a tangent line →

Estimate an error with differentials →

Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Graph x and its tangent line in Graph Check each step in Math Take one step toward 4.1 in Newton’s Method Study the 4 key terms Open worked example on a board Linearization in Math Reference

Your existing work stays on this device. Examples open as editable copies.