Kim’s Math NotesCourse index

The Derivative Function and the Tangent Line

How do I go from the derivative function to a tangent line?

Find the derivative as a function, write it in derivative notation, and use f′(a) as the slope of the tangent line.

xy123451234567(2, f(2))slope f'(2)
The tangent line uses the point and the slope · At x=2 the point is (2,f(2))=(2,2) and the slope is f′(2)=1, so the tangent line is y=2+1(x−2). Over a run of 2 the line rises 2.
A tangent line needs the point

Common mistake f(−1)=4 and f′(−1)=−3, so the tangent line is y=−3(x+1).

Correction Use the point (−1,4) too: y=4−3(x+1).

The height is not the slope

Common mistake The tangent line at x=1 goes through (1,3), so f′(1)=3.

Correction 3 is f(1), the height. f′(1) is the slope of the line: rise over run.

From f'(a) to f'(x): put x there

At seven seconds, f prime of seven is the limit, as h goes to zero, of f of seven plus h, minus f of seven, all over h. At ten seconds, it's the same limit, with ten in every spot: f of ten plus h, minus f of ten, all over h. At fifteen seconds, we use fifteens this time: f of fifteen plus h, minus f of fifteen, all over h. And on, and on, every instant of the run. A new limit every time?

Too much work, right?

Watch this part of the concept lesson

Read the rest of this scene

Look. Only the purple numbers change: seven, ten, fifteen. So in their place, we write x. That gives the instantaneous rate of change at x. Not at seven, ten, or fifteen. Just x. Can x be any number?

Any x where that limit exists. Each x in, one value out. So we can see it as a function. So, once again, f prime of x is the limit, as h goes to zero, of f of x plus h, minus f of x, all over h. This function, f prime of x, gets a name.

It's called the derivative of f. So f prime of a, at one point, is a number. f prime of x is a function. Now check the bottom. x plus h, minus x, is just h. The same two inputs as on top: x plus h, and x.

Let h go to zero, and both inputs on top close in on x. The top takes the form f of x minus f of x. That form tells you where the slope is measured: at x. So it's f prime of x. The top heading to zero is not the answer.

For our runner, f prime of t is the speed at every instant. A speedometer for the whole run.

f'(x) from one limit

Let's do the limit just once, with x. Take f of x equals x squared minus four x plus five, and find f prime of x. Inside the limit, only h moves. x sits still, like a number. f of x plus h is the quantity x plus h, squared, minus four times x plus h, plus five.

Multiply it out.

Watch this part of the concept lesson

Read the rest of this scene

x squared, plus two x h, plus h squared, minus four x, minus four h, plus five. Subtract f of x. That's x squared plus two x h plus h squared minus four x minus four h plus five, minus the quantity x squared minus four x plus five. Everything without an h drops out. Two x h, plus h squared, minus four h.

So f prime of x is the limit, as h goes to zero, of two x h plus h squared minus four h, all over h. Every term on top has an h. Factor it out: h times the quantity two x plus h minus four, all over h. h isn't zero, so the h's cancel. That leaves the limit of two x plus h minus four.

Nothing is divided by h now, so plug in zero. Two x plus zero minus four. Two x minus four. Want the slope at three? f prime of three is two times three, minus four.

Two. One number. f prime of x, two x minus four, is the derivative. A whole function. One's a screenshot. The other is the whole video.

The same limit: 1/x and the square root of x

Same one limit, a new function. f of x equals one over x. x can't be zero, since f of zero doesn't exist. f prime of x is the limit, as h goes to zero, of one over x plus h, minus one over x, all over h. Combine the two fractions on top over x times x plus h, then divide by h.

x minus the quantity x plus h, over x times x plus h, times h.

Watch this part of the concept lesson

Read the rest of this scene

On top, x minus x minus h is negative h. h isn't zero, so it cancels. Negative one, over x times x plus h. Now let h go to zero. Negative one over x times x plus zero.

