Differentiation finds how fast something is changing. On a graph, the derivative at a point is the gradient of the tangent to the curve at that point. It is the main idea of A-level calculus and it is also used for speed, acceleration, optimisation and growth.
The big idea The derivative of y = f ( x ) y = f(x) y = f ( x ) is written d y d x \dfrac{dy}{dx} d x d y or f ′ ( x ) f'(x) f ′ ( x ) . It tells you the gradient of the curve at any x x x . Where d y d x = 0 \dfrac{dy}{dx} = 0 d x d y = 0 the curve is flat: a maximum, a minimum or a point of inflection.
P Q Q closer tangent at P The gradient of a chord P Q PQ P Q is "rise over run". As Q Q Q moves towards P P P the chord settles on the tangent at P P P . The limit of those gradients is the derivative. This is differentiation from first principles .
The power rule
For any power of x x x , multiply by the power, then reduce the power by 1 . See also the derivative of a power .
d d x ( x n ) = n x n − 1 \dfrac{d}{dx}\left(x^n\right) = n x^{n-1} d x d ( x n ) = n x n − 1
Constants differentiate to zero, and a multiple or a sum is differentiated term by term: d d x ( 5 x 3 ) = 15 x 2 \dfrac{d}{dx}(5x^3) = 15x^2 d x d ( 5 x 3 ) = 15 x 2 , d d x ( 7 x ) = 7 \dfrac{d}{dx}(7x) = 7 d x d ( 7 x ) = 7 and d d x ( 9 ) = 0 \dfrac{d}{dx}(9) = 0 d x d ( 9 ) = 0 .
Worked example 1 Differentiating a polynomial Question Differentiate
y = 3 x 4 − 2 x 2 + 5 x − 7 y = 3x^4 - 2x^2 + 5x - 7 y = 3 x 4 − 2 x 2 + 5 x − 7 .
Differentiate each term: 3 x 4 → 3 × 4 x 3 = 12 x 3 3x^4 \to 3 \times 4x^3 = 12x^3 3 x 4 → 3 × 4 x 3 = 12 x 3 . − 2 x 2 → − 2 × 2 x = − 4 x -2x^2 \to -2 \times 2x = -4x − 2 x 2 → − 2 × 2 x = − 4 x .5 x → 5 5x \to 5 5 x → 5 and the constant − 7 → 0 -7 \to 0 − 7 → 0 .Add the results. Answer d y d x = 12 x 3 − 4 x + 5 \dfrac{dy}{dx} = 12x^3 - 4x + 5 d x d y = 12 x 3 − 4 x + 5 .
Check it in the solver
Rewrite roots and fractions first Write x \sqrt{x} x as x 1 / 2 x^{1/2} x 1/2 and 1 x 2 \dfrac{1}{x^2} x 2 1 as x − 2 x^{-2} x − 2 before using the power rule. Then d d x ( x ) = 1 2 x − 1 / 2 \dfrac{d}{dx}(\sqrt{x}) = \tfrac12 x^{-1/2} d x d ( x ) = 2 1 x − 1/2 and d d x ( x − 2 ) = − 2 x − 3 \dfrac{d}{dx}(x^{-2}) = -2x^{-3} d x d ( x − 2 ) = − 2 x − 3 .
Finding the equation of a tangent
The tangent at a point is the straight line that just touches the curve there. Its gradient is the derivative at that x x x . Use y − y 1 = m ( x − x 1 ) y - y_1 = m(x - x_1) y − y 1 = m ( x − x 1 ) , which is the line through a point with gradient m m m . The normal is at right angles to it.
Worked example 2 Tangent to a curve Question Find the equation of the tangent to
y = x 2 − 4 x + 1 y = x^2 - 4x + 1 y = x 2 − 4 x + 1 at the point where
x = 3 x = 3 x = 3 .
When x = 3 x = 3 x = 3 : y = 9 − 12 + 1 = − 2 y = 9 - 12 + 1 = -2 y = 9 − 12 + 1 = − 2 . The point is ( 3 , − 2 ) (3, -2) ( 3 , − 2 ) . Differentiate: d y d x = 2 x − 4 \dfrac{dy}{dx} = 2x - 4 d x d y = 2 x − 4 . At x = 3 x = 3 x = 3 the gradient is 2 ( 3 ) − 4 = 2 2(3) - 4 = 2 2 ( 3 ) − 4 = 2 . Use y − y 1 = m ( x − x 1 ) y - y_1 = m(x - x_1) y − y 1 = m ( x − x 1 ) : y + 2 = 2 ( x − 3 ) y + 2 = 2(x - 3) y + 2 = 2 ( x − 3 ) . Simplify: y = 2 x − 8 y = 2x - 8 y = 2 x − 8 . Answer The tangent is
y = 2 x − 8 y = 2x - 8 y = 2 x − 8 .
Check it in the solver
−1 1 2 3 4 5 6 −6 −5 −4 −3 −2 −1 1 2 3 4 5 6 7 8 (3, −2) tangent: y = 2x − 8 y = x² − 4x + 1 The tangent to y = x 2 − 4 x + 1 y = x^2 - 4x + 1 y = x 2 − 4 x + 1 at ( 3 , − 2 ) (3, -2) ( 3 , − 2 ) has gradient 2 2 2 , so its equation is y = 2 x − 8 y = 2x - 8 y = 2 x − 8 .
Stationary points: maxima and minima
A stationary point is where d y d x = 0 \dfrac{dy}{dx} = 0 d x d y = 0 . To decide whether it is a maximum or a minimum, use the second derivative d 2 y d x 2 \dfrac{d^2y}{dx^2} d x 2 d 2 y : positive means a minimum , negative means a maximum . (See also concavity and points of inflection .)
Worked example 3 Maximum and minimum Question Find and classify the stationary points of
y = x 3 − 6 x 2 + 9 x y = x^3 - 6x^2 + 9x y = x 3 − 6 x 2 + 9 x .
Differentiate: d y d x = 3 x 2 − 12 x + 9 = 3 ( x − 1 ) ( x − 3 ) \dfrac{dy}{dx} = 3x^2 - 12x + 9 = 3(x - 1)(x - 3) d x d y = 3 x 2 − 12 x + 9 = 3 ( x − 1 ) ( x − 3 ) . Set it to zero: x = 1 x = 1 x = 1 or x = 3 x = 3 x = 3 . Find y y y : at x = 1 x = 1 x = 1 , y = 1 − 6 + 9 = 4 y = 1 - 6 + 9 = 4 y = 1 − 6 + 9 = 4 ; at x = 3 x = 3 x = 3 , y = 27 − 54 + 27 = 0 y = 27 - 54 + 27 = 0 y = 27 − 54 + 27 = 0 . Second derivative: d 2 y d x 2 = 6 x − 12 \dfrac{d^2y}{dx^2} = 6x - 12 d x 2 d 2 y = 6 x − 12 . At x = 1 x = 1 x = 1 it is − 6 < 0 -6 < 0 − 6 < 0 (maximum). At x = 3 x = 3 x = 3 it is + 6 > 0 +6 > 0 + 6 > 0 (minimum). Answer A maximum at
( 1 , 4 ) (1, 4) ( 1 , 4 ) and a minimum at
( 3 , 0 ) (3, 0) ( 3 , 0 ) .
Check it in the solver
1 2 3 4 −2 −1 1 2 3 4 5 6 maximum (1, 4) minimum (3, 0) y = x³ − 6x² + 9x At both stationary points the tangent is horizontal. The curve turns from rising to falling at the maximum and from falling to rising at the minimum.
Product rule
When two functions are multiplied, the product rule says: differentiate the first and keep the second, then keep the first and differentiate the second.
d d x ( u v ) = u ′ v + u v ′ \dfrac{d}{dx}\bigl(uv\bigr) = u'v + uv' d x d ( uv ) = u ′ v + u v ′
Worked example 4 Using the product rule Question Differentiate
y = x 2 e x y = x^2 e^x y = x 2 e x .
Let u = x 2 u = x^2 u = x 2 and v = e x v = e^x v = e x . Then u ′ = 2 x u' = 2x u ′ = 2 x and v ′ = e x v' = e^x v ′ = e x (see the derivative of e k x e^{kx} e k x ). Apply the rule: d y d x = 2 x ⋅ e x + x 2 ⋅ e x \dfrac{dy}{dx} = 2x \cdot e^x + x^2 \cdot e^x d x d y = 2 x ⋅ e x + x 2 ⋅ e x . Factorise: e x ( x 2 + 2 x ) e^x(x^2 + 2x) e x ( x 2 + 2 x ) . Answer d y d x = e x ( x 2 + 2 x ) \dfrac{dy}{dx} = e^x(x^2 + 2x) d x d y = e x ( x 2 + 2 x ) .
Check it in the solver
For a fraction of two functions use the quotient rule .
Chain rule
For a function of a function, such as ( 3 x + 1 ) 5 (3x + 1)^5 ( 3 x + 1 ) 5 , use the chain rule : differentiate the outer function, leave the inside alone, then multiply by the derivative of the inside .
d y d x = d y d u × d u d x \dfrac{dy}{dx} = \dfrac{dy}{du} \times \dfrac{du}{dx} d x d y = d u d y × d x d u
Worked example 5 Using the chain rule Question Differentiate
y = ( 3 x + 1 ) 5 y = (3x + 1)^5 y = ( 3 x + 1 ) 5 .
Let u = 3 x + 1 u = 3x + 1 u = 3 x + 1 , so y = u 5 y = u^5 y = u 5 . Then d y d u = 5 u 4 \dfrac{dy}{du} = 5u^4 d u d y = 5 u 4 and d u d x = 3 \dfrac{du}{dx} = 3 d x d u = 3 . Multiply: d y d x = 5 u 4 × 3 = 15 u 4 \dfrac{dy}{dx} = 5u^4 \times 3 = 15u^4 d x d y = 5 u 4 × 3 = 15 u 4 . Replace u u u : 15 ( 3 x + 1 ) 4 15(3x + 1)^4 15 ( 3 x + 1 ) 4 . Answer d y d x = 15 ( 3 x + 1 ) 4 \dfrac{dy}{dx} = 15(3x + 1)^4 d x d y = 15 ( 3 x + 1 ) 4 .
Check it in the solver
Trig functions follow the same pattern, for example the derivative of sin k x \sin kx sin k x . When y y y is mixed up with x x x you need implicit differentiation .
Which rule do I use?
The function looks like Use Example A power of x x x , possibly with a constant Power rule 5 x 3 5x^3 5 x 3 Two functions multiplied Product rule x 2 e x x^2 e^x x 2 e x One function divided by another Quotient rule sin x x \dfrac{\sin x}{x} x sin x A function inside another function Chain rule ( 3 x + 1 ) 5 (3x + 1)^5 ( 3 x + 1 ) 5
Common mistakes to avoid
Forgetting to reduce the power after multiplying: d d x ( x 4 ) = 4 x 3 \dfrac{d}{dx}(x^4) = 4x^3 d x d ( x 4 ) = 4 x 3 , not 4 x 4 4x^4 4 x 4 .Differentiating a constant as if it were a variable: the derivative of 7 7 7 is 0 0 0 , not 7 7 7 .Skipping the chain rule: d d x ( 3 x + 1 ) 5 \dfrac{d}{dx}(3x + 1)^5 d x d ( 3 x + 1 ) 5 is not 5 ( 3 x + 1 ) 4 5(3x + 1)^4 5 ( 3 x + 1 ) 4 . The extra factor of 3 3 3 is needed.Writing the product rule as u ′ v ′ u'v' u ′ v ′ . It is u ′ v + u v ′ u'v + uv' u ′ v + u v ′ .Sign errors with negative powers: x − 2 x^{-2} x − 2 differentiates to − 2 x − 3 -2x^{-3} − 2 x − 3 .Finding the gradient but forgetting the point when asked for a tangent. You need both m m m and ( x 1 , y 1 ) (x_1, y_1) ( x 1 , y 1 ) .
Once you can differentiate, integration is the reverse process: start with the integral of a power .
Practice
Try these, then check. For more, use the solver to see each rule applied, or Practice mode for random questions.
Practice questions with answers (5) Differentiate
y = 4 x 5 − 3 x 2 + 8 y = 4x^5 - 3x^2 + 8 y = 4 x 5 − 3 x 2 + 8 .
Answer: d y d x = 20 x 4 − 6 x \dfrac{dy}{dx} = 20x^4 - 6x d x d y = 20 x 4 − 6 x Find the gradient of
y = x 3 − 2 x y = x^3 - 2x y = x 3 − 2 x at
x = 2 x = 2 x = 2 .
Answer: d y d x = 3 x 2 − 2 \dfrac{dy}{dx} = 3x^2 - 2 d x d y = 3 x 2 − 2 , so the gradient is
10 10 10 Differentiate
y = ( 2 x − 5 ) 3 y = (2x - 5)^3 y = ( 2 x − 5 ) 3 .
Answer: d y d x = 6 ( 2 x − 5 ) 2 \dfrac{dy}{dx} = 6(2x - 5)^2 d x d y = 6 ( 2 x − 5 ) 2 Differentiate
y = x e 2 x y = x\,e^{2x} y = x e 2 x .
Answer: d y d x = e 2 x ( 1 + 2 x ) \dfrac{dy}{dx} = e^{2x}(1 + 2x) d x d y = e 2 x ( 1 + 2 x ) Find the stationary point of
y = x 2 − 6 x + 5 y = x^2 - 6x + 5 y = x 2 − 6 x + 5 and state its nature.
Answer: Minimum at
( 3 , − 4 ) (3, -4) ( 3 , − 4 )
Frequently asked questions
What does differentiation actually tell you? The gradient of a curve at any point, which is the rate at which y y y changes as x x x changes. For a distance-time graph it is the speed.
What is the derivative of a constant? Zero. A constant does not change, so its rate of change is zero.
What is the difference between $\dfrac{dy}{dx}$ and $f'(x)$? They mean the same thing. Both are the derivative; the notation depends on whether the function is written as y y y or as f ( x ) f(x) f ( x ) .
How do I know if a stationary point is a maximum or minimum? Use the second derivative : positive means a minimum, negative a maximum. If it is zero, check the gradient either side.
When do I need the chain rule? Whenever one function is inside another, such as ( 3 x + 1 ) 5 (3x + 1)^5 ( 3 x + 1 ) 5 , sin ( 2 x ) \sin(2x) sin ( 2 x ) or e x 2 e^{x^2} e x 2 .