Skip to content

The derivative function and the rules of differentiation

The derivative function and the rules of differentiation

The derivative function

For f(x)=x2\displaystyle {f(x)}={x^2} the last lesson found f′(1)=2\displaystyle {f'(1)}={2}, f′(2)=4\displaystyle {f'(2)}={4}, f′(3)=6\displaystyle {f'(3)}={6}: at every point the derivative is twice the x\displaystyle x. It can be worked out for every x\displaystyle x at once:

(x+h)2−x2h=2xh+h2h=2x+h\frac{(x+h)^2-x^2}{h}=\frac{2xh+h^2}{h}=2x+h
  • As h\displaystyle h gets closer to 0, 2x+h\displaystyle 2x+h gets closer to 2x\displaystyle 2x.
  • So f′(x)=2x\displaystyle {f'(x)}={2x}: a function that gives, for every x\displaystyle x, the slope of the tangent to the graph at its point.
  • f′(x)\displaystyle f'(x) is called the derivative function of f\displaystyle f, and finding it is called differentiating f\displaystyle f.
x\displaystyle x−2\displaystyle -2−1\displaystyle -10\displaystyle 01\displaystyle 12\displaystyle 23\displaystyle 3
f′(x)=2x\displaystyle {f'(x)}={2x}−4\displaystyle -4−2\displaystyle -20\displaystyle 02\displaystyle 24\displaystyle 46\displaystyle 6
The derivative of a power and of a constant

Every power of x\displaystyle x is differentiated the way x2\displaystyle x^2 was: the index comes down in front of the x\displaystyle x, and the power goes down by 1.

(xn)′\displaystyle (x^n)' =\displaystyle = nxn−1\displaystyle nx^{n-1}
(c)′\displaystyle (c)' =\displaystyle = 0\displaystyle 0
  • (x5)′=5x4\displaystyle {(x^5)'}={5x^4}, (x3)′=3x2\displaystyle {(x^3)'}={3x^2}.
  • (x)′=1\displaystyle {(x)'}={1}: the graph of y=x\displaystyle {y}={x} is a line with slope 1.
  • The graph of a constant, y=7\displaystyle {y}={7}, is a level line: its slope is 0, so (7)′=0\displaystyle {(7)'}={0}.
A constant multiple and a sum

A number multiplying a function stays in front of the derivative, and a sum or a difference is differentiated term by term:

(c⋅f(x))′\displaystyle (c\cdot f(x))' =\displaystyle = c⋅f′(x)\displaystyle c\cdot f'(x)
(f(x)±g(x))′\displaystyle (f(x)\pm g(x))' =\displaystyle = f′(x)±g′(x)\displaystyle f'(x)\pm g'(x)

The example below differentiates f(x)=4x3−5x2+7x−2\displaystyle {f(x)}={4x^3-5x^2+7x-2} term by term:

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
  • A fraction in front stays in front too: (13x3)′=13⋅3x2=x2\displaystyle {\left(\frac{1}{3}x^3\right)'}={\frac{1}{3}\cdot3x^2}={x^2}.
A product: expanding before differentiating

The derivative of a product is not the product of the derivatives. For now, expand the brackets, and only then differentiate.
f(x)=(x+3)(2x−1)\displaystyle {f(x)}={(x+3)(2x-1)}.

f(x)=2x2+5x−3f(x)=2x^2+5x-3f′(x)=4x+5f'(x)=4x+5
  • The product of the derivatives, (x+3)′⋅(2x−1)′=1⋅2=2\displaystyle {(x+3)'\cdot(2x-1)'}={1\cdot2}={2}, is not the derivative.
  • A rule for a product, without expanding, comes in the next lesson.
The derivative at a point

To know the slope of the tangent at a point, put its x\displaystyle x into the derivative function.
f(x)=x3−3x2+2\displaystyle {f(x)}={x^3-3x^2+2}.
The example below finds f′(x)\displaystyle f'(x), and puts x=1\displaystyle {x}={1} and x=2\displaystyle {x}={2} into it.

f′(x)=3x2−6xf'(x)=3x^2-6xf′(1)=3−6=−3,f′(2)=12−12=0f'(1)=3-6=-3,\qquad f'(2)=12-12=0

On the board: f\displaystyle f, and the tangents at the points (1,0)\displaystyle (1,0) and (2,−2)\displaystyle (2,-2) (the dashed ones).

f(x)=x3−3x2+2\displaystyle f(x)=x^{3}-3x^{2}+2
y=−2\displaystyle y=-2
y=−3x+3\displaystyle y=-3x+3
  • At x=1\displaystyle {x}={1} the slope of the tangent is −3\displaystyle -3: the graph falls there.
  • At x=2\displaystyle {x}={2} the slope of the tangent is 0: the tangent is level, y=−2\displaystyle {y}={-2}.
  • To find where the slope is a given number, solve an equation: f′(x)=0\displaystyle {f'(x)}={0}, that is 3x2−6x=0\displaystyle {3x^2-6x}={0}, gives x=0\displaystyle {x}={0} or x=2\displaystyle {x}={2}.
Exercise 1

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 2

          Expand the brackets, and then 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

              Exercise 3

              f(x)=x3−4x2+4x\displaystyle {f(x)}={x^3-4x^2+4x}.

              a

              Find f′(x)\displaystyle f'(x).

              f(x)=x3−4x2+4x\displaystyle f(x)=x^{3}-4x^{2}+4x

                / – 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

                Work out f′(2)\displaystyle f'(2) and f′(0)\displaystyle f'(0).

                f(x)=x3−4x2+4x\displaystyle f(x)=x^{3}-4x^{2}+4x

                  / – 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

                  f(x)=x3−4x2+4x\displaystyle f(x)=x^{3}-4x^{2}+4x

                    / – 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

                    At which of the points (0,0)\displaystyle (0,0) and (2,0)\displaystyle (2,0) is the tangent to the graph of f\displaystyle f level?
                    What is the slope of the tangent at the other point?

                    Exercise 4

                    f(x)=x2−6x\displaystyle {f(x)}={x^2-6x}.

                    a

                    Find f′(x)\displaystyle f'(x).

                    f(x)=x2−6x\displaystyle f(x)=x^{2}-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 point is the slope of the tangent to the graph of f\displaystyle f equal to 0?
                      Write an equation and solve it.

                        c

                        At which point is the slope of the tangent to the graph of f\displaystyle f equal to 4?
                        Write an equation and solve it.

                          Exercise 5

                          g(x)=x3−12x\displaystyle {g(x)}={x^3-12x}.

                          a

                          Find g′(x)\displaystyle g'(x).

                          g(x)=x3−12x\displaystyle g(x)=x^{3}-12x

                            / – 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 is the tangent to the graph of g\displaystyle g level?
                            Write an equation and solve it.

                              Exercise 6

                              A stone falls from a roof.
                              s(t)=5t2\displaystyle {s(t)}={5t^2} – the distance in metres the stone falls in the first t\displaystyle t seconds.
                              The stone’s speed at the moment t\displaystyle t is s′(t)\displaystyle s'(t).
                              What is the stone’s speed after 3 seconds?

                              s(t)=5t2\displaystyle s(t)=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