Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

3.1: Defining the Derivative

  • Gilbert Strang & Edwin “Jed” Herman
  • OpenStax

( \newcommand{\kernel}{\mathrm{null}\,}\)

Learning Objectives
  • Recognize the meaning of the tangent to a curve at a point.
  • Calculate the slope of a tangent line.
  • Identify the derivative as the limit of a difference quotient.
  • Calculate the derivative of a given function at a point.
  • Describe the velocity as a rate of change.
  • Explain the difference between average velocity and instantaneous velocity.
  • Estimate the derivative from a table of values.

Now that we have both a conceptual understanding of a limit and the practical ability to compute limits, we have established the foundation for our study of calculus, the branch of mathematics in which we compute derivatives and integrals. Most mathematicians and historians agree that calculus was developed independently by the Englishman Isaac Newton (1643–1727) and the German Gottfried Leibniz (1646–1716), whose images appear in Figure 3.1.1. When we credit Newton and Leibniz with developing calculus, we are really referring to the fact that Newton and Leibniz were the first to understand the relationship between the derivative and the integral. Both mathematicians benefited from the work of predecessors, such as Barrow, Fermat, and Cavalieri. The initial relationship between the two mathematicians appears to have been amicable; however, in later years a bitter controversy erupted over whose work took precedence. Although it seems likely that Newton did, indeed, arrive at the ideas behind calculus first, we are indebted to Leibniz for the notation that we commonly use today.

Photos of Newton and Leibniz.
Figure 3.1.1: Newton and Leibniz are credited with developing calculus independently.

Tangent Lines

We begin our study of calculus by revisiting the notion of secant lines and tangent lines. Recall that we used the slope of a secant line to a function at a point (a,f(a)) to estimate the rate of change, or the rate at which one variable changes in relation to another variable. We can obtain the slope of the secant by choosing a value of x near a and drawing a line through the points (a,f(a)) and (x,f(x)), as shown in Figure 3.1.2. The slope of this line is given by an equation in the form of a difference quotient:

msec=f(x)f(a)xa

We can also calculate the slope of a secant line to a function at a value a by using this equation and replacing x with a+h, where h is a value close to a. We can then calculate the slope of the line through the points (a,f(a)) and (a+h,f(a+h)). In this case, we find the secant line has a slope given by the following difference quotient with increment h:

msec=f(a+h)f(a)a+ha=f(a+h)f(a)h

Definition: Difference Quotient

Let f be a function defined on an interval I containing a. If xa is in I, then

Q=f(x)f(a)xa

is a difference quotient.

Also, if h0 is chosen so that a+h is in I, then

Q=f(a+h)f(a)h

is a difference quotient with increment h.

These two expressions for calculating the slope of a secant line are illustrated in Figure 3.1.2. We will see that each of these two methods for finding the slope of a secant line is of value. Depending on the setting, we can choose one or the other. The primary consideration in our choice usually depends on ease of calculation.

alt
Figure 3.1.2: We can calculate the slope of a secant line in either of two ways.

In Figure 3.1.3a we see that, as the values of x approach a, the slopes of the secant lines provide better estimates of the rate of change of the function at a. Furthermore, the secant lines themselves approach the tangent line to the function at a, which represents the limit of the secant lines. Similarly, Figure 3.1.3b shows that as the values of h get closer to 0, the secant lines also approach the tangent line. The slope of the tangent line at a is the rate of change of the function at a, as shown in Figure 3.1.3c.

This figure consists of three graphs labeled a, b, and c. Figure a shows the Cartesian coordinate plane with 0, a, x2, and x1 marked in order on the x-axis. There is a curve labeled y = f(x) with points marked (a, f(a)), (x2, f(x2)), and (x1, f(x1)). There are three straight lines: the first crosses (a, f(a)) and (x1, f(x1)); the second crosses (a, f(a)) and (x2, f(x2)); and the third only touches (a, f(a)), making it the tangent. At the bottom of the graph, the equation mtan = limx → a (f(x) - f(a))/(x - a) is given. Figure b shows a similar graph, but this time a + h2 and a + h1 are marked on the x-axis instead of x2 and x1. Consequently, the curve labeled y = f(x) passes through (a, f(a)), (a + h2, f(a + h2)), and (a + h1, f(a + h1)) and the straight lines similarly cross the graph as in Figure a. At the bottom of the graph, the equation mtan = limh → 0 (f(a + h) - f(a))/h is given. Figure c shows only the curve labeled y = f(x) and its tangent at point (a, f(a)).
Figure 3.1.3: The secant lines approach the tangent line (shown in green) as the second point approaches the first.

