A-level10 min readUpdated 16 October 2026

How to differentiate: power, product and chain rule explained

A friendly A-level guide to differentiation: what a derivative means on a graph, the power rule, tangents, maxima and minima, and when to use the product and chain rules.

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.

PQQ closertangent at P
The gradient of a chord PQPQ is "rise over run". As QQ moves towards PP the chord settles on the tangent at PP. The limit of those gradients is the derivative. This is differentiation from first principles.

The power rule

For any power of xx, multiply by the power, then reduce the power by 1. See also the derivative of a power.

ddx(xn)=nxn−1\dfrac{d}{dx}\left(x^n\right) = n x^{n-1}

Constants differentiate to zero, and a multiple or a sum is differentiated term by term: ddx(5x3)=15x2\dfrac{d}{dx}(5x^3) = 15x^2, ddx(7x)=7\dfrac{d}{dx}(7x) = 7 and ddx(9)=0\dfrac{d}{dx}(9) = 0.

Worked example 1

Differentiating a polynomial

QuestionDifferentiate y=3x4−2x2+5x−7y = 3x^4 - 2x^2 + 5x - 7.
  1. Differentiate each term: 3x4→3×4x3=12x33x^4 \to 3 \times 4x^3 = 12x^3.
  2. −2x2→−2×2x=−4x-2x^2 \to -2 \times 2x = -4x.
  3. 5x→55x \to 5 and the constant −7→0-7 \to 0.
  4. Add the results.
Answerdydx=12x3−4x+5\dfrac{dy}{dx} = 12x^3 - 4x + 5.
Check it in the solver

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 xx. Use y−y1=m(x−x1)y - y_1 = m(x - x_1), which is the line through a point with gradient mm. The normal is at right angles to it.

Worked example 2

Tangent to a curve

QuestionFind the equation of the tangent to y=x2−4x+1y = x^2 - 4x + 1 at the point where x=3x = 3.
  1. When x=3x = 3: y=9−12+1=−2y = 9 - 12 + 1 = -2. The point is (3,−2)(3, -2).
  2. Differentiate: dydx=2x−4\dfrac{dy}{dx} = 2x - 4. At x=3x = 3 the gradient is 2(3)−4=22(3) - 4 = 2.
  3. Use y−y1=m(x−x1)y - y_1 = m(x - x_1): y+2=2(x−3)y + 2 = 2(x - 3).
  4. Simplify: y=2x−8y = 2x - 8.
AnswerThe tangent is y=2x−8y = 2x - 8.
Check it in the solver
−1123456−6−5−4−3−2−112345678(3, −2)tangent: y = 2x − 8y = x² − 4x + 1
The tangent to y=x2−4x+1y = x^2 - 4x + 1 at (3,−2)(3, -2) has gradient 22, so its equation is y=2x−8y = 2x - 8.

Stationary points: maxima and minima

A stationary point is where dydx=0\dfrac{dy}{dx} = 0. To decide whether it is a maximum or a minimum, use the second derivative d2ydx2\dfrac{d^2y}{dx^2}: positive means a minimum, negative means a maximum. (See also concavity and points of inflection.)

Worked example 3

Maximum and minimum

QuestionFind and classify the stationary points of y=x3−6x2+9xy = x^3 - 6x^2 + 9x.
  1. Differentiate: dydx=3x2−12x+9=3(x−1)(x−3)\dfrac{dy}{dx} = 3x^2 - 12x + 9 = 3(x - 1)(x - 3).
  2. Set it to zero: x=1x = 1 or x=3x = 3.
  3. Find yy: at x=1x = 1, y=1−6+9=4y = 1 - 6 + 9 = 4; at x=3x = 3, y=27−54+27=0y = 27 - 54 + 27 = 0.
  4. Second derivative: d2ydx2=6x−12\dfrac{d^2y}{dx^2} = 6x - 12. At x=1x = 1 it is −6<0-6 < 0 (maximum). At x=3x = 3 it is +6>0+6 > 0 (minimum).
