AP Calculus AB and BC · Unit 2 · Topic 2.2

    2.2 Defining the Derivative of a Function and Using Derivative Notation

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    The derivative of ff is the function f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}, defined wherever the limit exists. It gives the slope of the tangent line, or the instantaneous rate of change, at every xx. It is written f′(x)f'(x), y′y', dydx\frac{dy}{dx} or ddxf(x)\frac{d}{dx} f(x). The tangent line at x=ax = a is y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a).

    What you need to know

    • Define the derivative of a function as a limit.
    • Find derivatives of simple functions directly from the definition.
    • Read and use prime and Leibniz notation.
    • Write the equation of a tangent line using the derivative.

    From a number to a function

    In topic 2.1 the rate of change was found at one point aa. Doing the same calculation at a general xx produces a new function, the derivative:

    f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

    For f(x)=x2+3xf(x) = x^2 + 3x: f(x+h)−f(x)=(x2+2xh+h2+3x+3h)−(x2+3x)=2xh+h2+3hf(x + h) - f(x) = (x^2 + 2xh + h^2 + 3x + 3h) - (x^2 + 3x) = 2xh + h^2 + 3h. Dividing by hh gives 2x+h+32x + h + 3, and letting h→0h \to 0 gives f′(x)=2x+3f'(x) = 2x + 3. So the slope at x=1x = 1 is 5, at x=−1.5x = -1.5 it is 0 (the vertex), and so on.

    Because f′f' is a function, it has its own graph, and the two graphs are linked. Where ff is rising, f′f' is positive; where ff is falling, f′f' is negative; where ff has a smooth peak or trough, f′f' is zero. For f(x)=x2+3xf(x) = x^2 + 3x, the derivative 2x+32x + 3 is negative to the left of x=−1.5x = -1.5 and positive to the right, which matches the parabola falling and then rising. Reading one graph from the other is a skill used throughout Unit 5.

    For f(x)=xf(x) = \sqrt{x}, multiply by the conjugate: x+h−xh=1x+h+x\frac{\sqrt{x + h} - \sqrt{x}}{h} = \frac{1}{\sqrt{x + h} + \sqrt{x}}, so f′(x)=12xf'(x) = \frac{1}{2\sqrt{x}} for x>0x > 0. The derivative does not exist at x=0x = 0, where the graph has a vertical tangent.

    Notation

    Ways to write the derivative
    NotationRead asValue at a point
    f′(x)f'(x)f prime of xf′(2)f'(2)
    y′y'y primey′(2)y'(2)
    dydx\frac{dy}{dx}dy by dxdydx∣x=2\left.\frac{dy}{dx}\right|_{x = 2}
    ddx[f(x)]\frac{d}{dx}[f(x)]the derivative of f(x) with respect to x—

    Leibniz notation dydx\frac{dy}{dx} is especially useful in context because it shows the units: if yy is in metres and xx in seconds, dydx\frac{dy}{dx} is in metres per second. It also reminds you which variable you are differentiating with respect to, which matters in related rates (Unit 4).

    A limit that looks like a difference quotient can be recognised as a derivative without computing it. For example, lim⁡h→04+h−2h\lim_{h \to 0} \frac{\sqrt{4 + h} - 2}{h} is f′(4)f'(4) for f(x)=xf(x) = \sqrt{x}, which equals 14\frac{1}{4}. The exam uses this disguise often.

    Tangent lines

    The tangent line to y=f(x)y = f(x) at x=ax = a passes through (a,f(a))(a, f(a)) with slope f′(a)f'(a). In point-slope form:

    y−f(a)=f′(a)(x−a)y - f(a) = f'(a)(x - a)

    For f(x)=x2f(x) = x^2 at a=3a = 3: f(3)=9f(3) = 9 and f′(3)=6f'(3) = 6, so the tangent is y−9=6(x−3)y - 9 = 6(x - 3), or y=6x−9y = 6x - 9. The point-slope form is acceptable on the exam and saves algebra mistakes; there is no need to simplify.

    Key terms

    Derivative
    f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}, the slope function of ff.
    Differentiable
    Having a derivative at a point: the defining limit exists there.
    Leibniz notation
    dydx\frac{dy}{dx}, showing the derivative as a ratio of changes and carrying units.
    Tangent line equation
    y−f(a)=f′(a)(x−a)y - f(a) = f'(a)(x - a).

    Common mistakes

    • Writing f(x)+hf(x) + h instead of f(x+h)f(x + h).

      Replace every xx in the formula by x+hx + h.

    • Using f′(a) as the y-coordinate of the tangent point.

      The point is (a,f(a))(a, f(a)); f′(a)f'(a) is only the slope.

    • Cancelling hh before expanding.

      Expand and subtract first; the h's that cancel appear only after f(x) is subtracted.

    How this topic is tested

    • Leave tangent lines in point-slope form.
    • Recognise derivative definitions disguised as limits and name f and a.
    • State the units of a derivative in context using the Leibniz form as a guide.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · MP 1 · Implementing Mathematical Processes

      Using the definition, the derivative of f(x)=x2+3xf(x) = x^2 + 3x is

    2. Question 2 · MP 1 · Implementing Mathematical Processes

      What is the equation of the tangent line to y=x2y = x^2 at x=3x = 3?

    3. Question 3 · MP 2 · Connecting Representations

      What is lim⁡h→04+h−2h\lim_{h \to 0} \frac{\sqrt{4 + h} - 2}{h}?

    4. Question 4 · MP 4 · Communication and Notation

      If y=f(x)y = f(x), what does dydx∣x=2=5\left.\frac{dy}{dx}\right|_{x = 2} = 5 mean?

    5. Question 5 · MP 2 · Connecting Representations

      What is lim⁡h→0eh−1h\lim_{h \to 0} \frac{e^{h} - 1}{h}?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Free response (no calculator) · 4 points

    Let f(x)=1x+1f(x) = \frac{1}{x + 1}.

    1. (a) Use the definition of the derivative to find f′(x)f'(x).
    2. (b) Write the equation of the tangent line to the graph of ff at x=1x = 1.

    Connected topics

    Frequently asked questions

    Will I have to use the limit definition on the exam?

    Occasionally, usually to recognise a limit as a derivative. Most derivatives are found with the rules from topics 2.5 to 2.10.

    Is f′(x) a number or a function?

    Both views matter: f′ is a function, and f′(a) is the number it gives at a particular input.

    Is \(\frac{dy}{dx}\) a fraction?

    Not literally, but it behaves like one in many calculations, and thinking of it as a ratio of small changes helps with units and the chain rule.

    How this shows up on the exam42 multiple-choice and 6 free-response questions, with and without a calculator. See how the exam is laid out.

    Free Unit 2 cheat sheet

    Every topic in Unit 2: Differentiation: Definition and Fundamental Properties on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Calculus AB practice material is ready. No spam, and we'll delete it if you ask.

    Full-length AP Calculus AB practice examsUnit 2 is one of 8 units on the exam. Two timed exams in the 2027 format (42 MCQ + 6 FRQ, with calculator and no-calculator parts), worked explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    All topics in Unit 2: Differentiation: Definition and Fundamental Properties

    1. 2.1 Defining Average and Instantaneous Rates of Change at a Point
    2. 2.2 Defining the Derivative of a Function and Using Derivative Notation
    3. 2.3 Estimating Derivatives of a Function at a Point
    4. 2.4 Connecting Differentiability and Continuity: Determining When Derivatives Do and Do Not Exist
    5. 2.5 Applying the Power Rule
    6. 2.6 Derivative Rules: Constant, Sum, Difference, and Constant Multiple
    7. 2.7 Derivatives of cos x, sin x, eˣ, and ln x
    8. 2.8 The Product Rule
    9. 2.9 The Quotient Rule
    10. 2.10 Finding the Derivatives of Tangent, Cotangent, Secant, and/or Cosecant Functions

    Other units in AP Calculus AB

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.