Functions and algebra: Investigate and use instantaneous rate of change
Unit 4: Use derivatives to solve maxima and minima problems
Natashia Bearam-Edmunds

Unit outcomes
By the end of this unit you will be able to:
- Use differentiation to find optimal solutions.
What you should know
Before you start this unit, make sure you can:
- Use the rules of differentiation to find the derivative. The rules of differentiation are covered in unit 3 of this subject outcome.
Introduction
One common application of calculus is to calculate the smallest or largest value of a function. Finding the maximum and minimum values of a function has many real-life applications because we can use this method to solve optimisation problems – problems that require some variable to be maximised or minimised.
Examples of optimisation problems include maximising profit, minimising the amount of material used in manufacturing or finding the maximum height a rocket can reach. In this unit, we use derivatives to find the maximum and minimum values of a function.

Activity 4.1: Functions and optimisation
Time required: 20 minutes
What you need:
- pen and paper
What to do:
The fuel used by a car is defined by f(v)=380v2−6v+245, where v is the travelling speed in km/h.
- Plot speed on the x-axis and fuel consumption on the y-axis to draw the graph of f. Use a scale of 1:10 on the axes. Notice that the function is a quadratic function.
- At what speed is the least fuel consumed?
- Find f′(v).
- Let f′(v)=0 and solve for v. What have you found?
- Comment on the answers you got in questions 2 and 5.
What did you find?
- .
- The least fuel usage will be found at the lowest part of the graph or the minimum value of the graph. The speed at the minimum would then give the most economical speed. Therefore, the least fuel is consumed at 80km/h.
- .
f(v)=380v2−6v+245f′(v)=380(2)v2−1−6v1−1+0=340v−6 - .
f′(v)=0340v−6=0∴v=6×403=80
We have found the speed that corresponds to the minimum fuel consumption. - We see that we can find the x-coordinate of the turning point of a function by differentiating (speed in this example) and letting the derivative equal zero. If we set f′(v)=0 we can calculate the speed that corresponds to the minimum turning point, which is also known as a stationary point.
.
This means that the most economical speed of 80 km/h can also be found by equating the derivative to zero.

Take note!
To find the optimum point using calculus:
Let f′(x)=0 and solve for x.
To check whether the optimum point is a local minimum or a local maximum without drawing the graph, we must find the second derivative. You will learn more about the second derivative in level 4.
- If f′′(x)<0, then the point is a local maximum.
- If f′′(x)>0, then the point is a local minimum.

Example 4.1
Jacky wants to put a fence around her vegetable garden. She decides to fence it off in the shape of a rectangle and only has 160 m of fencing so she uses a rock wall as the one border of the garden. Calculate the width and length of the garden that corresponds to the largest possible area that Jacky can fence off.
Solution
Step 1: Read the question carefully, draw a diagram if necessary and decide what variables need to be used.
Let the width be w and the length be l.
Step 2: Determine which quantity needs to be maximised or minimised. Write a formula for the quantity to be maximised or minimised in terms of the variables.
We are given information about the area and the modified perimeter of the garden. We know that the area of the garden is given by the formula:
Area=l×w
Write any other equations relating the independent variables in the formula found above. Use these equations to write the quantity to be maximised or minimised (area in this case) as a function of one variable.
The fencing is only required for three sides and the three sides must add up to 160 m. So we can say the perimeter is:
w+w+l=160
Rearrange the formula and make l the subject of the formula.
l=160−2w
Substitute the expression for l into the formula for the area of the garden. Notice that this formula now contains only one unknown variable.
Area=w(160−2w)=160w−2w2
Step 3: Differentiate with respect of the variable to find the maximum or minimum value.
We are interested in maximising the area of the garden, so we differentiate to get the following:
dAdw=A′(w)=160−4w
Step 4: Calculate the stationary point (point on a graph where a minimum or maximum value is found).
To find the stationary point, we set A′=0 and solve to find the value(s) of w that maximises the area.
A′(w)=160−4w0=160−4w4w=160w=40
Therefore, the width of the garden is 40 m.
Substitute to solve for the length.
l=160−2w=160−2(40)=80
Therefore, the length of the garden is 80 m.
We can check that these dimensions give a maximum area by finding the second derivative.
For a maximum value A″(w)<0:
A′(w)=160−4w∴A″(w)=−4
∵A″<0 The maximum area of the garden is reached when w=40.
Therefore, a width of 40 m and a length of 80 m gives the maximum area of the garden.

