Skip to content

The derivative function and the rules of differentiation

The derivative function and the rules of differentiation

The derivative function

The derivative can be worked out at every point at once: write x\displaystyle x instead of a number x0\displaystyle x_0. This gives a new function, the derivative function f′(x)\displaystyle f'(x), which gives every x\displaystyle x the slope of the tangent there.

The example below finds the derivative of f(x)=x2\displaystyle {f(x)}={x^2} by the definition:

f(x+h)−f(x)h=(x+h)2−x2h=2xh+h2h=2x+h\frac{f(x+h)-f(x)}{h}=\frac{(x+h)^2-x^2}{h}=\frac{2xh+h^2}{h}=2x+h
  • As h→0\displaystyle h\to0, 2x+h\displaystyle 2x+h tends to 2x\displaystyle 2x, so f′(x)=2x\displaystyle {f'(x)}={2x}.
  • Now every derivative at a point is a substitution: f′(1)=2\displaystyle {f'(1)}={2}, f′(3)=6\displaystyle {f'(3)}={6}, f′(−2)=−4\displaystyle {f'(-2)}={-4}.
The derivative of a power and of a constant

The same way, by the definition:

  • (x3)′=3x2\displaystyle {(x^3)'}={3x^2} (Exercise 1);
  • (x)′=1\displaystyle {(x)'}={1}: the graph of y=x\displaystyle {y}={x} is a line of slope 1;
  • (c)′=0\displaystyle {(c)'}={0} for every constant number c\displaystyle c: the graph of y=c\displaystyle {y}={c} is a horizontal line, of slope 0.

All of these are cases of one rule – the power comes down in front, and the exponent goes down by 1:

(xn)′\displaystyle (x^n)' =\displaystyle = nxn−1\displaystyle nx^{n-1}

For example (x5)′=5x4\displaystyle {(x^5)'}={5x^4}, and (x10)′=10x9\displaystyle {(x^{10})'}={10x^9}.

The derivative of a constant multiple
(c⋅f(x))′\displaystyle (c\cdot f(x))' =\displaystyle = c⋅f′(x)\displaystyle c\cdot f'(x)

The proof below shows, by the definition, that the derivative of c⋅f(x)\displaystyle c\cdot f(x) is c⋅f′(x)\displaystyle c\cdot f'(x).

  • g(x)=c⋅f(x)\displaystyle {g(x)}={c\cdot f(x)}, so the slope of a secant of g\displaystyle g is c⋅f(x+h)−c⋅f(x)h=c⋅f(x+h)−f(x)h\displaystyle {\frac{c\cdot f(x+h)-c\cdot f(x)}{h}}={c\cdot\frac{f(x+h)-f(x)}{h}}.
  • As h→0\displaystyle h\to0, the fraction f(x+h)−f(x)h\displaystyle \frac{f(x+h)-f(x)}{h} tends to f′(x)\displaystyle f'(x).
  • So c\displaystyle c times the fraction tends to c⋅f′(x)\displaystyle c\cdot f'(x), that is g′(x)=c⋅f′(x)\displaystyle {g'(x)}={c\cdot f'(x)}.

On the graph: y=c⋅f(x)\displaystyle {y}={c\cdot f(x)} is a vertical stretch of the graph of f\displaystyle f by c\displaystyle c, and all the slopes are stretched with it by c\displaystyle c. On the board below are f(x)=x2\displaystyle {f(x)}={x^2} and g(x)=3x2\displaystyle {g(x)}={3x^2}, and their tangents at x=1\displaystyle {x}={1}:

f(x)=x2\displaystyle f(x)=x^{2}
g(x)=3x2\displaystyle g(x)=3x^{2}
y=2x−1\displaystyle y=2x-1
y=6x−3\displaystyle y=6x-3
  • The slope of the tangent to f\displaystyle f at x=1\displaystyle {x}={1} is f′(1)=2\displaystyle {f'(1)}={2}.
  • The slope of the tangent to g\displaystyle g there is g′(1)=3⋅2=6\displaystyle {g'(1)}={3\cdot2}={6} – 3 times as much.
The derivative of a sum and of a difference
(f(x)±g(x))′\displaystyle (f(x)\pm g(x))' =\displaystyle = f′(x)±g′(x)\displaystyle f'(x)\pm g'(x)

The proof below shows, by the definition, that the derivative of f(x)+g(x)\displaystyle f(x)+g(x) is f′(x)+g′(x)\displaystyle f'(x)+g'(x).

  • k(x)=f(x)+g(x)\displaystyle {k(x)}={f(x)+g(x)}, and the slope of a secant of k\displaystyle k is f(x+h)+g(x+h)−f(x)−g(x)h\displaystyle \frac{f(x+h)+g(x+h)-f(x)-g(x)}{h}.
  • Rearrange the numerator and split the fraction: f(x+h)−f(x)h+g(x+h)−g(x)h\displaystyle \frac{f(x+h)-f(x)}{h}+\frac{g(x+h)-g(x)}{h}.
  • As h→0\displaystyle h\to0, the first fraction tends to f′(x)\displaystyle f'(x) and the second to g′(x)\displaystyle g'(x).
  • So k′(x)=f′(x)+g′(x)\displaystyle {k'(x)}={f'(x)+g'(x)}.

The derivative of a difference is proved the same way (Exercise 4).

Differentiating a polynomial

Together the three rules differentiate any polynomial, term by term. The example below differentiates f(x)=4x3−5x2+7x−2\displaystyle {f(x)}={4x^3-5x^2+7x-2}:

f′(x)=4⋅3x2−5⋅2x+7⋅1−0=12x2−10x+7f'(x)=4\cdot3x^2-5\cdot2x+7\cdot1-0=12x^2-10x+7

And the slope of the tangent at x=1\displaystyle {x}={1}: f′(1)=12−10+7=9\displaystyle {f'(1)}={12-10+7}={9}.

The rules know nothing of a product: expand (x−3)(x+2)\displaystyle (x-3)(x+2) into a polynomial first, x2−x−6\displaystyle x^2-x-6, and only then differentiate.

Speed and acceleration

When s(t)\displaystyle s(t) is the distance (or the height) against time, its derivative is the instantaneous speed, and the derivative of the speed is the acceleration – the rate of change of the speed:

v(t)\displaystyle v(t) =\displaystyle = s′(t)\displaystyle s'(t)

In the example below a ball is kicked from the ground straight up at 30 metres per second. By Newton’s laws of motion, its height after t\displaystyle t seconds is y(t)=30t−5t2\displaystyle {y(t)}={30t-5t^2} metres (the number 5 is half the acceleration of gravity, which is about 10 metres per second per second).

  • The speed: v(t)=y′(t)=30−10t\displaystyle {v(t)}={y'(t)}={30-10t}. At t=0\displaystyle {t}={0} it is 30 – the speed the ball was kicked at.
  • The acceleration: a(t)=v′(t)=−10\displaystyle {a(t)}={v'(t)}={-10}. The speed goes down by 10 metres per second every second – gravity slows the ball down.
  • At t=3\displaystyle {t}={3} the speed is 0: the ball stops rising and starts to fall. Its height then is y(3)=90−45=45\displaystyle {y(3)}={90-45}={45} metres.
  • y(t)=0\displaystyle {y(t)}={0} when t(30−5t)=0\displaystyle {t(30-5t)}={0}, that is at t=6\displaystyle {t}={6}: the ball lands.
Exercise 1

We find the derivative of f(x)=x3\displaystyle {f(x)}={x^3} by the definition.

a

Simplify the slope of the secant (x+h)3−x3h\displaystyle \frac{(x+h)^3-x^3}{h}.
Use (x+h)3=x3+3x2h+3xh2+h3\displaystyle {(x+h)^3}={x^3+3x^2h+3xh^2+h^3}.

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    b

    What does your expression tend to as h→0\displaystyle h\to0?
    Write the derivative of x3\displaystyle x^3.

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      Exercise 2

      Differentiate.

      a

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

        b

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          c

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            d

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

              Exercise 3

              The function is f(x)=x3−6x\displaystyle {f(x)}={x^3-6x}.

              a

              Work out the slope of the tangent to the graph of f\displaystyle f at the point where x=2\displaystyle {x}={2}.

              f(x)=x3−6x\displaystyle f(x)=x^{3}-6x

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                b

                At which points on the graph is the slope of the tangent 6?
                Write an equation and solve it.

                  Exercise 4

                  Prove by the definition: (f(x)−g(x))′=f′(x)−g′(x)\displaystyle {(f(x)-g(x))'}={f'(x)-g'(x)}.

                  Exercise 5

                  A ball is kicked from the ground straight up.
                  Its height after t\displaystyle t seconds is y(t)=40t−5t2\displaystyle {y(t)}={40t-5t^2} metres.

                  a

                  Find the ball’s speed v(t)\displaystyle v(t).

                  y(t)=40t−5t2\displaystyle y(t)=40t-5t^{2}

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                    b

                    When does the ball stop rising?
                    Write an equation and solve it.

                      c

                      How high does the ball go?

                      y(t)=40t−5t2\displaystyle y(t)=40t-5t^{2}

                        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                        d

                        Find the ball’s acceleration: differentiate the speed you found in part a.

                          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                          e

                          When does the ball land?
                          What is its speed at the moment it lands, and what does its sign mean?

                          t\displaystyle t

                            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                            v\displaystyle v

                              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power