In Figure 3.1.4 we show the graph of f(x)=x and its tangent line at (1,1) in a series of tighter intervals about x=1. As the intervals become narrower, the graph of the function and its tangent line appear to coincide, making the values on the tangent line a good approximation to the values of the function for choices of x close to 1. In fact, the graph of f(x) itself appears to be locally linear in the immediate vicinity of x=1.

This figure consists of four graphs labeled a, b, c, and d. Figure a shows the graphs of the square root of x and the equation y = (x + 1)/2 with the x-axis going from 0 to 4 and the y-axis going from 0 to 2.5. The graphs of these two functions look very close near 1; there is a box around where these graphs look close. Figure b shows a close up of these same two functions in the area of the box from Figure a, specifically x going from 0 to 2 and y going from 0 to 1.4. Figure c is the same graph as Figure b, but this one has a box from 0 to 1.1 in the x coordinate and 0.8 and 1 on the y coordinate. There is an arrow indicating that this is blown up in Figure d. Figure d shows a very close picture of the box from Figure c, and the two functions appear to be touching for almost the entire length of the graph.
Figure 3.1.4: For values of x close to 1, the graph of f(x)=x and its tangent line appear to coincide.

Formally we may define the tangent line to the graph of a function as follows.

Definition: Tangent Line

Let f(x) be a function defined in an open interval containing a. The tangent line to f(x) at a is the line passing through the point (a,f(a)) having slope

mtan=limxaf(x)f(a)xa

provided this limit exists.

Equivalently, we may define the tangent line to f(x) at a to be the line passing through the point (a,f(a)) having slope

mtan=limh0f(a+h)f(a)h

provided this limit exists.

Just as we have used two different expressions to define the slope of a secant line, we use two different forms to define the slope of the tangent line. In this text we use both forms of the definition. As before, the choice of definition will depend on the setting. Now that we have formally defined a tangent line to a function at a point, we can use this definition to find equations of tangent lines.

Example 3.1.1: Finding a Tangent Line

Find the equation of the line tangent to the graph of f(x)=x2 at x=3.

Solution

First find the slope of the tangent line. In this example, use Equation ???.

mtan=limx3f(x)f(3)x3Apply the definition.=limx3x29x3Substitute f(x)=x2 and f(3)=9=limx3(x3)(x+3)x3=limx3(x+3)=6Factor the numerator to evaluate the limit.

Next, find a point on the tangent line. Since the line is tangent to the graph of f(x) at x=3, it passes through the point (3,f(3)). We have f(3)=9, so the tangent line passes through the point (3,9).

Using the point-slope equation of the line with the slope m=6 and the point (3,9), we obtain the line y9=6(x3). Simplifying, we have y=6x9. The graph of f(x)=x2 and its tangent line at 3 are shown in Figure 3.1.5.

This figure consists of the graphs of f(x) = x squared and y = 6x - 9. The graphs of these functions appear to touch at x = 3.
Figure 3.1.5: The tangent line to f(x) at x=3.
Example 3.1.2: The Slope of a Tangent Line Revisited

Use Equation ??? to find the slope of the line tangent to the graph of f(x)=x2 at x=3.

Solution

The steps are very similar to Example 3.1.1. See Equation ??? for the definition.

mtan=limh0f(3+h)f(3)hApply the definition.=limh0(3+h)29hSubstitute f(3+h)=(3+h)2 and f(3)=9=limh09+6h+h29hExpand and simplify to evaluate the limit.=limh0h(6+h)h=limh0(6+h)=6

We obtained the same value for the slope of the tangent line by using the other definition, demonstrating that the formulas can be interchanged.

Example 3.1.3: Finding the Equation of a Tangent Line

Find the equation of the line tangent to the graph of f(x)=1/x at x=2.

Solution

We can use Equation ???, but as we have seen, the results are the same if we use Equation ???.