Take note!
Here is a problem-solving strategy for maxima and minima questions:
- Read the question carefully, draw a diagram if necessary and decide what variables need to be used.
- Determine which quantity needs to be maximised or minimised. If necessary, write a formula for the quantity to be maximised or minimised in terms of the variables.
- The quantity that needs to be minimised or maximised must be expressed in terms of only one variable. So write any other information relating to the variables in another equation and use this equation to substitute for one variable in terms of the other.
- Find the derivative of your equation with only one variable.
- Set the derivative equal to zero and solve to find the value that will minimise or maximise the problem.
- Find the second derivative to confirm that the value you found is the minimum or maximum value.
The next example looks at maximising profit.

Example 4.2
A factory has x employees and makes a profit of P rand per week. The relationship between the profit and number of employees is given by P(x)=−2x3+600x+1 000.
- Calculate the number of employees needed for the factory to make a maximum profit.
- Confirm that the value you found in a) will maximise profit.
- Calculate the maximum profit.
Solution
- In this example we are given the equation and variables to work with, which will make things a little easier.
P(x)=−2x3+600x+1 000
We can move straight onto the step where we find the derivative and equate it to zero to solve for the x-value that will maximise profit.
.
P′(x)=−6x2+600P′(x)=0−6x2+600=0x2=100x=±10∴x=10
.
Since x represents employees, it cannot be negative and we only accept the positive solution for the number of employees that will maximise profit. - To check that x=10 maximises profit we must find P″(10).
P′(x)=−6x2+600P″(x)=−12xP″(10)=−120
Since the second derivative is negative this means that 10 employees will maximise profit. - To find the maximum profit, substitute the value we found for x back into the original equation, which shows the relationship between profit and employees.
P(x)=−2x3+600x+1 000P(10)=−2(10)3+600(10)+1000=5000
Maximum profit is R 5000 when there are 10 employees.
In the last example we minimise material used.

Example 4.3
The diagram below shows a closed metal cylinder with a capacity of 550 ml. The volume of the cylinder is given by the formula V=πr2h where r is the radius and h is the height.
- Express the height h of the cylinder in terms of r.
- Show that the surface area of cylinder can be written as S=2πr2+1100r.
- Calculate the radius of the cylinder with a minimum surface area.
Solutions
- We are given the capacity of the cylinder. When the thickness of the walls of a cylinder are insignificant, volume and capacity is basically the same thing.
V=πr2h=550
We must use the equation for volume to make the height the subject of the formula.
πr2h=550h=550πr2 - For any closed container the easiest way to find the surface area is to use the formula:
TSA=2×area of the base+perimeter of the base×h
Since the base of a cylinder is a circle, its area is πr2 and the circumference (perimeter) is 2πr. Substitute these formulae into the equation for total surface area and replace TSA with S.
S=2×πr2+2πr×h=2πr2+2πrh
Next, we need to rewrite the equation in terms of one variable only. So replace h with the value you found in part a) and simplify to get the required expression.
S=2×πr2+2πr×h=2πr2+2πrh=2πr2+2πr(550πr2)=2πr2+1 100r - Calculate the radius of the cylinder with a minimum surface area.
To find a minimum value we need to find the derivative. In this case, we need to minimise the surface area of material needed.
S=2πr2+1 100r−1S′=4πr−1 100r−2
Note: we have changed to a negative exponent to get rid of the variable in the denominator before deriving, as you were shown in unit 3.
.
For a minimum value S′(r)=0
4πr−1 100r−2=04πr=1100r24πr3=1 100r3=1 1004πr=3√275π=4.44
A radius of 4.44 units will produce a cylinder with a minimum surface area, in other words, using the least material.
Note
When you have an internet connection, watch the video “Optimisation: box volume (Part 1)” about optimising the volume of a box.

