Linear Approximation

Using tangent lines to approximate function values

📏 Linear Approximation

What is Linear Approximation?

Linear approximation (also called linearization) uses the tangent line at a point to approximate function values nearby.

💡 Key Idea: Near a point, a smooth curve looks almost like its tangent line! We can use this to estimate values.


The Formula

The linear approximation of f(x)f(x) near x=ax = a is:

L(x)=f(a)+f(a)(xa)L(x) = f(a) + f'(a)(x - a)

This is the equation of the tangent line at (a,f(a))(a, f(a))!

Point-Slope Form Connection

Recall the tangent line equation: yf(a)=f(a)(xa)y - f(a) = f'(a)(x - a)

Solving for yy: y=f(a)+f(a)(xa)y = f(a) + f'(a)(x - a)

This is exactly L(x)L(x)!


Why It Works

Geometric Interpretation

  • The tangent line at x=ax = a has slope f(a)f'(a)
  • It passes through the point (a,f(a))(a, f(a))
  • For xx close to aa, the function f(x)f(x) is close to the tangent line L(x)L(x)

Visual: Zoom in on any smooth curve → it looks like a straight line!

The Approximation

For xx near aa: f(x)L(x)=f(a)+f(a)(xa)f(x) \approx L(x) = f(a) + f'(a)(x - a)

The closer xx is to aa, the better the approximation!


How to Find Linear Approximation

Step-by-Step Process

Step 1: Identify the function f(x)f(x) and the point aa

Step 2: Calculate f(a)f(a) (the yy-value at aa)

Step 3: Find f(x)f'(x) and calculate f(a)f'(a) (the slope at aa)

Step 4: Write the linear approximation: L(x)=f(a)+f(a)(xa)L(x) = f(a) + f'(a)(x - a)

Step 5: Use L(x)L(x) to estimate f(x)f(x) for xx near aa


Example 1: Estimating a Square Root

Use linear approximation to estimate 26\sqrt{26}.

Step 1: Choose a nearby point

25=5\sqrt{25} = 5 is easy to compute!

Let f(x)=xf(x) = \sqrt{x} and a=25a = 25

We want to estimate f(26)f(26) using a=25a = 25


Step 2: Calculate f(a)f(a)

f(25)=25=5f(25) = \sqrt{25} = 5


Step 3: Find f(a)f'(a)

f(x)=12xf'(x) = \frac{1}{2\sqrt{x}}

f(25)=1225=12(5)=110f'(25) = \frac{1}{2\sqrt{25}} = \frac{1}{2(5)} = \frac{1}{10}


Step 4: Write the linear approximation

L(x)=f(25)+f(25)(x25)L(x) = f(25) + f'(25)(x - 25)

L(x)=5+110(x25)L(x) = 5 + \frac{1}{10}(x - 25)


Step 5: Estimate 26\sqrt{26}

26L(26)=5+110(2625)\sqrt{26} \approx L(26) = 5 + \frac{1}{10}(26 - 25)

=5+110(1)=5+0.1=5.1= 5 + \frac{1}{10}(1) = 5 + 0.1 = 5.1

Answer: 265.1\sqrt{26} \approx 5.1

Check: 265.099...\sqrt{26} \approx 5.099... (calculator) → Very close! ✓


Example 2: Estimating a Trig Value

Use linear approximation to estimate sin(0.1)\sin(0.1).

Step 1: Choose a point

Use a=0a = 0 (since sin0\sin 0 is known)

Let f(x)=sinxf(x) = \sin x and a=0a = 0


Step 2: Calculate f(0)f(0)

f(0)=sin0=0f(0) = \sin 0 = 0


Step 3: Find f(0)f'(0)

f(x)=cosxf'(x) = \cos x

f(0)=cos0=1f'(0) = \cos 0 = 1


Step 4: Linear approximation

L(x)=0+1(x0)=xL(x) = 0 + 1(x - 0) = x


Step 5: Estimate

sin(0.1)L(0.1)=0.1\sin(0.1) \approx L(0.1) = 0.1

