Understanding the Derivative from First Principles (AP Calculus AB Unit 2)
Average and Instantaneous Rates of Change
What “rate of change” means
A rate of change tells you how one quantity changes in response to another. In calculus, you usually study how an output changes as the input changes. You can think of as “time” and as “position,” but the same idea applies to cost vs. number of items, temperature vs. time, population vs. time, and so on.
There are two closely related rates of change:
- Average rate of change over an interval: how much changes per unit of across a whole interval.
- Instantaneous rate of change at a point: how fast is changing at a specific input value.
Why this matters: almost everything you do with derivatives starts from this idea. The derivative is the tool that converts “change over an interval” into “change at an instant,” which is what you need for velocity at an exact time, slope of a curve at a point, optimization, and modeling.
Average rate of change (secant slope)
The average rate of change of from to is
This is also the slope of the secant line through the two points and on the graph.
How it works: the numerator is the “rise” (change in output), and the denominator is the “run” (change in input). The ratio is the slope of the line connecting those points.
Common interpretation: if is position (in meters) and is time (in seconds), then
is average velocity on the time interval from to .
Example 1: Average rate of change
Let . Find the average rate of change from to .
Compute the function values:
Apply the average rate of change formula:
So, on average, increases by 7 units of output for each 1 unit of input across .
Instantaneous rate of change (tangent slope)
The instantaneous rate of change at is the rate at which is changing right at . Graphically, this is the slope of the **tangent line** to the curve at the point .
Why you can’t just “plug into a formula” yet: a single point doesn’t form an interval, so you can’t compute a slope using two different points unless you create a second point extremely close to . Calculus formalizes this by taking a limit—letting the second point approach the first.
A helpful mental image: imagine driving and looking at your speedometer at exactly 3:00 PM. That’s not an average over a minute; it’s an instantaneous reading. Mathematically, you approximate it using averages over smaller and smaller time intervals.
Moving from average to instantaneous
Start with the average rate of change from to :
Simplify the denominator:
As gets closer to 0, the point approaches , the secant line approaches the tangent line, and this difference quotient approaches the instantaneous rate of change—if the limit exists.
Exam Focus
- Typical question patterns:
- Compute an average rate of change on a given interval and interpret its meaning (often with units).
- Given a context (position, cost, temperature), explain what average vs. instantaneous rate of change represents.
- Set up (not necessarily evaluate) a difference quotient that would approximate instantaneous rate of change near a point.
- Common mistakes:
- Swapping and in the denominator and getting the sign wrong—keep the same order in numerator and denominator.
- Treating “instantaneous” as “average over a small interval” without the limit idea; on the AP exam you often must show the limit setup.
- Forgetting units: if is meters and is seconds, the rate is meters per second.
Defining the Derivative of a Function
The derivative as a limit
The derivative is the formal name for the instantaneous rate of change. At an input , the derivative of is defined by the limit
This limit (when it exists) is the slope of the tangent line to at .
Why the limit is essential: if you tried to use directly, you would divide by zero. The limit does not substitute ; it describes what the quotient approaches as gets arbitrarily small.
Two equivalent limit definitions
You may also see the derivative written using a second point approaching :
These are equivalent because . The choice is often about convenience:
- The form emphasizes “a small change” and is common when deriving formulas.
- The form matches the slope formula between two points and is common in conceptual explanations.
Defining the derivative function
So far, is “the derivative at a point.” But you usually want a new function that gives the derivative at every input where it exists. The **derivative function** is defined by
This definition is powerful: it lets you compute derivatives from first principles (without rules) and explains what derivative rules are actually shortcuts for.
Notation you must recognize
AP Calculus expects you to be fluent in multiple notations that mean the same idea.
| Meaning | Common notations |
|---|---|
| Derivative of at | , (if ), |
| Derivative function | , , |
Interpretation tip: is read “dee y dee x” and represents the instantaneous rate of change of with respect to .
Example 2: Derivative from the definition
Let . Find using the limit definition.
Start with the definition:
Substitute :
Expand and simplify the numerator:
Factor out :
Cancel (this is safe for the limit process because the expression is simplified before taking the limit):
Now take the limit:
So the derivative function is . This result means: at any input , the slope of the tangent line to is .
Example 3: Derivative at a specific point
Using , find the slope of the tangent line at .
Evaluate the derivative function at :
So the tangent slope at is 6.
What goes wrong: limits that don’t exist
The derivative definition requires the limit to exist. The limit can fail to exist if:
- the left-hand and right-hand limits differ (a “corner” or cusp often causes this),
- the function is not continuous at the point (a hole or jump),
- the slopes become unbounded (vertical tangent),
- the function oscillates too wildly as you zoom in.
You’ll explore these more in the differentiability section, but the big idea is: being able to draw a tangent line depends on how the graph behaves when you zoom in.
Exam Focus
- Typical question patterns:
- Use the limit definition to compute for a simple function (often polynomial, root, or rational where algebraic simplification is needed).
- Write the correct limit expression for or from scratch.
- Interpret as a slope (tangent line) or as an instantaneous rate (velocity, marginal change).
- Common mistakes:
- Plugging in immediately (division by zero) instead of simplifying first and then taking the limit.
- Algebra errors when expanding , especially squares like .
- Confusing with : one is a slope/rate, the other is a function value.
Estimating Derivatives at a Point
Why estimation matters
In many AP problems, you are not given a formula for . Instead, you might get a table of values, a graph, or a description from an experiment. In those cases you can’t take a symbolic limit—but you can still estimate the derivative by approximating the tangent slope.
The core strategy is always the same: use a secant slope over a small interval near the point of interest. Smaller intervals usually give better approximations (as long as the function behaves nicely).
Estimating from a table (difference quotients)
Suppose you want to estimate and you have values near .
A common one-sided estimate (using a point to the right) is
where is small.
A one-sided estimate (using a point to the left) is
A particularly accurate method (when the table provides symmetric values) is the symmetric difference quotient:
Why the symmetric version helps: it balances the behavior on both sides of , which often reduces error when the function is reasonably smooth.
Example 4: Estimating from a table
A table gives:
| 1.9 | 2.0 | 2.1 | |
|---|---|---|---|
| 3.61 | 4.00 | 4.41 |
Estimate .
Right-hand estimate using :
Left-hand estimate using :
Symmetric estimate:
So a strong estimate is .
(Notice how the symmetric estimate sits between the left and right estimates—this is typical when the function is smooth.)
Estimating from a graph (tangent line or secant line)
If you are given a graph, you estimate by estimating the slope of the tangent line at . Since you can’t draw a perfect tangent, you approximate it by drawing a line that just “kisses” the curve at the point and matches its local direction.
Practical method:
- Sketch a tangent line at the point.
- Choose two clear points on that tangent line (not necessarily on the curve) where coordinates are easy to read.
- Compute the slope:
What can go wrong: students sometimes pick two points on the curve near (a secant slope) and think they computed the tangent slope. That can be okay as an approximation, but AP graph questions often intend you to use the tangent line itself.
Connecting estimation to the limit definition
All these approximations are numerical versions of
You can’t literally take from a finite table or an imprecise graph, so you take a small and accept an approximation.
Example 5: Estimating and interpreting in context
Suppose is the distance (meters) traveled after seconds. A data set gives and . Estimate the instantaneous velocity at .
Use a small forward interval:
Interpretation: the velocity at about seconds is approximately 15 meters per second.
Exam Focus
- Typical question patterns:
- Approximate using values from a table near (often asking for a symmetric difference quotient if possible).
- Estimate a derivative from a graph by drawing/using a tangent line and computing its slope.
- Interpret the meaning of a derivative estimate in context (including correct units).
- Common mistakes:
- Using points too far from , leading to an average rate of change that doesn’t represent the instantaneous behavior.
- Mixing up the denominator: if you use , the denominator must be .
- Reading the slope from two points on the curve when the question expects slope of the tangent line (or vice versa). Always match the method to the prompt.
Differentiability and Continuity
Differentiability: what it means
A function is **differentiable** at if the derivative exists—that is, if the limit
exists as a finite real number.
Conceptually, differentiability means the graph has a well-defined “local direction” at . When you zoom in near , the curve should look more and more like a straight line (this idea is sometimes called local linearity).
Why it matters: derivative rules you learn later (power rule, product rule, etc.) assume differentiability. Also, many theorems and applications (like motion, optimization, and related rates) rely on functions being differentiable so that instantaneous rates make sense.
Continuity: a related but different idea
A function is **continuous** at if:
- is defined,
- exists,
- .
Continuity is about whether the graph has breaks (holes, jumps, asymptotes) at the point. Differentiability is stricter—it asks whether the graph has a well-defined tangent slope.
The key relationship
A crucial fact in AP Calculus AB:
- If is differentiable at , then is continuous at .
In other words, differentiability implies continuity.
But the converse is false:
- A function can be continuous at and still not be differentiable there.
This happens at sharp points where the graph does not have a single tangent slope.
How differentiability can fail
Even if a function is continuous, the derivative might not exist. The most common “non-differentiable” behaviors tested in AP Calculus are:
- Corner: left-hand slope and right-hand slope are finite but not equal.
- Cusp: slopes become very steep in opposite directions (left-hand and right-hand slopes go to different infinities).
- Vertical tangent: slope becomes infinite (or undefined) in the same direction.
- Discontinuity: derivative cannot exist because differentiability requires continuity.
The unifying idea is that the limit defining fails to exist (either because one-sided limits disagree or because the quotient grows without bound).
Using one-sided derivatives
You can analyze differentiability by comparing one-sided limits:
Left-hand derivative:
Right-hand derivative:
For to exist, both must exist and be equal.
Example 6: Continuous but not differentiable
Consider at .
First, continuity: has no breaks, so it is continuous at .
Now check differentiability using one-sided slopes.
For , , so the slope is 1.
For , , so the slope is -1.
You can also see this via the limit definition quickly:
Right-hand derivative at 0:
Left-hand derivative at 0:
Since the one-sided derivatives are not equal, does not exist. So is continuous at 0 but not differentiable at 0.
Example 7: Discontinuous implies not differentiable
Define a function by
for , and suppose is not defined.
You can simplify for :
So the graph is the line with a hole at . Because is not defined, is not continuous at , so it cannot be differentiable there.
This example highlights a common misconception: simplifying an expression may hide a discontinuity at a point where cancellation occurred. Differentiability depends on the original function’s definition at the point.
Tangent lines and differentiability (geometric view)
If exists, you can write the equation of the tangent line at .
Slope is , and the line passes through :
This equation shows why differentiability is so useful: it gives you a local linear model for the function near .
Exam Focus
- Typical question patterns:
- Determine whether a function is differentiable at a point from a graph (look for corners, cusps, vertical tangents, or discontinuities).
- Explain the relationship between continuity and differentiability (often as a justification statement).
- Use one-sided derivative ideas to argue whether exists for a piecewise or absolute value function.
- Common mistakes:
- Claiming that “continuous means differentiable.” The correct statement is: differentiable implies continuous.
- Missing a discontinuity caused by a removable hole after algebraic simplification; always check whether the function is actually defined at the point.
- Confusing a vertical tangent with a corner: at a corner, slopes are finite but different; with a vertical tangent, slopes blow up (become unbounded).