Defining the derivative
For f(x) = x², the slope of the secant from x = 1 to x = 1 + h works out to exactly 2 + h. Let h shrink to nothing and 2 is all that is left.
The difference quotient
The limits course found tangent slopes by taking secants through a fixed point P = (a, f(a)) and a moving point Q, and letting Q slide toward P. It is convenient to name the gap between the two x-values h, so that Q = (a + h, f(a + h)). The slope of the secant is then the difference quotient (f(a + h) − f(a))/h. It is an ordinary fraction, defined for every h except 0, and it measures the average rate of change of f between a and a + h.
OpenStax defines the derivative of f at a as the limit of this quotient: f′(a) = limh→0 (f(a + h) − f(a))/h, provided the limit exists. It is read f prime of a. Geometrically it is the slope of the tangent line at (a, f(a)); as a rate, it is the instantaneous rate of change of f at a. If the limit exists, f is differentiable at a. The tangent line itself is then y = f(a) + f′(a)(x − a), the point-slope form with the point (a, f(a)) and slope f′(a).
Working one out
Take f(x) = x² and a = 1. Then f(1 + h) = 1 + 2h + h², so f(1 + h) − f(1) = 2h + h², and dividing by h gives 2 + h. This simplification is the whole trick: the troublesome h in the denominator cancels, and what remains can be evaluated at h = 0. So f′(1) = 2. The tangent line at (1, 1) is y = 1 + 2(x − 1), or y = 2x − 1. With h = 0.1 the secant slope is 2.1, with h = 0.01 it is 2.01, which matches the table you built by hand in the limits course.
The same steps work for other functions. For f(x) = 1/x at a = 1, the difference quotient is (1/(1 + h) − 1)/h. Combine the top over a common denominator: (1 − (1 + h))/(1 + h) = −h/(1 + h). Divide by h to get −1/(1 + h), which approaches −1. So the slope of 1/x at x = 1 is −1, and the curve is falling there. For a line f(x) = mx + b, the quotient is (m(a + h) + b − ma − b)/h = m for every h, so f′(a) = m: the derivative of a line is its slope, as it should be.
There are several ways to write a derivative. Besides f′(a), Leibniz's notation dy/dx keeps the picture of a small change in y over a small change in x, and it is the form you will see most often in science. Units follow from that picture. If s is a distance in meters and t a time in seconds, ds/dt is in meters per second. A derivative always carries units of output per unit of input, which is a good check on any answer.
Drag to turn. Scroll or pinch to zoom.
- f(x) = x², a = 1, h = 0.1. Difference quotient?
- f(x) = x². What is f′(3)?
- f(x) = 3x + 5. What is f′(a) for any a?
- f(x) = x² + x. What is f′(2)?
- The tangent to y = x² at (2, 4) is y = 4x + b. What is b?
- f(x) = 1/x. What is f′(1)?
- f(x) = x³, a = 1, h = 0.1. Difference quotient?
- f′(2) = −3 means that near x = 2 the graph:
- falls, 3 units down per unit right
- rises, 3 units up per unit right
- is flat
- has a hole
- Position s in meters, time t in seconds. Units of ds/dt?
- meters per second
- seconds per meter
- meters
- meters per second squared
- Which expression is f′(a)?
- limh→0 (f(a + h) − f(a))/h
- (f(a + h) − f(a))/h with h = 1
- f(a)/a
- limh→0 f(a + h)
- Difference quotient (f(a + h) − f(a))/h: slope of a secant, an average rate.
- f′(a) = its limit as h → 0: slope of the tangent, an instantaneous rate.
- Tangent line: y = f(a) + f′(a)(x − a).
- Units of a derivative: output units per input unit.
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