AP · Calculus AB · Linear Approximation and L'Hôpital's Rule

Local Linear Approximation

17 min readUpdated November 30, 2026FreeAP Calculus AB, Derivatives in Context

Close to a point where a function is differentiable, its graph is almost straight, so the tangent line L(x)=f(a)+f′(a)(x−a)L(x) = f(a) + f'(a)(x - a) gives a good estimate of f(x)f(x) for xx near aa. The sign of f′′f'' between aa and xx tells you which side of the truth the estimate lies on: concave down gives an overestimate and concave up gives an underestimate.

Quick check

  1. Write the equation of the line through (2,5)(2, 5) with slope 33.Show answerHide answer

    y=5+3(x−2)y = 5 + 3(x - 2). Point-slope form starts at the known point and adds the slope times the horizontal distance from it.

  2. If f(x)=xf(x) = \sqrt{x}, what is f′(9)f'(9)?Show answerHide answer

    16\frac{1}{6}. f′(x)=12xf'(x) = \frac{1}{2\sqrt{x}}, so f′(9)=12⋅3f'(9) = \frac{1}{2 \cdot 3}.

  3. f(4)=10f(4) = 10 and f′(4)=−2f'(4) = -2. Estimate f(4.1)f(4.1).Show answerHide answer

    About 9.89.8. Moving 0.10.1 to the right at slope −2-2 changes the value by about −0.2-0.2.

Know these already? Jump to the practice questions

What you'll be able to do

  • Write the tangent line to a function at a point where you know its value and derivative.
  • Use that line to approximate the function's value at a nearby input.
  • Determine from the sign of f′′f'' whether the approximation is an overestimate or an underestimate, and justify it.
  • Approximate values from a table or in context, and state them with units.

Key terms

Local linearity

A function that is differentiable at aa looks more and more like its tangent line as you zoom in on the point (a,f(a))(a, f(a)).

In plain English
Up close, a smooth curve is nearly straight.
Don't write
"the function is linear"; it only behaves like a line very near aa.

Tangent line approximation

The estimate f(x)≈L(x)=f(a)+f′(a)(x−a)f(x) \approx L(x) = f(a) + f'(a)(x - a) for xx near aa, also called the linearization of ff at aa.

In plain English
Start at the known value and follow the tangent line to the new input.
Don't write
f(x)=L(x)f(x) = L(x); the two agree exactly only at x=ax = a.

Why does a tangent line give a good estimate?

If ff is differentiable at aa, zooming in on the point (a,f(a))(a, f(a)) makes the graph look straighter and straighter, until you can hardly tell it apart from its tangent line. This is local linearity. So for inputs close to aa, the tangent line's height is close to the function's height.

For example, the tangent line to y=exy = e^x at x=0x = 0 is y=1+xy = 1 + x, since e0=1e^0 = 1 and the slope there is 11. At x=0.1x = 0.1 it gives 1.11.1, and the true value is e0.1≈1.105e^{0.1} \approx 1.105.

The further xx is from aa, the more the curve bends away from the line, so the estimate gets worse. Choose aa as close to the target input as you can while still knowing f(a)f(a) and f′(a)f'(a) exactly.

Key idea

Near aa, the tangent line and the curve almost coincide, so the tangent line's value is a good estimate of the function's value.

Check yourself

To estimate 50\sqrt{50}, which is the better point to use, a=49a = 49 or a=36a = 36?
Show answerHide answer

a=49a = 49. It is closer to 5050, and 49=7\sqrt{49} = 7 is known exactly.

How do you build and use the approximation?

Learn this:

f(x)≈f(a)+f′(a)(x−a)f(x) \approx f(a) + f'(a)(x - a)

The steps are always the same:

  1. Choose a nearby input aa where f(a)f(a) and f′(a)f'(a) are easy to find.
  2. Find f(a)f(a) and f′(a)f'(a).
  3. Write L(x)=f(a)+f′(a)(x−a)L(x) = f(a) + f'(a)(x - a).
  4. Substitute the target input into LL.

For example, to estimate (1.02)5(1.02)^5, use f(x)=x5f(x) = x^5 at a=1a = 1. Then f(1)=1f(1) = 1 and f′(x)=5x4f'(x) = 5x^4 gives f′(1)=5f'(1) = 5, so L(x)=1+5(x−1)L(x) = 1 + 5(x - 1) and L(1.02)=1+5(0.02)=1.1L(1.02) = 1 + 5(0.02) = 1.1. The true value is about 1.1041.104.

