Math Core

Lesson 11.4 · Introduction to Limits

The tangent line problem

You know how to find the slope of a line: rise over run. But what is the slope of a curve at a single point, like the steepness of a parabola at x=1x = 1, or a car's speed at one exact instant? Answering that question is where calculus begins, and limits are exactly the tool it needs.

Why one point isn't enough

To compute a slope you need two points. A tangent line at a point PP on a curve touches the curve at PP and points in the same direction as the curve there. But you only know one point on it, PP itself, so rise over run gives 00\dfrac{0}{0}.

The fix is to approximate. Pick a second point QQ on the curve, close to PP, and draw the line through both. A line through two points of a curve is called a secant line, and you can compute its slope. Then slide QQ toward PP and watch what happens to the secant slopes.

Secant slopes close in on the tangent slope

Take f(x)=x2f(x) = x^2 and the point P=(1,1)P = (1, 1). Let the second point be Q=(1+h,(1+h)2)Q = \left(1 + h, (1 + h)^2\right), where hh is the horizontal distance from PP to QQ. The slope of the secant line is

msec=f(1+h)−f(1)(1+h)−1=(1+h)2−1h.m_{\text{sec}} = \frac{f(1 + h) - f(1)}{(1 + h) - 1} = \frac{(1 + h)^2 - 1}{h}.

Here are the secant slopes for several values of hh, positive and negative.

hh110.50.50.10.10.010.01−0.01-0.01−0.1-0.1−0.5-0.5
msecm_{\text{sec}}332.52.52.12.12.012.011.991.991.91.91.51.5

As hh shrinks toward 00 from either side, the secant slopes approach 22. So the slope of the tangent line at (1,1)(1, 1) is 22, and the tangent line is y−1=2(x−1)y - 1 = 2(x - 1), or y=2x−1y = 2x - 1.

The parabola y = x², the secant through P(1, 1) and Q(2, 4) with slope 3 (dashed), and the tangent at P with slope 2.Open in grapher →

Algebra confirms the table exactly. Expand and simplify before letting h→0h \to 0:

(1+h)2−1h=1+2h+h2−1h=h(2+h)h=2+h⟶2.\frac{(1 + h)^2 - 1}{h} = \frac{1 + 2h + h^2 - 1}{h} = \frac{h(2 + h)}{h} = 2 + h \longrightarrow 2.

The definition

Definition

Slope of the tangent line

The slope of the tangent line to the graph of ff at the point (a,f(a))(a, f(a)) is

m=lim⁡h→0f(a+h)−f(a)h,m = \lim_{h \to 0} \frac{f(a + h) - f(a)}{h},

provided this limit exists. The fraction inside is called the difference quotient.

This number is also called the slope of the curve at x=ax = a. An equivalent form uses a second point (x,f(x))(x, f(x)) and lets x→ax \to a:

m=lim⁡x→af(x)−f(a)x−a.m = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}.

Every one of these limits starts as 00\dfrac{0}{0} when you substitute, because the rise and the run both shrink to 00. That's why the algebra tools from the limit laws (expand, factor, rationalize, combine fractions) are exactly what you need here.

Finding a tangent line

  1. Compute f(a)f(a) and f(a+h)f(a + h).
  2. Simplify the difference quotient f(a+h)−f(a)h\dfrac{f(a + h) - f(a)}{h} until the hh in the denominator cancels.
  3. Let h→0h \to 0 to get the slope mm.
  4. Write the line in point-slope form: y−f(a)=m(x−a)y - f(a) = m(x - a).

Common mistake

Don't set h=0h = 0 at the start. The difference quotient is 00\dfrac{0}{0} at h=0h = 0. Simplify first, cancel the factor of hh, and only then let hh approach 00.

Worked example: A tangent line to a parabola

Find the slope of the tangent line to f(x)=x2−3xf(x) = x^2 - 3x at x=2x = 2, and write its equation.

Solution. f(2)=4−6=−2f(2) = 4 - 6 = -2. Next,

