Skip to content

Unit 2: Differentiation: Definition and Fundamental Properties

Defining the Derivative of a Function and Using Derivative Notation

Find the derivative function from the limit definition, read and write every derivative notation, and use the derivative to write tangent lines.

Topic 2.2 · 8 min read

Topic 2.1 found the derivative at one point, f′(a)f'(a), as a limit of difference quotients. Doing that limit separately at a=1a = 1, then at a=2a = 2, then at a=3a = 3 repeats the same algebra each time. Do it once with a variable xx in place of aa, and the result is a formula that gives the slope of ff at every point at once: a new function, called the derivative of ff.

The derivative as a function

The derivative of ff is the function f′f' whose value at each xx is the limit of the difference quotient at that xx:

During the limit, xx is held fixed and only hh moves. That is why the answer can still contain xx: the limit is taken at one xx at a time, and the formula records the result for all of them.

For f(x)=x2−3xf(x) = x^2 - 3x:

f(x+h)−f(x)=(x2+2xh+h2−3x−3h)−(x2−3x)=2xh+h2−3h,f(x + h) - f(x) = (x^2 + 2xh + h^2 - 3x - 3h) - (x^2 - 3x) = 2xh + h^2 - 3h,
f′(x)=lim⁡h→02xh+h2−3hh=lim⁡h→0(2x+h−3)=2x−3.f'(x) = \lim_{h \to 0}\frac{2xh + h^2 - 3h}{h} = \lim_{h \to 0}(2x + h - 3) = 2x - 3.

One limit now answers every slope question about this parabola. At x=0x = 0 the slope is f′(0)=−3f'(0) = -3; at x=1.5x = 1.5 it is f′(1.5)=0f'(1.5) = 0, so the vertex is at x=1.5x = 1.5; at x=4x = 4 it is f′(4)=5f'(4) = 5.

The domain of f′f' can be smaller than the domain of ff. The function f(x)=∣x∣f(x) = |x| is defined everywhere, but the limit fails at x=0x = 0 (topic 2.1), so f′f' is defined only for x≠0x \neq 0: it equals −1-1 for x<0x < 0 and 11 for x>0x > 0. Topic 2.4 covers where and why derivatives fail to exist.

Notation

Several notations for the derivative are in use, and the exam uses all of them. For y=f(x)y = f(x):

NotationRead asValue at x=ax = a
f′(x)f'(x)"ff prime of xx"f′(a)f'(a)
y′y'"yy prime"y′y' at x=ax = a
dydx\dfrac{dy}{dx}"dydy dxdx" or "the derivative of yy with respect to xx"dydx∣x=a\left.\dfrac{dy}{dx}\right\rvert_{x = a}
ddx[f(x)]\dfrac{d}{dx}\big[f(x)\big]"the derivative of f(x)f(x)"ddx[f(x)]∣x=a\left.\dfrac{d}{dx}\big[f(x)\big]\right\rvert_{x = a}

The prime notation, from Lagrange, is short and names the function. The dydx\frac{dy}{dx} notation, from Leibniz, is built to look like ΔyΔx\frac{\Delta y}{\Delta x}, the change in yy over the change in xx, which is what it is the limit of. It names both variables, so it works with any letters: if a volume VV depends on a radius rr, its derivative is dVdr\frac{dV}{dr}, and if a position ss depends on time tt, it is dsdt\frac{ds}{dt}. The symbol ddx\frac{d}{dx} by itself is an instruction: take the derivative, with respect to xx, of whatever follows.

Leibniz notation also carries units. dVdr\frac{dV}{dr} is measured in units of VV per unit of rr, so if VV is in cubic centimeters and rr in centimeters, dVdr\frac{dV}{dr} is in cubic centimeters per centimeter.

One notational distinction matters on the exam. f′(3)f'(3) is the derivative evaluated at 3, the slope of ff there. ddx[f(3)]\frac{d}{dx}\big[f(3)\big] differentiates the number f(3)f(3), which never changes as xx changes, so it is 00. Differentiate first, then substitute.

Four ways to see a derivative

The same derivative can be given as a formula, a graph, a table, or a sentence, and exam questions move between all four.

