AP Calculus AB Past Exam Questions

Pair each free-response paper with its scoring materials and practise explaining the units of a result.

Quick Answer

Practise released AP Calculus AB free-response questions alongside their scoring guidelines. Label what a derivative, integral or graph represents in context, include units where appropriate and write the justification the part asks for.

Curve sketched on calculus practice paper
Advertisement

Some historical paper links now lead to an archive page. For recent released questions and scoring materials, use the official collection. College Board AP Calculus AB questions

2022: Free-Response Questions

 

2022: Free-Response Questions

Questions

Scoring

Samples and Commentary

Free-Response Questions

Scoring Guidelines

Chief Reader Report

Scoring Statistics

Score Distributions

Sample Responses Q1

Sample Responses Q2

Sample Responses Q3

Sample Responses Q4

Sample Responses Q5

Sample Responses Q6

2021: Free-Response Questions

 

Questions

Scoring

Samples and Commentary

Free-Response Questions

Scoring Guidelines

Chief Reader Report

Scoring Statistics

Scoring Distribution

Sample Responses Q1

Sample Responses Q2

Sample Responses Q3

Sample Responses Q4

Sample Responses Q5

Sample Responses Q6

2020: Free-Response Questions

 

The 2020 free-response questions are available in the AP Classroom question bank. Use the 2025 AP past papers and solutions to practise with questions from the relevant subject.

2019: Free-Response Questions

 

Questions

Scoring

Samples and Commentary

Free-Response Questions

Scoring Guidelines

Chief Reader Report

Scoring Statistics

Scoring Distribution

Sample Responses Q1

Sample Responses Q2

Sample Responses Q3

Sample Responses Q4

Sample Responses Q5

Sample Responses Q6

2018: Free-Response Questions

 

2018: Free-Response Questions

Questions

Scoring

Samples and Commentary

Free-Response Questions

Scoring Guidelines

Chief Reader Report

Scoring Statistics

Scoring Distributions

Sample Responses Q1

Sample Responses Q2

Sample Responses Q3

Sample Responses Q4

Sample Responses Q5

Sample Responses Q6

2017: Free-Response Questions

 
2017: Free-Response Questions

Questions

Scoring

Samples and Commentary

Free-Response Questions

Scoring Guidelines

Chief Reader Report

Scoring Statistics

Scoring Distributions

Sample Responses Q1

Sample Responses Q2

Sample Responses Q3

Sample Responses Q4

Sample Responses Q5

Sample Responses Q6

2007: Free-Response Questions

 

2006: Free-Response Questions

 
2006: Free-Response Questions

Questions

Scoring

Samples and Commentary

Free-Response Questions

Scoring Guidelines

Student Performance Q&A

Scoring Statistics

Grade Distributions

Sample Responses Q1

Sample Responses Q2

Sample Responses Q3

Sample Responses Q4

Sample Responses Q5

Sample Responses Q6

2005: Free-Response Questions

 
2005: Free-Response Questions

Questions

Scoring

Samples

Free-Response Questions

Scoring Guidelines

Scoring Commentary

Student Performance Q&A

Scoring Statistics

Grade Distributions

Sample Responses

2005: Form B

 
2005: Form B

Questions

Scoring

Samples

Free-Response Questions

Scoring Guidelines

Scoring Commentary

Sample Responses

2002: Free-Response Questions

 
2002: Free-Response Questions

Questions

Scoring

Samples

All Questions

Scoring Guidelines

Scoring Commentary

Student Performance Q&A

Scoring Statistics

Grade Distributions

Sample Responses Q1

Sample Responses Q2

Sample Responses Q3

Sample Responses Q4

Sample Responses Q5

Sample Responses Q6

2002: Form B

 
2002: Form B

Questions

Scoring

Samples

All Questions

Scoring Guidelines

Scoring Commentary

Sample Responses Q1

Sample Responses Q2

Sample Responses Q3

Sample Responses Q4

Sample Responses Q5

Sample Responses Q6

2001: Free-Response Questions

 
2001: Free-Response Questions

Questions

Scoring

Samples

All Questions

Scoring Guidelines

Scoring Commentary

Student Performance Q&A

Sample Responses Q1

Sample Responses Q2

Sample Responses Q3

Sample Responses Q4

Sample Responses Q5

Sample Responses Q6

2000: Free-Response Questions

 
2000: Free-Response Questions

Questions

Scoring

Samples

All Questions

Scoring Guidelines

Scoring Commentary

Sample Responses Q1

Sample Responses Q2

Sample Responses Q3

Sample Responses Q4

Sample Responses Q5

Sample Responses Q6

1999: Free-Response Questions

 
1999: Free-Response Questions

Questions

Scoring

Samples

All Questions

Scoring Guidelines

Sample Responses Q1

Sample Responses Q2

Sample Responses Q3

Sample Responses Q4

Sample Responses Q5

Sample Responses Q6

1998: Free-Response Questions

 
1998: Free-Response Questions

Questions

Scoring

Samples

All Questions

Scoring Guidelines

 
Advertisement

Turn a rate graph into a net change

A tank begins with twenty litres. Its net inflow rises linearly from two to six litres per minute over three minutes. The area below the rate graph is a trapezoid of mean height four and width three. The net gain is twelve litres, giving a final volume of thirty-two. A negative region on a longer graph would subtract volume. The slope of the rate graph describes how fast the inflow itself changes.

Finding the Average Rate of Change of a Function

The functions describing the examples above involve a change over time. Change divided by time is one example of a rate. The rates of change in the previous examples are each different. In other words, some changed faster than others. If we were to graph the functions, we could compare the rates by determining the slopes of the graphs.
A tangent line to a curve is a line that intersects the curve at only a single point but does not cross it there. (The tangent line may intersect the curve at another point away from the point of interest.) If we zoom in on a curve at that point, the curve appears linear, and the slope of the curve at that point is close to the slope of the tangent line at that point.
diagram represents the function f( x )= x 3 −4x. We can see the slope at various points along the curve.
  • slope at x=−2 is 8
  • slope at x=−1 is –1
  • slope at x=2 is 8
Graph of f(x) = x^3 - 4x with tangent lines at x = -2 with a slope of 8, at x = -3 with a slope of -1, and at x=2 with a slope of 8.
Graph showing tangents to curve at –2, –1, and 2.
Let’s imagine a point on the curve of function f at x=a as shown in diagram. The coordinates of the point are ( a,f(a) ). Connect this point with a second point on the curve a little to the right of x=a, with an x-value increased by some small real number h. The coordinates of this second point are ( a+h,f(a+h) ) for some positive-value h.
Graph of an increasing function that demonstrates the rate of change of the function by drawing a line between the two points, (a, f(a)) and (a, f(a+h)).
Connecting point a with a point just beyond allows us to measure a slope close to that of a tangent line at x=a.
We can calculate the slope of the line connecting the two points (a,f(a)) and (a+h,f(a+h)), called a secant line, by applying the slope formula,
slope =  change in y change in x
We use the notation m sec to represent the slope of the secant line connecting two points.
m sec = f(a+h)−f(a) (a+h)−(a)        = f(a+h)−f(a) a +h− a
The slope m sec equals the average rate of change between two points (a,f(a)) and (a+h,f(a+h)).
m sec = f( a+h )−f( a ) h

Finding the Average Rate of Change

Find the average rate of change connecting the points ( 2,−6 ) and ( −1,5 ).
Solution
We know the average rate of change connecting two points may be given by
AROC= f( a+h )−f( a ) h .
If one point is ( 2,−6 ), or ( 2,f( 2 ) ), then f( 2 )=−6.
The value h is the displacement from 2 to −1, which equals −1−2=−3.
For the other point, f( a+h ) is the y-coordinate at a+h , which is 2+(−3) or −1, so f(a+h)=f(−1)=5.
AROC= f(a+h)−f(a) h            = 5−(−6) −3            = 11 −3            =− 11 3

Understanding the Instantaneous Rate of Change

Now that we can find the average rate of change, suppose we make h in source illustration or discussion smaller and smaller. Then a+h will approach a as h gets smaller, getting closer and closer to 0. Likewise, the second point ( a+h,f(a+h) ) will approach the first point, ( a,f(a) ). As a consequence, the connecting line between the two points, called the secant line, will get closer and closer to being a tangent to the function at x=a, and the slope of the secant line will get closer and closer to the slope of the tangent at x=a. See diagram.
Graph of an increasing function that contains a point, P, at (a, f(a)). At the point, there is a tangent line and two secant lines where one secant line is connected to Q1 and another secant line is connected to Q2.
The connecting line between two points moves closer to being a tangent line at x=a.
Because we are looking for the slope of the tangent at x=a, we can think of the measure of the slope of the curve of a function f at a given point as the rate of change at a particular instant. We call this slope the instantaneous rate of change, or the derivative of the function at x=a. Both can be found by finding the limit of the slope of a line connecting the point at x=a with a second point infinitesimally close along the curve. For a function f both the instantaneous rate of change of the function and the derivative of the function at x=a are written as f'(a), and we can define them as a two-sided limit that has the same value whether approached from the left or the right.
f ′ (a)= lim h→0 f( a+h )−f( a ) h
The expression by which the limit is found is known as the difference quotient.

Derivatives: Interpretations and Notation

The derivative of a function can be interpreted in different ways. It can be observed as the behavior of a graph of the function or calculated as a numerical rate of change of the function.
  • The derivative of a function f(x) at a point x=a is the slope of the tangent line to the curve f(x) at x=a. The derivative of f(x) at x=a is written f ′ (a).
  • The derivative f ′ (a) measures how the curve changes at the point ( a,f(a) ).
  • The derivative f ′ (a) may be thought of as the instantaneous rate of change of the function f(x) at x=a.
  • If a function measures distance as a function of time, then the derivative measures the instantaneous velocity at time t=a.

Finding the Derivative of a Polynomial Function

