AP® CALCULUS AB & BC · UNIT 2

Defining the derivative
& using derivative notation

Build the derivative function, read its notation and use derivative values to write tangent lines. Learn through detailed notes, five worked examples and six practice problems.

Topic 2.2 study notes5 worked examples · 6 practice problemsUpdated 22 October 2026
Calculus notebook with limit and integral symbols, compass and pencil on an olive and cream study desk

1. The derivative as a function

Core concept: Topic 2.1 defined an instantaneous rate at a fixed point. Here we build the derivative function, use precise notation, and connect its values with tangent-line slopes. The domain of a derivative consists of inputs where the required finite limit exists; it need not equal the original function's domain.

THE DERIVATIVE FUNCTION

The derivative of a function f is a function f′. Its value f′(x) is the instantaneous rate of change at an input where the defining limit exists as a finite real number.

Formal Definition (h-form):

f′(x)=limh→0f(x+h)−f(x)h

Alternative Definition (x-form):

f′(a)=limx→af(x)−f(a)x−a

Function versus value: f′ names the derivative function; f′(x) is its general value, while f′(a) is the number obtained at a fixed input a. Either limit form can define a value at a point: replacing x by a in the input-change form also gives f′(a).

Existence: At an interior input a, the ordinary derivative f′(a) requires a finite two-sided difference-quotient limit. A divergent or unequal-sided limit does not give an ordinary derivative. Use only inputs in the function's domain; specify one-sided derivatives explicitly at endpoints.

1. Start with the function

f(x)=x2+3x assigns an output to each real input.

2. Build its derivative

The definition gives f′(x)=2x+3, also defined for all real inputs in this example.

3. Evaluate a rate

f′(2)=7, while f(2)=10. A slope and an output value are different quantities.

4. Interpret its units

Derivative units are output unitsinput units. A temperature rate, for example, can be measured in ∘Cmin.

The derivative domain may be smaller: f(x)=x has domain [0,∞), but its finite ordinary derivative f′(x)=12x is defined only for x>0. At zero, the right-hand quotient diverges.

Review Topic 2.1: average and instantaneous rates and limit notation if the limiting process is unfamiliar.

2. Derivative notation and evaluation at a point

Equivalent notation needs the same dependent and independent variables

For a function y=f(x), the derivative can be written in multiple ways:

Notation Name Read As Best Used For
f′(x) Lagrange (Prime) "f prime of x" General calculus, clean formulas
dydx Leibniz “dee y over dee x” Related rates, implicit differentiation
y′ Lagrange (Short) "y prime" Quick algebraic work
dfdx Leibniz (Function) "dee f dee x" Named function differentiated with respect to the stated variable
y˙ Newton "y dot" Physics (time derivatives)
Df or Dxf Euler "D of f" Differential equations
Derivative at a Specific Point

When evaluating the derivative at a particular value x=a:

f′(a)ordydx|x=aory′(a)

These denote the derivative evaluated at x=a, with y understood as the function y(x)=f(x). The evaluation bar applies to the entire derivative.

When to Use Which Notation:

  • f′(x): Best for general derivative problems, applying derivative rules, graphing
  • dydx: Perfect for related rates (emphasizes variables), implicit differentiation, chain rule
  • y′: Convenient shorthand when y=f(x) and context is clear
  • x˙: Newton's dot denotes a time derivative when x=x(t); velocity is x˙=dxdt, and acceleration is v˙=dvdt=x¨. It is not automatically a derivative with respect to x.

Read the variable, not just the symbol. For y=f(x), f′(x)=y′=dydx. Newton's dot means differentiation with respect to time; operator notation such as Dxf needs its variable specified. These conventions do not make derivatives with different independent variables interchangeable.

dydx is derivative notation, not a quotient of two finite changes. By contrast, ΔyΔx is an average rate across a nonzero input change. Later differential and chain-rule manipulations require their own mathematical justification.

For a time-dependent position s(t), write v(t)=s′(t)=dsdt, and at time three write v(3)=s′(3)=dsdt|t=3. The evaluation bar specifies which derivative value is intended.

3. Tangent slope and the tangent-line equation

The Single Most Important Geometric Fact:

f′(a)=mtan

This connection between derivatives (algebra/calculus) and tangent line slopes (geometry) is why derivatives are so powerful for understanding curves!

