Unit 2: Differentiation: Definition and Fundamental Properties
From Average Rate of Change to Instantaneous Rate of Change
A lot of calculus begins with a simple question: when something is changing, how fast is it changing right now?
You already know how to compute an average rate of change. If a function f gives an output (like position, cost, or temperature) from an input (like time), then over an interval from x=a to x=b, the average rate of change is
\frac{f(b)-f(a)}{b-a}
Geometrically, that fraction is the slope of the secant line through the two points \big(a,f(a)\big) and \big(b,f(b)\big) on the graph. A common “algebra 1” way to say the same thing is
\frac{y_2-y_1}{x_2-x_1}

Why average rate of change is not enough
Average rate of change “smears out” what happens across an interval. If you’re driving a car and your position is changing, your average speed over 10 seconds does not tell you your speed at the exact instant at 3 seconds. The exact instant is what we call an instantaneous rate of change.
In a graphing context, an instantaneous rate of change corresponds to the slope of the tangent line at a point. The tangent line is the line that best matches the curve “right at” that point.
How calculus makes “instantaneous” precise
The key idea is approximation that becomes exact in the limit.
- Pick a point x=a.
- Compute the slope of the secant line from x=a to a nearby point x=a+h.
- Then shrink the “nearby” distance h toward 0.
That secant slope is
\frac{f(a+h)-f(a)}{h}
This is still a difference quotient, but now we are thinking about what happens as the interval gets infinitesimally small.
Units matter (a common hidden skill)
If x is measured in seconds and f(x) is measured in meters, then
\frac{f(a+h)-f(a)}{h}
has units of meters per second. On AP questions, interpreting units is often part of “explain your reasoning” even when it isn’t explicitly asked.
Example: average vs instantaneous (conceptual)
Suppose s(t) is position. If you compute
\frac{s(5)-s(3)}{5-3}
you found the average velocity from t=3 to t=5. To estimate velocity at t=3, you’d use a smaller and smaller interval around 3, like
\frac{s(3.1)-s(3)}{0.1}
and
\frac{s(3.01)-s(3)}{0.01}
The pattern of these slopes motivates the derivative.
Exam Focus
- Typical question patterns
- Interpret a secant slope as average rate of change and connect it to units.
- Describe how secant slopes approach a tangent slope as the interval shrinks.
- Explain what “instantaneous rate” means in a real-world context (motion, growth, cost).
- Common mistakes
- Treating average and instantaneous rate as interchangeable.
- Forgetting units or using inconsistent units between input and output.
- Using the wrong interval direction when interpreting “approach from the left/right.”
Slopes of Secant Lines, Tangent Lines, and the Limit Definition of the Derivative
For a linear function, slope is just “rise over run,” and it’s the same everywhere. For a curved graph, the slope changes from point to point, so we need a strategy.
A natural idea is to approximate the curve near a point by a secant line (a line through two points on the curve). The closer those two points are, the more accurate the secant slope becomes as an approximation to the “true” slope at the point.

If we keep shrinking the interval between the two points, the secant line pivots toward a tangent line, which touches the curve at exactly one point and best matches the curve right there.