Negative one over x squared, for x not zero. Next, f of x equals the square root of x. f prime of x is the limit, as h goes to zero, of root x plus h, minus root x, all over h. Roots on top? Multiply top and bottom by the conjugate: root x plus h, plus root x. On top, root x plus h, squared, minus root x, squared: x plus h, minus x.

On the bottom, h times the quantity root x plus h, plus root x. x plus h minus x is just h. h isn't zero, so it cancels. One over root x plus h, plus root x. Let h go to zero.

One over root x plus root x. One over two root x, for x greater than zero. At x equals zero, the bottom would be two root zero, which is zero. What happens there, we'll see in two point four. Keep both results.

You'll meet them again in two point five.

Other names: y', dy/dx, d/dx

It has other names. For y equals f of x, f prime of x is also y prime, dee why dee ex, or dee dee ex of f of x. Four names, one function. The d comes from the average rate of change, delta y over delta x. Let delta x go to zero, and the big delta shrinks to a little d.

It looks like a fraction, so you want to cancel the d's, right?

Watch this part of the concept lesson

Read the rest of this scene

Nope. Read it as one symbol: dee why dee ex. And dee dee ex is an operator, an instruction: take the derivative of what follows, with respect to x. So dee dee ex of x squared minus four x plus five is two x minus four. The function we just found. And dee dee ex of one over x is negative one over x squared.

Back to y equals x squared minus four x plus five. Dee why dee ex, at x equals three, is two times three, minus four. Two.

f'(a) is the slope of the tangent

Here's the picture. On top, f of x equals x squared minus four x plus five. Below, on the same x-axis, we'll build the graph of its derivative, f prime. f prime of a is the slope of the line tangent to the graph at a. Take a tiny secant line near three, with h going to zero. It settles into the tangent line.

Read it at x equals three, the point three, two.

Watch this part of the concept lesson

Read the rest of this scene

Go right one, and the tangent goes up two. Slope two over one: two. And f prime of three is two. Now x equals one. The tangent goes down two for each one to the right: slope negative two.

At x equals two, the tangent is flat: slope zero. Put all three in a table. For x equals one, two, and three, the slopes of f are negative two, zero, two. Now carry each slope down to the lower graph, as a height, at the same x. Negative two, at one.

Zero, at two. Two, at three. They line up on one straight line. It's two x minus four, the derivative we found. So the slope of f is the height of f prime.

Two different graphs: don't read the line as f.

The tangent line: point first, then slope

The tangent line: y equals f of a, plus f prime of a, times x minus a. A slope alone isn't a line yet. It fits lots of parallel lines. So we need a point, too. So here's the routine: the point first, a and f of a.

Then the slope, f prime of a. Try it at a equals three, on our curve. f of three is three squared, minus four times three, plus five. Two. The point is three, two. So the tangent line is y equals two, plus f prime of three, times x minus three.

f prime of three is two: y equals two, plus two times x minus three.

Watch this part of the concept lesson

Read the rest of this scene

Careful with the slope spot. It takes the number, f prime of three, two. Not the formula two x minus four. Put that in, and the x's multiply into an x squared. That's not a line. What's given decides your first step.

Given the x-value, find f prime of a. Given the slope, solve f prime of x equals that slope first. Example two is that kind.

Example 1: f'(2) and the tangent line

Example one. f of x is x cubed minus three x. Use the definition of the derivative to find f prime of two... then write an equation of the tangent line at x equals two. Part a. We need one slope, at x equals two, so we take the limit right at two. Our usual routine: the point first, two and f of two. Then the slope. First, f of two.

Two cubed, minus three times two.

Watch this part of the concept lesson

Read the rest of this scene

Eight minus six. Two. Now the slope. f of two plus h is two plus h, cubed, minus three times two plus h. It looks scary, I know. So let's square first. Two plus h, times two plus h: four, plus two h plus two h, plus h squared.

