What is a derivative? Explained step by step
· 10 min read
In short
A derivative tells you how fast a function is changing at a point. On the graph, it is the slope of the tangent at that point. We find it as the limit of the slopes of secants as the second point moves into the first.
Words to know
- Secant
- A straight line through two points of the graph.
- Tangent
- A straight line that runs exactly like the graph at one point.
- Slope (gradient)
- How much y goes up when x goes up by 1. In y = ax + b it is the number a.
- Limit
- The number something gets closer and closer to - here, as h gets closer to zero.
What do you think?
A car sets off, and after seconds it has covered metres. What does the speedometer show at exactly s?
The average speed between time and time is the distance covered divided by the time:
The shorter the stretch of time, the closer is to zero and the closer the average speed is to m/s. That is what the speedometer shows - and that is exactly how a derivative works.
The idea: a rate of change
A function says how one quantity depends on another: distance on time, temperature on the hour, cost on the number of items. The average rate of change over a stretch is easy: the change in divided by the change in .
The rate at a single point is harder. In a single instant the car covers no distance, so “distance over time” gives . The derivative gets round this: we work out the average rate over shorter and shorter stretches and watch which number it closes in on.
The same idea turns up everywhere:
- speed is the derivative of distance with respect to time, and acceleration is the derivative of speed,
- how fast something warms up is the derivative of its temperature,
- in economics, marginal cost says how much more it costs to make one more item.
From a secant to the tangent
On a graph, the average rate of change is the slope of a secant - a line through two points of the graph. Go through the animation step by step with the buttons or the arrow keys.
P = (1, 1)
This is the graph of f(x) = x². We want to know about the point P = (1, 1): how fast does the function grow exactly here?
Notice that we never put - that would give . We only look at what the secant’s slope gets close to. That is what a limit is.
Try it yourself: the derivative at every point
A derivative is not just one number. At every point of the graph the tangent has a different slope. Move the point and watch the tangent. Every position leaves a dot on the lower graph, at the height of the tangent’s slope. Before you show the whole graph of , try to guess what it looks like.
- f(x₀)
- 1
- slope of the tangent, f′(x₀)
- 2
- near x₀ the function
- rises
Every slope you try is a point of the graph of f′
What to notice:
- for the dots line up into the straight line - the graph of the derivative,
- where the function rises the derivative is positive, and where it falls the derivative is negative,
- at a peak or a dip the tangent is flat, so the derivative is zero; for that happens at and ,
- the graph of the derivative of is the graph of .
The definition
The derivative of a function at a point is the limit
provided the limit exists and is finite. The fraction inside the limit is the difference quotient - the slope of the secant from the animation. Working out the derivative at every point gives a new function, : it gives the slope of the tangent for every .
The tangent to the graph at the point has slope , so its equation is
Example 1: the derivative of x² from the definition
We work out the difference quotient at any point and only at the very end let go to zero:
So . At that gives - just what the animation showed.
Example 2: the tangent to x³ at 2
The tangent to at the point has slope , and its equation is , that is .
Your turn
Use the definition to find the derivative of at .
Hintshow
Work out and separately, subtract and divide by . Cancel the before you think about the limit.
Solutiontry it on your own first
, and . So
So . A check with the rule you will learn in the course: , so .
Common mistakes
- Putting straight away. That gives , which is not a number. Simplify the quotient first (cancel the ), and only then look at what it tends to.
- Mixing up and . is a number - the slope at one point. is a function - the slope at every point.
- “A tangent touches the graph at only one point.” Not always. The tangent to at is , and it crosses the graph again at . A tangent is about the direction of the graph at one place, not about how many points they share.
- “Every function has a derivative everywhere.” The graph of has a corner at zero: secants on the right have slope and on the left . There is no limit, so there is no derivative at zero.
In exams
In Poland, derivatives are part of the extended-level maths matura: students must work them out (including with the sum, product and quotient rules), use them to find where a function increases or decreases, and solve optimisation problems - the largest area, the lowest cost. In 2026, students scored 47% of the points on average on the task that combined a derivative with optimisation (CKE report, in Polish). At university, derivatives are one of the main topics of first-year calculus, together with the rules of differentiation, L’Hôpital’s rule and curve sketching.
Check yourself
Test yourself
What is the slope of the tangent to the graph of at ?
You know that . What follows?
The difference quotient of at , that is , simplifies to:
Where is the tangent to the graph of flat?
What is the equation of the tangent to the graph of at ?
Flashcards for review
Flip a card and say whether you knew the answer. The ones you did not know come back at the end of the deck. Why it pays to come back to them in a few days is explained in the guide Spaced repetition.
Flashcards
Question
Answer
What does the derivative of a function at a point tell you?
How fast the function is changing at that point. On the graph, it is the slope of the tangent.What is the definition of the derivative ?
, provided the limit exists and is finite.What is the difference quotient?
The fraction - the slope of the secant through the points of the graph at and .What is the equation of the tangent to the graph at ?
What is the derivative of ?
What follows from ?
Near the function falls - the tangent slopes downwards.How is different from ?
is a number - the slope at one point. is a function - the slope at every point.Does have a derivative at zero?
No. Secants on the right have slope and on the left , so there is no limit.Velocity and acceleration are the derivatives of what?
Velocity is the derivative of position with respect to time; acceleration is the derivative of velocity.
Sources
We checked the facts on this page against these sources. All of them may be reused freely: they carry an open licence or are not covered by copyright.
- Wikipedia - Derivative · CC BY-SA 4.0
- Wikipedia - Tangent (the equation of the tangent line) · CC BY-SA 4.0
- Wikipedia - Differentiable function (|x| at zero) · CC BY-SA 4.0
- Wikipedia - Acceleration · CC BY-SA 4.0
- Wikipedia - Marginal cost · CC BY-SA 4.0
- Active Calculus (Matthew Boelkins, Grand Valley State University) - 1.1 How do we measure velocity? (instantaneous velocity as the limit of average velocities, the speedometer) · CC BY-SA 4.0
- Active Calculus (Matthew Boelkins, Grand Valley State University) - 1.3 The derivative of a function at a point (difference quotient, secant and tangent, the definition) · CC BY-SA 4.0
- Active Calculus (Matthew Boelkins, Grand Valley State University) - 1.4 The derivative function (f′(a) as a number, f′(x) as a function) · CC BY-SA 4.0
- Active Calculus (Matthew Boelkins, Grand Valley State University) - 1.5 Interpreting, estimating, and using the derivative (the rate of change of a temperature, the cost of making one more unit) · CC BY-SA 4.0
- Active Calculus (Matthew Boelkins, Grand Valley State University) - 1.6 The second derivative (acceleration as the rate of change of velocity) · CC BY-SA 4.0
- Active Calculus (Matthew Boelkins, Grand Valley State University) - 1.7 Limits, Continuity, and Differentiability (|x| has no derivative at 0) · CC BY-SA 4.0
- Active Calculus (Matthew Boelkins, Grand Valley State University) - 1.8 The Tangent Line Approximation (the equation of the tangent line) · CC BY-SA 4.0
- Active Calculus (Matthew Boelkins, Grand Valley State University) - 2.2 The sine and cosine functions (the derivative of sin x is cos x) · CC BY-SA 4.0
- Active Calculus (Matthew Boelkins, Grand Valley State University) - 2.8 Using Derivatives to Evaluate Limits (L’Hôpital’s rule) · CC BY-SA 4.0
- Active Calculus (Matthew Boelkins, Grand Valley State University) - 3.1 Using derivatives to identify extreme values (f′(c) = 0 at a peak or a dip, increasing and decreasing functions) · CC BY-SA 4.0
- Silvanus P. Thompson - Calculus Made Easy, 2nd edition (1914), chapters VIII, X and XI, Project Gutenberg (velocity and acceleration as derivatives, dy/dx as the slope of the curve, dy/dx = 0 at a maximum or minimum) · public domain
- CKE - Report on the 2026 matura in mathematics, task 12.2 (in Polish) · official document