Two ways to say the same thing
A derivative answers one question: how fast is something changing right now? You can picture the answer in two ways, and they are the same idea.
As a slope. Draw a curve and pick a point on it. The tangent at that point is the straight line that just touches the curve there and runs in the same direction as the curve. The derivative is the slope of that tangent. Steep curve, big derivative. Flat curve, derivative near zero.
As a rate of change. If \(s\) is the distance a car has travelled after \(t\) seconds, the derivative \(\dfrac{ds}{dt}\) is the car's speed at that moment, the number on the speedometer. It tells you how many metres of distance are being added per second at that instant.
\[f'(a) = \lim_{h \to 0}\frac{f(a + h) - f(a)}{h}\]
This number is the slope of the tangent to \(y = f(x)\) at \(x = a\). It is also the instantaneous rate of change of \(y\) with respect to \(x\) at \(x = a\).
Why the limit? A slope needs two points, but a tangent touches the curve at one. So we take a second point a tiny step \(h\) away, work out the slope of the line through both, and see what that slope settles down to as \(h\) shrinks to zero. The full working of this definition is in the next lesson, derivative from first principles.
Average rate and instantaneous rate
Suppose a ball rolls so that its distance is \(s = t^2\) metres after \(t\) seconds. Between \(t = 2\) and \(t = 3\) it goes from 4 m to 9 m, so its average speed over that second is \(\dfrac{9 - 4}{3 - 2} = 5\) m/s.
That is not its speed at \(t = 2\); the ball is speeding up the whole time. To get closer, shrink the interval:
| Interval | Average speed \(\dfrac{\Delta s}{\Delta t}\) |
|---|---|
| \(t = 2\) to \(3\) | \(5\) m/s |
| \(t = 2\) to \(2.1\) | \(4.1\) m/s |
| \(t = 2\) to \(2.01\) | \(4.01\) m/s |
| \(t = 2\) to \(2.001\) | \(4.001\) m/s |
The averages are closing in on 4. In general, from \(t = 2\) to \(t = 2 + h\) the average speed is \(\dfrac{(2 + h)^2 - 4}{h} = 4 + h\), and as \(h \to 0\) this becomes exactly 4. So the instantaneous speed at \(t = 2\) is 4 m/s. Average rate uses an interval. Instantaneous rate is the limit as the interval shrinks to nothing, and that limit is the derivative.
The units follow the same pattern: the units of the derivative are units of \(y\) per unit of \(x\). Distance in metres against time in seconds gives m/s. Cost in rupees against number of items gives rupees per item, which economists call the marginal cost.
Notation and a first formula
| Notation | Read as | Typical use |
|---|---|---|
| \(\dfrac{dy}{dx}\) | "dee y by dee x" | \(y\) is given in terms of \(x\) |
| \(f'(x)\) | "f dash x" | the function has a name, \(f\) |
| \(y_1\) or \(y'\) | "y one", "y dash" | short form in show-that questions |
| \(\dfrac{d}{dx}\big(x^3\big)\) | "d by dx of x cubed" | an instruction: differentiate this |
\(\dfrac{dy}{dx}\) is one symbol, not a fraction you can cancel. The \(d\)'s are a reminder that it came from \(\dfrac{\Delta y}{\Delta x}\), a change in \(y\) over a change in \(x\).
Notice that \(f'(x)\) is itself a function. Feed it any \(x\) and it returns the slope of the curve at that \(x\). For \(s = t^2\) the derivative is \(2t\), which gives 4 at \(t = 2\), matching the table above, and 6 at \(t = 3\).
Working out every derivative from the limit would be slow, so here are the first few rules, enough for every example on this page. The next two lessons show where they come from.
\(\dfrac{d}{dx}\big(x^n\big) = nx^{n-1}\), for any real power \(n\)
\(\dfrac{d}{dx}(c) = 0\) for a constant \(c\), and \(\dfrac{d}{dx}\big(c\,f(x)\big) = c\,f'(x)\)
\(\dfrac{d}{dx}\big(f \pm g\big) = f' \pm g'\)
So \(\dfrac{d}{dx}\big(x^3 - 4x + 7\big) = 3x^2 - 4\). The full list is on the derivative formulas page.
Reading the sign of the derivative
- \(f'(x) > 0\): the tangent slopes upward, so the curve is rising as \(x\) increases.
- \(f'(x) < 0\): the tangent slopes downward, so the curve is falling.
- \(f'(x) = 0\): the tangent is horizontal. These points are often the tops of hills and bottoms of valleys on the graph.
Size matters as well as sign. On a graph, a steeper stretch means a bigger derivative, whatever the height of the curve there. A curve can be very high up and almost flat, so a large \(y\) does not mean a large \(\dfrac{dy}{dx}\).
Solved examples
Example 1: Average speed and speed at an instant
EasyA ball travels \(s = t^2\) metres in \(t\) seconds. Find (a) its average speed from \(t = 1\) to \(t = 3\), and (b) its speed at \(t = 3\).
- (a) \(s(1) = 1\) and \(s(3) = 9\), so the average speed is \(\dfrac{9 - 1}{3 - 1} = 4\) m/s.
- (b) Speed is the derivative: \(\dfrac{ds}{dt} = 2t\). At \(t = 3\) this is 6 m/s.
- The ball is speeding up, so its speed at the end of the interval is more than its average over the interval.
Answer(a) 4 m/s; (b) 6 m/s
Example 2: Slope of a cubic
EasyFind the slope of the curve \(y = x^3\) at \(x = 2\).
- Power rule: \(\dfrac{dy}{dx} = 3x^2\).
- At \(x = 2\): \(3 \times 4 = 12\).
- Meaning: near \(x = 2\), \(y\) is changing about 12 times as fast as \(x\).
AnswerSlope \(= 12\)
Example 3: Where is the slope zero?
EasyFind the point on \(y = x^2 - 6x + 5\) where the tangent is horizontal.
- \(\dfrac{dy}{dx} = 2x - 6\).
- Horizontal tangent means slope 0: \(2x - 6 = 0\), so \(x = 3\).
- \(y = 9 - 18 + 5 = -4\). This is the lowest point of the parabola.
Answer\((3, -4)\)
Example 4: Rising and falling
MediumFor \(f(x) = x^3 - 3x\), say where the graph rises, where it falls, and where it is flat.
- \(f'(x) = 3x^2 - 3 = 3(x - 1)(x + 1)\).
- \(f'(x) = 0\) at \(x = -1\) and \(x = 1\).
- For \(x < -1\), both brackets are negative, so \(f'(x) > 0\). Between \(-1\) and \(1\) the brackets have opposite signs, so \(f'(x) < 0\). For \(x > 1\), \(f'(x) > 0\).
AnswerRises for \(x < -1\) and \(x > 1\), falls for \(-1 < x < 1\), flat at \(x = \pm 1\)
Example 5: Area of a circle
MediumFind the rate of change of the area of a circle with respect to its radius when \(r = 5\) cm.
- \(A = \pi r^2\), so \(\dfrac{dA}{dr} = 2\pi r\).
- At \(r = 5\): \(10\pi \approx 31.4\).
- Units: cm² of area per cm of radius. Notice that \(2\pi r\) is the circumference. Growing the radius a little adds a thin ring whose area is about circumference times thickness.
Answer\(10\pi \approx 31.4\) cm² per cm
Example 6: Marginal cost
MediumThe cost of making \(x\) items is \(C(x) = 500 + 20x + 0.1x^2\) rupees. Find the marginal cost when \(x = 100\) and compare it with the actual cost of the 101st item.
- \(C'(x) = 20 + 0.2x\), so \(C'(100) = 40\) rupees per item.
- Actual extra cost: \(C(101) - C(100) = 40.1\) rupees. The \(20x\) term adds 20 and the \(0.1x^2\) term adds \(0.1(101^2 - 100^2) = 20.1\).
- The derivative gives a very good estimate of the cost of one more item.
AnswerMarginal cost ₹40 per item; the 101st item actually costs ₹40.10
Example 7: A ball thrown upward
Exam levelA ball is thrown straight up and its height after \(t\) seconds is \(h = 20t - 5t^2\) metres. Find its velocity at \(t = 1\) and \(t = 3\), and its greatest height.
- Velocity \(v = \dfrac{dh}{dt} = 20 - 10t\).
- \(v(1) = 10\) m/s, positive, so the ball is going up. \(v(3) = -10\) m/s, negative, so it is coming down.
- At the top it stops for an instant: \(20 - 10t = 0\) gives \(t = 2\).
- \(h(2) = 40 - 20 = 20\) m.
Answer\(v(1) = 10\) m/s, \(v(3) = -10\) m/s, greatest height 20 m at \(t = 2\)
Example 8: Tangent parallel to a line
Exam levelFind the points on \(y = x^3\) where the tangent is parallel to the line \(y = 12x\).
- Parallel lines have equal slopes, so we need \(\dfrac{dy}{dx} = 12\).
- \(3x^2 = 12\), so \(x^2 = 4\) and \(x = \pm 2\).
- \(y = 8\) when \(x = 2\), and \(y = -8\) when \(x = -2\).
Answer\((2, 8)\) and \((-2, -8)\)
Whenever a question says "rate of change", "velocity", "marginal" or "slope of the tangent", it is asking for a derivative. I tell students to underline those words first, then write \(\dfrac{d(\text{what})}{d(\text{with respect to what})}\) before doing anything else.
Common mistakes
1. Substituting before differentiating
For the slope of \(y = x^3\) at \(x = 2\), some students write \(y = 8\) and then differentiate 8 to get 0. Wrong. Differentiate first, \(\dfrac{dy}{dx} = 3x^2\), and substitute \(x = 2\) after: the slope is 12.
2. Giving the average rate when the question asks for a rate at an instant
For \(s = t^2\), the average speed from \(t = 0\) to \(t = 3\) is \(\dfrac{9}{3} = 3\) m/s, but the speed at \(t = 3\) is \(2 \times 3 = 6\) m/s. "At \(t = 3\)" means the derivative.
3. Mixing up slope zero with value zero
For \(y = x^2 - 6x + 5\), the slope is zero at \(x = 3\), where \(y = -4\). The curve crosses the \(x\)-axis somewhere else, at \(x = 1\) and \(x = 5\). \(f'(x) = 0\) and \(f(x) = 0\) are different equations.
Practice questions
Try each one on paper before you open the answer.
Q1Find \(\dfrac{dy}{dx}\) for \(y = x^5\), and its value at \(x = 1\).
\(\dfrac{dy}{dx} = 5x^4\). At \(x = 1\) it is \(5\).
Q2A particle moves \(s = 4t^2 + 3t\) metres in \(t\) seconds. Find its velocity at \(t = 2\).
\(v = \dfrac{ds}{dt} = 8t + 3\). At \(t = 2\): \(19\) m/s.
Q3For \(f(x) = x^3\), find the average rate of change from \(x = 1\) to \(x = 3\), and \(f'(2)\).
Average rate \(= \dfrac{27 - 1}{3 - 1} = 13\). \(f'(x) = 3x^2\), so \(f'(2) = 12\). Close, but not the same.
Q4Find the points on \(y = x^3 - 12x\) where the tangent is horizontal.
\(\dfrac{dy}{dx} = 3x^2 - 12 = 0\) gives \(x = \pm 2\). The points are \((2, -16)\) and \((-2, 16)\).
Q5The volume of a cube of side \(x\) cm is \(V = x^3\). Find the rate of change of \(V\) with respect to \(x\) when \(x = 4\).
\(\dfrac{dV}{dx} = 3x^2 = 48\) cm³ per cm.
Q6Find the slope of \(y = \sqrt{x}\) at \(x = 4\).
\(y = x^{1/2}\), so \(\dfrac{dy}{dx} = \dfrac{1}{2}x^{-1/2} = \dfrac{1}{2\sqrt{x}}\). At \(x = 4\): \(\dfrac{1}{4}\).
Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.
Frequently asked questions
What is a derivative in simple words?
It is the rate at which one quantity changes compared with another at a single instant. On a graph it is the slope of the tangent at a point. Speed is the derivative of distance with respect to time.
What does dy/dx mean? Is it a fraction?
\(\dfrac{dy}{dx}\) means the derivative of \(y\) with respect to \(x\). It is the limit of the fraction \(\dfrac{\Delta y}{\Delta x}\) as \(\Delta x \to 0\), so it behaves like a fraction in some rules, but at this stage treat it as a single symbol.
What is the difference between average and instantaneous rate of change?
Average rate is the change in \(y\) divided by the change in \(x\) over an interval, \(\dfrac{f(b) - f(a)}{b - a}\). Instantaneous rate is the limit of that as the interval shrinks to a single point, which is the derivative.
What does it mean when the derivative is zero?
The tangent is horizontal, so at that instant the quantity is neither increasing nor decreasing. On a graph this often happens at a highest or lowest point, like the top of a ball's flight in Example 7.