Answer: sin(0.1)0.1\sin(0.1) \approx 0.1

Check: sin(0.1)0.0998...\sin(0.1) \approx 0.0998... → Very close for small angles!

This is why sinxx\sin x \approx x for small xx (in radians)!


Differential Notation

Alternative Form

We can write the linear approximation as:

Δydy\Delta y \approx dy

where:

  • Δy=f(x)f(a)\Delta y = f(x) - f(a) (actual change)
  • dy=f(a)dxdy = f'(a) \cdot dx (approximate change)
  • dx=xadx = x - a (change in xx)

The Formula

f(x)f(a)+f(a)dxf(x) \approx f(a) + f'(a) \cdot dx

This is the same as L(x)=f(a)+f(a)(xa)L(x) = f(a) + f'(a)(x-a)!


Example 3: Using Differentials

The radius of a sphere is measured to be r=10r = 10 cm with a possible error of ±0.1\pm 0.1 cm. Estimate the maximum error in the calculated volume.

Step 1: Volume formula

V=43πr3V = \frac{4}{3}\pi r^3


Step 2: Find dVdV

dVdr=4πr2\frac{dV}{dr} = 4\pi r^2

dV=4πr2drdV = 4\pi r^2 \cdot dr


Step 3: Plug in values

r=10r = 10 cm, dr=±0.1dr = \pm 0.1 cm

dV=4π(10)2(0.1)=4π(100)(0.1)=40πdV = 4\pi (10)^2 (0.1) = 4\pi (100)(0.1) = 40\pi

dV125.7 cm3dV \approx 125.7 \text{ cm}^3

Answer: The maximum error in volume is approximately ±126\pm 126 cm³.


Step 4: Relative error

dVV=40π43π(10)3=40π4000π3=4034000=1204000=0.03\frac{dV}{V} = \frac{40\pi}{\frac{4}{3}\pi(10)^3} = \frac{40\pi}{\frac{4000\pi}{3}} = \frac{40 \cdot 3}{4000} = \frac{120}{4000} = 0.03

Relative error: 3%


When Linear Approximation Works Best

Good Approximations

Linear approximation is most accurate when:

  1. xx is very close to aa
  2. The function is smooth (no corners or discontinuities)
  3. The function doesn't curve too sharply (second derivative is small)

Poor Approximations

Linear approximation can be inaccurate when:

  1. xx is far from aa
  2. The function has high curvature (large second derivative)
  3. There are discontinuities or sharp corners

Error in Linear Approximation

The error is the difference between actual and approximate values:

E(x)=f(x)L(x)E(x) = f(x) - L(x)

Second Derivative Test

If ff'' exists, the error is related to the second derivative:

E(x)f(a)2(xa)2E(x) \approx \frac{f''(a)}{2}(x-a)^2

Key insight:

  • Error grows like (xa)2(x-a)^2 (quadratically)
  • If f|f''| is large, the error is larger
  • Error is always small when xax \approx a

Applications of Linear Approximation

Application 1: Mental Math

Estimate 101\sqrt{101}:

100=10\sqrt{100} = 10, and f(100)=12100=120f'(100) = \frac{1}{2\sqrt{100}} = \frac{1}{20}

10110+120(1)=10.05\sqrt{101} \approx 10 + \frac{1}{20}(1) = 10.05

Application 2: Physics

Small oscillations of a pendulum: sinθθ\sin \theta \approx \theta (for small angles)

This simplifies differential equations!

Application 3: Engineering

Estimating how measurement errors propagate through calculations.

Application 4: Economics

Marginal cost/revenue approximations using derivatives.


Linear vs. Quadratic Approximation

Linear (First Order)

L(x)=f(a)+f(a)(xa)L(x) = f(a) + f'(a)(x-a)

Uses tangent line (first derivative)

Quadratic (Second Order)

Q(x)=f(a)+f(a)(xa)+f(a)2(xa)2Q(x) = f(a) + f'(a)(x-a) + \frac{f''(a)}{2}(x-a)^2