Equation of the Tangent Line

To find the equation of the line tangent to y=f(x) at the point (a,f(a)):

  1. Find the slope: m=f′(a)
  2. Use point-slope form:
    y−f(a)=f′(a)(x−a)
  3. Simplify if needed to slope-intercept form y=mx+b

Local meaning: A finite derivative determines the tangent's local slope. A tangent may cross the curve or intersect it again elsewhere. Near a differentiable point, the tangent gives the linear approximation f(a+h)≈f(a)+f′(a)h, with an error that becomes negligible relative to h as h→0.

In the formula above, mtan is the finite tangent slope at (a,f(a)). A zero derivative gives a horizontal tangent; a vertical tangent has no finite derivative slope and cannot be inserted into the finite-slope formula.

When the derivative exists, an equivalent tangent formula is y=f(a)+f′(a)(x−a). The tangent's slope uses f′(a); its anchor point uses f(a). Substituting one for the other is a common error.

4. Connect analytical, graphical, numerical and verbal forms

A derivative is one concept expressed in several ways. For f(x)=x2+3x at input two, the exact derivative is seven.

Analytical

f′(2)=limh→0f(2+h)−f(2)h=limh→0(7+h)=7.

Graphical

The graph passes through (2,10). Its tangent has slope seven, so its equation is y−10=7(x−2).

Numerical

The quotients below approach seven from both sides. A finite table supports an estimate; the algebraic limit supplies the justification.

Verbal

At input two, the output is increasing locally at seven output units per input unit. This does not claim that every later unit of input adds exactly seven.

Nearby exact quotients for the quadratic example
Input changef(2+h)−f(2)h
−0.16.9
−0.016.99
0.017.01
0.17.1

See Topic 2.3: estimating derivatives from graphs and tables for estimates when a formula is unavailable.

5. Differentiability and continuity

DIFFERENTIABILITY

A function f is differentiable at x=a if f′(a) exists—that is, if the limit limh→0f(a+h)−f(a)h exists and is finite.

A function is differentiable on an open interval if it has a finite derivative at every input in that interval. If endpoints of a closed interval are included under a convention, the corresponding one-sided derivative requirement must be stated separately.

KEY THEOREM: Differentiability Implies Continuity

If f is differentiable at x=a, then f is continuous at x=a.

Contrapositive: If f is discontinuous at x=a, then f is NOT differentiable at x=a.

Important: The converse is NOT true! A function can be continuous but NOT differentiable (e.g., f(x)=|x| at x=0).

Here is why differentiability forces continuity. For nonzero h,

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

If the quotient tends to the finite value f′(a), the right-hand side tends to zero. Thus limh→0f(a+h)=f(a), which is continuity at the input. This proof does not reverse: continuity alone does not force a limiting slope.

Continue to Topic 2.4: differentiability and continuity for the full treatment. The visual checklist is useful, but the defining quotient—not an informal claim that a curve looks “smooth”—decides differentiability.

6. When a finite derivative does not exist

Four ways a finite f′(a) can fail to exist

1. Discontinuity

If f has a jump, removable, or infinite discontinuity at x=a, then f′(a) does not exist.