Analytically, it is a formula, like f′(x)=2x−3f'(x) = 2x - 3 above.

Graphically, the value f′(x)f'(x) is the slope of the graph of ff at xx, so the graph of ff tells you the graph of f′f' without any formula:

  • where ff is increasing, its slopes are positive, so the graph of f′f' is above the xx-axis;
  • where ff is decreasing, f′f' is below the xx-axis;
  • where the graph of ff has a horizontal tangent, f′f' is 00;
  • where ff is steeper, f′f' is farther from 00.
Two graphs side by side. Left: the graph of f, which rises to a high point at (negative 1, about 4.17), falls through (0, 3) to a low point at (2, about negative 0.33), then rises again. Short dashed horizontal tangent segments mark the high and low points. Right: the graph of f prime, an upward-opening parabola that is positive for x less than negative 1, crosses zero at x = negative 1, is negative between negative 1 and 2 with its lowest value of negative 2.25 at x = 0.5, crosses zero at x = 2, and is positive after.

In the figure, ff rises until x=−1x = -1, falls until x=2x = 2, and rises after. So f′f' is positive, then zero at x=−1x = -1, negative until it reaches zero again at x=2x = 2, then positive. The steepest descent of ff is near x=0.5x = 0.5, which is where f′f' is most negative. (The formulas, if you want them, are f(x)=13x3−12x2−2x+3f(x) = \frac{1}{3}x^3 - \frac{1}{2}x^2 - 2x + 3 and f′(x)=x2−x−2f'(x) = x^2 - x - 2.)

Numerically, the derivative is a table of values of f′f', often given outright in a free-response question. When only values of ff are given, you estimate f′f' from them (topic 2.3).

Verbally, the derivative is a rate stated in words with units: "T′(t)T'(t) is the rate at which the temperature of the soup is changing, in degrees Fahrenheit per minute, at time tt minutes." A sentence that says what changes, with respect to what, in what units, and when, is the form a free-response interpretation takes.

The tangent line

The derivative at a point is the slope of the tangent line there (topic 2.1). The tangent line also passes through the point (a,f(a))(a, f(a)) on the graph, and a point plus a slope is all a line needs.

For f(x)=x2−3xf(x) = x^2 - 3x at x=4x = 4: f(4)=4f(4) = 4 and f′(4)=5f'(4) = 5, so the tangent line is y=4+5(x−4)y = 4 + 5(x - 4).

A tangent line does not have to touch the curve only once, and it can cross the curve. For y=x3y = x^3 at x=0x = 0, the difference quotient is h3h=h2→0\frac{h^3}{h} = h^2 \to 0, so the tangent line is y=0y = 0, the xx-axis, and the cubic crosses it at the origin. What makes a line tangent is matching the curve's slope at the point. Zoom in on a differentiable function at a point and its graph looks more and more like that line, which is why the tangent line approximates the function near the point (topic 4.6).

Worked examples

Worked exampleExample 1: a derivative from the definition, then a tangent line

Let g(x)=1x+2g(x) = \dfrac{1}{x + 2}.

(a) Use the definition of the derivative to find g′(x)g'(x). What is the domain of g′g'?

(b) Write an equation for the line tangent to the graph of gg at x=0x = 0.

Show solution

(a) Combine the two fractions in the numerator over a common denominator:

g(x+h)−g(x)=1x+h+2−1x+2=(x+2)−(x+h+2)(x+h+2)(x+2)=−h(x+h+2)(x+2).g(x + h) - g(x) = \frac{1}{x + h + 2} - \frac{1}{x + 2} = \frac{(x + 2) - (x + h + 2)}{(x + h + 2)(x + 2)} = \frac{-h}{(x + h + 2)(x + 2)}.

Divide by hh (allowed, since h≠0h \neq 0) and take the limit:

g′(x)=lim⁡h→0−1(x+h+2)(x+2)=−1(x+2)2.g'(x) = \lim_{h \to 0}\frac{-1}{(x + h + 2)(x + 2)} = \frac{-1}{(x + 2)^2}.

The limit exists for every x≠−2x \neq -2; at x=−2x = -2, gg itself is undefined. So the domain of g′g' is all x≠−2x \neq -2. The derivative is negative everywhere it exists, which matches the graph of gg: each of its two branches falls from left to right.

(b) g(0)=12g(0) = \frac{1}{2} and g′(0)=−14g'(0) = \frac{-1}{4}, so the tangent line is

y=12−14x.y = \frac{1}{2} - \frac{1}{4}x.
Worked exampleExample 2: Leibniz notation and units

The volume of a spherical balloon with radius rr centimeters is V=43πr3V = \frac{4}{3}\pi r^3 cubic centimeters. Use the definition of the derivative to find dVdr\frac{dV}{dr}, and then find dVdr∣r=5\left.\frac{dV}{dr}\right\rvert_{r = 5}. Using correct units, explain its meaning.

Show solution

Expand (r+h)3=r3+3r2h+3rh2+h3(r + h)^3 = r^3 + 3r^2h + 3rh^2 + h^3, so

dVdr=lim⁡h→043π(3r2h+3rh2+h3)h=lim⁡h→043π(3r2+3rh+h2)=4πr2.\frac{dV}{dr} = \lim_{h \to 0}\frac{\frac{4}{3}\pi\left(3r^2h + 3rh^2 + h^3\right)}{h} = \lim_{h \to 0}\frac{4}{3}\pi\left(3r^2 + 3rh + h^2\right) = 4\pi r^2.

At r=5r = 5,

dVdr∣r=5=4π(25)=100π≈314.159 cubic centimeters per centimeter.\left.\frac{dV}{dr}\right\rvert_{r = 5} = 4\pi(25) = 100\pi \approx 314.159 \text{ cubic centimeters per centimeter}.

When the radius is 5 centimeters, the volume of the balloon is increasing at a rate of 100π100\pi, about 314.159, cubic centimeters per centimeter of increase in the radius.

The formula 4πr24\pi r^2 is the surface area of the sphere, and that is not a coincidence. Growing the radius by a thin amount hh adds a shell whose volume is about (surface area) × h\times\, h, so the volume grows at the rate of the surface area.

Worked exampleExample 3: tangent lines with conditions (exam level, no calculator)

Let f(x)=x2−4x+1f(x) = x^2 - 4x + 1.

(a) Find f′(x)f'(x) using the definition of the derivative.

(b) At what point is the line tangent to the graph of ff parallel to the line y=2x+7y = 2x + 7? Write an equation for that tangent line.

(c) Find all values of aa for which the line tangent to the graph of ff at x=ax = a passes through the origin.

Show solution

(a) f(x+h)−f(x)=2xh+h2−4hf(x + h) - f(x) = 2xh + h^2 - 4h, so

f′(x)=lim⁡h→02xh+h2−4hh=lim⁡h→0(2x+h−4)=2x−4.f'(x) = \lim_{h \to 0}\frac{2xh + h^2 - 4h}{h} = \lim_{h \to 0}(2x + h - 4) = 2x - 4.

(b) Parallel lines have equal slopes, so the tangent line must have slope 2. Solve f′(x)=2f'(x) = 2: 2x−4=22x - 4 = 2, so x=3x = 3. The point is (3,f(3))=(3,−2)(3, f(3)) = (3, -2), and the tangent line is

y=−2+2(x−3).y = -2 + 2(x - 3).

(c) The tangent line at x=ax = a is y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a), with both f(a)f(a) and f′(a)f'(a) written in terms of aa:

y=(a2−4a+1)+(2a−4)(x−a).y = \left(a^2 - 4a + 1\right) + (2a - 4)(x - a).

It passes through the origin when y=0y = 0 at x=0x = 0:

0=a2−4a+1+(2a−4)(−a)=a2−4a+1−2a2+4a=1−a2.0 = a^2 - 4a + 1 + (2a - 4)(-a) = a^2 - 4a + 1 - 2a^2 + 4a = 1 - a^2.

So a=1a = 1 or a=−1a = -1. Check: at a=1a = 1, f(1)=−2f(1) = -2 and f′(1)=−2f'(1) = -2, giving y=−2−2(x−1)=−2xy = -2 - 2(x - 1) = -2x; at a=−1a = -1, f(−1)=6f(-1) = 6 and f′(−1)=−6f'(-1) = -6, giving y=6−6(x+1)=−6xy = 6 - 6(x + 1) = -6x. Both lines pass through (0,0)(0, 0).

The move in (c) is to keep the point of tangency as an unknown aa and impose the condition on the line. Setting f′(x)=0f'(x) = 0 or plugging (0,0)(0, 0) into ff would answer a different question, since the origin is not on the parabola (f(0)=1f(0) = 1).

Where students lose points

On the exam

Questions mix notations on purpose: a stem may define y=f(x)y = f(x) and then ask about dydx\frac{dy}{dx} at a point, or give f′f' as a graph and ask about ff. When a question asks for a tangent line, point-slope form, y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a), with unsimplified numbers is a complete answer. When a question says "use the definition of the derivative," the limit is the work being asked for, so an answer reached with derivative rules (topics 2.5 and later) does not show it.

