Processing math: 100%

Functions and algebra: Investigate and use instantaneous rate of change of a variable when interpreting models both in mathematical and real life situations

Unit 2: Work with rules for differentiation

Natashia Bearam-Edmunds

Unit outcomes

By the end of this unit you will be able to:

  • Use various forms of notation to represent the derivative.
  • Apply the power rule.
  • Find the derivative of a constant.
  • Find the derivative of a constant multiplied by a function.
  • Find the derivative of a sum/difference.
  • Find the derivative of a product.
  • Find the derivative of a quotient.
  • Apply the chain rule.

What you should know

Before you start this unit, make sure you can:

Try the following questions to see if you are ready for this unit.
Use the rules of differentiation to find the derivative of the following:

  1. g(x)=3x234x+10
  2. f(x)=x25x+6x3
  3. y=x3+13x3

Solutions

  1. .
    g(x)=3x234x+10g(x)=3×23x2314=2x134
  2. .
    f(x)=x25x+6x3 Factorise and cancel=(x3)(x2)(x3)=x2f(x)=1x11=1
  3. .
    y=x3+13x3=x32+13x3Get rid of roots and variables in denominator
     y=32x12x4=32x121 x4

Introduction

Finding derivatives of functions by using first principles can be tedious. So, we use rules for differentiation to make the process of differentiating simpler.

As we saw in level 3 there are different notations used for derivatives. If we use the common notation y=f(x) where the dependent variable is y and the independent variable is x, then some alternative notations for the derivative are:

f(x)=y=dydx=ddx[f(x)]=Df(x)=Dxy

The symbols D and ddx are called differential operators because they tell us that we are differentiating whenever see them.

Here is a reminder of the rules of differentiation that you should know by now.

The power rule:

If f(x)=xn then f(x)=nxn1 where nR, n0.

The sum/difference rule:

ddx[f(x)±g(x)]=ddxf(x)±ddxg(x)

In this unit we build on the differentiation rules you learnt in level 3 to include the product, quotient and chain rules. But, before we look at those there are some derivative functions that need a special mention.

The exponential and natural logarithm functions

The constant e is a special type of exponent, known as Euler’s number, which has many real-life applications. f(x)=ex is called the natural exponential function, and it is its own derivative.

ddxex=ex

Note

You can learn more about the uses of the natural exponent, e, by watching the video “e and Compound Interest”.

The inverse of an exponential function is a logarithmic function. The inverse of the natural exponential function is the natural logarithmic function lnx. The base of the natural logarithmic function is e, so lnx is actually lnex. The derivative of the natural logarithm function is 1x.

ddxlnx=1x where x>0,x0

Derivatives of trigonometric functions

The trigonometric functions have the following derivatives:

ddxsinx=cosxddxcosx=sinxddxtanx=sec2x

Example 2.1

Find the derivative of:

  1. ex
  2. y=lnx
  3. 2sinx+2cosx
  4. f(x)=tanx

Solutions

  1. .
    ddxex=ex
  2. .
    y=1x
  3. .
    ddx(2sinx+2cosx)=ddx2sinx+ddx2cosx apply the sum rule for differentiation=2cosx2sinx
  4. .
    f(x)=sec2x

The product rule

Now, we are ready for some of the more advanced rules of differentiation. Using the product rule we can find the derivative of the product of two functions.

ddx[f(x)g(x)]=f(x)g(x)+g(x)f(x)

OR

If u and v are functions of x, and y=uv, then:

dydx=vdudx+udvdx .

Example 2.2

Differentiate with respect to x:

  1. h(x)=xcosx
  2. y=x2ex
  3. y=lnxex

Solutions

  1. h(x)=xcosx
    f(x)=x and g(x)=cosx
    ddx[h(x)]=ddx[f(x)g(x)]=f(x)g(x)+g(x)f(x) by the product rule=(ddxx)cosx+(ddxcosx)x=cosx+(sinx)x=cosxxsinx
  2. y=x2ex
    u=x2 and v=ex
    dydx=(ddxx2)ex+(ddxex)x2=2xex+exx2
  3. y=lnxex
    u=lnx and v=ex
    y=(ddxlnx)ex+(ddxex)lnx=1xex+exlnx

Exercise 2.1

Use the product rule to differentiate with respect to x:

  1. y=xx
  2. y=exsinx
  3. k(x)=lnxtanx
  4. h(x)=exx

The full solutions are at the end of the unit.

The quotient rule

Now that you understand the product rule, we will move onto differentiating quotients of functions. Remember that the answer to division of quantities is called a quotient. So the quotient rule is what we use to find the derivative of functions that are divided.