Definition at a point
The derivative of f at x=a is defined by the limit of the difference quotient:
f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}
You might also see an equivalent form that uses x approaching a instead of h approaching 0:
f'(a)=\lim_{x\to a}\frac{f(x)-f(a)}{x-a}
These describe the same idea: the slope of the secant line becomes the slope of the tangent line in the limit. This limit-based definition is the definition of the derivative.
When the derivative exists
The derivative exists at x=a if the limit exists and is a finite real number. Practically, that requires left-hand and right-hand behaviors to agree.
If
\lim_{h\to 0^-}\frac{f(a+h)-f(a)}{h}
and
\lim_{h\to 0^+}\frac{f(a+h)-f(a)}{h}
both exist and are equal, then f'(a) exists.
Derivative as a function (not just a number)
A major conceptual leap is that you can compute the derivative at every input where it exists. That produces a new function whose output is “slope of the original function.” This derivative function is written f'(x).
Notation you must recognize
AP Calculus uses multiple derivative notations. They all refer to the same concept, but they emphasize different viewpoints.
| Meaning | Common notation | What it emphasizes |
|---|---|---|
| Derivative of f at x=a | f'(a) | A single slope value at a specific point |
| Derivative function | f'(x) | A new function giving slope at each x |
| Leibniz notation | \frac{dy}{dx} | Rate of change of y with respect to x |
| At a point | \left.\frac{dy}{dx}\right|_{x=a} | The rate at x=a |
It’s also common to see notation for second derivatives:
| Function | First derivative | Second derivative |
|---|---|---|
| f(x) | f'(x) | f''(x) |
| g(x) | g'(x) | g''(x) |
| y | y' or \frac{dy}{dx} | y'' or \frac{d^2y}{dx^2} |
A common misconception is to treat \frac{dy}{dx} as an ordinary fraction all the time. Later in the course, it can be manipulated in useful ways, but conceptually here it represents a limit.
Worked example: derivative from the definition
Let f(x)=x^2. Find f'(x) using the limit definition.
Start with
f'(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}
Compute f(x+h):
f(x+h)=(x+h)^2=x^2+2xh+h^2
Substitute:
f'(x)=\lim_{h\to 0}\frac{(x^2+2xh+h^2)-x^2}{h}
Simplify the numerator:
f'(x)=\lim_{h\to 0}\frac{2xh+h^2}{h}
Factor out h and cancel (this cancellation is exactly why you simplify before taking the limit):
f'(x)=\lim_{h\to 0}(2x+h)
Now take the limit:
f'(x)=2x
So the slope of the tangent line to y=x^2 at input x is 2x.
Tangent line equation (using the derivative)
Once you know the slope at x=a, you can write the tangent line at that point using point-slope form.
Slope:
m=f'(a)
Tangent line:
y-f(a)=f'(a)(x-a)
Students often mix up f'(a) (a number) and f'(x) (a function). The tangent line formula needs the slope at that point, so you must evaluate the derivative at a.
Exam Focus
- Typical question patterns
- Compute f'(a) from the limit definition for a given function.
- Find the equation of a tangent line using f(a) and f'(a).
- Determine whether a derivative exists at a point using one-sided limits or graph features.
- Common mistakes
- Plugging in h=0 too early (before simplifying), causing a false “division by zero” dead end.
- Confusing f'(a) with f'(x) in tangent line problems.
- Forgetting that the limit must exist from both sides.
Estimating Derivatives from Graphs and Tables
In many AP problems, you are not given a clean formula. Instead, you might get a table of values or a graph, and you have to estimate or interpret the derivative.
What it means to “estimate the derivative”
If f'(a) is the slope of the tangent line at x=a, then estimating f'(a) means approximating that tangent slope numerically. The basic strategy is to use secant slopes with points near a. In general, the closer the points are to a, the more accurate the approximation tends to be.
A forward (right-hand) secant slope:
\frac{f(a+h)-f(a)}{h}
A backward (left-hand) secant slope:
\frac{f(a)-f(a-h)}{h}
A symmetric (often better) secant slope:
\frac{f(a+h)-f(a-h)}{2h}
The symmetric version tends to reduce error because it balances behavior from both sides.
Estimating from a table
Suppose you have a table of f(x) values around x=2. To estimate f'(2), choose points close to 2.
If the table gives f(2.1) and f(1.9), then a symmetric estimate is
f'(2)\approx\frac{f(2.1)-f(1.9)}{0.2}
The smaller the interval, the better the estimate usually is (assuming the function is smooth there). But with real data, extremely small intervals can amplify measurement error, so AP questions typically pick sensible step sizes.
Estimating from a graph
From a graph, you can approximate the tangent slope by drawing (or imagining) the tangent line and selecting two readable points on that tangent line, not necessarily points on the curve.
A key idea: the tangent line is a line, so its slope is constant. You pick two points on the line and compute rise over run.
Common pitfall: students pick two points on the curve near the tangency point. That computes a secant slope, not the tangent slope. On AP, you can still do this as an approximation, but if the problem explicitly says “tangent line,” use the line.
Interpreting derivative values
A derivative value is a rate and has meaning:
- f'(a)>0 means f is increasing at a.
- f'(a)
Worked example: estimate from nearby values
A function satisfies f(3)=10, f(3.05)=10.4, and f(2.95)=9.6. Estimate f'(3).
Using a symmetric difference with h=0.05:
f'(3)\approx\frac{f(3.05)-f(2.95)}{0.10}
Substitute:
f'(3)\approx\frac{10.4-9.6}{0.10}
Compute:
f'(3)\approx\frac{0.8}{0.10}=8
So the instantaneous rate of change near x=3 is about 8 output-units per input-unit.
Exam Focus
- Typical question patterns
- Estimate f'(a) from a table using secant slopes (often symmetric).
- Estimate f'(a) from a graph by reading the slope of a tangent line.
- Interpret the sign and magnitude of f'(a) in context.
- Common mistakes
- Using points far from a, producing a poor “derivative” estimate.
- Mixing up secant slope (average rate) and tangent slope (instantaneous rate).
- Forgetting that a slope is rise over run (subtracting in inconsistent order).
Differentiability: When a Tangent Slope Makes Sense
It’s tempting to think every function has a derivative everywhere, but derivatives have requirements. The formal word for “has a derivative at a point” is differentiable.
Definition (conceptual)
A function f is differentiable at x=a if the limit
\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}
exists (as a finite number). Geometrically, differentiability means the graph has a well-defined tangent line slope at that point.
Differentiability implies continuity
A crucial theorem you use constantly is:
- If f is differentiable at x=a, then f is continuous at x=a.
The converse is not always true: a function can be continuous but not differentiable.
Continuity only requires the graph not “break” at the point. Differentiability requires a smooth enough shape that the slope from the left matches the slope from the right.
Where differentiability fails (graph features)
On AP, you are expected to recognize common non-differentiable situations from graphs.
Discontinuities
- If f is not continuous at a, then f'(a) does not exist.
- Breaks, holes, jumps, vertical asymptotes all destroy differentiability.
Corners (sharp turns)
- Example shape: |x| at x=0.
- The left-hand slope and right-hand slope are different finite numbers.
Cusps (pointy with vertical behavior)
- Slopes blow up to infinity in opposite ways.
Vertical tangents
- The slope becomes infinite (undefined as a real number), so the derivative does not exist as a finite value.
A subtle but important point: a vertical tangent line can exist visually, but in AP Calculus, “derivative exists” means a finite real number.
One-sided derivatives and matching condition
Even if the two-sided derivative fails, you can talk about one-sided derivatives.
Left derivative at a:
\lim_{h\to 0^-}\frac{f(a+h)-f(a)}{h}
Right derivative at a:
\lim_{h\to 0^+}\frac{f(a+h)-f(a)}{h}
For differentiability, these must both exist and be equal.
Worked example: continuity but not differentiability
Consider f(x)=|x|.
At x=0, the function is continuous because the graph meets at the origin and there is no break.
But the slopes differ:
- For x>0, |x|=x, slope is 1.
- For x
So the tangent slope at 0 is not well-defined, and f'(0) does not exist.
Exam Focus
- Typical question patterns
- Decide where f is differentiable from a graph (identify corners, cusps, discontinuities, vertical tangents).
- Use one-sided derivatives to justify why f'(a) does or does not exist.
- Use the fact “differentiable implies continuous” to make a logical conclusion.
- Common mistakes
- Claiming continuity guarantees differentiability.
- Forgetting that unequal one-sided slopes mean “not differentiable” even if the graph looks connected.
- Treating vertical tangent slopes as valid derivatives (they are not finite).
Building Differentiation Rules (Constant, Power, Sum, and Constant Multiple)
The limit definition is the foundation, but it’s too slow to use every time. Differentiation rules are shortcuts that are proved from the definition and then reused.
Constant rule
If f(x)=c where c is a constant, the graph is a horizontal line. Its slope is always zero.
\frac{d}{dx}(c)=0
Example: if f(x)=10 then
f'(x)=0
Why it matters: constants appear everywhere (intercepts, offsets, baseline values). Forgetting this rule causes lots of small algebraic errors later.
Constant multiple rule
If you multiply a function by a constant, the derivative gets multiplied by that constant:
\frac{d}{dx}(k f(x))=k f'(x)
This matches the slope idea: scaling the vertical axis by a factor of k scales slopes by k.
Power rule (for integer powers)
For f(x)=x^n where n is a positive integer, the derivative is
\frac{d}{dx}(x^n)=nx^{n-1}
A good way to remember the mechanics is: multiply down and decrease the power.
Examples:
- x^4 becomes 4x^3
- 2x^2 becomes 4x
This rule is a workhorse. It turns polynomial differentiation into something fast and reliable.
Where the power rule comes from (a sketch you should understand)
Using the definition,
\frac{d}{dx}(x^n)=\lim_{h\to 0}\frac{(x+h)^n-x^n}{h}
When you expand (x+h)^n (via the binomial theorem), every term except x^n has at least one factor of h, so you can factor out h, cancel it, and then take the limit as h\to 0. The surviving coefficient becomes n and the remaining power becomes x^{n-1}.
You are not usually required to reproduce a full binomial proof on the AP exam, but understanding the cancellation idea helps prevent the classic error of substituting h=0 too early.
Sum and difference rules
Derivatives distribute over addition and subtraction:
\frac{d}{dx}(f(x)+g(x))=f'(x)+g'(x)
\frac{d}{dx}(f(x)-g(x))=f'(x)-g'(x)
This matters because most functions you meet are built from smaller pieces.
Worked example: differentiating a polynomial
Let
p(x)=3x^4-5x^2+7x-9
Differentiate term-by-term using constant multiple + power + sum rules.
- \frac{d}{dx}(3x^4)=3\cdot 4x^3=12x^3
- \frac{d}{dx}(-5x^2)=-5\cdot 2x=-10x
- \frac{d}{dx}(7x)=7
- \frac{d}{dx}(-9)=0
So
p'(x)=12x^3-10x+7
Common pitfall: forgetting that \frac{d}{dx}(7x)=7 (students sometimes incorrectly write 7x).
Worked example: tangent line using derivative rules
Let f(x)=x^3-2x. Find the tangent line at x=1.
- Differentiate:
f'(x)=3x^2-2
- Evaluate slope at x=1:
f'(1)=3(1)^2-2=1
- Find the point:
f(1)=1^3-2(1)=-1
- Tangent line:
y-(-1)=1(x-1)
Simplify:
y+1=x-1
y=x-2
Exam Focus
- Typical question patterns
- Differentiate polynomials quickly and accurately.
- Use f'(a) to find tangent line equations.
- Interpret f'(a) as a rate of change in context (units included).
- Common mistakes
- Misapplying the power rule: writing nx^{n} instead of nx^{n-1}.
- Forgetting constants differentiate to zero.
- Confusing the derivative function f'(x) with the slope value f'(a).
Product and Quotient Rules
Sum and power rules handle many expressions, but they do not handle multiplication and division in the way students often wish they did.
A very common incorrect guess is
\frac{d}{dx}(f(x)g(x))=f'(x)g'(x)
That is not true in general.
Product rule
If h(x)=f(x)g(x) (often written as uv), then
h'(x)=f'(x)g(x)+f(x)g'(x)
In u and v language, this is often written as
\frac{d}{dx}(uv)=u\frac{dv}{dx}+v\frac{du}{dx}
A popular mnemonic is “1d2 + 2d1” (first times derivative of second, plus second times derivative of first).
Why this formula makes sense
Think of a small change in x causing small changes in both factors.
- One part of the change comes from f changing while g is roughly the old value.
- Another part comes from g changing while f is roughly the old value.
The product rule captures both contributions.
Quotient rule
If
h(x)=\frac{f(x)}{g(x)}
then (where g(x)\neq 0)
h'(x)=\frac{f'(x)g(x)-f(x)g'(x)}{(g(x))^2}
In u and v language:
\frac{d}{dx}\left(\frac{u}{v}\right)=\frac{v\frac{du}{dx}-u\frac{dv}{dx}}{v^2}
A useful memory aid is “low d-high minus high d-low over low squared,” where “high” means the numerator and “low” means the denominator. The order matters because of the minus sign.

