impera Open Impera

A levels Mathematics · Pure: calculus and numerical methods

Differentiation from first principles

1Gradients of curves

The gradient of a straight line is the same everywhere. The gradient of a curve changes from point to point.

The gradient of a curve at a point is the gradient of the tangent at that point: the straight line that just touches the curve there.

Differentiation is the process of finding a formula for this gradient. The result is called the derivative, written $\dfrac{dy}{dx}$ or $f'(x)$.

As h shrinks, Q slides towards P and the chord turns into the tangent.

The derivative tells you the rate of change of $y$ with respect to $x$: for example, velocity is the rate of change of displacement with time.

Check yourself

What is the gradient of a curve at a point?

  • The y-value at that point

  • The average gradient of the whole curve

  • The gradient of the line from the origin

  • The gradient of the tangent at that point

Show the answer

The gradient of the tangent at that point

The tangent just touches the curve at the point.

2Chords getting closer

Take a point $P$ on the curve $y = f(x)$ and a second point $Q$ a small distance $h$ further along.

The gradient of the chord $PQ$ is

$$\frac{f(x + h) - f(x)}{h}$$

As $Q$ slides towards $P$, $h$ gets smaller and the chord gets closer and closer to the tangent.

Worked example

Chords on y = x²

  1. At $P(3, 9)$, take $Q$ at $x = 3 + h$.
  2. $h = 1$: gradient $= \dfrac{16 - 9}{1} = 7$.
  3. $h = 0.1$: gradient $= \dfrac{9.61 - 9}{0.1} = 6.1$.
  4. $h = 0.01$: gradient $= \dfrac{9.0601 - 9}{0.01} = 6.01$.
  5. The gradients approach 6, the gradient of the tangent at $P$.
Check yourself

As Q moves towards P, what does the chord PQ approach?

  • The tangent at P

  • A vertical line

  • The x-axis

  • The normal at P

Show the answer

The tangent at P

The chord gradient tends to the tangent gradient.

3The definition of the derivative

Letting $h$ tend to zero gives the definition of the derivative:

$$f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}$$

Using this formula directly is called differentiating from first principles.

You must expand and simplify before letting $h \to 0$, because you cannot divide by zero.

Worked example

y = x² from first principles

  1. $f(x + h) - f(x) = (x + h)^2 - x^2 = 2xh + h^2$.
  2. Divide by $h$: $2x + h$.
  3. As $h \to 0$: $f'(x) = 2x$.
  4. Check: at $x = 3$, $f'(3) = 6$, as the chords suggested.
Check yourself

Why do you simplify before letting h → 0?

  • Because it makes the answer bigger

  • Because h is always 1

  • Because you cannot divide by zero

  • Because the limit is always zero

Show the answer

Because you cannot divide by zero

Cancel the h first, then let it shrink.

4More first principles proofs

Worked example

y = x³

  1. $(x + h)^3 - x^3 = 3x^2h + 3xh^2 + h^3$.
  2. Divide by $h$: $3x^2 + 3xh + h^2$.
  3. As $h \to 0$: $\dfrac{dy}{dx} = 3x^2$.
Worked example

y = 5x² − 4x

  1. $f(x + h) - f(x) = 5(x + h)^2 - 4(x + h) - 5x^2 + 4x = 10xh + 5h^2 - 4h$.
  2. Divide by $h$: $10x + 5h - 4$.
  3. As $h \to 0$: $f'(x) = 10x - 4$.

Write the limit notation at every line until the final step: examiners look for $\lim_{h \to 0}$ and for the statement that $h \to 0$.

Check yourself

Differentiating x³ from first principles, what is the expression after dividing by h?

  • 3x² + 3xh + h²

  • x³ + h³

  • 3x²

  • 3x + h

Show the answer

3x² + 3xh + h²

Then let h → 0 to get 3x².

5The power rule

First principles always gives the same pattern, the power rule:

$$\frac{d}{dx}(x^n) = nx^{n-1}$$

This works for any real power $n$, including negatives and fractions. Constants multiply through, and terms differentiate separately:

$$\frac{d}{dx}(ax^n + bx^m) = anx^{n-1} + bmx^{m-1}$$

The derivative of a constant is $0$, because a horizontal line has zero gradient.

Worked example

Rewrite first

  1. Differentiate $y = \dfrac{4}{x^2} + 6\sqrt{x}$.
  2. Rewrite: $y = 4x^{-2} + 6x^{1/2}$.
  3. $\dfrac{dy}{dx} = -8x^{-3} + 3x^{-1/2} = -\dfrac{8}{x^3} + \dfrac{3}{\sqrt{x}}$.
Check yourself

What is the derivative of x⁻¹?

  • −x⁻²

  • x⁻²

  • −x⁰

  • ln x

Show the answer

−x⁻²

Multiply by the power, then reduce the power by 1.

6Tangents, normals and second derivatives

The tangent at $x = a$ has gradient $f'(a)$. The normal is perpendicular to the tangent, with gradient $-\dfrac{1}{f'(a)}$.

Worked example

Tangent and normal

  1. Find the tangent and normal to $y = x^3 - 2x$ at $(2, 4)$.
  2. $\dfrac{dy}{dx} = 3x^2 - 2 = 10$ at $x = 2$.
  3. Tangent: $y - 4 = 10(x - 2)$, so $y = 10x - 16$.
  4. Normal: gradient $-\frac{1}{10}$, so $y - 4 = -\frac{1}{10}(x - 2)$, giving $x + 10y - 42 = 0$.

Differentiating twice gives the second derivative $\dfrac{d^2y}{dx^2}$ or $f''(x)$: the rate of change of the gradient.

A function is increasing where $f'(x) > 0$ and decreasing where $f'(x) < 0$.

Check yourself

The tangent at a point has gradient 4. What is the gradient of the normal?

  • −4

  • 1/4

  • −1/4

  • 4

Show the answer

−1/4

Perpendicular gradients multiply to −1.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera