Skip to content
Marlbridge

Study Guides

OCR A Level Mathematics A: Differentiation fundamentals: gradients, second derivatives, first principles and standard derivatives (H240)

Study guide to OCR A Level Mathematics A (H240) differentiation basics: gradients, second derivatives, first principles and standard derivatives.

Subject
Mathematics
Level
A LEVELS
Topic
Differentiation fundamentals: gradients, second derivatives, first principles and standard derivatives
Updated

Aligned to OCR A Level Mathematics (H240), Version 3.1 (August 2026), for first assessment in 2018. Official specification .

Syllabus points this page covers

H240

  • 1.07 Differentiation

Found an error? Report a correction.

This guide covers the first half of differentiation in OCR A Level Mathematics A (H240), content references 1.07a to 1.07l of the specification, Version 3.1 (August 2026). Most of it is Stage 1, common to AS and A Level. Content marked A Level only is Stage 2. Tangents, normals, stationary points, optimisation, the product, quotient and chain rules, implicit and parametric differentiation and differential equations are separate topics, so they are not taught here.

Use it with the revision notes and the practice questions. The wider course is on the OCR A Level Mathematics hub, the printable checklist shows what to tick off, and the pure mathematics overview gives the bigger picture. If you are unsure where to start, take a free 10-minute diagnostic.

What this unit covers

Reference What you must be able to do Stage
1.07a, 1.07b Use the derivative as the gradient of the tangent, as the limit of chord gradients and as a rate of change; use f’(x) and dy/dx 1
1.07c Sketch the gradient function for a given curve 1
1.07d, 1.07e Find second derivatives f’’(x) and d²y/dx²; use them as the rate of change of gradient 1
1.07f Use the second derivative for convex and concave sections and points of inflection A Level only
1.07g Differentiate from first principles for small positive integer powers of x (the specification excludes powers above 4) 1
1.07h First principles for sin x and cos x A Level only
1.07i Differentiate xⁿ for rational n, with constant multiples, sums and differences 1
1.07j, 1.07k, 1.07l Differentiate e^kx, a^kx, sin kx, cos kx, tan kx and ln x A Level only

1. The derivative as a gradient (1.07a, 1.07b)

A curve y = f(x) bends, so its gradient changes from point to point. The derivative f’(x) is the gradient of the tangent at the general point (x, y). The same thing is written dy/dx, and you should treat f’(x) and dy/dx as equivalent.

Take two points on the curve: A at x = a and B at x = a + h. The chord AB has gradient

[f(a + h) − f(a)] / h

As h gets smaller, B slides towards A and the chord turns into the tangent. So the gradient of the tangent at x = a is the limit of the gradient of a chord as h → 0. The same number is the rate of change of y with respect to x at that point, which is how you read dy/dx in context: “y changes by 12 units for each unit of x, at that instant”.

Worked example. For y = x³, find the gradient of the chord from x = 2 to x = 2 + h, then the gradient at x = 2.

y(2 + h) = 8 + 12h + 6h² + h³
chord gradient = (12h + 6h² + h³) / h = 12 + 6h + h²

With h = 0.1 the chord gradient is 12.61. As h → 0 the terms 6h and h² vanish, so the gradient at x = 2 is 12.

Graph of y = 2x squared. Point P is at x = 3, y = 18. Three chords from P to points a distance h to the right (h = 1, 0.5, 0.25) get closer to the gold tangent line as h shrinks. The chord gradient is 12 + 2h: 14, 13, 12.2 and 12.02 for h = 1, 0.5, 0.1 and 0.01. As h tends to 0 the gradient tends to 12, the gradient of the curve at x = 3, which agrees with dy/dx = 4x.
How chord gradients 12 + 2h approach the tangent gradient 12 at x = 3 on y = 2x².
The curve x = t squared + 2t, y = t cubed minus 3t, drawn with equal scales. At t = 2 the point is (8, 2). Its horizontal rate dx/dt = 6 and vertical rate dy/dt = 9 form a right triangle whose slope is the gradient dy/dx = 9 over 6 = 3 over 2. The gold tangent has that gradient and the teal normal has gradient minus two thirds. Grey dots mark t = minus 1, 0 and 1.
At t = 2 the gradient is dy/dt ÷ dx/dt = 9/6, with the normal gradient −2/3.

2. Sketching the gradient function (1.07c)

You can sketch f’(x) from the picture of f(x) without any algebra. Read the curve from left to right and ask what the tangent is doing.

On the curve y = f(x) On the graph of y = f’(x)
Rising Above the x-axis
Falling Below the x-axis
Turning point Crosses or touches the x-axis
Getting steeper Rising
Straight section Horizontal line at the gradient value

The degree drops by one: the gradient function of a cubic is a quadratic, and of a quadratic is a straight line.

Worked example. A cubic with a positive x³ coefficient has a maximum at x = −1 and a minimum at x = 3. Describe y = f’(x).

f is rising for x < −1       so f' > 0 there
f is falling for −1 < x < 3  so f' < 0 there
f is rising for x > 3        so f' > 0 there

So f’ is a U-shaped parabola crossing the x-axis at −1 and 3. It is symmetrical about x = 1, which is where its lowest point lies. For f(x) = x³ − 3x² − 9x, f’(x) = 3(x + 1)(x − 3), with f’(0) = −9 and a minimum value of −12 at x = 1. Label the intercepts and the minimum on your sketch.

Two graphs aligned on the same x values. Top: the cubic f(x) = x cubed minus 3x squared minus 9x plus 4, rising to a maximum (minus 1, 9), falling to a minimum (3, minus 23), then rising. Bottom: its gradient function f dash = 3(x + 1)(x minus 3), a U-shaped parabola crossing zero at x = minus 1 and x = 3. Where f dash is positive f is rising, where negative f is falling, and f dash = 0 at the maximum and minimum.
The sign of f′ tells you where f rises or falls, and f′ = 0 at turning points.
Graph of y = square root of (2x + 5) with equal scales on both axes. At P(2, 3) the gradient is one third, so the gold tangent is 3y = x + 7. The teal normal is perpendicular, with gradient minus 3, y = 9 minus 3x, and crosses the x-axis at (3, 0). A right-angle mark at P shows the lines are perpendicular because one third times minus 3 equals minus 1.
The tangent and normal at P(2, 3) are perpendicular because their gradients multiply to −1.

3. Second derivatives (1.07d, 1.07e)

Differentiate f’(x) again to get the second derivative, written f’’(x) or d²y/dx². It is the rate of change of the gradient.

  • f’’(x) > 0: the gradient is increasing.
  • f’’(x) < 0: the gradient is decreasing.

This is why the second derivative can help to tell a maximum point (gradient going from positive to negative) from a minimum point (gradient going from negative to positive).

Do not read d²y/dx² as (dy/dx)². It means “apply d/dx twice”.

4. Convex, concave and points of inflection (1.07f, A Level only)

On an interval where f’‘(x) > 0 the function is convex (the curve bends upwards, like a bowl). Where f’‘(x) < 0 it is concave (it bends downwards). A point of inflection is where the curve changes from concave to convex or the other way round. At such a point f’‘(x) = 0 and f’’ changes sign.

Worked example. Let f(x) = x⁴ − 8x³ + 18x² + 5. Find where f is convex and concave and locate the points of inflection.

f'(x)  = 4x³ − 24x² + 36x = 4x(x − 3)²
f''(x) = 12x² − 48x + 36 = 12(x − 1)(x − 3)

f’’ is a U-shaped parabola with roots 1 and 3, so f’’ > 0 for x < 1 and x > 3 (convex) and f’’ < 0 for 1 < x < 3 (concave). The sign changes at both roots, so there are points of inflection at x = 1 and x = 3. Their y-values are f(1) = 16 and f(3) = 32. At x = 3 the gradient f’(3) is also 0, so the curve flattens as it passes through; at x = 1, f’(1) = 16.

Warning. f’‘(x) = 0 alone is not enough. For y = x⁴, f’‘(0) = 0 but f’’ = 12x² is positive on both sides, so the curve stays convex and there is no inflection.

A quartic curve f(x) = x to the 4 minus 8x cubed plus 18x squared plus 5. It is convex (bends upwards, teal) for x less than 1, concave (bends downwards, copper) between x = 1 and x = 3, and convex again for x greater than 3. The points of inflection (1, 16) and (3, 32) are ringed; dashed tangents there cross the curve, and at (3, 32) the tangent is horizontal. The second derivative 12(x minus 1)(x minus 3) is zero and changes sign at each.
Convex and concave sections of a curve and the inflection points where f″ changes sign.

5. First principles for powers of x (1.07g)

The definition you must be able to use, with its notation, is

f'(x) = lim (h → 0) [f(x + h) − f(x)] / h

For small positive integer powers (the specification excludes integer powers above 4), expand (x + h)ⁿ, cancel the xⁿ, divide by h, then let h → 0.

Worked example. Differentiate f(x) = x⁴ from first principles.

f(x + h) = x⁴ + 4x³h + 6x²h² + 4xh³ + h⁴
f(x + h) − f(x) = 4x³h + 6x²h² + 4xh³ + h⁴
divided by h: 4x³ + 6x²h + 4xh² + h³

As h → 0 the last three terms go to 0, so f’(x) = 4x³. Write the limit notation on every line until you take the limit; dropping it early loses the point of the method.

6. First principles for sin x and cos x (1.07h, A Level only)

Angles are in radians. You need two limits, which you can quote:

as h → 0:   sin h / h → 1     and     (cos h − 1) / h → 0

Worked example. Differentiate sin x from first principles.

sin(x + h) − sin x = sin x cos h + cos x sin h − sin x
divided by h: sin x · (cos h − 1)/h + cos x · (sin h / h)

As h → 0 the first term tends to sin x × 0 = 0 and the second to cos x × 1. So d/dx(sin x) = cos x.