Example: f(x)={x2x<1x+1x≥1 is not differentiable at x=1 (jump discontinuity)

2. Corner or Cusp (Sharp Point)

At a corner, the one-sided difference-quotient limits are finite but unequal. At a typical cusp, they diverge with opposite signs. Neither gives a single finite derivative.

Example: f(x)=|x| at x=0 has a corner

Left derivative: −1; Right derivative: +1 → No derivative!

3. Vertical Tangent

A vertical tangent has no finite slope. For example, the difference quotient for f(x)=x3 at zero is h3h=1h23; it tends to +∞ from both sides. The ordinary derivative is undefined.

Example: f(x)=x3 at x=0 has vertical tangent

4. Oscillating Behavior

If f oscillates too wildly near x=a, the difference quotient might not have a limit.

Corrected example: define f(x)=xsin(1x) for x≠0, and f(0)=0. This extension is continuous at zero because |f(x)|≤|x|. But its quotient f(h)−f(0)h=sin(1h) has no limit, so it is not differentiable at zero. Oscillation of the quotient is the decisive issue.

Quick Test for Differentiability:

  1. Check continuity first: If not continuous, definitely not differentiable
  2. Look for sharp points: If graph has corner/cusp, not differentiable
  3. Check for vertical tangents: If tangent is vertical, not differentiable
  4. Compare one-sided derivative limits: Compute limh→0−f(a+h)−f(a)h and limh→0+f(a+h)−f(a)h. Both must be finite and equal. These are limits of difference quotients, not merely limits of a formula for f′ near the point.

7. Five worked examples with the limit definition

Example 1: build a derivative function

Problem: Use the limit definition to find f′(x) for f(x)=x2+3x

Solution:

  1. Set up the limit:
    f′(x)=limh→0f(x+h)−f(x)h
  2. Find f(x+h):
    • f(x+h)=(x+h)2+3(x+h)
    • =x2+2xh+h2+3x+3h
  3. Compute the numerator:
    f(x+h)−f(x)=(x2+2xh+h2+3x+3h)−(x2+3x)
    =2xh+h2+3h
  4. Form the difference quotient:
    f(x+h)−f(x)h=2xh+h2+3hh=h(2x+h+3)h
  5. Cancel h and take the limit:
    f′(x)=limh→0(2x+h+3)=2x+3

Answer: f′(x)=2x+3

Interpretation: At any input x, the slope of the tangent line is 2x+3

Example 2: evaluate a derivative at a point

Problem: Find f′(2) for f(x)=x3 using the limit definition

Solution:

  1. Set up with a=2:
    f′(2)=limh→0f(2+h)−f(2)h
  2. Evaluate:
    • f(2+h)=(2+h)3=8+12h+6h2+h3
    • f(2)=8
  3. Substitute:
    f′(2)=limh→0(8+12h+6h2+h3)−8h=limh→012h+6h2+h3h
  4. Factor and cancel:
    =limh→0h(12+6h+h2)h=limh→0(12+6h+h2)
  5. Evaluate the limit:
    f′(2)=12+0+0=12

Answer: f′(2)=12

Meaning: At the point (2,8), the slope of the tangent line is 12

Example 3: find a reciprocal tangent line

Problem: Find the equation of the line tangent to f(x)=1x at x=2

Solution:

  1. Find the point: f(2)=12, so point is (2,12)
  2. Find the slope using limit definition:
    f′(2)=limh→0f(2+h)−f(2)h=limh→012+h−12h
  3. Common denominator in numerator:
    =limh→02−(2+h)2(2+h)h=limh→0−h2(2+h)h
  4. Simplify:
    =limh→0−h2(2+h)h=limh→0−12(2+h)=−14
  5. Use point-slope form:
    y−12=−14(x−2)
  6. Simplify:
    y=−14x+12+12=−14x+1

Answer: y=−14x+1

Example 4: compare one-sided derivatives

Problem: Determine if f(x)=|x−1| is differentiable at x=1

Solution:

  1. Check continuity: f(1)=0, limx→1f(x)=0 → Continuous
  2. Check left-hand derivative:
    • For x<1: f(x)=−(x−1)=1−x
    • f−′(1)=limh→0−f(1+h)−f(1)h=limh→0−−hh=−1
  3. Check right-hand derivative:
    • For x>1: f(x)=x−1
    • f+′(1)=limh→0+f(1+h)−f(1)h=limh→0+hh=1
  4. Compare: f−′(1)=−1≠1=f+′(1)

Conclusion: NOT differentiable at x=1 because the one-sided derivatives don't match (corner point)

Example 5: use Leibniz notation

Problem: If y=x2−4x+3, find dydx using the limit definition

Solution:

  1. Set up:
    dydx=limh→0y(x+h)−y(x)h
  2. Expand:
    • y(x+h)=(x+h)2−4(x+h)+3
    • =x2+2xh+h2−4x−4h+3
  3. Subtract:
    y(x+h)−y(x)=2xh+h2−4h
  4. Divide and simplify:
    dydx=limh→0h(2x+h−4)h=limh→0(2x+h−4)=2x−4

Answer: dydx=2x−4 (same as y′=2x−4 or f′(x)=2x−4)

Domain and notation checks for the preserved examples

Examples 1, 2 and 5 use polynomials, so their derivative formulas are valid for every real input. In Example 3, the reciprocal requires x≠0, and its quotient at two requires h≠0 and h≠−2 before cancellation. In Example 4, f−′(1) and f+′(1) denote the left and right derivative limits at the base point, respectively.

8. Higher-order derivative notation

Notation for Higher Derivatives

Second Derivative (derivative of the derivative):

f″(x)ord2ydx2ory″

Third Derivative:

f‴(x)ord3ydx3ory‴

nth Derivative:

f(n)(x)ordnydxn

Higher-order notation: f(n)(x) means the nth derivative, not the nth power. Parenthesized notation such as f(4)(x) is clearer than a long string of primes. The expressions d2ydx2 and (dydx)2 mean different things.

The second derivative measures the rate of change of the first derivative. If s is position and t is time, s′(t)=v(t) and s″(t)=v′(t)=a(t). Position in meters and time in seconds give velocity units ms and acceleration units ms2. Higher derivatives exist only where the successive derivatives exist.

9. Methods, notation choices and common mistakes

Essential Tips

  • Simplify the quotient on its allowed domain: Factor for polynomials, combine fractions for rational functions, or multiply by a conjugate for radicals. Cancel common factors only when nonzero.
  • Do not substitute h=0 into the original quotient: It is undefined there. A 00 form signals that the limit requires further analysis; it is not a value or proof that the derivative fails.
  • For the same function and independent variable: f′(x)=dydx=y′ — equivalent notation in this context
  • Differentiable implies continuous: But continuous doesn't guarantee differentiable!
  • Check one-sided derivatives: At potential problem points (corners, cusps)
  • Tangent line needs two things: Point and slope (derivative)
  • For notation choice: Use what makes the problem clearest

The 5-Step Limit Definition Method

A five-step method for evaluating the derivative definition:

  1. SET UP: Write f′(x)=limh→0f(x+h)−f(x)h
  2. EXPAND: Find f(x+h) by substituting
  3. SUBTRACT: Compute f(x+h)−f(x) and simplify
  4. SIMPLIFY: For a polynomial, factor h from the entire numerator; for a reciprocal or radical, combine fractions or rationalize as needed.
  5. EVALUATE: Cancel a nonzero common factor when justified, take the limit, and state the derivative's domain. Preserve the limit notation until the limit has been evaluated.

Memory aid: "SESFC" (Set, Expand, Subtract, Factor, Cancel)

Quick Notation Guide

If you see... Use notation...
“Find f′” or "named function" f′(x) or f′(a)
"Related rates" or "implicit" dydx, drdt
“y=f(x)” (simple equation) y′ or dydx
Physics/velocity problems x˙, v˙ (Newton)
Differential equations Dy or dydx

Common Mistakes to Avoid

  • Mistake 1: Substituting h=0 into an undefined original difference quotient instead of evaluating its limit.
  • Mistake 2: Forgetting to distribute when expanding f(x+h)
  • Mistake 3: Not factoring out h correctly—must factor from entire numerator
  • Mistake 4: Assuming continuity guarantees differentiability. For example, f(x)=|x| is continuous at zero but has no derivative there.
  • Mistake 5: Confusing f′(a) (number) with f′(x) (function)
  • Mistake 6: Losing the independent variable or evaluation point. Prefer dydx|x=a for a value at a point. Writing a derivative function with an explicit argument can be valid if that function notation has been defined; it is not universally forbidden.
  • Mistake 7: Forgetting the limit symbol entirely when using definition
  • Mistake 8: Not checking for corners/cusps when testing differentiability

10. Six practice problems with complete solutions

For Problems 1–4, use the limit definition to find the derivative function. The last two problems apply tangent-line and differentiability reasoning.

1. A linear function

f(x)=5x−2.

Check the calculation and domain
f(x+h)−f(x)h=5(x+h)−2−(5x−2)h=5hh=5,h≠0.
f′(x)=limh→05=5.

The line's slope is constant; the derivative domain is all real inputs.

2. A quadratic function

f(x)=4x2.

Check the calculation and domain
4(x+h)2−4x2h=8xh+4h2h=8x+4h,h≠0.
f′(x)=limh→0(8x+4h)=8x.

The derivative domain is all real inputs. The rate varies with the input.

3. A shifted reciprocal

f(x)=1x+1.

Check the calculation and domain
f(x+h)−f(x)h=1x+h+1−1x+1h.
=−hh(x+h+1)(x+1)=−1(x+h+1)(x+1).
f′(x)=limh→0−1(x+h+1)(x+1)=−1(x+1)2.

Require x≠−1, h≠0, and x+h≠−1 while simplifying. The derivative domain is x≠−1, the same as the original domain here.

4. A square-root function

f(x)=x.

Check the calculation and domain

For a positive fixed input and allowed nonzero changes, multiply by the conjugate:

x+h−xh=(x+h)−xh(x+h+x).
=1x+h+x,h≠0.
f′(x)=limh→01x+h+x=12x,x>0.

The function includes zero in its domain, but the finite derivative does not: at zero the right-hand quotient hh=1h tends to +∞.

5. A tangent-line equation

Find the tangent to y=x2 at x=3.

Check the point, slope and line
f(3)=9,f′(3)=limh→0(3+h)2−9h=limh→0(6+h)=6.
y−9=6(x−3),y=6x−9.

The line passes through (3,9), and its slope equals the derivative there.

6. A cusp at zero

Is f(x)=x23 differentiable at x=0?

Check the one-sided quotient limits

Interpret the real power as (x3)2. The function is continuous at zero. For nonzero changes,

f(h)−f(0)h=h23h=1h3.
limh→0−1h3=−∞,limh→0+1h3=+∞.

The opposite unbounded one-sided slopes form a cusp. There is no finite derivative at zero. This differs from the cube-root vertical-tangent example, whose quotients diverge positively from both sides.

11. AP-style reasoning and written solutions

What the AP® Exam Expects:

  • Show the limit setup: Write f′(x)=limh→0f(x+h)−f(x)h explicitly
  • Justify the calculation: When the definition is requested, show the limit setup and enough valid algebra to establish it. A later derivative-rule result alone does not demonstrate use of the definition.
  • Use proper notation: Be consistent with f′(x), dydx, or y′
  • State the derivative value: "Therefore, f′(x)=..." as your conclusion
  • For tangent lines: Show finding the slope AND using point-slope form
  • Justify non-differentiability: Explain WHY (corner, discontinuity, vertical tangent)
  • Check one-sided derivatives: When asked about differentiability at a point

Common FRQ Formats:

  1. "Use the definition of derivative to find f′(x)"
  2. "Find the equation of the line tangent to f at x=a"
  3. "Show that f is not differentiable at x=a"
  4. "Using correct notation, express the instantaneous rate of change"
  5. "Find f′(3) using the limit definition"
  6. "Determine if f is differentiable at x=2. Justify your answer."

12. Quick reference

Concept Key Formula/Fact
Derivative Definition (h-form) f′(x)=limh→0f(x+h)−f(x)h
Derivative Definition (x-form) f′(a)=limx→af(x)−f(a)x−a
Geometric Meaning Slope of tangent line at point
Tangent Line Equation y−f(a)=f′(a)(x−a)
Differentiable → Continuous Always true
Continuous → Differentiable Not always true: f(x)=|x| is a counterexample at zero.
Equivalent Notations f′(x)=dydx=y′=Df

13. Connections and next study steps

Topic 2.2 connects to:

  • Topic 2.1: Extends instantaneous rate from a point to a function
  • Topics 2.5–2.10: Power, sum, trigonometric, product and quotient rules provide shortcuts for derivative limits.
  • Unit 3: Composite, implicit and inverse differentiation use the derivative definition and notation.
  • Unit 4: Contextual rates, motion and related rates use derivatives and meaningful units.
  • Unit 5: Analytical applications use first and second derivatives for behavior, concavity and optimization. Acceleration is a second derivative of position in motion applications.
  • Unit 6: Integration and accumulation connect to differentiation through the Fundamental Theorem of Calculus.
  • All of calculus: This is THE foundational definition!

Keep three ideas distinct: the original function gives output values, its derivative function gives local rates where the finite limit exists, and a derivative value supplies a tangent slope at a specified point. Use complete limit notation, valid algebra, appropriate domains and clearly defined variables.

Independent NUM8ERS study resource. AP® is a trademark of the College Board, which does not endorse this resource.

Back to top ↑