Calculus
What Is a Derivative? A Clear Introduction
By MathSolver Pro Editorial Team · Published
The derivative of a function measures how fast its output changes as its input changes, at a single instant. Graphically it is the slope of the tangent line; algebraically it is the limit of average rates of change over smaller and smaller intervals.
From average rate to instantaneous rate
If a car travels 120 km in 2 hours, its average speed is 60 km per hour. That number says nothing about the speed shown on the speedometer at a particular moment, which may have been 0 at a traffic light or 100 on the motorway. The derivative is the mathematical version of the speedometer reading: the rate of change at one instant rather than over an interval.
For any function , the average rate of change between and is the slope of the line through those two points on the graph, called a secant line:
To get the instantaneous rate, shrink the interval. As approaches 0, the secant line pivots towards the tangent line, the line that just touches the curve at the point. The limit of the secant slopes is the derivative.
The formal definition
The derivative of at is
provided the limit exists. When it does, is called differentiable at . You cannot simply set in the fraction, because that gives . Instead you simplify algebraically until the in the denominator cancels, then take the limit. If limits are new to you, our guide to limits covers the idea first.
Example 1: derivative of
- Difference quotient: .
- Simplify: , valid for .
- Take the limit: as , . So .
- At the slope is 6, and the tangent line through is .
Example 2: derivative of
- .
- As : , defined for every .
- The slope is always negative, which matches the graph: decreases on each side of 0.
Example 3: derivative of
- Multiply the difference quotient by the conjugate: .
- As : for .
Notation
Several notations are in common use, and they all mean the same thing. Lagrange's prime notation writes . Leibniz notation writes or , which reminds you that a derivative is a ratio of small changes and makes the chain rule look natural. Physicists often write a dot, , for a derivative with respect to time.
Applying the derivative twice gives the second derivative, written or . If is position, then is velocity and is acceleration.
What the derivative tells you about a graph
- Where , the function is increasing.
- Where , it is decreasing.
- Where , the tangent is horizontal; local maxima and minima occur at such points (or where does not exist).
- Where , the graph is concave up, bending like a cup; where , it is concave down.
Example 4: turning points of
- Using the power rule, .
- at and .
- The sign of goes across those points, so is a local maximum with and is a local minimum with .
- Second derivative check: is negative at (concave down, a maximum) and positive at 1 (a minimum).
The rules that make this quick, such as the power rule used here, are explained in derivative rules explained.
A physical example: a falling stone
A stone dropped from rest falls a distance metres after seconds, ignoring air resistance. Between and it falls from 4.9 m to 44.1 m, so its average velocity is m/s.
Its instantaneous velocity is the derivative, m/s. At that is 19.6 m/s, exactly the average over the interval from 1 to 3 seconds; for a quadratic, the average rate over an interval always equals the instantaneous rate at its midpoint. The second derivative, m/s², is the constant acceleration due to gravity.
Units are a good check on any derivative. The derivative of a quantity measured in metres with respect to time in seconds is measured in metres per second. In economics, the derivative of total cost in dollars with respect to quantity produced is the marginal cost, in dollars per unit.
When a derivative does not exist
A function is not differentiable at a point if the limit of the difference quotient fails to exist there. On a graph this shows up in four ways:
- A corner, such as at 0, where the slope is from the left and from the right.
- A cusp, such as at 0, where the slopes become infinitely steep in opposite directions.
- A vertical tangent, such as at 0, where the slope is infinite.
- A discontinuity, such as a jump or a hole.
Differentiability implies continuity: if exists, is continuous at . The converse is false, as shows, since it is continuous everywhere but has a corner at 0.
Estimating a derivative numerically
When a formula is unavailable, for example with measured data, a derivative can be estimated with a small step. The symmetric difference quotient is usually more accurate than the one sided version:
For at with , this gives , very close to the exact value . Graphing calculators and spreadsheets use this kind of estimate. The derivative calculator instead differentiates symbolically and shows each rule it applies, and the limit calculator evaluates the limit definition directly.
Where derivatives are used
Any question of the form how fast, or which value is best, is a derivative question. Engineers find the dimensions of a container that use the least material by setting the derivative of the surface area to zero. Economists find the production level that maximises profit, which is where marginal revenue equals marginal cost. Doctors model how the concentration of a drug in the blood changes over time, and the derivative tells them when it peaks.
Machine learning relies on derivatives at enormous scale. Training a model means adjusting millions of parameters to reduce an error measure, and the direction to move each parameter is given by a derivative, a method called gradient descent. Physics is written almost entirely in derivatives: Newton's second law says force equals mass times the second derivative of position.
A short history
Isaac Newton and Gottfried Wilhelm Leibniz developed calculus independently in the second half of the seventeenth century. Newton thought in terms of quantities flowing in time, while Leibniz worked with infinitely small differences, and his notation is the one most textbooks use today. Their methods worked brilliantly but rested on vague ideas about infinitely small numbers. The precise limit definition used in this article was developed in the nineteenth century, mainly by Augustin-Louis Cauchy and Karl Weierstrass, which finally put the subject on a rigorous footing.
Frequently asked questions
Is the derivative the same as the slope?
The derivative at a point is the slope of the tangent line at that point. For a straight line the derivative is constant and equals the line's slope; for a curve it changes from point to point.
Why can't I just substitute h = 0 in the definition?
Substituting directly gives , which has no value. The limit asks what the quotient approaches as gets close to 0, which is found by simplifying first so the in the denominator cancels.
Can a continuous function fail to have a derivative?
Yes. The absolute value function is continuous at 0 but has a corner there, so its left and right slopes disagree and the derivative does not exist. There are even continuous functions with no derivative anywhere.
What units does a derivative have?
The units of the output divided by the units of the input. If is volume in litres and is time in minutes, then is in litres per minute.