Four, plus four h, plus h squared. Then one more two plus h. Four plus four h plus h squared, times two plus h. Times two: eight, plus eight h, plus two h squared. Times h: four h, plus four h squared, plus h cubed.

Collect them. Eight, plus twelve h, plus six h squared, plus h cubed. And minus three times two plus h is minus six, minus three h. So f of two plus h is eight plus twelve h plus six h squared plus h cubed, minus six, minus three h. Collect the terms. Two, plus nine h, plus six h squared, plus h cubed.

That's everything we need. Set up the limit yourself first, then watch me do it. Part a, the limit. The plan: set it up, and since every term on top will have an h, we'll factor it out. So f prime of two is the limit, as h goes to zero, of f of two plus h, minus f of two, all over h.

Plug in what we found. Two plus nine h plus six h squared plus h cubed, minus two, all over h. The twos go away. That leaves nine h plus six h squared plus h cubed, all over h. Every term has an h.

Factor it out: h times the quantity nine plus six h plus h squared, all over h. h isn't zero, so h over h is one. They cancel. That leaves the limit of nine plus six h plus h squared. It's a polynomial, so plug in h equals zero. Nine plus six times zero, plus zero squared. Nine.

That's the slope, nine. You have the point too, so write the line before I do. For part b, here's the graph of f. The point is two, f of two, which is two. So two, two.

The slope is f prime of two. Nine. The tangent line. y equals f of two, plus f prime of two, times x minus two. Plug in two and nine. y equals two, plus nine times x minus two.

And there's the tangent, right through the point. No need to simplify. This point-slope form is already a complete equation of the line, and multiplying it out only adds chances for sign slips. Point first, every time. There's a tangent line at a given x in your workbook.

Try it, then check its video.

Common mistake: the line misses the point

Careful here, with that same tangent line. Here's what a student writes. The slope is nine, so y equals nine times the quantity x minus two. Test it. Plug in x equals two, and y is zero. But the point is two, two.

That line misses the point.

Watch this part of the concept lesson

Read the rest of this scene

The point goes first, so write it that way. Start at the point, two, two. Then walk with the slope, nine. y equals two, plus nine times the quantity x minus two. Quick test: x equals two gives two.

Right on the curve.

Example 2: a parallel tangent

Example two. f of x is two x squared minus x plus three. The definition gives its derivative: f prime of x is four x minus one. That part is done for you. Find the point where the tangent line is parallel to the line y equals seven x... and write that tangent line. The plan. The slope we want is seven.

So set f prime of x equal to seven, find the point, and then write the line.

Watch this part of the concept lesson

Read the rest of this scene

Parallel to y equals seven x means the same slope. Seven. We want f prime of x to be seven. So four x minus one equals seven. Add one to both sides. Four x equals seven plus one, eight.

So x equals two. The height comes from f. f of two is two times two squared, minus two, plus three. Eight minus two plus three. Nine. The point is two, nine.

Seven is the slope, not the height. Part b. Start at the point two, nine. Walk with the slope, seven. y equals nine, plus seven times x minus two. And there's the tangent, right through two, nine.

Slope given, so the point comes second. There's one like this in your workbook. Work it line by line.

Example 3: read the tangent line

Here's the last one, example three, AP style. No formula for f this time. The line y equals three x minus one is tangent to the graph of f at x equals two. Find f of two, f prime of two... and this limit. The plan. At x equals two, the tangent line touches the curve.

So right there, the line and the curve share the height, and they share the slope.

Watch this part of the concept lesson

Read the rest of this scene

Part a asks for the height. Plug two into the line: three times two, minus one. Five. The line touches the curve there, so f of two is five. Part b. f prime of two is the slope of the tangent line at two. The line is y equals three x minus one, so its slope is three.

Careful. Not five. Five is the height of the point. Three is the slope. Part c. This limit is the definition of f prime of two. So it's the same number.

Three. No formula needed. A tangent line hands you two things: a height, and a slope. There's one to read like this in your workbook.

Worked examples

Example 1