The cos x case follows the same steps from cos(x + h) = cos x cos h − sin x sin h and gives −sin x. The practice questions include it.

7. Differentiating xⁿ (1.07i)

The source rewrites (x²+3)/√x as x^(3/2)+3x^(−1/2), then differentiates to (3/2)x^(1/2)−(3/2)x^(−3/2). At x=4, this is 3−3/16=45/16.
The source rewrites (x²+3)/√x as x^(3/2)+3x^(−1/2), then differentiates to (3/2)x^(1/2)−(3/2)x^(−3/2). At x=4, this is 3−3/16=45/16. Select the image to enlarge it.

For any rational n: d/dx (xⁿ) = nxⁿ⁻¹. Constant multiples stay in place, sums and differences are handled one term at a time, and a lone constant gives 0.

The skill is rewriting first. Roots and reciprocals must become powers: √x = x^(1/2), 1/x³ = x⁻³, 1/√x = x^(−1/2). Split fractions that have a single term in the denominator.

Worked example. Differentiate y = (x² + 3)/√x and find dy/dx at x = 4.

y = x^(3/2) + 3x^(−1/2)
dy/dx = (3/2)x^(1/2) − (3/2)x^(−3/2)
at x = 4: (3/2)(2) − (3/2)(1/8) = 3 − 3/16 = 45/16
Three graphs show y = square root of (4x squared + 9) built in two steps. Top: u = 4x squared + 9 has gradient 16 at x = 2 where u = 25. Middle: y = square root of u has gradient 0.1 at u = 25 where y = 5. Bottom: the combined curve y = square root of (4x squared + 9) has gradient 1.6 at x = 2, and 16 times 0.1 equals 1.6, so dy/dx = dy/du times du/dx.
The gradient of the composite is the product of the two gradients: 16 × 0.1 = 1.6.

8. Exponentials and logarithms (1.07j, 1.07l, A Level only)

Function Derivative
e^kx k e^kx
a^kx (a > 0) k ln a · a^kx
ln x 1/x

The result for a^kx comes from writing a^kx = e^(kx ln a). In every case k is a constant. The function e^x itself is the case k = 1, and it is its own derivative.

Top: the graph of y = e to the x with gold tangents at x = 0, 1 and 2. The slope at each point equals its height: 1, e and e squared, so the derivative of e to the x is e to the x. Bottom: the graph of y = ln x with tangents at x = 1, 2 and 4 having slopes 1, one half and one quarter, so the derivative of ln x is 1 over x.
The slope of eˣ equals its height and the slope of ln x at x is 1/x.

9. Trigonometric functions (1.07k, A Level only)

Function Derivative
sin kx k cos kx
cos kx −k sin kx
tan kx k sec² kx

These hold for x in radians only. If a question gives degrees, the factor k picks up an extra π/180, and you should convert to radians.

Worked example. Differentiate each function.

(a) f(x) = 6e^(x/3) − 4(5^(2x)) + 7 ln x
    f'(x) = 2e^(x/3) − 8 ln 5 · 5^(2x) + 7/x

(b) y = 3 sin 2x − 5 cos(x/2) + tan 4x
    dy/dx = 6 cos 2x + (5/2) sin(x/2) + 4 sec² 4x

Check the signs in (b): the derivative of cos kx is −k sin kx, and the −5 in front turns it positive.

Common errors

  • Writing the derivative of 5^(2x) as 2x · 5^(2x−1). The power rule only works when the variable is in the base.
  • Forgetting ln a in the derivative of a^kx.
  • Differentiating cos kx as +k sin kx.
  • Leaving a root or a denominator unconverted before applying the power rule.
  • Claiming an inflection because f’’(x) = 0, without checking for a sign change.
  • Dropping “lim” or the h → 0 step in a first-principles answer.
  • Using degrees when differentiating trigonometric functions.
  • Confusing the sketch of f’ with the sketch of f: the roots of f’ are the turning points of f.

Frequently asked questions

What does differentiation fundamentals cover in OCR A Level Mathematics A (H240)? Specification references 1.07a to 1.07l cover the derivative as a gradient and limit, sketching gradient functions, second derivatives, convexity, first principles and standard derivatives of powers, exponentials, logarithms and trigonometric functions.

Which powers of x can be asked from first principles in OCR H240? Reference 1.07g covers differentiation from first principles for small positive integer powers of x; the specification excludes powers above 4. First principles for sin x and cos x is A Level only.

Is a point where f’‘(x) = 0 always a point of inflection? No. You also need f’’ to change sign either side. For y = x⁴, f’‘(0) = 0 but f’’ is positive on both sides, so there is no inflection.

Why can’t you use the power rule on 5^(2x)? The power rule only works when the variable is in the base. When the variable is in the power, use the exponential rule: the derivative of a^kx is k ln a · a^kx.

Official syllabus

OCR Level 3 Advanced GCE in Mathematics A (H240) specification, Version 3.1 (August 2026), for first assessment in 2018, published by OCR: section 1.07, Differentiation, references 1.07a to 1.07l.

Related resources

Get free revision emails (optional)

Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.