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:
- Find the derivative by applying the constant and sum and difference rules taught in level 3 subject outcome 2.5 unit 3.
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:
- g(x)=3x23−4x+10
- f(x)=x2−5x+6x−3
- y=√x3+13x3
Solutions
- .
g(x)=3x23−4x+10g′(x)=3×23x23−1−4=2x13−4 - .
f(x)=x2−5x+6x−3 Factorise and cancel=(x−3)(x−2)(x−3)=x−2f′(x)=1x1−1=1 - .
y=√x3+13x3=x32+13x−3Get rid of roots and variables in denominator
y′=32x12−x−4=32x12−1 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)=nxn−1 where n∈R, n≠0.
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,x≠0
Derivatives of trigonometric functions
The trigonometric functions have the following derivatives:
ddxsinx=cosxddxcosx=−sinxddxtanx=sec2x

Example 2.1
Find the derivative of:
- ex
- y=lnx
- 2sinx+2cosx
- f(x)=tanx
Solutions
- .
ddxex=ex - .
y′=1x - .
ddx(2sinx+2cosx)=ddx2sinx+ddx2cosx apply the sum rule for differentiation=2cosx−2sinx - .
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=u⋅v, then:
dydx=vdudx+udvdx .

Example 2.2
Differentiate with respect to x:
- h(x)=x⋅cosx
- y=x2⋅ex
- y=lnx⋅ex
Solutions
- h(x)=x⋅cosx
∴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=cosx−xsinx - y=x2⋅ex
u=x2 and v=ex
dydx=(ddxx2)ex+(ddxex)x2=2x⋅ex+ex⋅x2 - y=lnx⋅ex
u=lnx and v=ex
y′=(ddxlnx)ex+(ddxex)lnx=1x⋅ex+ex⋅lnx

Exercise 2.1
Use the product rule to differentiate with respect to x:
- y=x⋅√x
- y=exsinx
- k(x)=lnx⋅tanx
- 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:
- h(x)=2x2(x−3)
- y=3x−12x+3
Solutions
- f(x)=2x2 and g(x)=x−3
h′(x)=ddx(2x2)⋅(x−3)−2x2⋅ddx(x−3)(x−3)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(x−3)−2x2(1)(x−3)2=4x2−12x−2x2(x−3)2=2x2−12x(x−3)2=2x(x−6)(x−3)2 - f(x)=3x−1 and g(x)=2x+3
dydx=(2x+3)ddx(3x−1)−(3x−1)ddx(2x+3)(2x+3)2=(2x+3)(3)−(3x−1)(2)(2x+3)2=6x+9−6x+2(2x+3)2=11(2x+3)2

Exercise 2.2
Use the quotient rule to differentiate:
- h(x)=ex(x−1)
- y=sinxtanx
- 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’.
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)):
- Substitute u for g(x) to get y=f(u). Soy is a function of u and u is a function of x.
- Apply the chain rule.
Chain rule:
If y is a function of u and u is a function of x, then dydx=dydu⋅dudx.
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=dydu⋅dudx.
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=k⋅acoskxddxacoskx=−k⋅asinkxddxa tannx=k⋅asec2kx

Example 2.5
Find the derivative of y=(2x−1)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=2x−1 then y=u5.
Then dudx=2 and dydu=5x4.
From the chain rule dydx=dydu⋅dudx.
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=n⋅kxn−1,where k is a constant. | ddxk[f(x)]n=kddx[f(x)]n, where k is a constant.=k⋅n[f(x)]n−1⋅f′(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:
- f(x)=√x2+1
- g(x)=3tan2x
- y=esin2(2x)
- s=cose3t
- 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.
Suggested time to complete: 35 minutes
Differentiate with respect to x:
- y=1x(2x+3)
- f(x)=cos2x
- y=ln3x
- y=√x−1
- g(x)=ex⋅ln3x
- h(x)=e2x⋅x
- y=xtan2x
- y=e2xex−e−x
- y=x√2x2+1
The full solutions are at the end of the unit.
Exercise 2.1
- .
y′=ddxx⋅x12+ddxx12⋅x=x12+12x−12⋅x=x12+12x12=32√x - .
dydx=ddxex⋅sinx+ddxsinx⋅ex=ex⋅sinx+cosx⋅ex - .
k(x)=lnx⋅tanx
k′(x)=ddxlnx⋅tanx+lnx⋅ddxtanx=tanxx+lnxsec2x - .
h(x)=exx=ex⋅x−1
h′(x)=ddxex⋅x−1+ddxx−1⋅ex[]=exx+(−x−2)ex=exx−exx2
Exercise 2.2
- .
h′(x)=(x−1)ddxex−exddx(x−1)(x−1)2=(x−1)ex−ex(1)(x−1)2=xex−ex−ex(x−1)2=xex−2ex(x−1)2=ex(x−2)(x−1)2 - .
y′=tanxddxsinx−sinxddxtanx(tanx)2=tanx(cosx)−sinx(sec2x)(tanx)2 simplify using trig identities=sinxcosx(cosx)1−sinxcos2x(sinxcosx)2 find an LCD in the numerator and subtract terms=sinxcos2x−sinxcos2x⋅cos2xsin2x=−sinx(1−cos2x)sin2x=−sin3xsin2x=−sinx - .
g′(x)=exddxx−xddxex(ex)2=ex(1)−x(ex)(ex)2=ex(1−x)e2x=1−xex
Exercise 2.3
Determine dydx for the following functions.
- .
f(x)=(x2+1)12
f′(x)=12(x2+1)−12⋅ddx(x2+1)=12(x2+1)−12⋅(2x)=x√x2+1 - .
g′(x)=3(2sec22x)=6sec22x - .
y′=esin2(2x)⋅ddx[sin(2x)]2=esin2(2x)⋅2(sin2x)1⋅ddxsin2x=esin2(2x)⋅2(sin2x)⋅(cos2x)⋅ddx(2x)=esin2(2x)⋅2(sin2x)⋅(cos2x)⋅2=2esin2(2x)⋅2sin2xcos2x Note: sin2A=2sinAcosA=2esin2(2x)sin4x - .
s′=−sine3t⋅ddxe3t=−sine3t⋅3e3t=−3e3tsine3t - .
h′(x)=1sinx(cosx)=cosxsinx
Unit 2: Assessment
- .
y′=ddxx−1⋅(2x+3)+ddx(2x+3)⋅1x=−(2x+3)x2+2x=−2x−3+2xx2=−3x2 - .
f′(x)=−2sin2x - .
y′=33x=1x - .
y=√x−1Let u=x−1dudx=1y=u12dydu=12u−12∴y′=12√x−1 - .
g′(x)=ex⋅ln3x+33x⋅ex=ex⋅ln3x+exx - .
h′(x)=2e2x⋅x+(1)e2x=2xe2x+e2x - .
y′=tan2x+2xsec22x - .
y′=ddxe2x(ex−e−x)−ddx(ex−e−x)e2x(ex−e−x)2=2e2x(ex−e−x)−e2x(ex+e−x)(ex−e−x)2=2e3x−2ex−e3x−ex(ex−e−x)2=e3x−3ex(ex−e−x)2 - .
y′=ddxx(√2x2+1)−xddx(2x2+1)12(√2x2+1)2=√2x2+1−x[12(2x2+1)−12(4x)]2x2+1=√2x2+1−2x2√2x2+12x2+1=(√2x2+1)2−2x2√2x2+1⋅12x2+1=−2x2√2x2+1