edubun
English

The derivative as a function

The slope of y = x² is −6 at x = −3, 0 at the bottom, and 6 at x = 3. One formula, f′(x) = 2x, gives all of them.

A slope for every x

In unit 1 you found f′(1) = 2 and f′(3) = 6 for f(x) = x², each by its own limit. It is more efficient to keep x as a letter. The derivative function is f′(x) = limh→0 (f(x + h) − f(x))/h, defined at every x where the limit exists. For x², ((x + h)² − x²)/h = (2xh + h²)/h = 2x + h, which approaches 2x. Now any slope is one substitution away: f′(−3) = −6, f′(0) = 0, f′(10) = 20. The derivative turns a function into a new function that reports the slope of the old one.

You can sketch f′ from the graph of f without any formula. Where f rises, its tangent slopes are positive, so f′ is above the x-axis. Where f falls, f′ is below. Where f has a smooth peak or valley, the tangent is horizontal and f′ crosses zero. For f(x) = x³ − 3x, the graph climbs until x = −1, falls until x = 1, then climbs again. So f′ is positive, then negative, then positive, with zeros at −1 and 1. The formula agrees: f′(x) = 3x² − 3, an upward parabola with roots ±1.

f (solid) and f′ (dashed). f′ is negative exactly where f falls, between −1 and 1, and zero at the turning points.

Where the derivative does not exist

A function can be continuous and still fail to have a derivative. The standard example is f(x) = |x| at 0. From the right the difference quotient is |h|/h = 1; from the left it is −1. The one-sided limits disagree, so f′(0) does not exist. The graph shows why: it has a sharp corner, and no single line is tangent there. OpenStax sums up the ways differentiability can fail at a point: a corner, a vertical tangent (as for the cube root of x at 0, where the slope grows without bound), more complicated behaviour such as that of x sin(1/x) at 0, and a discontinuity.

The last case connects to the limits course. If f is differentiable at a, then f is continuous at a. The reverse is false, and |x| is the proof: continuous at 0 but not differentiable. So differentiability is the stronger condition. A smooth graph with no corners, no vertical tangents and no breaks is differentiable everywhere on its domain; polynomials, sine, cosine and the exponential function all behave this way.

Derivatives of derivatives

Since f′ is a function, it has its own derivative, the second derivative f″. For x³ − 3x, f′(x) = 3x² − 3 and f″(x) = 6x. The second derivative measures how the slope itself is changing. If position is f, then f′ is velocity and f″ is acceleration, which unit 5 uses. You can keep going to f‴ and beyond, though the first two are the ones that appear most often.

Notation for the derivative function varies: f′(x), dy/dx, df/dx and (d/dx) f(x) all mean the same thing. The second derivative is written f″(x) or d²y/dx².
Loading

Drag to turn. Scroll or pinch to zoom.

Drag the point along f(x) = x³ − 3x. The purple dot on the dashed curve f′ sits at the height of the current slope.
  1. f(x) = x², so f′(x) = 2x. What is f′(−3)?
  2. f(x) = x³ − 3x, f′(x) = 3x² − 3. What is f′(0)?
  3. Same f. What is f′(2)?
  4. On which interval is x³ − 3x decreasing?
    • between −1 and 1
    • x > 1
    • x < −1
    • everywhere
  5. f(x) = |x|. What is f′(2)?
  6. f(x) = |x|. What is f′(0)?
    • does not exist
    • 0
    • 1
    • −1
  7. If f is continuous at a, must it be differentiable at a?
    • No
    • Yes
  8. f(x) = x³ − 3x. f″(x) = 6x. What is f″(1)?
  9. What does the graph of the derivative of y = 2x + 7 look like?
    • the horizontal line y = 2
    • the line y = 2x
    • the point (0, 7)
    • a parabola
  10. At a smooth peak of f, the value of f′ is:
    • 0
    • positive
    • negative
    • undefined
Key points
  • f′(x) = limh→0 (f(x + h) − f(x))/h is a new function; d/dx x² = 2x.
  • f rising: f′ > 0. f falling: f′ < 0. Smooth peak or valley: f′ = 0.
  • Corners, vertical tangents and breaks have no derivative.
  • Differentiable implies continuous, not the other way round.
  • f″ is the derivative of f′.
Sources for this course (10)
  • OpenStax, Calculus Volume 1 : 2.1 A Preview of Calculus (tangent as the limit of secants; rock s(t) = −16t² + 64; stone h(t) = 15t − 4.9t² in the exercises: openstax.org/books/calculus-volume-1/pages/2-1-a-preview-of-calculus)
  • chapter 3 Derivatives: 3.1 Defining the Derivative (difference quotient, f′(a) = lim (f(a + h) − f(a))/h, tangent line: .../pages/3-1-defining-the-derivative)
  • 3.2 The Derivative as a Function (graphing f′, differentiability implies continuity, |x| has a corner at 0, higher derivatives: .../pages/3-2-the-derivative-as-a-function)
  • 3.3 Differentiation Rules (constant, power, sum, difference, constant multiple, product and quotient rules: .../pages/3-3-differentiation-rules)
  • 3.4 Derivatives as Rates of Change (position, velocity, speed, acceleration: .../pages/3-4-derivatives-as-rates-of-change)
  • 3.5 Derivatives of Trigonometric Functions (d/dx sin x = cos x using lim (sin h)/h = 1 and lim (cos h − 1)/h = 0: .../pages/3-5-derivatives-of-trigonometric-functions)
  • 3.6 The Chain Rule (.../pages/3-6-the-chain-rule)
  • chapter 4: 4.3 Maxima and Minima (critical points, Fermat's theorem, extreme value theorem, closed interval method: .../pages/4-3-maxima-and-minima)
  • 4.5 Derivatives and the Shape of a Graph (first derivative test: .../pages/4-5-derivatives-and-the-shape-of-a-graph)
  • 5.3 for Newton and Leibniz working in the late 1600s and early 1700s (.../pages/5-3-the-fundamental-theorem-of-calculus).

Checked: 2026-10-17