Worked example: product rule
Differentiate
y=(x^2+1)(x^3-4)
Let f(x)=x^2+1 and g(x)=x^3-4.
Compute derivatives:
f'(x)=2x
g'(x)=3x^2
Apply product rule:
y'=f'(x)g(x)+f(x)g'(x)
Substitute:
y'=(2x)(x^3-4)+(x^2+1)(3x^2)
You could expand and simplify, but AP problems often accept correct factored forms unless a specific form is requested.
It’s also worth noting that if you had two polynomials like
(2x+7)(9x+8)
you could multiply it out and then use the power rule, but the product rule saves time and reduces algebra work.
Worked example: quotient rule
Differentiate
y=\frac{x^2+1}{x-3}
Let f(x)=x^2+1 and g(x)=x-3.
Then
f'(x)=2x
g'(x)=1
Apply quotient rule:
y'=\frac{(2x)(x-3)-(x^2+1)(1)}{(x-3)^2}
Simplify the numerator carefully:
y'=\frac{2x(x-3)-x^2-1}{(x-3)^2}
If you expand:
2x(x-3)=2x^2-6x
So
y'=\frac{2x^2-6x-x^2-1}{(x-3)^2}
y'=\frac{x^2-6x-1}{(x-3)^2}
Common pitfall: forgetting parentheses, which often flips signs incorrectly.
Exam Focus
- Typical question patterns
- Differentiate expressions that are explicit products or quotients of polynomials.
- Evaluate a derivative at a point after using product/quotient rules.
- Explain (sometimes verbally) why \frac{d}{dx}(fg) is not f'g'.
- Common mistakes
- Using the false rule \frac{d}{dx}(fg)=f'g'.
- Dropping parentheses in quotient rule and losing the minus sign.
- Forgetting the denominator becomes squared in the quotient rule.
Derivatives of Trig, Exponential, and Logarithmic Functions (Memory Derivatives)
Some derivatives show up so often that it’s more efficient to memorize them than to derive them repeatedly. Trigonometric functions model periodic behavior (waves, rotations, oscillations), and exponential/logarithmic functions model growth and scaling.
Trig derivatives and why radians matter
For angles measured in radians:
\frac{d}{dx}(\sin x)=\cos x
\frac{d}{dx}(\cos x)=-\sin x
These formulas have this clean form only when x is in radians. Switching from radians to degrees rescales the input unit, and derivatives measure “change per unit input,” so the rate would pick up a conversion factor.
You are not usually expected to re-derive these from scratch on the exam, but you are expected to use them correctly and to remember the negative sign for cosine.
Exponential and logarithmic memory derivatives
Two other standard “memory derivatives” are:
\frac{d}{dx}(e^x)=e^x
\frac{d}{dx}(\ln x)=\frac{1}{x}
(For \ln x, the function is defined for x>0 in the real-number setting used in AP Calculus.)
Reference images commonly used for memorization:


Worked example: trig + algebraic rules
Differentiate
y=x^2\sin x
This is a product of x^2 and \sin x, so use the product rule.
Let f(x)=x^2 and g(x)=\sin x.
Then
f'(x)=2x
g'(x)=\cos x
So
y'=(2x)(\sin x)+(x^2)(\cos x)
A common mistake here is to try to apply the power rule to \sin x or to write
\frac{d}{dx}(\sin x)=\sin x
The derivative of sine is cosine.
Worked example: tangent slope for a trig function
Find the slope of the tangent line to y=\cos x at x=0.
Differentiate:
y'=-\sin x
Evaluate at x=0:
y'(0)=-\sin 0=0
So the tangent line is horizontal at x=0.
Exam Focus
- Typical question patterns
- Differentiate expressions involving \sin x and \cos x combined with polynomials using product/quotient rules.
- Evaluate trig derivatives at special angles like 0, \frac{\pi}{2}, and \pi.
- Use derivatives to interpret slope behavior of sinusoidal graphs.
- Use standard memory derivatives correctly for e^x and \ln x.
- Common mistakes
- Using degrees implicitly (or forgetting that AP assumes radians).
- Missing the negative sign in \frac{d}{dx}(\cos x)=-\sin x.
- Confusing \sin and \cos derivative relationships.
Higher-Order Derivatives and Meaning in Context
Once you have a derivative function, you can differentiate again. This is not just an algebra trick; it often represents “rate of change of a rate of change.”
What higher-order derivatives are
The second derivative of f is the derivative of f'. Notation:
f''(x)
Similarly, the third derivative is f'''(x), and so on.
If you use Leibniz notation and y=f(x), you will see
\frac{d^2y}{dx^2}
for the second derivative.
Why second derivatives matter (motion is the cleanest interpretation)
If s(t) is position as a function of time t, then:
- Velocity is the first derivative:
v(t)=s'(t)
- Acceleration is the derivative of velocity, i.e., the second derivative of position:
a(t)=v'(t)=s''(t)
This modeling chain is worth knowing cold:
- Position tells where you are.
- Velocity tells how fast position is changing.
- Acceleration tells how fast velocity is changing.
Even outside physics, a second derivative often means “how the trend itself is changing.” For example, if cost is increasing (positive first derivative) but increasing faster and faster (positive second derivative), that’s very different from cost increasing steadily (second derivative near zero).
Computing higher-order derivatives
You compute higher-order derivatives by differentiating again using the same rules.
Worked example:
Let
f(x)=x^4-3x^2
First derivative:
f'(x)=4x^3-6x
Second derivative:
f''(x)=12x^2-6
A common mistake is to “double the powers twice” or to try to apply a special second-derivative rule. There isn’t one here; you just differentiate the derivative.
Interpreting the sign of the derivative vs the sign of the second derivative
Even in Unit 2, you should be able to interpret these meanings:
- f'(x)>0: f is increasing at x.
- f'(x)
You do not need full curve sketching yet to use this interpretation in context questions.
Worked example: motion interpretation
Suppose
s(t)=t^3-6t^2
Compute velocity and acceleration.
Velocity:
v(t)=s'(t)=3t^2-12t
Acceleration:
a(t)=v'(t)=6t-12
Interpretation example: at t=2,
v(2)=3(4)-12(2)=12-24=-12
So the object is moving in the negative direction at that time. And
a(2)=6(2)-12=0
So at t=2, the velocity is not changing instantaneously.
Students often confuse “negative velocity” with “slowing down.” Negative velocity only means direction. “Slowing down” depends on velocity and acceleration having opposite signs.
Exam Focus
- Typical question patterns
- Compute f''(x) for a polynomial or a function built from basic rules.
- Interpret f'(a) and f''(a) in a context (especially motion).
- Use given information about velocity/acceleration to describe behavior.
- Common mistakes
- Treating negative velocity as automatically “decreasing position” without considering context wording.
- Mixing up what the first vs second derivative represents.
- Differentiating incorrectly on the second pass (especially sign errors).