Uses curvature (second derivative) → more accurate!

This leads to Taylor series (later topic)!


⚠️ Common Mistakes

Mistake 1: Using Wrong Point

Choose aa where f(a)f(a) and f(a)f'(a) are easy to compute!

Don't use a=26a = 26 to estimate 26\sqrt{26} → use a=25a = 25!

Mistake 2: Units in Error Problems

When finding dVdV, drdr, etc., keep track of units!

Mistake 3: Confusing Δy\Delta y and dydy

  • Δy\Delta y is the actual change (exact)
  • dydy is the approximate change (using derivative)
  • They're only approximately equal!

Mistake 4: Using Far-Away Points

Linear approximation only works well when xx is close to aa.

Don't use a=0a = 0 to estimate sin(1)\sin(1) → error is too large!

Mistake 5: Wrong Derivative

Make sure to calculate f(a)f'(a) correctly!


Important Approximations to Know

Small Angle Approximations (in radians!)

For xx near 0:

  • sinxx\sin x \approx x
  • cosx1\cos x \approx 1
  • tanxx\tan x \approx x

Exponential and Logarithm

For xx near 0:

  • ex1+xe^x \approx 1 + x
  • ln(1+x)x\ln(1+x) \approx x

Power Functions

For xx near 1:

  • (1+x)n1+nx(1+x)^n \approx 1 + nx (binomial approximation)

The Big Picture

From Local to Global

  • Local behavior: Linear approximation uses tangent line (local info)
  • Global behavior: To approximate over larger intervals, need more terms (Taylor series)

Foundation for Advanced Topics

Linear approximation is the first step toward:

  • Taylor series
  • Newton's method
  • Numerical analysis
  • Differential equations

📝 Practice Strategy

  1. Choose aa wisely - pick where f(a)f(a) and f(a)f'(a) are easy to compute
  2. Write the formula first: L(x)=f(a)+f(a)(xa)L(x) = f(a) + f'(a)(x-a)
  3. Calculate carefully - show each step
  4. Check your answer - does it make sense? Is it close to f(a)f(a)?
  5. For error problems, use differentials: dy=f(a)dxdy = f'(a) \cdot dx
  6. Remember: Only accurate when xx is close to aa!
  7. Memorize common approximations (sinxx\sin x \approx x, etc.)

📚 Practice Problems

1Problem 1medium

Question:

Use linear approximation to estimate (15.9)1/4(15.9)^{1/4}. Then find the actual value and calculate the error.

💡 Show Solution

Step 1: Choose a nearby point

161/4=216^{1/4} = 2 is easy to compute!

Let f(x)=x1/4f(x) = x^{1/4} and a=16a = 16


Step 2: Calculate f(16)f(16)

f(16)=161/4=2f(16) = 16^{1/4} = 2


Step 3: Find f(x)f'(x) and f(16)f'(16)

f(x)=14x3/4=14x3/4f'(x) = \frac{1}{4}x^{-3/4} = \frac{1}{4x^{3/4}}

f(16)=14(16)3/4=14(8)=132f'(16) = \frac{1}{4(16)^{3/4}} = \frac{1}{4(8)} = \frac{1}{32}


Step 4: Linear approximation

L(x)=f(16)+f(16)(x16)L(x) = f(16) + f'(16)(x - 16)

L(x)=2+132(x16)L(x) = 2 + \frac{1}{32}(x - 16)


Step 5: Estimate (15.9)1/4(15.9)^{1/4}

L(15.9)=2+132(15.916)L(15.9) = 2 + \frac{1}{32}(15.9 - 16)

=2+132(0.1)= 2 + \frac{1}{32}(-0.1)

=20.132=20.003125= 2 - \frac{0.1}{32} = 2 - 0.003125

=1.996875= 1.996875

Approximation: (15.9)1/41.997(15.9)^{1/4} \approx 1.997


Step 6: Find actual value