Find the derivative of the function f(x)= x 2 −3x+5 at x=a.
Solution
We have:
f ′ (a)= lim h→0 f( a+h )−f( a ) h                   Definition of a derivative 
Substitute f(a+h)= (a+h) 2 −3(a+h)+5 and f(a)= a 2 −3a+5.
f ′ (a)= lim h→0 (a+h)(a+h)−3(a+h)+5−( a 2 −3a+5) h         = lim h→0 a 2 +2ah+ h 2 −3a−3h+5− a 2 +3a−5 h Evaluate to remove parentheses.         = lim h→0 a 2 +2ah+ h 2 −3a −3h +5 − a 2 +3a −5 h Simplify.         = lim h→0 2ah+ h 2 −3h h         = lim h→0 h (2a+h−3) h Factor out an h.         =2a+0−3 Evaluate the limit.         =2a−3

Finding Derivatives of Rational Functions

To find the derivative of a rational function, we will sometimes simplify the expression using algebraic techniques we have already learned.

Finding the Derivative of a Rational Function

Find the derivative of the function f(x)= 3+x 2−x at x=a.
Solution
f ′ (a)= lim h→0 f( a+h )−f( a ) h         = lim h→0 3+( a+h ) 2−( a+h ) −( 3+a 2−a ) h Substitute f(a+h) and f(a)        = lim h→0 (2−(a+h))(2−a)[ 3+( a+h ) 2−( a+h ) −( 3+a 2−a ) ] (2−(a+h))(2−a)(h) Multiply numerator and denominator by (2−(a+h))(2−a)        = lim h→0 ( 2−( a+h ) ) (2−a)( 3+( a+h ) ( 2−( a+h ) ) )−(2−(a+h)) ( 2−a ) ( 3+a 2−a ) ( 2−( a+h ) )(2−a)(h) Distribute        = lim h→0 6−3a+2a− a 2 +2h−ah−6+3a+3h−2a+ a 2 +ah ( 2−( a+h ) )( 2−a )(h) Multiply        = lim h→0 5 h ( 2−( a+h ) )( 2−a )( h ) Combine like terms        = lim h→0 5 ( 2−( a+h ) )( 2−a ) Cancel like factors        = 5 ( 2−( a+0 ) )( 2−a ) = 5 ( 2−a )( 2−a ) = 5 ( 2−a ) 2 Evaluate the limit

Finding Derivatives of Functions with Roots

To find derivatives of functions with roots, we use the methods we have learned to find limits of functions with roots, including multiplying by a conjugate.

Finding the Derivative of a Function with a Root

Find the derivative of the function f(x)=4 x at x=36.
Solution
We have
f ′ (a)= lim h→0 f(a+h)−f(a) h         = lim h→0 4 a+h −4 a h Substitute f(a+h) and f(a)
Multiply the numerator and denominator by the conjugate: 4 a+h +4 a 4 a+h +4 a .
    f ′ (a)= lim h→0 ( 4 a+h −4 a h )⋅( 4 a+h +4 a 4 a+h +4 a )            = lim h→0 ( 16(a+h)−16a h4( a+h + a ) ) Multiply.            = lim h→0 ( 16a +16h− 16a h4( a+h + a ) ) Distribute and combine like terms.            = lim h→0 ( 16 h h ( 4 a+h +4 a ) ) Simplify.            = lim h→0 ( 16 4 a+h +4 a ) Evaluate the limit by letting h=0.            = 16 8 a = 2 a f ′ (36)= 2 36 Evaluate the derivative at x=36.            = 2 6            = 1 3

Finding Instantaneous Rates of Change

Many applications of the derivative involve determining the rate of change at a given instant of a function with the independent variable time—which is why the term instantaneous is used. Consider the height of a ball tossed upward with an initial velocity of 64 feet per second, given by s(t)=−16 t 2 +64t+6, where t is measured in seconds and s( t ) is measured in feet. We know the path is that of a parabola. The derivative will tell us how the height is changing at any given point in time. The height of the ball is shown in diagram as a function of time. In physics, we call this the “s-t graph.”
Graph of a negative parabola with a vertex at (2, 70) and two points at (1, 55) and (3, 55).

Finding the Instantaneous Rate of Change

Using the function above, s(t)=−16 t 2 +64t+6, what is the instantaneous velocity of the ball at 1 second and 3 seconds into its flight?
Solution
The velocity at t=1 and t=3 is the instantaneous rate of change of distance per time, or velocity. Notice that the initial height is 6 feet. To find the instantaneous velocity, we find the derivative and evaluate it at t=1 and t=3:
f ′ (a)= lim h→0 f(a+h)−f(a) h s ′ (t)= lim h→0 −16 (t+h) 2 +64(t+h)+6−(−16 t 2 +64t+6) h Substitute s(t+h) and s(t).         = lim h→0 −16 t 2 −32ht− h 2 +64t+64h+6+16 t 2 −64t−6 h Distribute.         = lim h→0 −32ht− h 2 +64h h Simplify.         = lim h→0 h (−32t−h+64) h Factor the numerator.         = lim h→0 −32t−h+64 Cancel out the common factor h. s ′ (t)=−32t+64 Evaluate the limit by letting h=0.
For any value of t , s ′ ( t ) tells us the velocity at that value of t.
Evaluate t=1 and t=3.
s ′ (1)=−32(1)+64=32 s ′ (3)=−32(3)+64=−32
The velocity of the ball after 1 second is 32 feet per second, as it is on the way up.
The velocity of the ball after 3 seconds is −32 feet per second, as it is on the way down.

