Build the derivative from rates

Connect secants, tangent slopes, derivative values and units

What to practice

  • Connect secants, tangent slopes, derivative values and units

Predict before you read. A cart's position is s(t)=t2+3ts(t)=t^{2}+3t meters after tt seconds, and its average velocity over the first three seconds is 6 meters per second. Is its velocity at the instant t=1t=1 greater than 6, less than 6 or equal to 6? Decide now; Example 5.2 answers it.

Chapter 4 made limits exact. This chapter uses one limit, the limit of a difference quotient, to turn an average rate into an instantaneous rate: the derivative. It then estimates derivatives from data and finds where a derivative fails to exist.

Average rate of change is a secant slope

The average rate of change of ff on [a,b][a,b] is

f(b)−f(a)b−a\frac{f(b)-f(a)}{b-a}

It is the slope of the secant line through (a,f(a))(a,f(a)) and (b,f(b))(b,f(b)), and its units are output units per input unit. The numerator alone, f(b)−f(a)f(b)-f(a), is the total change. Dividing by the length of the interval turns a change into a rate.

Example 5.1: average velocity

For the cart, s(1)=4s(1)=4 and s(3)=18s(3)=18, so on [1,3][1,3]

s(3)−s(1)3−1=18−42=7\frac{s(3)-s(1)}{3-1}=\frac{18-4}{2}=7

meters per second. Interpretation: from t=1t=1 to t=3t=3 seconds, the cart's position increased by an average of 7 meters per second. The sentence names the interval, the direction and the units. It does not claim that the cart moved at 7 meters per second at any particular moment.

Common error. Reporting 14, the change in position, as the rate. Fourteen meters says how far the cart moved; 7 meters per second says how fast, on average.

From secant slopes to the derivative

To find the velocity at the instant t=1t=1, shrink the interval. On [1,1+h][1,1+h],

s(1+h)−s(1)h=(1+h)2+3(1+h)−4h=5h+h2h=5+h\frac{s(1+h)-s(1)}{h}=\frac{(1+h)^{2}+3(1+h)-4}{h}=\frac{5h+h^{2}}{h}=5+h

for h≠0h\neq 0. With h=2h=2, 1 and 0.5 the secant slopes are 7, 6 and 5.5 (Figure 5.1). As h→0h\to 0 they approach 5.

Graph of the position function s of t equals t squared plus 3t for t from 0 to about 3.4 seconds. From the point (1, 4), three secant lines run to points on the curve at t equals 3, 2 and 1.5, labeled slope 7, slope 6 and slope 5.5. A solid gray tangent line through (1, 4) is labeled slope 5.

Figure 5.1. Secant slopes from (1,4)(1,4) approach the tangent slope 5 as the second point slides toward the first.

Definition. The derivative of ff at x=ax=a is

f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}

provided this limit exists. An equivalent form lets the second input be xx:

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

If f′(a)f'(a) exists, ff is differentiable at aa. Geometrically, f′(a)f'(a) is the slope of the tangent line at (a,f(a))(a,f(a)), the line y=f(a)+f′(a)(x−a)y=f(a)+f'(a)(x-a). As a rate, f′(a)f'(a) is the instantaneous rate of change of ff at aa, with the same units as an average rate.

Example 5.2: velocity at an instant, and a tangent line

Find the cart's velocity at t=3t=3.

s′(3)=lim⁡h→0(3+h)2+3(3+h)−18h=lim⁡h→09h+h2h=lim⁡h→0(9+h)=9s'(3)=\lim_{h\to 0}\frac{(3+h)^{2}+3(3+h)-18}{h}=\lim_{h\to 0}\frac{9h+h^{2}}{h}=\lim_{h\to 0}(9+h)=9

At t=3t=3 the cart moves at 9 meters per second. Cancel hh only while h≠0h\neq 0; then take the limit.

The same algebra at t=1t=1 gave s′(1)=5s'(1)=5, so the tangent line at (1,4)(1,4) is y=4+5(t−1)y=4+5(t-1). That answers the opening prediction: the velocity at t=1t=1 is 5 meters per second, less than the average of 6 over [0,3][0,3], because the cart is speeding up.

A tangent line need not touch a graph only once. The tangent to y=x3y=x^{3} at the origin is the line y=0y=0, and it crosses the curve there. The limit of secant slopes defines the tangent; a picture of "touching" does not.

Read a limit as a derivative

The definition works in both directions. A limit of a difference quotient is a derivative in disguise, and naming it can be faster than evaluating it.

Example 5.3: change the representation

Evaluate limx→2 x3−8x−2\mathrm{lim}_{x\to 2}\,\frac{x^{3}-8}{x-2} and say what it represents.

Since 8=238=2^{3}, the limit has the form limx→a f(x)−f(a)x−a\mathrm{lim}_{x\to a}\,\frac{f(x)-f(a)}{x-a} with f(x)=x3f(x)=x^{3} and a=2a=2. So it equals f′(2)f'(2): the slope of the tangent to y=x3y=x^{3} at (2,8)(2,8), or the instantaneous rate of change of x3x^{3} at x=2x=2.

Algebraically, x3−8x−2=x2+2x+4\frac{x^{3}-8}{x-2}=x^{2}+2x+4 for x≠2x\neq 2, so the limit is 4+4+4=124+4+4=12. A short secant agrees: 2.013−80.01≈12.06\frac{2.01^{3}-8}{0.01}\approx 12.06.

The same number has an hh form, limh→0 (2+h)3−8h\mathrm{lim}_{h\to 0}\,\frac{(2+h)^{3}-8}{h}. More than one pair can fit a limit: g(x)=x3−8g(x)=x^{3}-8 with a=2a=2 also works. What must match is the whole quotient, including the value subtracted.

The derivative as a function

Letting the input vary produces a new function,

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}

defined wherever the limit exists. Its value at each input is the slope of ff there. Common notations include f′(x)f'(x), dydx\frac{dy}{dx} and ddxf(x)\frac{d}{dx}f(x).

Example 5.4: the derivative of a square root

Let f(x)=xf(x)=\sqrt{x}. Multiply the quotient by the conjugate (Chapter 4):

x+h−xh⋅x+h+xx+h+x=1x+h+x\frac{\sqrt{x+h}-\sqrt{x}}{h}\cdot\frac{\sqrt{x+h}+\sqrt{x}}{\sqrt{x+h}+\sqrt{x}}=\frac{1}{\sqrt{x+h}+\sqrt{x}}

for h≠0h\neq 0. As h→0h\to 0 this approaches 12x\frac{1}{2\sqrt{x}} for every x>0x>0. So f′(x)=12xf'(x)=\frac{1}{2\sqrt{x}} and f′(4)=14f'(4)=\frac{1}{4}. A secant check: 4.01−20.01≈0.2498\frac{\sqrt{4.01}-2}{0.01}\approx 0.2498.

At x=0x=0 the quotient is hh=1h\frac{\sqrt{h}}{h}=\frac{1}{\sqrt{h}} for h>0h>0, which grows without bound. The graph has a vertical tangent there, and f′(0)f'(0) does not exist. The domain of f′f', x>0x>0, is smaller than the domain of ff.

Estimate a derivative from data

With only a table, you cannot take a limit. Estimate f′(a)f'(a) by the slope of a secant through nearby data, and say that it is an estimate: a finite table cannot show what the function does between its entries.

tt (minutes)0461015
T(t)T(t) (degrees Fahrenheit)70190238310350

Example 5.5: choose the interval

The table gives an oven's temperature T(t)T(t) (constructed practice data). Estimate T′(8)T'(8) and interpret it.

Several secants are available:

  • [6,10][6,10]: 310−23810−6=18\frac{310-238}{10-6}=18
  • [4,10][4,10]: 310−19010−4=20\frac{310-190}{10-4}=20
  • [6,15][6,15]: 350−23815−6≈12.44\frac{350-238}{15-6}\approx 12.44

Choose [6,10][6,10]. It is the narrowest interval in the table that contains 8, so its secant is likely closest to the tangent at 8. A slope from [4,6][4,6], which is 24, describes earlier times and does not contain 8 at all.