Using a calculator: (15.9)1/41.99687...(15.9)^{1/4} \approx 1.99687...


Step 7: Calculate error

Error=ActualApproximate\text{Error} = |\text{Actual} - \text{Approximate}|

=1.996871.9968750.000005= |1.99687 - 1.996875| \approx 0.000005

Answer:

  • Linear approximation: 1.9971.997
  • Actual value: 1.996871.99687
  • Error: approximately 0.0000050.000005 (very small!)

2Problem 2medium

Question:

The side length of a cube is measured to be s=12s = 12 cm with a possible error of ±0.2\pm 0.2 cm. Use differentials to estimate the maximum error in the calculated surface area.

💡 Show Solution

Step 1: Surface area formula

For a cube: A=6s2A = 6s^2


Step 2: Find dAdA

dAds=12s\frac{dA}{ds} = 12s

dA=12sdsdA = 12s \cdot ds


Step 3: Plug in values

s=12s = 12 cm, ds=±0.2ds = \pm 0.2 cm

dA=12(12)(0.2)=144(0.2)=28.8 cm2dA = 12(12)(0.2) = 144(0.2) = 28.8 \text{ cm}^2

Maximum error in surface area: ±28.8\pm 28.8 cm²


Step 4: Calculate percentage error

Actual surface area: A=6(12)2=6(144)=864A = 6(12)^2 = 6(144) = 864 cm²

Percentage error: dAA×100%=28.8864×100%\frac{dA}{A} \times 100\% = \frac{28.8}{864} \times 100\%

=0.0333...×100%3.33%= 0.0333... \times 100\% \approx 3.33\%


Answer:

  • Maximum error: ±28.8\pm 28.8 cm²
  • Percentage error: approximately 3.3%3.3\%

3Problem 3hard

Question:

Find the linear approximation of f(x)=cosxf(x) = \cos x at a=0a = 0, and use it to estimate cos(0.2)\cos(0.2). Compare with the actual value.

💡 Show Solution

Step 1: Find f(0)f(0)

f(0)=cos0=1f(0) = \cos 0 = 1


Step 2: Find f(x)f'(x) and f(0)f'(0)

f(x)=sinxf'(x) = -\sin x

f(0)=sin0=0f'(0) = -\sin 0 = 0


Step 3: Linear approximation

L(x)=f(0)+f(0)(x0)L(x) = f(0) + f'(0)(x - 0)

L(x)=1+0x=1L(x) = 1 + 0 \cdot x = 1


Step 4: Estimate cos(0.2)\cos(0.2)

cos(0.2)L(0.2)=1\cos(0.2) \approx L(0.2) = 1


Step 5: Compare with actual value

Using calculator: cos(0.2)0.9801\cos(0.2) \approx 0.9801

Error: 0.98011=0.0199|0.9801 - 1| = 0.0199


Analysis:

The linear approximation gives 1, but the actual value is about 0.98.

Why is the error larger than in previous examples?

Look at f(x)=cosxf''(x) = -\cos x, so f(0)=10f''(0) = -1 \neq 0

The function has curvature at x=0x = 0, so the linear approximation isn't perfect.

The error is approximately: E(x)f(0)2x2=12(0.2)2=0.02E(x) \approx \frac{f''(0)}{2}x^2 = \frac{-1}{2}(0.2)^2 = -0.02

This matches our observed error! ✓


Better approximation: Use quadratic approximation Q(x)=1+0x+12x2=1x22Q(x) = 1 + 0 \cdot x + \frac{-1}{2}x^2 = 1 - \frac{x^2}{2}

cos(0.2)1(0.2)22=10.042=10.02=0.98\cos(0.2) \approx 1 - \frac{(0.2)^2}{2} = 1 - \frac{0.04}{2} = 1 - 0.02 = 0.98

Much better! ✓

Answer:

  • Linear approximation: cos(0.2)1\cos(0.2) \approx 1
  • Actual: cos(0.2)0.9801\cos(0.2) \approx 0.9801
  • The linear approximation has moderate error because the function has curvature