A-level Mathematics7.2 Differentiation from first principles

All books

7.2 Differentiation from first principles — Learn

Prerequisites: expanding brackets such as (x+h)2(x + h)^2; simplifying an algebraic fraction; the limit definition of the derivative from Section 7.1.

By the end of this section you can: use the definition f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \dfrac{f(x + h) - f(x)}{h} to differentiate a whole-number power of xx; carry out the four steps of the method in order; and explain why hh is not set to zero until the division is complete.

1. The definition, one more time

Section 7.1 introduced the derivative as the limit of a chord gradient:

f′(x)=lim⁡h→0f(x+h)−f(x)h.f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}.

Differentiating from first principles means working out this limit with algebra, not with a table of numbers. Four steps do the job every time.

  1. Write down f(x+h)f(x + h).
  2. Subtract f(x)f(x).
  3. Divide by hh.
  4. Let hh tend to zero.

The order matters. Step 3 must happen before step 4, because hh appears in the denominator.

Example 1. Differentiate f(x)=x2f(x) = x^2 from first principles.

Write f(x+h)=(x+h)2=x2+2xh+h2f(x + h) = (x + h)^2 = x^2 + 2xh + h^2.

Subtract f(x)=x2f(x) = x^2:

f(x+h)−f(x)=x2+2xh+h2−x2=2xh+h2.f(x + h) - f(x) = x^2 + 2xh + h^2 - x^2 = 2xh + h^2.

Divide by hh:

f(x+h)−f(x)h=2xh+h2h=2x+h.\frac{f(x + h) - f(x)}{h} = \frac{2xh + h^2}{h} = 2x + h.

The division is safe because h≠0h \neq 0 while we take the limit. Let h→0h \to 0:

f′(x)=lim⁡h→0(2x+h)=2x.f'(x) = \lim_{h \to 0}(2x + h) = 2x.

So the derivative of x2x^2 is 2x2x. At x=2x = 2 this gives 44, which agrees with the estimate in Section 7.1.

Example 2. Differentiate f(x)=x3f(x) = x^3 from first principles.

Expand (x+h)3(x + h)^3 using the binomial expansion:

f(x+h)=x3+3x2h+3xh2+h3.f(x + h) = x^3 + 3x^2h + 3xh^2 + h^3.

Subtract f(x)=x3f(x) = x^3:

f(x+h)−f(x)=3x2h+3xh2+h3.f(x + h) - f(x) = 3x^2h + 3xh^2 + h^3.

Divide by hh:

3x2h+3xh2+h3h=3x2+3xh+h2.\frac{3x^2h + 3xh^2 + h^3}{h} = 3x^2 + 3xh + h^2.

Let h→0h \to 0. Every term still containing hh vanishes:

f′(x)=3x2.f'(x) = 3x^2.

2. A constant multiple and a sum

The method works just as well when the function has more than one term.

Example 3. Differentiate f(x)=x2+xf(x) = x^2 + x from first principles.

f(x+h)=(x+h)2+(x+h)=x2+2xh+h2+x+h.f(x + h) = (x + h)^2 + (x + h) = x^2 + 2xh + h^2 + x + h.

Subtract f(x)=x2+xf(x) = x^2 + x:

f(x+h)−f(x)=2xh+h2+h.f(x + h) - f(x) = 2xh + h^2 + h.

Divide by hh:

2xh+h2+hh=2x+h+1.\frac{2xh + h^2 + h}{h} = 2x + h + 1.

Let h→0h \to 0:

f′(x)=2x+1.f'(x) = 2x + 1.

Example 4. A constant function has a horizontal graph. Differentiate f(x)=7f(x) = 7 from first principles.

Here f(x+h)=7f(x + h) = 7 for every hh, so f(x+h)−f(x)=7−7=0f(x + h) - f(x) = 7 - 7 = 0. Dividing by hh gives 00. The limit is 00, so f′(x)=0f'(x) = 0. A horizontal line has gradient zero.

The same argument gives the derivative of any constant: it is zero.

3. Differentiating sine and cosine from first principles

The same definition gives the derivatives of sin⁡x\sin x and cos⁡x\cos x. Use the addition formula from Chapter 5:

sin⁡(x+h)=sin⁡xcos⁡h+cos⁡xsin⁡h.\sin(x + h) = \sin x\cos h + \cos x\sin h.

Then

sin⁡(x+h)−sin⁡xh=sin⁡x⋅cos⁡h−1h+cos⁡x⋅sin⁡hh.\frac{\sin(x + h) - \sin x}{h} = \sin x \cdot \frac{\cos h - 1}{h} + \cos x \cdot \frac{\sin h}{h}.

As hh tends to zero, sin⁡hh\dfrac{\sin h}{h} tends to 11 and cos⁡h−1h\dfrac{\cos h - 1}{h} tends to 00. Therefore

ddx(sin⁡x)=cos⁡x.\frac{d}{dx}(\sin x) = \cos x.

Here ddx\frac{d}{dx} means the derivative with respect to xx.

A similar argument starting from cos⁡(x+h)=cos⁡xcos⁡h−sin⁡xsin⁡h\cos(x + h) = \cos x\cos h - \sin x\sin h gives

ddx(cos⁡x)=−sin⁡x.\frac{d}{dx}(\cos x) = -\sin x.

The minus sign often goes missing. Section 7.3 uses these results in calculations.

You should now be able to

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.