Let f(x)=x3−3x.
(a) Use the definition of the derivative to find f′(2).
(b) Write an equation of the line tangent to the graph of f at x=2.
Hint

A line needs a point and a slope.

Answer and solution
  1. 9
  2. y=2+9(x−2)
  1. Type: tangent line at a point. Method: slope f'(2) from the definition, point (2, f(2)).
  2. limh→0[(2+h)3−3(2+h)]−2h=limh→09h+6h2+h3h=limh→0(9+6h+h2)=9
  3. (a) f'(2) = 9. (b) The point: f(2) = 8 - 6 = 2, so (2, 2).
  4. y=2+9(x−2)

Example 2

Let f(x)=2x2−x+3. By the definition, f′(x)=4x−1.
(a) Find the point where the tangent is parallel to y=7x.
(b) Write an equation of that tangent line.
Hint

Parallel lines have the same slope.

Answer and solution
  1. (2,9)
  2. y=9+7(x−2)
  1. f'(x) = 4x - 1 is given. A tangent line parallel to y = 7x has slope 7.
  2. (a) 4x - 1 = 7 gives x = 2, and f(2) = 8 - 2 + 3 = 9. The point is (2, 9), not (2, 7).
  3. y=9+7(x−2)

Example 3

The line y=3x−1 is tangent to the graph of f at x=2.
(a) Find f(2).
(b) Find f′(2).
(c) Find limh→0f(2+h)−f(2)h.
xy242468y=f(x)y=3x-1
Graph
Hint

Plan: at x=2 → same height, same slope

Answer and solution
  1. 5
  2. 3
  3. 3
  1. f(2)=3(2)−1=5
  2. f′(2) = the slope of the tangent line =3. Not 5: 5 is the height, 3 is the slope.
  3. limh→0f(2+h)−f(2)h=f′(2)=3

Workbook

Problem 1

Let f(x)=3x+1. (a) Use the definition of the derivative to find f′(x). (b) Find f′(5).
Hint

Multiply by the conjugate. In f(x+h), only h moves.

Answer and solution
  1. f′(x)=323x+1
  2. 38
  1. Direct substitution h = 0 gives 0/0, an indeterminate form, so multiply top and bottom by the conjugate sqrt(3x + 3h + 1) + sqrt(3x + 1).
  2. limh→0(3x+3h+1)−(3x+1)h(3x+3h+1+3x+1)=limh→033x+3h+1+3x+1=323x+1
  3. (a) For h not 0, h cancels; then substitute h = 0. (b) f'(5) = 3/(2 sqrt(16)) = 3/8.

Common mistake Treating x as the variable inside f(x + h) and expanding the wrong term.

Watch the worked solution to Problem 1

Problem 2

For y=f(x), the rate of change of y with respect to x at x=4 is −2, and the graph of f passes through (4,7). (a) Write the first fact in two different derivative notations. (b) Write an equation of the line tangent to the graph of f at x=4.
Hint

Point first: (4,7). The slope is the number −2.

Answer and solution
  1. f′(4)=−2 and dydx|x=4=−2
  2. y=7−2(x−4)
  1. (a) "Rate of change of y with respect to x at x = 4" is the derivative at 4: f'(4) = -2, or dy/dx at x = 4 equals -2.
  2. (b) The point (4, f(4)) = (4, 7) and the slope f'(4) = -2.
  3. y=7−2(x−4)

Common mistake Using the expression for the slope instead of the number -2.

Watch the worked solution to Problem 2

Problem 3

The graph of f and the line tangent to the graph of f at x=1 are shown. The tangent line passes through the points (1,3) and (3,4). What is the value of f′(1)?
xy12345612345
Graph of f(x)
  1. 12
  2. 3
  3. 2
  4. −12
Hint

The slope of the tangent line at x=1 is f′(1). Use the two points on the line.

Answer and solution

Answer A. 12

  1. f'(1) is the slope of the tangent line. On the line, from (1, 3) to (3, 4): rise 1, run 2.
  2. slope=4−33−1=12
  3. Answer A.