So T′(8)≈18T'(8)\approx 18: at t=8t=8 minutes the oven's temperature is increasing at about 18 degrees Fahrenheit per minute.

Common error. Averaging two table values, 238+3102=274\frac{238+310}{2}=274, estimates T(8)T(8), a temperature, not T′(8)T'(8), a rate.

When the derivative fails to exist

Differentiability implies continuity. If f′(a)f'(a) exists, then for h≠0h\neq 0

f(a+h)−f(a)=f(a+h)−f(a)h⋅hf(a+h)-f(a)=\frac{f(a+h)-f(a)}{h}\cdot h

and as h→0h\to 0 the right side approaches f′(a)⋅0=0f'(a)\cdot 0=0. So f(a+h)→f(a)f(a+h)\to f(a), and ff is continuous at aa. Read in reverse, the statement says that a function is not differentiable where it is not continuous.

The converse is false. A continuous function can still fail to have a derivative (Figure 5.2):

  • at a corner, where the one-sided limits of the difference quotient are different numbers;
  • at a cusp, where the one-sided quotients grow without bound in opposite directions;
  • at a vertical tangent, where the quotients grow without bound in the same direction.

Four small graphs, each continuous at x equals 0 and marked with a dot at the origin. Panel A, y equals x squared over 2, is a smooth parabola with a dashed horizontal tangent. Panel B, y equals the absolute value of x, forms a V with a sharp corner. Panel C, y equals x to the two-thirds, forms a sharp point that comes in vertically from both sides. Panel D, the cube root of x, passes through the origin with a dashed vertical tangent line.

Figure 5.2. Four graphs that are continuous at x=0x=0. Only A is differentiable there.

To test a point, compute the one-sided limits of the difference quotient. The derivative exists only when both are the same finite number.

Example 5.6: join two pieces smoothly

Let f(x)=x2−2x+3f(x)=x^{2}-2x+3 for x≤2x\leq 2 and f(x)=ax+bf(x)=ax+b for x>2x>2. Find aa and bb so that ff is differentiable at 2.

Continuity first. f(2)=3f(2)=3 and the right-hand limit is 2a+b2a+b, so 2a+b=32a+b=3.

Then equal one-sided slopes. For h<0h<0, the quotient is (2+h)2−2(2+h)+3−3h=2+h\frac{(2+h)^{2}-2(2+h)+3-3}{h}=2+h, which approaches 2. For h>0h>0 it is a(2+h)+b−3h=a\frac{a(2+h)+b-3}{h}=a, once 2a+b=32a+b=3. So a=2a=2, and then b=−1b=-1.

Why continuity first? Matching slopes alone is not enough: a=2a=2 and b=0b=0 give equal slopes but a jump from 3 to 4. Continuity alone is not enough either: a=0a=0 and b=3b=3 join the pieces at (2,3)(2,3), but the slopes are 2 on the left and 0 on the right, a corner. Comparing the derivative formulas 2x−22x-2 and aa at x=2x=2 is a valid shortcut only after continuity holds.

Diagnose a flawed difference quotient

Task: use the definition to find f′(2)f'(2) for f(x)=x2−3xf(x)=x^{2}-3x.

Student work. "f(2+h)=(2+h)2−6+hf(2+h)=(2+h)^{2}-6+h, so f(2+h)−f(2)h=4+4h+h2−6+h+2h=5+h\frac{f(2+h)-f(2)}{h}=\frac{4+4h+h^{2}-6+h+2}{h}=5+h, and f′(2)=5f'(2)=5."

Diagnosis. The error is in distributing: −3(2+h)=−6−3h-3(2+h)=-6-3h, not −6+h-6+h. With that repaired, the quotient is h+h2h=1+h\frac{h+h^{2}}{h}=1+h, so f′(2)=1f'(2)=1.

A check that would have caught it. f(2)=−2f(2)=-2 and f(2.1)=−1.89f(2.1)=-1.89, so a short secant has slope 0.110.1=1.1\frac{0.11}{0.1}=1.1, close to 1 and far from 5. Before reporting a derivative, compare it with one short secant slope.

Try it

Try it 5.1. A tank holds A(t)=50+6t−t2A(t)=50+6t-t^{2} liters of water at time tt minutes, for 0≤t≤60\leq t\leq 6. (a) Find the average rate of change of AA on [0,5][0,5]. (b) Use the definition to find A′(1)A'(1), and interpret it with units.

Try it 5.2. Write limh→0 9+h−3h\mathrm{lim}_{h\to 0}\,\frac{\sqrt{9+h}-3}{h} as a derivative f′(a)f'(a), then evaluate it.

Try it 5.3. The temperature of a cup of tea, H(t)H(t) degrees Celsius, was recorded at times tt minutes (constructed practice data). Estimate H′(10)H'(10) and interpret it.

tt (minutes)05812
H(t)H(t) (degrees Celsius)60474135

Try it 5.4. Let p(x)=kx2p(x)=kx^{2} for x≤1x\leq 1 and p(x)=3x−1p(x)=3x-1 for x>1x>1. Find kk so that pp is continuous at 1. With that kk, is pp differentiable at 1?

Check your work

5.1. (a) A(5)−A(0)5−0=55−505=1\frac{A(5)-A(0)}{5-0}=\frac{55-50}{5}=1 liter per minute. (b) A(1)=55A(1)=55 and A(1+h)=55+4h−h2A(1+h)=55+4h-h^{2}, so A(1+h)−A(1)h=4−h\frac{A(1+h)-A(1)}{h}=4-h, which approaches 4. At t=1t=1 minute the amount of water is increasing at 4 liters per minute.

5.2. With f(x)=xf(x)=\sqrt{x} and a=9a=9, the limit is f′(9)=129=16f'(9)=\frac{1}{2\sqrt{9}}=\frac{1}{6}. The pair f(x)=9+xf(x)=\sqrt{9+x} and a=0a=0 also fits.

5.3. Use [8,12][8,12], the narrowest interval in the table containing 10: 35−4112−8=−1.5\frac{35-41}{12-8}=-1.5. At 10 minutes the tea's temperature is decreasing at about 1.5 degrees Celsius per minute.

5.4. Continuity requires k=3(1)−1k=3(1)-1, so k=2k=2. For h<0h<0, 2(1+h)2−2h=4+2h\frac{2(1+h)^{2}-2}{h}=4+2h, which approaches 4. For h>0h>0, 3(1+h)−1−2h=3\frac{3(1+h)-1-2}{h}=3. The one-sided limits differ, so pp is not differentiable at 1: its graph has a corner there.

Practice

Chapter 5 practice is items APCAL-C05-M01 to APCAL-C05-M13 and the written task APCAL-C05-F01. They are printed after this chapter's companion panel as Questions 66–78 and Written task 4. Questions 69, 74, 75 and 78 and Written task 4 require a graphing calculator in radian mode; the others do not. Answers, full reasoning, the error behind each wrong choice, a Repair and retry line and the scoring rubric are in Answers, explanations and written responses at the back of the book, under Chapter 5: answers and explanations.

Before you move on

From memory, write both forms of the definition of the derivative, the tangent-line equation and the three ways a continuous function can fail to be differentiable. Then explain in one sentence why differentiability forces continuity. In two or three days, without notes, rework Example 5.6 with x2+xx^{2}+x for x≤1x\leq 1 and ax+bax+b for x>1x>1, and redo Example 5.4 for f(x)=1xf(x)=\frac{1}{x} at x=2x=2.

Use this chapter companion

Review the lesson, attempt the original practice, then check the explanation. Your printed study guide remains complete without the website.

Independence

Skill by Skill Prep is independent. SAT® and AP® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website or book. PSAT/NMSQT® is a registered trademark of the College Board and the National Merit Scholarship Corporation, which are not affiliated with, and do not endorse, this site. Bluebook™ is a trademark of the College Board. ACT® is a trademark of ACT Education Corp., which is not affiliated with and does not endorse this website or book. Desmos is a trademark of Desmos Studio PBC. Practice results describe these questions, not official scores or admission predictions.

Last updated .