AnswerA maximum at (1,4)(1, 4) and a minimum at (3,0)(3, 0).
Check it in the solver
1234−2−1123456maximum (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.

ddx(uv)=u′v+uv′\dfrac{d}{dx}\bigl(uv\bigr) = u'v + uv'
Worked example 4

Using the product rule

QuestionDifferentiate y=x2exy = x^2 e^x.
  1. Let u=x2u = x^2 and v=exv = e^x. Then u′=2xu' = 2x and v′=exv' = e^x (see the derivative of ekxe^{kx}).
  2. Apply the rule: dydx=2x⋅ex+x2⋅ex\dfrac{dy}{dx} = 2x \cdot e^x + x^2 \cdot e^x.
  3. Factorise: ex(x2+2x)e^x(x^2 + 2x).
Answerdydx=ex(x2+2x)\dfrac{dy}{dx} = e^x(x^2 + 2x).
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 (3x+1)5(3x + 1)^5, use the chain rule: differentiate the outer function, leave the inside alone, then multiply by the derivative of the inside.

dydx=dydu×dudx\dfrac{dy}{dx} = \dfrac{dy}{du} \times \dfrac{du}{dx}
Worked example 5

Using the chain rule

QuestionDifferentiate y=(3x+1)5y = (3x + 1)^5.
  1. Let u=3x+1u = 3x + 1, so y=u5y = u^5.
  2. Then dydu=5u4\dfrac{dy}{du} = 5u^4 and dudx=3\dfrac{du}{dx} = 3.
  3. Multiply: dydx=5u4×3=15u4\dfrac{dy}{dx} = 5u^4 \times 3 = 15u^4.
  4. Replace uu: 15(3x+1)415(3x + 1)^4.
Answerdydx=15(3x+1)4\dfrac{dy}{dx} = 15(3x + 1)^4.
Check it in the solver

Trig functions follow the same pattern, for example the derivative of sin⁡kx\sin kx. When yy is mixed up with xx you need implicit differentiation.

Which rule do I use?

The function looks likeUseExample
A power of xx, possibly with a constantPower rule5x35x^3
Two functions multipliedProduct rulex2exx^2 e^x
One function divided by anotherQuotient rulesin⁡xx\dfrac{\sin x}{x}
A function inside another functionChain rule(3x+1)5(3x + 1)^5

Common mistakes to avoid

  • Forgetting to reduce the power after multiplying: ddx(x4)=4x3\dfrac{d}{dx}(x^4) = 4x^3, not 4x44x^4.
  • Differentiating a constant as if it were a variable: the derivative of 77 is 00, not 77.
  • Skipping the chain rule: ddx(3x+1)5\dfrac{d}{dx}(3x + 1)^5 is not 5(3x+1)45(3x + 1)^4. The extra factor of 33 is needed.
  • Writing the product rule as u′v′u'v'. It is u′v+uv′u'v + uv'.
  • Sign errors with negative powers: x−2x^{-2} differentiates to −2x−3-2x^{-3}.
  • Finding the gradient but forgetting the point when asked for a tangent. You need both mm and (x1,y1)(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)
  1. Differentiate y=4x5−3x2+8y = 4x^5 - 3x^2 + 8.
    Answer: dydx=20x4−6x\dfrac{dy}{dx} = 20x^4 - 6x
  2. Find the gradient of y=x3−2xy = x^3 - 2x at x=2x = 2.
    Answer: dydx=3x2−2\dfrac{dy}{dx} = 3x^2 - 2, so the gradient is 1010
  3. Differentiate y=(2x−5)3y = (2x - 5)^3.
    Answer: dydx=6(2x−5)2\dfrac{dy}{dx} = 6(2x - 5)^2
  4. Differentiate y=x e2xy = x\,e^{2x}.
    Answer: dydx=e2x(1+2x)\dfrac{dy}{dx} = e^{2x}(1 + 2x)
  5. Find the stationary point of y=x2−6x+5y = x^2 - 6x + 5 and state its nature.
    Answer: Minimum at (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 yy changes as xx 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 yy or as 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 (3x+1)5(3x + 1)^5, sin⁡(2x)\sin(2x) or ex2e^{x^2}.

Keep learning