mtan=limx2f(x)f(2)x2Apply the definition.=limx21x12x2Substitute f(x)=1x and f(2)=12=limx21x12x22x2xMultiply numerator and denominator by 2x to simplify fractions.=limx2(2x)(x2)(2x)Simplify.=limx212xSimplify using 2xx2=1, for x2.=14Evaluate the limit.

We now know that the slope of the tangent line is 14. To find the equation of the tangent line, we also need a point on the line. We know that f(2)=12. Since the tangent line passes through the point (2,12) we can use the point-slope equation of a line to find the equation of the tangent line. Thus the tangent line has the equation y=14x+1. The graphs of f(x)=1x and y=14x+1 are shown in Figure 3.1.6.

This figure consists of the graphs of f(x) = 1/x and y = -x/4 + 1. The part of the graph f(x) = 1/x in the first quadrant appears to touch the other function’s graph at x = 2.
Figure 3.1.6:The line is tangent to f(x) at x=2.
Exercise 3.1.1

Find the slope of the line tangent to the graph of f(x)=x at x=4.

Hint

Use either Equation ??? or Equation ???. Multiply the numerator and the denominator by a conjugate.

Answer

14

The Derivative of a Function at a Point

The type of limit we compute in order to find the slope of the line tangent to a function at a point occurs in many applications across many disciplines. These applications include velocity and acceleration in physics, marginal profit functions in business, and growth rates in biology. This limit occurs so frequently that we give this value a special name: the derivative. The process of finding a derivative is called differentiation.

Definition: Derivative

Let f(x) be a function defined in an open interval containing a. The derivative of the function f(x) at a, denoted by f(a), is defined by

f(a)=limxaf(x)f(a)xa

provided this limit exists.

Alternatively, we may also define the derivative of f(x) at a as

f(a)=limh0f(a+h)f(a)h.

Example 3.1.4: Estimating a Derivative

For f(x)=x2, use a table to estimate f(3) using Equation ???.

Solution

Create a table using values of x just below 3 and just above 3.

x x29x3
2.9 5.9
2.99 5.99
2.999 5.999
3.001 6.001
3.01 6.01
3.1 6.1

After examining the table, we see that a good estimate is f(3)=6.

Exercise 3.1.2

For f(x)=x2, use a table to estimate f(3) using Equation ???.

Hint

Evaluate (x+h)2x2h at h=0.1,0.01,0.001,0.001,0.01,0.1

Answer

6

Example 3.1.6: Finding a Derivative

For f(x)=3x24x+1, find f(2) by using Equation ???.

Solution

Substitute the given function and value directly into the equation.

f(x)=limx2f(x)f(2)x2Apply the definition.=limx2(3x24x+1)5x2Substitute f(x)=3x24x+1 and f(2)=5.=limx2(x2)(3x+2)x2Simplify and factor the numerator.=limx2(3x+2)Cancel the common factor.=8Evaluate the limit.

Example 3.1.7: Revisiting the Derivative

For f(x)=3x24x+1, find f(2) by using Equation ???.

Solution

Using this equation, we can substitute two values of the function into the equation, and we should get the same value as in Example 3.1.6.

f(2)=limh0f(2+h)f(2)hApply the definition.=limh0(3(2+h)24(2+h)+1)5hSubstitute f(2)=5 and f(2+h)=3(2+h)24(2+h)+1.=limh03(4+4h+h2)84h+15hExpand the numerator.=limh012+12h+3h2124hhDistribute and begin simplifying the numerator.=limh03h2+8hhFinish simplifying the numerator.=limh0h(3h+8)hFactor the numerator.=limh0(3h+8)Cancel the common factor.=8Evaluate the limit.

The results are the same whether we use Equation ??? or Equation ???.

Exercise 3.1.4

For f(x)=x2+3x+2, find f(1).

Hint

Use either Equation ???, Equation ???, or try both.

Answer

f(1)=5

Velocities and Rates of Change

Now that we can evaluate a derivative, we can use it in velocity applications. Recall that if s(t) is the position of an object moving along a coordinate axis, the average velocity of the object over a time interval [a,t] if t>a or [t,a] if t<a is given by the difference quotient

vave=s(t)s(a)ta.

As the values of t approach a, the values of vave approach the value we call the instantaneous velocity at a. That is, instantaneous velocity at a, denoted v(a), is given by