f(2+h)=(2+h)2−3(2+h)=4+4h+h2−6−3h=−2+h+h2.f(2 + h) = (2 + h)^2 - 3(2 + h) = 4 + 4h + h^2 - 6 - 3h = -2 + h + h^2.

The difference quotient is

(−2+h+h2)−(−2)h=h+h2h=1+h,\frac{(-2 + h + h^2) - (-2)}{h} = \frac{h + h^2}{h} = 1 + h,

which approaches 11. So m=1m = 1, and the tangent line is y−(−2)=1(x−2)y - (-2) = 1(x - 2), or y=x−4y = x - 4.

Worked example: A tangent line to a hyperbola

Find the equation of the tangent line to f(x)=1xf(x) = \dfrac{1}{x} at x=2x = 2.

Solution. f(2)=12f(2) = \dfrac{1}{2}. Combine fractions in the numerator of the difference quotient:

12+h−12h=2−(2+h)2(2+h)h=−h2h(2+h)=−12(2+h).\frac{\frac{1}{2 + h} - \frac{1}{2}}{h} = \frac{\frac{2 - (2 + h)}{2(2 + h)}}{h} = \frac{-h}{2h(2 + h)} = \frac{-1}{2(2 + h)}.

As h→0h \to 0 this approaches −14-\dfrac{1}{4}. The tangent line is y−12=−14(x−2)y - \dfrac{1}{2} = -\dfrac{1}{4}(x - 2), which simplifies to y=−14x+1y = -\dfrac{1}{4}x + 1.

The tangent to y = 1/x at (2, 1/2) has slope −1/4.Open in grapher →

Instantaneous rate of change

Slope measures rate of change. The slope of a secant line is an average rate of change over an interval, and the slope of the tangent line is the instantaneous rate of change at one input.

The most familiar example is speed. If s(t)s(t) is an object's position at time tt, then s(a+h)−s(a)h\dfrac{s(a + h) - s(a)}{h} is its average velocity from time aa to time a+ha + h. Shrinking the time interval to nothing gives the instantaneous velocity at time aa:

v(a)=lim⁡h→0s(a+h)−s(a)h.v(a) = \lim_{h \to 0} \frac{s(a + h) - s(a)}{h}.

Worked example: Velocity of a thrown ball

A ball is thrown upward, and its height after tt seconds is s(t)=64t−16t2s(t) = 64t - 16t^2 feet. Find its velocity at t=1t = 1.

Solution. s(1)=64−16=48s(1) = 64 - 16 = 48. Then

s(1+h)=64(1+h)−16(1+2h+h2)=48+32h−16h2.s(1 + h) = 64(1 + h) - 16(1 + 2h + h^2) = 48 + 32h - 16h^2.

The difference quotient is 32h−16h2h=32−16h\dfrac{32h - 16h^2}{h} = 32 - 16h, which approaches 3232. At t=1t = 1 the ball is rising at 3232 feet per second.

Tip

The limit of the difference quotient is so important that calculus gives it a name: the derivative of ff at aa. Everything in this lesson is a preview of that idea.

Practice

Practice 1

Find the slope of the secant line to f(x)=x2f(x) = x^2 through the points where x=1x = 1 and x=3x = 3.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Find the slope of the tangent line to f(x)=x2f(x) = x^2 at x=3x = 3.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Find the slope of the tangent line to f(x)=2x2+1f(x) = 2x^2 + 1 at x=−1x = -1.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Find the equation of the tangent line to f(x)=x2+xf(x) = x^2 + x at x=1x = 1. Write it in the form y=mx+by = mx + b.

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 5

Find the slope of the tangent line to f(x)=x3f(x) = x^3 at x=2x = 2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Find the slope of the tangent line to f(x)=3xf(x) = \dfrac{3}{x} at x=1x = 1.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

A stone is dropped from a cliff, and its height after tt seconds is s(t)=100−16t2s(t) = 100 - 16t^2 feet. Find its instantaneous velocity at t=2t = 2, in feet per second.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

Find the slope of the tangent line to f(x)=xf(x) = \sqrt{x} at x=9x = 9.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.