Solution:
Key idea: We use the given condition to write the quantity in one variable, put its derivative equal to zero, and use the sign of the second derivative to decide whether we have a maximum or a minimum.
Step 1 — Part (i): write the product in one variable.
Let the numbers be x and 24−x, with 0<x<24 so that both are positive. Their product is as follows.
P=x(24−x)
P=24x−x2
Step 2 — Part (i): maximise the product.
We differentiate and set the derivative to zero.
dxdP=24−2x
x=12
The second derivative is −2. It is negative, so P is greatest at x=12, and the other number 24−x is also 12.
Step 3 — Part (ii): write xy in one variable.
From the condition x+y=8, we write y in terms of x as 8−x.
P=x(8−x)
P=8x−x2
Step 4 — Part (ii): maximise xy.
We differentiate and set the derivative to zero.
dxdP=8−2x
x=4
The second derivative is −2, so this is a maximum. Then y=4, and we work out the maximum value.
xy=4×4
xy=16
Step 5 — Part (iii): write xy3 in one variable.
From the condition x+y=60, we write x in terms of y as 60−y, with 0<y<60.
P=(60−y)y3
P=60y3−y4
Step 6 — Part (iii): maximise xy3.
We differentiate and factorise.
dydP=180y2−4y3
dydP=4y2(45−y)
Since y>0, the derivative is zero only at y=45. We test it with the second derivative.
dy2d2P=360y−12y2
dy2d2P=16200−24300
dy2d2P=−8100
This is negative, so P is greatest at y=45. Then x is 60−45, so x=15.
Step 7 — Part (iv): write x+y in one variable.
From the condition xy=1, we write y as x1, with x>0.
S=x+x1
Step 8 — Part (iv): minimise x+y.
We differentiate and set the derivative to zero.
dxdS=1−x21
x2=1
Since x>0, we get x=1. The second derivative is x32, which equals 2 at x=1; it is positive, so S is least there. Then y=1, and the least value follows.
x+y=1+1
x+y=2
Therefore, (i) the numbers are 12 and 12; (ii) the maximum value of xy is 16; (iii) x=15 and y=45; (iv) the minimum value of x+y is 2, when x and y are both 1.