The term f′(a)(x−a)f'(a)(x - a) is the predicted change: slope times the step away from aa. If x<ax < a, the step x−ax - a is negative, and the formula handles that sign for you.

Examiner's eye

Marks are lost when the tangent line is written as f(a)+f′(a)xf(a) + f'(a)x. The slope multiplies the distance from aa, which is x−ax - a.

Check yourself

g(3)=8g(3) = 8 and g′(3)=−4g'(3) = -4. Estimate g(2.9)g(2.9).
Show answerHide answer

8.48.4. L(2.9)=8+(−4)(2.9−3)=8+0.4L(2.9) = 8 + (-4)(2.9 - 3) = 8 + 0.4.

Is the estimate too big or too small?

The concavity of ff between aa and the target input decides it.

Sign of f′′f'' between aa and xxShapeTangent line liesEstimate is
f′′>0f'' > 0concave upbelow the curvean underestimate
f′′<0f'' < 0concave downabove the curvean overestimate

A concave up graph bends upward, away from its tangent line, so the line stays underneath it; a concave down graph bends below its tangent line. This holds on either side of aa, as long as the sign of f′′f'' does not change on the interval between aa and the target. If it does change, this test cannot tell you.

So 1.11.1 for (1.02)5(1.02)^5 is an underestimate, because f′′(x)=20x3>0f''(x) = 20x^3 > 0 near x=1x = 1; it matches 1.1<1.1041.1 < 1.104.

Check yourself

h′′(x)<0h''(x) < 0 for all xx. Is the tangent line at x=5x = 5 an overestimate or an underestimate of h(4.8)h(4.8)?
Show answerHide answer

An overestimate. The graph is concave down, so the tangent line lies above it on both sides of x=5x = 5.

How do you approximate from a table or in context?

The method does not change: you only need f(a)f(a) and f′(a)f'(a), and a table or a model can give you both. If the table lists f′f', read it off. If it lists only ff, estimate f′(a)f'(a) first with the slope between the nearest entries on each side of aa, then build the line.

In context, keep the units. If W(t)W(t) is in gallons and tt is in hours, then W′(a)W'(a) is in gallons per hour, W′(a)(t−a)W'(a)(t - a) is in gallons, and the estimate of W(t)W(t) is in gallons. Say "approximately" in the answer, and give the over or under verdict with its reason.

Check yourself

P(t)P(t) is a city's population in thousands, tt years after 2020, with P(4)=250P(4) = 250 and P′(4)=6P'(4) = 6. Estimate P(4.5)P(4.5).
Show answerHide answer

About 253253 thousand people. L(4.5)=250+6(0.5)=253L(4.5) = 250 + 6(0.5) = 253.

Worked example 1: Estimating a square root

Question: Use the tangent line to f(x)=xf(x) = \sqrt{x} at x=25x = 25 to approximate 26\sqrt{26}. Is the approximation an overestimate or an underestimate? Give a reason.

What tells you the method

"use the tangent line ... to approximate" means building L(x)L(x) at the given point; "overestimate or underestimate" means checking the sign of f′′f''.

  1. Step 1: Find f(25)f(25) and f′(25)f'(25).

    f(25)=5f(25) = 5; f′(x)=12xf'(x) = \frac{1}{2\sqrt{x}}, so f′(25)=110f'(25) = \frac{1}{10}.

    Why

    2525 is the nearest perfect square to 2626.

  2. Step 2: Write and evaluate the line.

    L(x)=5+110(x−25)L(x) = 5 + \frac{1}{10}(x - 25), so L(26)=5+110=5.1L(26) = 5 + \frac{1}{10} = 5.1.

    Why

    The step from 2525 to 2626 is 11.

  3. Step 3: Check the concavity.

    f′′(x)=−14x−3/2<0f''(x) = -\frac{1}{4}x^{-3/2} < 0 for x>0x > 0, so ff is concave down on [25,26][25, 26].

    Why

    Concave down means the tangent line lies above the curve.

Check it

5.12=26.015.1^2 = 26.01, just more than 2626, so 5.15.1 is a little too big, which agrees.

Answer

26≈5.1\sqrt{26} \approx 5.1, an overestimate, because f′′<0f'' < 0 on [25,26][25, 26].

Worked example 2: A table in context

Question: A cup of coffee cools in a room. The table gives its temperature T(t)T(t) in degrees Fahrenheit and the rate T′(t)T'(t), tt minutes after it is poured. The graph of TT is concave up for 0≤t≤150 \le t \le 15.

tt (minutes)051015
T(t)T(t) (°F)180158140124
T′(t)T'(t) (°F per minute)−5.0-5.0−4.2-4.2−3.5-3.5−2.9-2.9