Using Graphs to Find Instantaneous Rates of Change

We can estimate an instantaneous rate of change at x=a by observing the slope of the curve of the function f( x ) at x=a. We do this by drawing a line tangent to the function at x=a and finding its slope.

Estimating the Derivative at a Point on the Graph of a Function

From the graph of the function y=f( x ) presented in diagram, estimate each of the following:
  1. ⓐ f(0)
  2. ⓑ f(2)
  3. ⓒ f'(0)
  4. ⓓ f'(2)
Graph of an odd function with multiplicity of two and with two points at (0, 1) and (2, 1).
Solution
To find the functional value, f( a ), find the y-coordinate at x=a.
To find the derivative at x=a, f ′ ( a ), draw a tangent line at x=a, and estimate the slope of that tangent line. See diagram.
Graph of the previous function with tangent lines at the two points (0, 1) and (2, 1). The graph demonstrates the slopes of the tangent lines. The slope of the tangent line at x = 0 is 0, and the slope of the tangent line at x = 2 is 4.
  1. ⓐ f(0) is the y-coordinate at x=0. The point has coordinates ( 0,1 ), thus f(0)=1.
  2. ⓑ f(2) is the y-coordinate at x=2. The point has coordinates ( 2,1 ), thus f(2)=1.
  3. ⓒ f ′ (0) is found by estimating the slope of the tangent line to the curve at x=0. The tangent line to the curve at x=0 appears horizontal. Horizontal lines have a slope of 0, thus f ′ (0)=0.
  4. ⓓ f ′ (2) is found by estimating the slope of the tangent line to the curve at x=2. Observe the path of the tangent line to the curve at x=2. As the x value moves one unit to the right, the y value moves up four units to another point on the line. Thus, the slope is 4, so f ′ (2)=4.

Using Instantaneous Rates of Change to Solve Real-World Problems

Another way to interpret an instantaneous rate of change at x=a is to observe the function in a real-world context. The unit for the derivative of a function f( x ) is
output units   input unit 
Such a unit shows by how many units the output changes for each one-unit change of input. The instantaneous rate of change at a given instant shows the same thing: the units of change of output per one-unit change of input.
One example of an instantaneous rate of change is a marginal cost. For example, suppose the production cost for a company to produce x items is given by C( x ), in thousands of dollars. The derivative function tells us how the cost is changing for any value of x in the domain of the function. In other words, C ′ ( x ) is interpreted as a marginal cost, the additional cost in thousands of dollars of producing one more item when x items have been produced. For example, C ′ ( 11 ) is the approximate additional cost in thousands of dollars of producing the 12th item after 11 items have been produced. C ′ ( 11 )=2.50 means that when 11 items have been produced, producing the 12th item would increase the total cost by approximately $2,500.00.

Finding a Marginal Cost

The cost in dollars of producing x laptop computers in dollars is f( x )= x 2 −100x. At the point where 200 computers have been produced, what is the approximate cost of producing the 201st unit?
Solution
If f( x )= x 2 −100x describes the cost of producing x computers, f ′ ( x ) will describe the marginal cost. We need to find the derivative. For purposes of calculating the derivative, we can use the following functions:
f(x+h)= (x+h) 2 −100(x+h)       f(x)= x 2 −100x
     f ′ (x)= lim h→0 f(x+h)−f(x) h Formula for a derivative              = lim h→0 (x+h) 2 −100(x+h)−( x 2 −100x) h Substitute f(x+h) and f(x).              = lim h→0 x 2 +2xh+ h 2 −100x−100h− x 2 +100x h Multiply polynomials, distribute.              = lim h→0 2xh+ h 2 −100h h Collect like terms.              = lim h→0 h (2x+h−100) h Factor and cancel like terms.              = lim h→0 2x+h−100 Simplify.              = ( 2x−100 ) Evaluate when h=0.       f ′ (x)=2x−100 Formula for marginal cost f ′ (200)=2(200)−100=300 Evaluate for 200 units.
The marginal cost of producing the 201st unit will be approximately $300.

Interpreting a Derivative in Context

A car leaves an intersection. The distance it travels in miles is given by the function f( t ), where t represents hours. Explain the following notations:
  1. ⓐ f(0)=0
  2. ⓑ f ′ (1)=60
  3. ⓒ f(1)=70
  4. ⓓ f(2.5)=150