v(a)=s(a)=limtas(t)s(a)ta.

To better understand the relationship between average velocity and instantaneous velocity, see Figure 3.1.7. In this figure, the slope of the tangent line (shown in red) is the instantaneous velocity of the object at time t=a whose position at time t is given by the function s(t). The slope of the secant line (shown in green) is the average velocity of the object over the time interval [a,t].

This figure consists of the Cartesian coordinate plane with 0, a, and t1 marked on the t-axis. The function y = s(t) is graphed in the first quadrant along with two lines marked tangent and secant. The tangent line touches y = s(t) at only one point, (a, s(a)). The secant line touches y = s(t) at two points: (a, s(a)) and (t1, s(t1)).
Figure 3.1.7: The slope of the secant line is the average velocity over the interval [a,t]. The slope of the tangent line is the instantaneous velocity.

We can use Equation ??? to calculate the instantaneous velocity, or we can estimate the velocity of a moving object by using a table of values. We can then confirm the estimate by using Equation ???.

Example 3.1.8: Estimating Velocity

A lead weight on a spring is oscillating up and down. Its position at time t with respect to a fixed horizontal line is given by s(t)=sint (Figure 3.1.8). Use a table of values to estimate v(0). Check the estimate by using Equation ???.

A picture of a spring hanging down with a weight at the end. There is a horizontal dashed line marked 0 a little bit above the weight.
Figure 3.1.8: A lead weight suspended from a spring in vertical oscillatory motion.
Solution

We can estimate the instantaneous velocity at t=0 by computing a table of average velocities using values of t approaching 0, as shown in Table 3.1.2.

Table 3.1.2: Average velocities using values of t approaching 0
t sintsin0t0=sintt
−0.1 0.998334166
−0.01 0.9999833333
−0.001 0.999999833
0.001 0.999999833
0.01 0.9999833333
0.1 0.998334166

From the table we see that the average velocity over the time interval [0.1,0] is 0.998334166, the average velocity over the time interval [0.01,0] is 0.9999833333, and so forth. Using this table of values, it appears that a good estimate is v(0)=1.

By using Equation ???, we can see that

v(0)=s(0)=limt0sintsin0t0=limt0sintt=1.

Thus, in fact, v(0)=1.

Exercise 3.1.5

A rock is dropped from a height of 64 feet. Its height above ground at time t seconds later is given by s(t)=16t2+64,0t2. Find its instantaneous velocity 1 second after it is dropped, using Equation ???.

Hint

v(t)=s(t). Follow the earlier examples of the derivative using Equation ???.

Answer

−32 ft/s

As we have seen throughout this section, the slope of a tangent line to a function and instantaneous velocity are related concepts. Each is calculated by computing a derivative and each measures the instantaneous rate of change of a function, or the rate of change of a function at any point along the function.

Definition: Instantaneous Rate of Change

The instantaneous rate of change of a function f(x) at a value a is its derivative f(a).

Example 3.1.9: Chapter Opener: Estimating Rate of Change of Velocity

Reaching a top speed of 270.49 mph, the Hennessey Venom GT is one of the fastest cars in the world. In tests it went from 0 to 60 mph in 3.05 seconds, from 0 to 100 mph in 5.88 seconds, from 0 to 200 mph in 14.51 seconds, and from 0 to 229.9 mph in 19.96 seconds. Use this data to draw a conclusion about the rate of change of velocity (that is, its acceleration) as it approaches 229.9 mph. Does the rate at which the car is accelerating appear to be increasing, decreasing, or constant?

The same sports car speeding along a winding road from the beginning of the chapter.
Figure 3.1.9: (credit: modification of work by Codex41, Flickr)

Solution: First observe that 60 mph = 88 ft/s, 100 mph ≈146.67 ft/s, 200 mph ≈293.33 ft/s, and 229.9 mph ≈337.19 ft/s. We can summarize the information in a table.

Table 3.1.3: v(t) at different values of t
t v(t)
0 0
3.05 88
5.88 147.67
14.51 293.33
19.96 337.19

Now compute the average acceleration of the car in feet per second on intervals of the form [t,19.96] as t approaches 19.96, as shown in the following table.

Average acceleration
t v(t)v(19.96)t19.96=v(t)337.19t19.96
0.0 16.89
3.05 14.74
5.88 13.46
14.51 8.05

The rate at which the car is accelerating is decreasing as its velocity approaches 229.9 mph (337.19 ft/s).

Example 3.1.10: Rate of Change of Temperature

A homeowner sets the thermostat so that the temperature in the house begins to drop from 70°F at 9 p.m., reaches a low of 60° during the night, and rises back to 70° by 7 a.m. the next morning. Suppose that the temperature in the house is given by T(t)=0.4t24t+70 for 0t10, where t is the number of hours past 9 p.m. Find the instantaneous rate of change of the temperature at midnight.

Solution

Since midnight is 3 hours past 9 p.m., we want to compute T(3). Refer to Equation ???.

T(3)=limt3T(t)T(3)t3Apply the definition.=limt30.4t24t+7061.6t3Substitute T(t)=0.4t24t+70 and T(3)=61.6.=limt30.4t24t+8.4t3Simplify.=limt30.4(t3)(t7)t3=limt30.4(t7)Cancel.=1.6Evaluate the limit.

The instantaneous rate of change of the temperature at midnight is 1.6°F per hour.

Example 3.1.11: Rate of Change of Profit

A toy company can sell x electronic gaming systems at a price of p=0.01x+400 dollars per gaming system. The cost of manufacturing x systems is given by C(x)=100x+10,000 dollars. Find the rate of change of profit when 10,000 games are produced. Should the toy company increase or decrease production?

Solution

The profit P(x) earned by producing x gaming systems is R(x)C(x), where R(x) is the revenue obtained from the sale of x games. Since the company can sell x games at p=0.01x+400 per game,

R(x)=xp=x(0.01x+400)=0.01x2+400x.

Consequently,

P(x)=0.01x2+300x10,000.

Therefore, evaluating the rate of change of profit gives

P(10000)=limx10000P(x)P(10000)x10000=limx100000.01x2+300x100001990000x10000=limx100000.01x2+300x2000000x10000=100.

Since the rate of change of profit P(10,000)>0 and P(10,000)>0, the company should increase production.

Exercise 3.1.6

A coffee shop determines that the daily profit on scones obtained by charging s dollars per scone is P(s)=20s2+150s10. The coffee shop currently charges $3.25 per scone. Find P(3.25), the rate of change of profit when the price is $3.25 and decide whether or not the coffee shop should consider raising or lowering its prices on scones.

Hint

Use Example 3.1.11 for a guide.

Answer

P(3.25)=20>0; raise prices

Key Concepts

  • The slope of the tangent line to a curve measures the instantaneous rate of change of a curve. We can calculate it by finding the limit of the difference quotient or the difference quotient with increment h.
  • The derivative of a function f(x) at a value a is found using either of the definitions for the slope of the tangent line.
  • Velocity is the rate of change of position. As such, the velocity v(t) at time t is the derivative of the position s(t) at time t.
    Average velocity is given by vave=s(t)s(a)ta.
    Instantaneous velocity is given by v(a)=s(a)=limtas(t)s(a)ta.
  • We may estimate a derivative by using a table of values.

Key Equations

  • Difference quotient

Q=f(x)f(a)xa

  • Difference quotient with increment h

Q=f(a+h)f(a)a+ha=f(a+h)f(a)h

  • Slope of tangent line

mtan=limxaf(x)f(a)xa

mtan=limh0f(a+h)f(a)h

  • Derivative of f(x) at a

f(a)=limxaf(x)f(a)xa

f(a)=limh0f(a+h)f(a)h

  • Average velocity

vave=s(t)s(a)ta

  • Instantaneous velocity

v(a)=s(a)=limtas(t)s(a)ta

Glossary

derivative
the slope of the tangent line to a function at a point, calculated by taking the limit of the difference quotient, is the derivative
difference quotient

of a function f(x) at a is given by

f(a+h)f(a)h or f(x)f(a)xa

differentiation
the process of taking a derivative
instantaneous rate of change
the rate of change of a function at any point along the function a, also called f(a), or the derivative of the function at a

This page titled 3.1: Defining the Derivative is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Gilbert Strang & Edwin “Jed” Herman (OpenStax) via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?