Use the tangent line at t=10t = 10 to approximate T(12)T(12). Is it an overestimate or an underestimate?

What tells you the method

The question names the point t=10t = 10, and the table gives both T(10)T(10) and T′(10)T'(10).

  1. Step 1: Write the line.

    L(t)=140−3.5(t−10)L(t) = 140 - 3.5(t - 10).

    Why

    T(10)=140T(10) = 140 and T′(10)=−3.5T'(10) = -3.5 come straight from the table.

  2. Step 2: Evaluate at t=12t = 12.

    L(12)=140−3.5(2)=133L(12) = 140 - 3.5(2) = 133.

    Why

    The step is 22 minutes at −3.5-3.5 degrees per minute, a drop of 77 degrees.

  3. Step 3: Decide over or under.

    TT is concave up on [10,12][10, 12], so the tangent line lies below the graph.

    Why

    Concave up means an underestimate.

Check it

The rates in the table rise toward 00, so the cooling slows; using the rate at t=10t = 10 for the whole two minutes over-counts the drop, so the true temperature is above 133133.

Answer

T(12)≈133T(12) \approx 133 °F, an underestimate, because TT is concave up on [10,12][10, 12].

Worked example 3: The derivative given as a formula

Question: A function ff has f(2)=5f(2) = 5 and f′(x)=x3+1f'(x) = \sqrt{x^3 + 1}. (a) Use the tangent line at x=2x = 2 to approximate f(2.3)f(2.3). (b) Is the approximation an overestimate or an underestimate? Justify your answer.

What tells you the method

You are given f′f', not ff, so the slope comes from f′(2)f'(2) and the concavity from the sign of f′′f''.

  1. Step 1: Find the slope.

    f′(2)=8+1=3f'(2) = \sqrt{8 + 1} = 3.

    Why

    The tangent's slope is the derivative at x=2x = 2.

  2. Step 2: Approximate.

    L(x)=5+3(x−2)L(x) = 5 + 3(x - 2), so L(2.3)=5+3(0.3)=5.9L(2.3) = 5 + 3(0.3) = 5.9.

    Why

    The step from 22 to 2.32.3 is 0.30.3.

  3. Step 3: Find the sign of f′′f''.

    By the chain rule, f′′(x)=3x22x3+1f''(x) = \frac{3x^2}{2\sqrt{x^3 + 1}}, which is positive for 2≤x≤2.32 \le x \le 2.3.

    Why

    The numerator 3x23x^2 and the square root are both positive there.

  4. Step 4: Conclude.

    ff is concave up on [2,2.3][2, 2.3], so the tangent line lies below the graph.

    Why

    Concave up gives an underestimate.

Check it

f′f' grows from 33 at x=2x = 2 to about 3.633.63 at x=2.3x = 2.3, so ff rises faster than the line's slope of 33, and the true value is above 5.95.9.

Answer

(a) f(2.3)≈5.9f(2.3) \approx 5.9. (b) An underestimate, because f′′(x)>0f''(x) > 0 for 2≤x≤2.32 \le x \le 2.3, so ff is concave up there.

Your turn

Question: Use the tangent line to f(x)=ln⁡xf(x) = \ln x at x=1x = 1 to approximate ln⁡1.05\ln 1.05, and decide whether it is an overestimate or an underestimate.

  1. Step 1:

    f(1)=0f(1) = 0 and f′(x)=1xf'(x) = \frac{1}{x}, so f′(1)=1f'(1) = 1, and L(x)=0+1(x−1)=x−1L(x) = 0 + 1(x - 1) = x - 1.

  2. Step 2: Your go: evaluate and use concavity.

    Substitute x=1.05x = 1.05, then find the sign of f′′(x)f''(x).

Show the full solutionHide the solution

L(1.05)=0.05L(1.05) = 0.05. f′′(x)=−1x2<0f''(x) = -\frac{1}{x^2} < 0, so ff is concave down and the tangent line lies above the graph. The true value is about 0.04880.0488, below 0.050.05, as expected.

Answer: ln⁡1.05≈0.05\ln 1.05 \approx 0.05, an overestimate, because f′′(x)<0f''(x) < 0.

Traps

Trap

Thinking a concave up graph gives an overestimate.

It seems right because "up" sounds like "too high". But a concave up graph curves upward away from its tangent line, so the line sits below the curve and the estimate is too low: an underestimate.

Check yourself

f′′>0f'' > 0 near x=3x = 3. Is the tangent-line estimate of f(3.2)f(3.2) too high or too low?
Show answerHide answer