Check yourself

  1. Question 1

    The line tangent to the graph of ff at x=−1x = -1 is y=4x+7y = 4x + 7. Which of the following is true?

    1. A

      f(−1)=4f(-1) = 4 and f′(−1)=3f'(-1) = 3

    2. B

      f(−1)=3f(-1) = 3 and f′(−1)=4f'(-1) = 4

    3. C

      f(−1)=7f(-1) = 7 and f′(−1)=4f'(-1) = 4

    4. D

      f(−1)=3f(-1) = 3 and f′(−1)=7f'(-1) = 7

    Show answer

    B

    The tangent line passes through (−1,f(−1))(-1, f(-1)), and at x=−1x = -1 the line has y=−4+7=3y = -4 + 7 = 3, so f(−1)=3f(-1) = 3. Its slope, 4, is f′(−1)f'(-1). Choice C reads the yy-intercept as the function value, but the intercept is where the line meets x=0x = 0, not x=−1x = -1.

  2. Question 2

    A differentiable function ff is increasing on (0,5)(0, 5), has a horizontal tangent at x=5x = 5, and is decreasing on (5,9)(5, 9). What are the signs of f′(2)f'(2), f′(5)f'(5) and f′(7)f'(7)?

    Show answer

    f′(2)>0f'(2) > 0, f′(5)=0f'(5) = 0, f′(7)<0f'(7) < 0.

    f′(x)f'(x) is the slope of the graph of ff at xx. The graph rises at x=2x = 2, is flat at x=5x = 5, and falls at x=7x = 7.

  3. Question 3

    The limit lim⁡h→0(x+h)2+(x+h)−x2−xh\lim\limits_{h \to 0}\dfrac{(x + h)^2 + (x + h) - x^2 - x}{h} is the derivative of which function, and what does it equal?

    Show answer

    It is the derivative of f(x)=x2+xf(x) = x^2 + x, and it equals 2x+12x + 1.

    The numerator is f(x+h)−f(x)f(x + h) - f(x) for f(x)=x2+xf(x) = x^2 + x. It simplifies to 2xh+h2+h2xh + h^2 + h, so the quotient is 2x+h+12x + h + 1, which tends to 2x+12x + 1.

  4. Question 4

    The amount of water in a tank is W(t)W(t) liters, tt minutes after a valve opens, and W′(10)=−3W'(10) = -3. Which statement is correct?

    1. A

      At time t=10t = 10 minutes, the amount of water in the tank is decreasing at a rate of 3 liters per minute.

    2. B

      During the first 10 minutes, the amount of water decreased by 3 liters.

    3. C

      At time t=10t = 10 minutes, the tank holds 3 liters less than it did at the start.

    4. D

      The average rate of change of WW over 0≤t≤100 \leq t \leq 10 is −3-3 liters per minute.

    Show answer

    A

    W′(10)W'(10) is an instantaneous rate at the single time t=10t = 10, measured in liters per minute, and its negative sign means decreasing. Choices B, C and D all describe what happened over the interval from 0 to 10, which a derivative at one instant does not determine.

Go deeper