Exercise 4.1
- The volume of a rectangular box is given by the equation f(x)=x3−8x2+5x+50. Calculate the value of x for which the volume is a maximum.
- The dimensions of a cylinder are such that r+h=12. Determine the value of r if the volume of the cylinder is at its maximum.
HINT: V=πr2h - The radius of the base of a solid metal cylinder is x mm while its height is (300−x) mm.
Find the value of x which results in a maximum volume if the volume is given by V=300πx2−πx3.
The full solutions are at the end of the unit.
Summary
In this unit you have learnt the following:
- How to use the largest and smallest values of a function to maximise and minimise real life problems.
- How to derive to find the optimal solutions.
- How to check if your solutions are maximum or minimum values.
Suggested time to complete: 30 minutes
- The sum of two positive numbers is 10. One of the numbers is multiplied by the square of the other. If each number is greater than zero, find the numbers that make this product a maximum.
- A cat climbs into a rectangular box without a lid. The box is made of cardboard of insignificant thickness. The sides of the base are 2x cm by 3x cm, and the height is h cm.
- If the total external surface area is 200 cm2, show that h=20x−3x5.
- Find the dimensions of the box that will maximise the volume.
- You need to build a fence around an area of 200 m. What are the dimensions of a rectangular fence that will minimise the amount of material needed?
The full solutions are at the end of the unit.
Exercise 4.1
- .
f′(x)=3x2−16x+5
To find the maximum/minimum let f′(x)=0.
f′(x)=3x2−16x+5=0∴(3x−1)(x−5)=0∴x=13 or x=5
For maximum volume f′′(x)<0
f′′(x)=6x−16f′′(13)=6(13)−16=−14∴f′′(13)<0
f′′(5)=6(5)−16=14∴f′′(5)>0
Maximum volume when x=13. - .
r+h=12∴h=12−r
V=πr2h=πr2(12−r)=12πr2−πr3
For the maximum volume find the derivative with respect to r and equate to zero.
V′=24πr−3πr2=0∴3πr(8−r)=0∴r=0 n/a or r=8∴r=8 - .
V′=600πx−3πx2=0∴3πx(200−x)=0∴x=0 n/a or x=200∴x=200
Unit 4: Assessment
- Let the two numbers be x and y and the product be P.
x+y=10...(1)
P=x×y2...(2)
.
Make y the subject of equation (1) and substitute into equation (2).
y=10−x...(1)
P=x×y2=x(10−x)2=x(100−20x+x2)=100x−20x2+x3
Differentiate with respect to x.
P′(x)=100−40x+3x2
Find the value of x which makes P a maximum by setting the derivative equal to zero.
P′(x)=3x2−40x+1000=(3x−10)(x−10)∴x=103 or x=10
Substitute values into equation (1) to solve for y:
If x=10
y=10−(10)=0
This is not possible since each number is greater than zero.
.
If x=103
y=10−(103)=203
Therefore, the product is maximised when the two numbers are 103 and 203. - .
- Since the box has no lid the formula for surface area becomes:
TSA=area of the base+perimeter of the base×h
200=2x⋅3x+2(2x+3x)⋅h=6x2+10xh200−6x2=10xh200−6x210x=h20x−35x=h - Volume =length ×breadth×height
V=2x⋅3x⋅h=6x2h
Substitute the value for h found in part a).
V=6x2(20x−35x)=120x−185x3
For maximum:
V′=0V′=120−545x2120−545x2=0545x2=120x2=1009∴x=103
Substitute back into part a) to find h.
h=20(103)−3(103)5=4 cm
Sides are:
2(103)=203 cm and 3(103)=10 cm
Dimensions for the box to have a maximum volume are 203 cm, 10 cm and 4 cm.
- Since the box has no lid the formula for surface area becomes:
- Let the length be x and the width be y.
Area = x×yxy=200∴y=200x
To find the amount of material for the fence find the perimeter.
P=2(x+y)=2x+2y
Substitute the y-value from the Area equation.
P=2x+2(200x)=2x+400x
Derive and solve for the minimum x-value.
P=2x+400x−1P′=2−400x−22−400x2=02x2−400=0x2=200x=±10√2
Since dimension is positive
x=10√2=14.14 m∴y=20010√2=14.14 m
Dimensions of a rectangular fence that will minimise the amount of material needed are 14.14 m by 14.14 m.
Media Attributions
- Unit 4_Activity_Functions and optimisation © Geogebra is licensed under a CC BY-SA (Attribution ShareAlike) license
- Unit 4 Example 4.1 © DHET is licensed under a CC BY (Attribution) license
- Unit 4 Example 4.3 © DHET is licensed under a CC BY (Attribution) license
- Unit 4 Assessment Q2 © DHET is licensed under a CC BY (Attribution) license