Common mistake Using the height 3, or Δx/Δy, as the slope.

Watch the worked solution to Problem 3

Problem 4

Let f(x)=3−x3. Which of the following is an equation of the line tangent to the graph of f at x=−1?
  1. y=−3(x+1)
  2. y=4+3(x+1)
  3. y=4−3(x+1)
  4. y=4−3x2(x+1)
Hint

Point first, f(−1). Then the slope, the number f′(−1).

Answer and solution

Answer C. y=4−3(x+1)

  1. Point: f(-1) = 3 - (-1) = 4. Slope from the definition: f(-1 + h) - f(-1) = -3h + 3h^2 - h^3.
  2. limh→0−3h+3h2−h3h=limh→0(−3+3h−h2)=−3
  3. y = 4 - 3(x + 1). Answer C.

Common mistake Leaving out the point, or using the expression -3x^2 as the slope.

Watch the worked solution to Problem 4

Problem 5

For a function f, limx→3f(x)−f(3)x−3=5. Which of the following must be true?
I. limh→0f(3+h)−f(3)h=5
II. The line tangent to the graph of f at x=3 has slope 5.
III. f(3)=5
  1. I and III only
  2. II only
  3. I and II only
  4. I, II, and III
Hint

A limit of slopes says nothing about the height f(3).

Answer and solution

Answer C. I and II only

  1. The given limit is f'(3) = 5. I is the h form of the same derivative, so I is true. II: f'(3) is the slope of the tangent line, so II is true.
  2. III is about f(3), a value, not a rate. Example: f(x) = 5x - 14 has f'(3) = 5 but f(3) = 1. So III need not be true. Answer: I and II only.
  3. (A) and (D) read the rate 5 as the value f(3). (B) does not see the h form and the x form as the same f'(3).

Common mistake Treating the limit 5 as the value f(3).

Watch the worked solution to Problem 5

Problem 6

For h≠0, the average rate of change of a function f over the interval from x=2 to x=2+h is A(h)=7+3h+h2. Also, f(2)=1.
  1. Find f′(2). Show the work that leads to your answer.
  2. Find the average rate of change of f over the interval 2≤x≤4.
  3. Write an equation of the line tangent to the graph of f at x=2.
Hint

f′(2) is the limit of the average rate as h→0. The interval [2,4] has h=2.

Answer and solution
  1. 7
  2. 17
  3. y=1+7(x−2)
  1. Type: an average rate of change given as a function of h. Method: the rate at x = 2 is its limit as h -> 0; an interval of length 2 means h = 2.
  2. limh→0A(h)=limh→0(7+3h+h2)=7
  3. (a) f'(2) = 7. (b) From 2 to 4, h = 4 - 2 = 2: A(2) = 7 + 6 + 4 = 17. (Using h = 4 is the trap: that is the interval from 2 to 6.)
  4. (c) Point (2, f(2)) = (2, 1), slope 7: y = 1 + 7(x - 2).

Common mistake Taking A(4) instead of A(2) for the interval [2, 4].

Watch the worked solution to Problem 6

Problem 7

Let f(x)=x2−6x+5. The definition of the derivative gives f′(x)=2x−6.
  1. Find the point on the graph of f where the tangent line is parallel to the line 2x−y=7.
  2. Write an equation for that tangent line.
Hint

Rewrite 2x−y=7 as y=2x−7 to read its slope. The point comes from f.

Answer and solution
  1. (4,−3)
  2. y=−3+2(x−4)
  1. 2x - y = 7 is y = 2x - 7: slope 2. Parallel means the same slope.
  2. f′(x)=2x−6=2→x=4,f(4)=16−24+5=−3
  3. The point is (4, -3). Start at the point, walk with the slope 2: y = -3 + 2(x - 4).

Common mistake Reading the slope of 2x - y = 7 as -2 or 7; taking the y-value from f'.

Watch the worked solution to Problem 7