If h(x)=f(x)g(x) then h(x)=f(x)g(x)g(x).f(x)(g(x))2.

Example 2.3

Use the quotient rule to differentiate:

  1. h(x)=2x2(x3)
  2. y=3x12x+3

Solutions

  1. f(x)=2x2 and g(x)=x3
    h(x)=ddx(2x2)(x3)2x2ddx(x3)(x3)2
    Since the terms in the numerator are separated by a negative sign, you must be careful and use brackets to avoid mistakes.
    h(x)=4x(x3)2x2(1)(x3)2=4x212x2x2(x3)2=2x212x(x3)2=2x(x6)(x3)2
  2. f(x)=3x1 and g(x)=2x+3
    dydx=(2x+3)ddx(3x1)(3x1)ddx(2x+3)(2x+3)2=(2x+3)(3)(3x1)(2)(2x+3)2=6x+96x+2(2x+3)2=11(2x+3)2

Exercise 2.2

Use the quotient rule to differentiate:

  1. h(x)=ex(x1)
  2. y=sinxtanx
  3. g(x)=xex

The full solutions are at the end of the unit.

The chain rule

So far we have differentiated functions using the following rules for differentiation: sum and difference rule, constant rule, power rule, product rule and quotient rule. However, these techniques do not allow us to differentiate compositions of functions, such as y=sin(x2). To differentiate composite functions we must use the chain rule. But, what are composite functions?

Note

You can watch this animation of the chain rule for an ‘intuitive notion of the chain rule’.

animation

y=f(g(x)) is a composite function or a function of a function. Consider the function sinx2. You should be able to see that this expression is different from the normal sinx function since x is squared.

This is a function of function with f(x)=sinx and g(x)=x2.

So f(g(x))=f(x2).

Substitute x with x2 and you get:

f(g(x))=f(x2)=sinx2.

We can think of the derivative of this function as the rate of change of sin(x2) relative to the change in x. We want to know how sin(x2) changes as x changes. Any change in x leads a chain reaction; as x changes, x2 changes , which leads sin(x2) to change too.

To differentiate a composite function y=f(g(x)):

  1. Substitute u for g(x) to get y=f(u). Soy is a function of u and u is a function of x.
  2. Apply the chain rule.

Chain rule:

If y is a function of u and u is a function of x, then dydx=dydududx.

When applying the chain rule to the composition of functions, we work our way from the outside function in.

Example 2.4

Differentiate y=sin(x2).

Solution

Let u=x2 then y=sin(u).

dudx=2x and dydu=cosu

From the chain rule dydx=dydududx.

dydx=cosu(2x)=2xcosx2

In the last step we substituted u=x2.

We can expand on the basic trigonometric derivative rules to include composite functions as shown in the box below.

ddxasinkx=kacoskxddxacoskx=kasinkxddxa tannx=kasec2kx

Example 2.5

Find the derivative of y=(2x1)5.

Solution

You may be tempted to say just multiply out the brackets to derive, but to multiply out the brackets would take a long time and it is easy to make a mistake with so many terms. So we will treat this as a function of a function. Let u=2x1 then y=u5.

Then dudx=2 and dydu=5x4.

From the chain rule dydx=dydududx.

So we get dydx=5x4(2)=10x4.

Here is a summary of the rules of differentiation for simple functions and composite functions.

Simple functions Composite functions
ddxk=0, where k is a constant.
ddxkxn=nkxn1,where k is a constant. ddxk[f(x)]n=kddx[f(x)]n, where k is a constant.=kn[f(x)]n1f(x)
ddxex=ex ddxef(x)=f(x)ef(x)
ddxlnx=1x ddxln[f(x)]=1f(x)f(x)
ddxsinx=cosx ddxsinf(x)=f(x)cosf(x)
ddxcosx=sinx ddxcosf(x)=sinf(x)f(x)
ddxtanx=sec2x ddxtanf(x)=f(x)sec2f(x)

Exercise 2.3

Differentiate the following functions:

  1. f(x)=x2+1
  2. g(x)=3tan2x
  3. y=esin2(2x)
  4. s=cose3t
  5. h(x)=ln(sinx)

The full solutions are at the end of the unit.

Summary

In this unit you have learnt the following:

  • How to apply the product rule for differentiation.
  • How to apply the quotient rule for differentiation.
  • How to define composite functions.
  • How to apply the chain rule.

License

Icon for the Creative Commons Attribution 4.0 International License

National Curriculum (Vocational) Mathematics Level 4 by Natashia Bearam-Edmunds is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book