Too low. Concave up puts the tangent line below the graph, so it is an underestimate.

Trap

Writing the tangent line as f(a)+f′(a)xf(a) + f'(a)x, so f(2.1)f(2.1) with f(2)=5f(2) = 5 and f′(2)=3f'(2) = 3 becomes 5+3(2.1)=11.35 + 3(2.1) = 11.3.

It seems right because it looks like y=mx+cy = mx + c. But the line passes through (a,f(a))(a, f(a)), so the slope multiplies the step x−ax - a: 5+3(0.1)=5.35 + 3(0.1) = 5.3.

Check yourself

f(10)=4f(10) = 4 and f′(10)=0.5f'(10) = 0.5. Is f(10.2)f(10.2) about 4.14.1 or about 9.19.1?
Show answerHide answer

About 4.14.1. L(10.2)=4+0.5(0.2)=4.1L(10.2) = 4 + 0.5(0.2) = 4.1; the value 9.19.1 uses 0.5(10.2)0.5(10.2) in place of 0.5(0.2)0.5(0.2).

What's examined

Tangent line approximation belongs to Unit 4 (Derivatives in Context) of the AP® Calculus AB exam and can be tested in both the multiple-choice and the free-response sections. Free-response parts built on a table, a graph or a given f′f' ask you to "Write an equation" for the tangent line, "Approximate" a value with it, and decide over or under with "Give a reason for your answer"; the reason is the sign of f′′f'' on the interval. Show the line before the number. The concavity test uses the second derivative, so revise the note on second and higher-order derivatives if f′′f'' feels shaky.

Practice questions

  1. Recall f(2)=5f(2) = 5 and f′(2)=3f'(2) = 3. What is the tangent line approximation of f(2.1)f(2.1)?
  • A) 4.74.7
  • B) 5.035.03
  • C) 5.35.3
  • D) 11.311.3
Show answer

Answer: C, f(2.1)≈5.3f(2.1) \approx 5.3.

Marking points:

  • L(2.1)=5+3(2.1−2)=5.3L(2.1) = 5 + 3(2.1 - 2) = 5.3.
  • A subtracts the change; B uses a step of 0.010.01; D uses 3(2.1)3(2.1) in place of 3(0.1)3(0.1).
  1. Recall f′′(x)<0f''(x) < 0 for all xx. The tangent line to ff at x=ax = a is used to estimate f(b)f(b), where bb is near aa and b≠ab \neq a. Which statement is true?
  • A) The estimate is greater than f(b)f(b).
  • B) The estimate is less than f(b)f(b).
  • C) The estimate equals f(b)f(b).
  • D) It is greater than f(b)f(b) only when b>ab > a.
Show answer

Answer: A.

Marking points:

  • Concave down means the tangent line lies above the graph, so the estimate is too big.
  • B reverses the concavity rule; C ignores the curve's bending; D wrongly thinks the side of aa matters.
  1. Apply Use the tangent line to f(x)=x3f(x) = \sqrt[3]{x} at x=8x = 8 to approximate 8.243\sqrt[3]{8.24}. Is the approximation an overestimate or an underestimate?
Show answer

Answer: 8.243≈2.02\sqrt[3]{8.24} \approx 2.02, an overestimate.

Marking points:

  • f(8)=2f(8) = 2 and f′(x)=13x−2/3f'(x) = \frac{1}{3}x^{-2/3}, so f′(8)=112f'(8) = \frac{1}{12}.
  • L(8.24)=2+112(0.24)=2.02L(8.24) = 2 + \frac{1}{12}(0.24) = 2.02.
  • f′′(x)=−29x−5/3<0f''(x) = -\frac{2}{9}x^{-5/3} < 0 for x>0x > 0, so ff is concave down and the estimate is too big.
  1. Apply Some values of ff are f(2)=7f(2) = 7, f(4)=9f(4) = 9 and f(6)=10f(6) = 10. Use the values at x=2x = 2 and x=6x = 6 to estimate f′(4)f'(4), then use the tangent line at x=4x = 4 to approximate f(4.4)f(4.4).
  • A) 9.29.2
  • B) 9.39.3
  • C) 9.49.4
  • D) 12.312.3
Show answer

Answer: B, f(4.4)≈9.3f(4.4) \approx 9.3.

Marking points:

  • f′(4)≈10−76−2=0.75f'(4) \approx \frac{10 - 7}{6 - 2} = 0.75.
  • L(4.4)=9+0.75(0.4)=9.3L(4.4) = 9 + 0.75(0.4) = 9.3.
  • A uses only x=4x = 4 and x=6x = 6 (slope 0.50.5); C uses only x=2x = 2 and x=4x = 4 (slope 11); D uses 0.75(4.4)0.75(4.4) in place of 0.75(0.4)0.75(0.4).
  1. Apply A tank holds W(t)W(t) gallons of water tt hours after noon, with W(3)=120W(3) = 120, W′(3)=−8W'(3) = -8, and W′′(t)>0W''(t) > 0 for 0≤t≤60 \le t \le 6. Using the tangent line at t=3t = 3, what is the estimate of W(3.5)W(3.5), and how does it compare with the true value?
  • A) 116116 gallons, an overestimate
  • B) 124124 gallons, an underestimate
  • C) 112112 gallons, an underestimate
  • D) 116116 gallons, an underestimate
Show answer

Answer: D, 116116 gallons, an underestimate.

Marking points:

  • L(3.5)=120−8(0.5)=116L(3.5) = 120 - 8(0.5) = 116 gallons.
  • W′′>0W'' > 0, so WW is concave up and the tangent line lies below the graph.
  • A reverses the concavity rule; B adds the change; C uses a step of 11 hour.
  1. Exam-style A function gg has g(1)=4g(1) = 4 and g′(x)=31+x2g'(x) = \frac{3}{1 + x^2}. (a) Write an equation for the tangent line to gg at x=1x = 1. (b) Use it to approximate g(0.8)g(0.8). (c) Is the approximation an overestimate or an underestimate? Give a reason for your answer.
Show answer

Answer: (a) y=4+1.5(x−1)y = 4 + 1.5(x - 1). (b) g(0.8)≈3.7g(0.8) \approx 3.7. (c) An overestimate, because g′′(x)<0g''(x) < 0 for 0.8≤x≤10.8 \le x \le 1.

Marking points:

  • g′(1)=32=1.5g'(1) = \frac{3}{2} = 1.5, so the tangent line is y=4+1.5(x−1)y = 4 + 1.5(x - 1).
  • L(0.8)=4+1.5(−0.2)=3.7L(0.8) = 4 + 1.5(-0.2) = 3.7.
  • g′′(x)=−6x(1+x2)2g''(x) = -\frac{6x}{(1 + x^2)^2}, which is negative for x>0x > 0, so gg is concave down on [0.8,1][0.8, 1] and the tangent line lies above the graph.
  1. Exam-style The curve x2+xy+y3=11x^2 + xy + y^3 = 11 passes through the point (1,2)(1, 2). (a) Show that dydx=−2x+yx+3y2\frac{dy}{dx} = -\frac{2x + y}{x + 3y^2}. (b) Use the tangent line at (1,2)(1, 2) to approximate the yy-coordinate of the point on the curve near (1,2)(1, 2) with x=1.1x = 1.1. (c) Given that d2ydx2<0\frac{d^2y}{dx^2} < 0 at every point of the curve near (1,2)(1, 2), is the approximation an overestimate or an underestimate?
Show answer

Answer: (a) dydx=−2x+yx+3y2\frac{dy}{dx} = -\frac{2x + y}{x + 3y^2}, shown in the first marking point. (b) y≈12865≈1.969y \approx \frac{128}{65} \approx 1.969. (c) An overestimate.

Marking points:

  • 2x+y+xdydx+3y2dydx=02x + y + x\frac{dy}{dx} + 3y^2\frac{dy}{dx} = 0, so dydx(x+3y2)=−(2x+y)\frac{dy}{dx}(x + 3y^2) = -(2x + y).
  • At (1,2)(1, 2): dydx=−413\frac{dy}{dx} = -\frac{4}{13}, so y≈2−413(0.1)=12865y \approx 2 - \frac{4}{13}(0.1) = \frac{128}{65}.
  • d2ydx2<0\frac{d^2y}{dx^2} < 0 means the curve is concave down there, so the tangent line lies above it.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Near x=ax = a, f(x)≈f(a)+f′(a)(x−a)f(x) \approx f(a) + f'(a)(x - a); the slope multiplies the step x−ax - a.
  • Choose aa close to the target, with f(a)f(a) and f′(a)f'(a) known exactly.
  • Concave up between aa and xx gives an underestimate; concave down gives an overestimate.
  • From a table, read or estimate f′(a)f'(a) first; in context, the estimate carries the units of ff.

Keep learning

Explore AP Calculus AB tutoring →

View the full Calculus AB syllabus →

More in this unit

Derivatives in Context

All Linear Approximation and L'Hôpital's Rule notes

Part of Novark's AP Calculus AB notes