Solution
First we need to evaluate the function f(t) and the derivative of the function f ′ (t), and distinguish between the two. When we evaluate the function f(t), we are finding the distance the car has traveled in t hours. When we evaluate the derivative f ′ (t), we are finding the speed of the car after t hours.
  1. ⓐ f(0)=0 means that in zero hours, the car has traveled zero miles.
  2. ⓑ f ′ (1)=60 means that one hour into the trip, the car is traveling 60 miles per hour.
  3. ⓒ f(1)=70 means that one hour into the trip, the car has traveled 70 miles. At some point during the first hour, then, the car must have been traveling faster than it was at the 1-hour mark.
  4. ⓓ f(2.5)=150 means that two hours and thirty minutes into the trip, the car has traveled 150 miles.

Finding Points Where a Function’s Derivative Does Not Exist

To understand where a function’s derivative does not exist, we need to recall what normally happens when a function f( x ) has a derivative at x=a . Suppose we use a graphing utility to zoom in on x=a . If the function f( x ) is differentiable, that is, if it is a function that can be differentiated, then the closer one zooms in, the more closely the graph approaches a straight line. This characteristic is called linearity.
Look at the graph in diagram. The closer we zoom in on the point, the more linear the curve appears.
Graph of a negative parabola that is zoomed in on a point to show that the curve becomes linear the closer it is zoomed in.
We might presume the same thing would happen with any continuous function, but that is not so. The function f(x)=| x |, for example, is continuous at x=0, but not differentiable at x=0. As we zoom in close to 0 in diagram, the graph does not approach a straight line. No matter how close we zoom in, the graph maintains its sharp corner.
Graph of an absolute function.
Graph of the function f(x)=| x |, with x-axis from –0.1 to 0.1 and y-axis from –0.1 to 0.1.
We zoom in closer by narrowing the range to produce diagram and continue to observe the same shape. This graph does not appear linear at x=0.
Graph of an absolute function.
Graph of the function f(x)=| x |, with x-axis from –0.001 to 0.001 and y-axis from—0.001 to 0.001.
What are the characteristics of a graph that is not differentiable at a point? Here are some examples in which function f( x ) is not differentiable at x=a.
In diagram, we see the graph of
f(x)={ x 2 , x≤2 8−x, x>2 .
Notice that, as x approaches 2 from the left, the left-hand limit may be observed to be 4, while as x approaches 2 from the right, the right-hand limit may be observed to be 6. We see that it has a discontinuity at x=2.
Graph of a piecewise function where from negative infinity to (2, 4) is a positive parabola and from (2, 6) to positive infinity is a linear line.
The graph of f( x ) has a discontinuity at x=2.
In diagram, we see the graph of f(x)=| x |. We see that the graph has a corner point at x=0.
Graph of an absolute function.
The graph of f(x)=| x | has a corner point at x=0 .
In diagram, we see that the graph of f(x)= x 2 3 has a cusp at x=0. A cusp has a unique feature. Moving away from the cusp, both the left-hand and right-hand limits approach either infinity or negative infinity. Notice the tangent lines as x approaches 0 from both the left and the right appear to get increasingly steeper, but one has a negative slope, the other has a positive slope.
Graph of f(x) = x^(2/3) with a viewing window of [-3, 3] by [-2, 3].
The graph of f(x)= x 2 3 has a cusp at x=0.
In diagram, we see that the graph of f(x)= x 1 3 has a vertical tangent at x=0. Recall that vertical tangents are vertical lines, so where a vertical tangent exists, the slope of the line is undefined. This is why the derivative, which measures the slope, does not exist there.
Graph of f(x) = x^(1/3) with a viewing window of [-3, 3] by [-3, 3].
The graph of f(x)= x 1 3 has a vertical tangent at x=0.

Determining Where a Function Is Continuous and Differentiable from a Graph

Using diagram, determine where the function is
  1. continuous
  2. discontinuous
  3. differentiable
  4. not differentiable
At the points where the graph is discontinuous or not differentiable, state why.
Graph of a piecewise function that has a removable discontinuity at (-2, -1) and is discontinuous when x =1.
Solution
The graph of f( x ) is continuous on ( −∞,−2 )∪( −2, 1 )∪( 1,∞ ). The graph of f( x ) has a removable discontinuity at x=−2 and a jump discontinuity at x=1. See diagram.
Graph of the previous function that shows the intervals of continuity.
Three intervals where the function is continuous
The graph of is differentiable on ( −∞,−2 )∪( −2,−1 )∪( −1,1 )∪( 1,2 )∪( 2,∞ ). The graph of f(x) is not differentiable at x=−2 because it is a point of discontinuity, at x=−1 because of a sharp corner, at x=1 because it is a point of discontinuity, and at x=2 because of a sharp corner. See diagram.
Graph of the previous function that not only shows the intervals of continuity but also labels the parts of the graph that has sharp corners and discontinuities. The sharp corners are at (-1, -1) and (2, 3), and the discontinuities are at (-2, -1) and (1, 1).
Five intervals where the function is differentiable

Finding an Equation of a Line Tangent to the Graph of a Function

The equation of a tangent line to a curve of the function f( x ) at x=a is derived from the point-slope form of a line, y=m( x− x 1 )+ y 1 . The slope of the line is the slope of the curve at x=a and is therefore equal to f ′ (a), the derivative of f( x ) at x=a. The coordinate pair of the point on the line at x=a is (a,f(a)).
If we substitute into the point-slope form, we have
The point-slope formula that demonstrates that m = f(a), x1 = a, and y_1 = f(a).
The equation of the tangent line is
y=f'(a)( x−a )+f(a)

Finding the Equation of a Line Tangent to a Function at a Point

Find the equation of a line tangent to the curve f(x)= x 2 −4x at x=3.
Solution
Using:
f'(a)= lim h→0 f( a+h )−f( a ) h
Substitute f(a+h)= (a+h) 2 −4(a+h) and f(a)= a 2 −4a.
f ′ (a)= lim h→0 (a+h)(a+h)−4(a+h)−( a 2 −4a) h          = lim h→0 a 2 +2ah+ h 2 −4a−4h− a 2 +4a h Remove parentheses.          = lim h→0 a 2 +2ah+ h 2 −4a −4h − a 2 +4a h Combine like terms.          = lim h→0 2ah+ h 2 −4h h          = lim h→0 h (2a+h−4) h Factor out h.          =2a+0−4 f ′ (a)=2a−4 Evaluate the limit. f ′ (3)=2(3)−4=2
Equation of tangent line at x=3:
y=f'(a)(x−a)+f(a) y=f'(3)(x−3)+f(3) y=2(x−3)+(−3) y=2x−9

Finding the Instantaneous Speed of a Particle

If a function measures position versus time, the derivative measures displacement versus time, or the speed of the object. A change in speed or direction relative to a change in time is known as velocity. The velocity at a given instant is known as instantaneous velocity.
In trying to find the speed or velocity of an object at a given instant, we seem to encounter a contradiction. We normally define speed as the distance traveled divided by the elapsed time. But in an instant, no distance is traveled, and no time elapses. How will we divide zero by zero? The use of a derivative solves this problem. A derivative allows us to say that even while the object’s velocity is constantly changing, it has a certain velocity at a given instant. That means that if the object traveled at that exact velocity for a unit of time, it would travel the specified distance.

Finding the Instantaneous Velocity

A ball is tossed upward from a height of 200 feet with an initial velocity of 36 ft/sec. If the height of the ball in feet after t seconds is given by s(t)=−16 t 2 +36t+200, find the instantaneous velocity of the ball at t=2.
Solution
First, we must find the derivative s ′ ( t ) . Then we evaluate the derivative at t=2, using s( a+h )=−16 ( a+h ) 2 +36(a+h)+200 and s( a )=−16 a 2 +36a+200.
s ′ (a)= lim h→0 s(a+h)−s(a) h         = lim h→0 −16 (a+h) 2 +36(a+h)+200−(−16 a 2 +36a+200) h         = lim h→0 −16( a 2 +2ah+ h 2 )+36(a+h)+200−(−16 a 2 +36a+200) h         = lim h→0 −16 a 2 −32ah−16 h 2 +36a+36h+200+16 a 2 −36a−200 h         = lim h→0 −16 a 2 −32ah−16 h 2 +36a +36h +200 +16 a 2 −36a −200 h         = lim h→0 −32ah−16 h 2 +36h h         = lim h→0 h (−32a−16h+36) h         = lim h→0 (−32a−16h+36)         =−32a−16⋅0+36 s ′ (a)=−32a+36 s ′ (2)=−32(2)+36         =−28

Practice Test

For the following exercises, use the graph of f in diagram.
Graph of a piecewise function with two segments. The first segment goes from negative infinity to (-1, 0), an open point, and the second segment goes from (-1, 3), an open point, to positive infinity.
f(1)
Solution
3
lim x→ −1 + f(x)
lim x→ −1 − f(x)
Solution
0
lim x→−1 f(x)
lim x→−2 f(x)
Solution
−1
At what values of x is f discontinuous? What property of continuity is violated?
For the following exercises, with the use of a graphing utility, use numerical or graphical evidence to determine the left- and right-hand limits of the function given as x approaches a. If the function has a limit as x approaches a, state it. If not, discuss why there is no limit
f(x)={ 1 x −3, if x≤2 x 3 +1,if x>2   a=2
Solution
lim x→ 2 − f(x)=− 5 2 a and lim x→ 2 + f(x)=9 Thus, the limit of the function as x approaches 2 does not exist.
f(x)={ x 3 +1, if x<1 3 x 2 −1, if x=1 − x+3 +4, if x>1 a=1
For the following exercises, evaluate each limit using algebraic techniques.
lim x→−5 ( 1 5 + 1 x 10+2x )
lim h→0 ( h 2 +25 −5 h 2 )
Solution
-150
lim h→0 ( 1 h − 1 h 2 +h )
For the following exercises, determine whether or not the given function f is continuous. If it is continuous, show why. If it is not continuous, state which conditions fail.
f(x)= x 2 −4
Solution
1
f(x)= x 3 −4 x 2 −9x+36 x 3 −3 x 2 +2x−6
For the following exercises, use the definition of a derivative to find the derivative of the given function at x=a.
f(x)= 3 5+2x
Solution
Removable discontinuity at x=3
f(x)= 3 x
f(x)=2 x 2 +9x
Solution
f'(x)=- 3 2a32
For the graph in diagram, determine where the function is continuous/discontinuous and differentiable/not differentiable.
Graph of a piecewise function with three segments. The first segment goes from negative infinity to (-2, -1), an open point; the second segment goes from (-2, -4), an open point, to (0, 0), a closed point; the final segment goes from (0, 1), an open point, to positive infinity.
For the following exercises, with the aid of a graphing utility, explain why the function is not differentiable everywhere on its domain. Specify the points where the function is not differentiable.
f(x)=| x−2 |−| x+2 |
Solution
Discontinuous at −2, 0, not differentiable at −2, 0, 2
f(x)= 2 1+ e 2 x
For the following exercises, explain the notation in words when the height of a projectile in feet, s, is a function of time t in seconds after launch and is given by the function s(t).
s(0)
Solution
Not differentiable at x=0 (no limit)
s(2)
s'(2)
Solution
The height of the projectile at t=2 Seconds
s(2)−s(1) 2−1
s(t)=0
Solution
The average velocity from t=1 t=2
For the following exercises, use technology to evaluate the limit.
lim x→0 sin(x) 3x
lim x→0 tan 2 (x) 2x
Solution
13
lim x→0 sin(x)(1−cos(x)) 2 x 2
Evaluate the limit by hand.
lim x→1 f(x), where  f(x)={ 4x−7 x≠1 x 2 −4 x=1
At what value(s) of x is the function below discontinuous?
f(x)={ 4x−7x≠1 x 2 −4x=1
Solution
0
For the following exercises, consider the function whose graph appears in diagram.
Graph of a positive parabola.
Find the average rate of change of the function from x=1 to x=3.
Solution
2
Find all values of x at which f'(x)=0.
Solution
x=1
Find all values of x at which f'(x) does not exist.
Find an equation of the tangent line to the graph of f the indicated point: f(x)=3 x 2 −2x−6,  x=−2
Solution
y=−14x−18
For the following exercises, use the function f(x)=x ( 1−x ) 2 5 .
Graph the function f(x)=x ( 1−x ) 2 5 by entering f(x)=x ( ( 1−x ) 2 ) 1 5 and then by entering f(x)=x ( ( 1−x ) 1 5 ) 2 .
Explore the behavior of the graph of f(x) around x=1 by graphing the function on the following domains, [0.9, 1.1], [0.99, 1.01], [0.999, 1.001], and [0.9999, 1.0001]. Use this information to determine whether the function appears to be differentiable at x=1.
Solution
The graph is not differentiable at x=1 (cusp).
For the following exercises, find the derivative of each of the functions using the definition: lim h→0 f(x+h)−f(x) h
f(x)=2x−8
f(x)=4 x 2 −7
Solution
f ' (x)=8x
f(x)=x− 1 2 x 2
f(x)= 1 x+2
Solution
f ' (x)=− 1 ( 2+x ) 2
f(x)= 3 x−1
f(x)=− x 3 +1
Solution
f ' (x)=−3 x 2
f(x)= x 2 + x 3
f(x)= x−1
Solution
f'(x)= 1 2 x−1

Determining Whether a Function Is Continuous at a Number

Let’s consider a specific example of temperature in terms of date and location, such as June 27, 2013, in Phoenix, AZ. The graph in source illustration or discussion indicates that, at 2 a.m., the temperature was 96 ∘ F . By 2 p.m. the temperature had risen to 116 ∘ F, and by 4 p.m. it was 118 ∘ F. Sometime between 2 a.m. and 4 p.m., the temperature outside must have been exactly 110.5 ∘ F. In fact, any temperature between 96 ∘ F and 118 ∘ F occurred at some point that day. This means all real numbers in the output between 96 ∘ F and 118 ∘ F are generated at some point by the function according to the intermediate value theorem,
Look again at source illustration or discussion. There are no breaks in the function’s graph for this 24-hour period. At no point did the temperature cease to exist, nor was there a point at which the temperature jumped instantaneously by several degrees. A function that has no holes or breaks in its graph is known as a continuous function. Temperature as a function of time is an example of a continuous function.
If temperature represents a continuous function, what kind of function would not be continuous? Consider an example of dollars expressed as a function of hours of parking. Let’s create the function D , where D( x ) is the output representing cost in dollars for parking x number of hours. See diagram.
Suppose a parking garage charges $4.00 per hour or fraction of an hour, with a $25 per day maximum charge. Park for two hours and five minutes and the charge is $12. Park an additional hour and the charge is $16. We can never be charged $13, $14, or $15. There are real numbers between 12 and 16 that the function never outputs. There are breaks in the function’s graph for this 24-hour period, points at which the price of parking jumps instantaneously by several dollars.
Graph of function that maps the time since midnight to the temperature. The x-axis represents the hours parked from 0 to 24. The y-axis represents dollars amounting from 0 to 28. The function is a step-function.
Parking-garage charges form a discontinuous function.
A function that remains level for an interval and then jumps instantaneously to a higher value is called a stepwise function. This function is an example.
A function that has any hole or break in its graph is known as a discontinuous function. A stepwise function, such as parking-garage charges as a function of hours parked, is an example of a discontinuous function.
So how can we decide if a function is continuous at a particular number? We can check three different conditions. Let’s use the function y=f( x ) represented in diagram as an example.
Graph of an increasing function with a discontinuity at (a, f(a)).
Condition 1 According to Condition 1, the function f( a ) defined at x=a must exist. In other words, there is a y-coordinate at x=a as in diagram.
Graph of an increasing function with a discontinuity at (a, 2). The point (a, f(a)) is directly below the hole.
Condition 2 According to Condition 2, at x=a the limit, written lim x→a f(x) , must exist. This means that at x=a the left-hand limit must equal the right-hand limit. Notice as the graph of f in diagram approaches x=a from the left and right, the same y-coordinate is approached. Therefore, Condition 2 is satisfied. However, there could still be a hole in the graph at x=a .
Condition 3 According to Condition 3, the corresponding y coordinate at x=a fills in the hole in the graph of f. This is written lim x→a f(x)=f(a).
Satisfying all three conditions means that the function is continuous. All three conditions are satisfied for the function represented in diagram so the function is continuous as x=a.
Graph of an increasing function with filled-in discontinuity at (a, f(a)).
All three conditions are satisfied. The function is continuous at x=a .
diagram through diagram provide several examples of graphs of functions that are not continuous at x=a and the condition or conditions that fail.
Graph of an increasing function with a discontinuity at (a, f(a)).
Condition 2 is satisfied. Conditions 1 and 3 both fail.
Graph of an increasing function with a discontinuity at (a, 2). The point (a, f(a)) is directly below the hole.
Conditions 1 and 2 are both satisfied. Condition 3 fails.
Graph of a piecewise function with an increasing segment from negative infinity to (a, f(a)), which is closed, and another increasing segment from (a, f(a)-1), which is open, to positive infinity.
Condition 1 is satisfied. Conditions 2 and 3 fail.
Graph of a piecewise function with an increasing segment from negative infinity to (a, f(a)) and another increasing segment from (a, f(a) - 1) to positive infinity. This graph does not include the point (a, f(a)).
Conditions 1, 2, and 3 all fail.

Identifying a Jump Discontinuity

Discontinuity can occur in different ways. We saw in the previous section that a function could have a left-hand limit and a right-hand limit even if they are not equal. If the left- and right-hand limits exist but are different, the graph “jumps” at x=a . The function is said to have a jump discontinuity.
As an example, look at the graph of the function y=f( x ) in diagram. Notice as x approaches a how the output approaches different values from the left and from the right.
Graph of a piecewise function with an increasing segment from negative infinity to (a, f(a)), which is closed, and another increasing segment from (a, f(a)-1), which is open, to positive infinity.
Graph of a function with a jump discontinuity.

Identifying Removable Discontinuity

Some functions have a discontinuity, but it is possible to redefine the function at that point to make it continuous. This type of function is said to have a removable discontinuity. Let’s look at the function y=f( x ) represented by the graph in diagram. The function has a limit. However, there is a hole at x=a . The hole can be filled by extending the domain to include the input x=a and defining the corresponding output of the function at that value as the limit of the function at x=a .
Graph of an increasing function with a removable discontinuity at (a, f(a)).
Graph of function f with a removable discontinuity at x=a .

Identifying Discontinuities

Identify all discontinuities for the following functions as either a jump or a removable discontinuity.
  1. ⓐ f(x)= x 2 −2x−15 x−5
  2. ⓑ g(x)={ x+1, x<2 −x, x≥2
Solution
  1. ⓐ
    Notice that the function is defined everywhere except at x=5.
    Thus, f( 5 ) does not exist, Condition 2 is not satisfied. Since Condition 1 is satisfied, the limit as x approaches 5 is 8, and Condition 2 is not satisfied.This means there is a removable discontinuity at x=5.
  2. ⓑ
    Condition 2 is satisfied because g(2)=−2.
    Notice that the function is a piecewise function, and for each piece, the function is defined everywhere on its domain. Let’s examine Condition 1 by determining the left- and right-hand limits as x approaches 2.
    Left-hand limit: lim x→ 2 − ( x+1 )=2+1=3. The left-hand limit exists.
    Right-hand limit: lim x→ 2 + ( −x )=−2. The right-hand limit exists. But
    lim x→ 2 − f(x)≠ lim x→ 2 + f(x).
    So, lim x→2 f(x) does not exist, and Condition 2 fails: There is no removable discontinuity. However, since both left- and right-hand limits exist but are not equal, the conditions are satisfied for a jump discontinuity at x=2.