Differentiation from first principles

Differentiation from first principles

Spec 7.1 · Edexcel A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The gradient of a curve at a point is the gradient of the tangent; f′(x)=dydxf'(x)=\dfrac{\mathrm{d}y}{\mathrm{d}x} is the gradient function.
  • f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x)=\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}.
  • Expand and cancel hh before letting h→0h\to0; h=0h=0 at once gives 00\dfrac00.
  • ddxx2=2x\dfrac{\mathrm{d}}{\mathrm{d}x}x^2=2x and ddxx3=3x2\dfrac{\mathrm{d}}{\mathrm{d}x}x^3=3x^2 from first principles.
  • f′′(x)f''(x) is the rate of change of the gradient; turning points make f′(x)=0f'(x)=0.

Derivative as a tangent gradient

The gradient of the tangent is the limit of the gradient of a chord as the second point approaches the first.

The gradient of a curve at a point is the gradient of the tangent there. The derivative f′(x)f'(x) gives the gradient at a general point, and it is also a rate of change: if ss is displacement, dsdt\dfrac{\mathrm{d}s}{\mathrm{d}t} is velocity.

dydx\dfrac{\mathrm{d}y}{\mathrm{d}x} is a single symbol, not a fraction.

−1−0.50.511.522.53−2−1123456xyP(1, 1)Q(2, 4)y = x²chord PQtangent at P
Chord PQ (gradient 3) becomes the tangent at P (gradient 2) as Q nears P

What does dydx\frac{\mathrm{d}y}{\mathrm{d}x} represent?

First principles

Find the gradient of a chord PQPQ, simplify, cancel hh, then let h→0h\to0.

Take P(x,f(x))P(x,f(x)) and Q(x+h,f(x+h))Q(x+h,f(x+h)). The gradient of the chord is f(x+h)−f(x)h\dfrac{f(x+h)-f(x)}{h}. Finding the limit as h→0h\to0 is differentiation from first principles.

Expand and cancel hh first: after expanding, every term in the numerator should have a factor hh.

−1−0.50.511.522.53−1123456xyP(1, 1)y = x²chord from x = 1 to x = 1 + h
The chord from P(1, 1) on y = x² has gradient 2 + h. Drag h towards 0 and the chord becomes the tangent (gradient 2).
  • f′(x)f'(x)lim⁡h→0f(x+h)−f(x)h\displaystyle\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}

Worked example

Differentiate f(x)=x2f(x)=x^{2} from first principles.

In 2xh+h2h\frac{2xh+h^{2}}{h}, what should you do before letting h→0h\to0?

x² and x³

f(x)=x2f(x)=x^2 gives 2x2x and f(x)=x3f(x)=x^3 gives 3x23x^2, both matching nxn−1nx^{n-1}.

For x3x^3 you need (x+h)3=x3+3x2h+3xh2+h3(x+h)^3=x^3+3x^2h+3xh^2+h^3: four terms, not two. Use the binomial expansion or Pascal’s triangle.

A constant multiple kf(x)kf(x) has derivative kf′(x)kf'(x), and sums and differences are differentiated term by term.

−2−1.5−1−0.50.511.52−4−22468xyf′(1) = 3f(x) = x³f′(x) = 3x²
f(x) = x³ (solid) and its gradient function f′(x) = 3x² (dashed). At x = 1 the gradient of x³ is 3.

f(x) = x²

  • (x + h)² = x² + 2xh + h²
  • f′(x) = 2x

f(x) = x³

  • (x + h)³ = x³ + 3x²h + 3xh² + h³
  • f′(x) = 3x²

Worked example

Differentiate f(x)=x3f(x)=x^{3} from first principles.

Which is the correct expansion of (x+h)3(x+h)^{3}?

The second derivative

f′′(x)f''(x) is the rate of change of the gradient.

The second derivative f′′(x)f''(x) or d2ydx2\dfrac{\mathrm{d}^2y}{\mathrm{d}x^2} is found by differentiating f′(x)f'(x) again. If f′′(x)>0f''(x)>0 the gradient is increasing; if f′′(x)<0f''(x)<0 it is decreasing.

In motion, velocity is dsdt\dfrac{\mathrm{d}s}{\mathrm{d}t} and acceleration is d2sdt2\dfrac{\mathrm{d}^2s}{\mathrm{d}t^2}. Give units: m s−2^{-2}.

−2−1.5−1−0.50.511.52−8−6−4−22468xy(0, 0)y = x³y = 3x² (f′)
y = x³ and its gradient function y = 3x²
  • f(x)=x3f(x)=x^3f′(x)=3x2f'(x)=3x^2 and f′′(x)=6xf''(x)=6x

If f(x)=x4f(x)=x^{4}, what is f′′(x)f''(x)?

Sketching the gradient function

Read the gradient of the curve: zero at turning points, positive where it rises, negative where it falls.

The steeper the curve, the larger the magnitude of f′(x)f'(x). A cubic with a local maximum then a local minimum has a quadratic gradient function that is positive, then negative, then positive.

Mark the xx-values of the turning points first: they become the roots of f′(x)f'(x).

−2.5−2−1.5−1−0.50.511.522.5−6−4−22468xy(−1, 2)(1, −2)(−1, 0)(1, 0)y = x³ − 3xy = 3x² − 3
y = x³ − 3x and its gradient function, zero at the turning points

The curve y=f(x)y=f(x) has a maximum at x=2x=2. What is true of y=f′(x)y=f'(x) at x=2x=2?

Try an exam question

Prove, from first principles, that the derivative of x3x^3 is 3x23x^2.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the gradient of the chord PQPQ.

1 mark, marked against the mark scheme

Revision notes