Practical maximum and minimum problems

AS · P1 · 16 min

How should a sheet of card be cut to make the biggest possible box? What shape of can holds 500 cm3500\ \text{cm}^3 using the least metal? These are optimisation problems: a quantity has to be made as large or as small as possible subject to a constraint. Calculus solves them by turning the situation into a function of one variable and finding its stationary points. Paper 1 usually sets one per paper, often with a "show that" first part that gives you the function, followed by the calculus.

The idea

Suppose you have 300300 m of fencing to enclose a rectangular field against a straight river, so only three sides need fencing. A long thin field has almost no area; so does a short wide one. Somewhere in between is the best shape. If the area is written as a function of one length, the best shape is where the graph of area against that length reaches its peak, and at the peak the gradient is zero.

y = 300x - 2x^2 (75, 11250)

The graph shows A=300x−2x2A = 300x - 2x^2 (set up in Example 1). The maximum is at the top of the hump, where dAdx=0\dfrac{dA}{dx} = 0.

So an optimisation problem has two halves:

  • Modelling: express the quantity to be optimised as a function of a single variable. This usually needs the constraint (fixed perimeter, fixed volume, fixed material) to eliminate a second variable.
  • Calculus: differentiate, set the derivative equal to zero, solve, and show that you have a maximum or minimum as required.
Solving an optimisation problem
  1. Draw a diagram and label the variables, say xx and yy.
  2. Write an expression for the quantity QQ to be optimised, in terms of xx and yy.
  3. Write an equation for the constraint, rearrange it for yy, and substitute to get QQ in terms of xx only.
  4. Find dQdx\dfrac{dQ}{dx}, set it equal to 00 and solve. Reject values that are impossible in context (negative lengths, zero volume).
  5. Show the stationary value is the required type, usually with d2Qdx2\dfrac{d^2Q}{dx^2}.
  6. Answer the question asked: the optimal dimensions, the maximum or minimum value, or both, with units.

Writing the function

The modelling step is where most students get stuck, and it is also where "show that" questions give you help. A few patterns cover nearly everything.

SituationQuantityConstraintEliminate
Fencing a rectanglearea xyxyperimeter fixedyy from the perimeter
Open box from a sheetvolume x(a−2x)2x(a - 2x)^2sheet size fixedalready one variable
Closed cylindersurface area 2πr2+2πrh2\pi r^2 + 2\pi rhvolume πr2h\pi r^2 h fixedh=Vπr2h = \dfrac{V}{\pi r^2}
Sector of a circlearea 12r2θ\tfrac{1}{2}r^2\thetaperimeter 2r+rθ2r + r\theta fixedθ\theta from the perimeter
Shortest distance to a curved2=(x−a)2+(y−b)2d^2 = (x - a)^2 + (y - b)^2the point lies on the curveyy from the curve

Two tricks recur.

Minimise the square of a distance. A distance d=…d = \sqrt{\ldots} is awkward to differentiate. Since dd is positive, dd is smallest exactly when d2d^2 is smallest, so minimise d2d^2 instead.

Ignore positive constant factors. Maximising π(75r−r3)\pi(75r - r^3) gives the same rr as maximising 75r−r375r - r^3. Keep the constant for the final value, though.

Justifying a maximum or minimum

A stationary value is not automatically the one you want. You must show its nature. The second derivative test is standard: a negative d2Qdx2\dfrac{d^2Q}{dx^2} confirms a maximum, a positive one a minimum.

Often the second derivative has an obvious sign without substituting. For S=2πr2+1000rS = 2\pi r^2 + \dfrac{1000}{r}, d2Sdr2=4π+2000r3\dfrac{d^2S}{dr^2} = 4\pi + \dfrac{2000}{r^3} is positive for every r>0r > 0, so any stationary point is a minimum. Saying so is enough.

Key result
  • Express the quantity in one variable using the constraint.
  • Optimal value where dQdx=0\dfrac{dQ}{dx} = 0.
  • d2Qdx2<0\dfrac{d^2Q}{dx^2} < 0: maximum. d2Qdx2>0\dfrac{d^2Q}{dx^2} > 0: minimum.
  • Minimise d2d^2 rather than dd.
  • Reject stationary values that make no physical sense.

Worked examples

Fencing against a river

A farmer has 300300 m of fencing to make a rectangular enclosure. One side is a straight river and needs no fence. Find the dimensions that give the maximum area, and the maximum area.

Solution

Let the side parallel to the river be yy m and the two sides perpendicular to it be xx m each. The fencing gives 2x+y=3002x + y = 300, so y=300−2xy = 300 - 2x.

A=xy=x(300−2x)=300x−2x2A = xy = x(300 - 2x) = 300x - 2x^2dAdx=300−4x=0⇒x=75\frac{dA}{dx} = 300 - 4x = 0 \quad\Rightarrow\quad x = 75

d2Adx2=−4<0\dfrac{d^2A}{dx^2} = -4 < 0, so this is a maximum.

Then y=300−150=150y = 300 - 150 = 150. The enclosure is 7575 m by 150150 m (the side along the river is 150150 m), and the maximum area is 75×150=11 250 m275 \times 150 = 11\,250\ \text{m}^2.

The largest open box

A square sheet of card has side 3030 cm. A square of side xx cm is cut from each corner, and the sides are folded up to make an open box.

(a) Show that the volume of the box is V=x(30−2x)2V = x(30 - 2x)^2.

(b) Find the value of xx that gives the maximum volume, and the maximum volume.

Solution

(a) After folding, the base is a square of side 30−2x30 - 2x and the height is xx, so V=x(30−2x)2V = x(30 - 2x)^2.

(b) Expand: V=x(900−120x+4x2)=4x3−120x2+900xV = x(900 - 120x + 4x^2) = 4x^3 - 120x^2 + 900x.

dVdx=12x2−240x+900=12(x2−20x+75)=12(x−5)(x−15)\frac{dV}{dx} = 12x^2 - 240x + 900 = 12(x^2 - 20x + 75) = 12(x - 5)(x - 15)

So x=5x = 5 or x=15x = 15. But x=15x = 15 uses the whole sheet and gives V=0V = 0, so reject it. (In context 0<x<150 < x < 15.)

d2Vdx2=24x−240=−120<0\dfrac{d^2V}{dx^2} = 24x - 240 = -120 < 0 at x=5x = 5, so x=5x = 5 gives a maximum.

V=5(30−10)2=5×400=2000 cm3V = 5(30 - 10)^2 = 5 \times 400 = 2000\ \text{cm}^3.

y = x (30 - 2x)^2 (5, 2000)
A sector with fixed perimeter

A sector of a circle has radius rr cm and angle θ\theta radians. Its perimeter is 2020 cm.

(a) Show that the area of the sector is A=10r−r2A = 10r - r^2.

(b) Find the maximum area and the corresponding value of θ\theta.

Solution

(a) Using circular measure, the arc length is rθr\theta, so the perimeter is 2r+rθ=202r + r\theta = 20, giving rθ=20−2rr\theta = 20 - 2r. The area is

A=12r2θ=12r(rθ)=12r(20−2r)=10r−r2A = \tfrac{1}{2}r^2\theta = \tfrac{1}{2}r(r\theta) = \tfrac{1}{2}r(20 - 2r) = 10r - r^2

(b) dAdr=10−2r=0\dfrac{dA}{dr} = 10 - 2r = 0 gives r=5r = 5. d2Adr2=−2<0\dfrac{d^2A}{dr^2} = -2 < 0, so this is a maximum.

Maximum area =50−25=25 cm2= 50 - 25 = 25\ \text{cm}^2. From rθ=20−2r=10r\theta = 20 - 2r = 10, θ=2\theta = 2 radians.

A can using the least metal

A closed cylindrical can has radius rr cm and height hh cm, and its volume is 500 cm3500\ \text{cm}^3.

(a) Show that the total surface area is S=2πr2+1000rS = 2\pi r^2 + \dfrac{1000}{r}.

(b) Find the value of rr for which SS is a minimum, and the minimum surface area, giving answers to 33 significant figures.

Solution

(a) The volume gives πr2h=500\pi r^2 h = 500, so h=500πr2h = \dfrac{500}{\pi r^2}. The surface area is two circles plus the curved surface:

S=2πr2+2πrh=2πr2+2πr⋅500πr2=2πr2+1000rS = 2\pi r^2 + 2\pi r h = 2\pi r^2 + 2\pi r \cdot \frac{500}{\pi r^2} = 2\pi r^2 + \frac{1000}{r}

(b) S=2πr2+1000r−1S = 2\pi r^2 + 1000r^{-1}, so

dSdr=4πr−1000r2=0⇒r3=10004π=250π\frac{dS}{dr} = 4\pi r - \frac{1000}{r^2} = 0 \quad\Rightarrow\quad r^3 = \frac{1000}{4\pi} = \frac{250}{\pi}r=250π3≈4.30r = \sqrt[3]{\frac{250}{\pi}} \approx 4.30

d2Sdr2=4π+2000r3>0\dfrac{d^2S}{dr^2} = 4\pi + \dfrac{2000}{r^3} > 0 for all r>0r > 0, so this is a minimum.

S=2π(4.301)2+10004.301≈116.2+232.5≈349 cm2S = 2\pi(4.301)^2 + \dfrac{1000}{4.301} \approx 116.2 + 232.5 \approx 349\ \text{cm}^2.

(The corresponding height is h≈8.60h \approx 8.60 cm, twice the radius: the most economical can is as tall as it is wide.)

Shortest distance to a curve

PP is a point on the curve y=xy = \sqrt{x} and AA is the point (4,0)(4, 0). Find the shortest distance from AA to the curve.

Solution

Let PP be (x,x)(x, \sqrt{x}). Then

AP2=(x−4)2+(x)2=x2−8x+16+x=x2−7x+16AP^2 = (x - 4)^2 + (\sqrt{x})^2 = x^2 - 8x + 16 + x = x^2 - 7x + 16

Minimise D=AP2D = AP^2 instead of APAP:

dDdx=2x−7=0⇒x=72\frac{dD}{dx} = 2x - 7 = 0 \quad\Rightarrow\quad x = \frac{7}{2}

d2Ddx2=2>0\dfrac{d^2D}{dx^2} = 2 > 0, a minimum.

D=494−492+16=154D = \dfrac{49}{4} - \dfrac{49}{2} + 16 = \dfrac{15}{4}, so the shortest distance is 154=152≈1.94\sqrt{\dfrac{15}{4}} = \dfrac{\sqrt{15}}{2} \approx 1.94.

A window with a triangular top

A window consists of a rectangle of width xx m and height yy m, with an equilateral triangle of side xx m on top. The total perimeter of the window is 1010 m.

(a) Show that the area of the window is A=5x−6−34x2A = 5x - \dfrac{6 - \sqrt{3}}{4}x^2.

(b) Find the exact value of xx for which AA has a stationary value, and determine its nature.

Solution

(a) The perimeter is the two vertical sides, the bottom and the two slanting sides of the triangle: 2y+3x=102y + 3x = 10, so y=10−3x2y = \dfrac{10 - 3x}{2}.

The triangle has height 32x\dfrac{\sqrt{3}}{2}x, so its area is 12⋅x⋅32x=34x2\tfrac{1}{2} \cdot x \cdot \dfrac{\sqrt{3}}{2}x = \dfrac{\sqrt{3}}{4}x^2.

A=x⋅10−3x2+34x2=5x−32x2+34x2=5x−6−34x2A = x \cdot \frac{10 - 3x}{2} + \frac{\sqrt{3}}{4}x^2 = 5x - \frac{3}{2}x^2 + \frac{\sqrt{3}}{4}x^2 = 5x - \frac{6 - \sqrt{3}}{4}x^2

(b)

dAdx=5−6−32x=0⇒x=106−3\frac{dA}{dx} = 5 - \frac{6 - \sqrt{3}}{2}x = 0 \quad\Rightarrow\quad x = \frac{10}{6 - \sqrt{3}}

Rationalising, x=10(6+3)33≈2.34x = \dfrac{10(6 + \sqrt{3})}{33} \approx 2.34.

d2Adx2=−6−32<0\dfrac{d^2A}{dx^2} = -\dfrac{6 - \sqrt{3}}{2} < 0 (since 3<6\sqrt{3} < 6), so this is a maximum. The maximum area is about 5.86 m25.86\ \text{m}^2.

Watch out

Differentiating with two variables still present. A=xyA = xy cannot be differentiated with respect to xx until yy has been replaced using the constraint.

Giving only xx. If the question asks for the maximum area, you must substitute back to find it. Read the final line of the question again before you stop.

Keeping impossible solutions. In Example 2, x=15x = 15 gives zero volume. Reject it with a reason.

No justification. "This is a maximum" without the sign of the second derivative (or another valid argument) loses the mark.

Forgetting a face or edge. Open boxes have no lid; fencing against a wall has one side missing; closed cylinders have two circular ends. Check your expression against the diagram.

Exam tip
  • "Show that" parts give you the function. Even if you cannot derive it, use the given result for the rest of the question: the calculus marks are still available.
  • The derivative must be correct before the method mark for solving is awarded in some schemes, so differentiate carefully, rewriting 1000r\dfrac{1000}{r} as 1000r−11000r^{-1} first.
  • Nature: write "d2Sdr2=4π+2000r3>0\dfrac{d^2S}{dr^2} = 4\pi + \dfrac{2000}{r^3} > 0, so minimum". If the sign is obvious for all positive values, say why.
  • Accuracy: when the stationary value is not exact, keep full calculator accuracy for rr when computing SS. Rounding rr to 4.34.3 first changes the third significant figure in some problems.
  • Context: state the answer in words, with units, for example "maximum volume 2000 cm32000\ \text{cm}^3 when x=5x = 5".
Summary
  • Optimisation = write the quantity in one variable, then find its stationary point.
  • Use the constraint to eliminate the second variable.
  • Set dQdx=0\dfrac{dQ}{dx} = 0, solve, and reject values impossible in context.
  • Justify the nature, usually with d2Qdx2\dfrac{d^2Q}{dx^2} (negative for maximum, positive for minimum).
  • Minimise d2d^2 instead of dd for shortest distances.
  • Finish by answering exactly what was asked: dimensions, the optimal value, or both, with units.

Practice questions

Question
  1. The positive numbers xx and yy satisfy x+y=12x + y = 12. Find the maximum value of P=xy2P = xy^2.
  2. An open box has a square base of side xx cm and height hh cm, and its volume is 32 cm332\ \text{cm}^3. Show that the external surface area is S=x2+128xS = x^2 + \dfrac{128}{x}, and find the dimensions that minimise SS.
  3. A rectangle has two vertices on the xx-axis and two on the curve y=12−x2y = 12 - x^2, symmetrical about the yy-axis. Find the maximum area of the rectangle.
  4. A closed cuboid has a base measuring xx cm by 2x2x cm and a volume of 72 cm372\ \text{cm}^3. Show that its surface area is S=4x2+216xS = 4x^2 + \dfrac{216}{x}, and find the minimum surface area.
  5. Find the coordinates of the points on the curve y=x2y = x^2 that are closest to the point (0,2)(0, 2), and the shortest distance.
  6. A solid cylinder has radius rr cm and height hh cm, and its total surface area is 150π cm2150\pi\ \text{cm}^2. Show that its volume is V=π(75r−r3)V = \pi(75r - r^3), and find the maximum volume.
  7. A sector of a circle has radius rr cm, angle θ\theta radians and area 16 cm216\ \text{cm}^2. Show that its perimeter is P=2r+32rP = 2r + \dfrac{32}{r}, and find the minimum perimeter and the corresponding θ\theta.
  8. A window is a rectangle of width 2r2r m with a semicircle of radius rr m on top. The perimeter of the window is 88 m. Show that its area is A=8r−(2+π2)r2A = 8r - \left(2 + \dfrac{\pi}{2}\right)r^2 and find the maximum area, giving an exact answer.
  9. A straight line with negative gradient passes through the point (2,4)(2, 4) and meets the positive xx- and yy-axes at AA and BB. Let the gradient be −m-m, where m>0m > 0. Show that the area of triangle OABOAB is 8+2m+8m8 + 2m + \dfrac{8}{m}, and find the minimum area.
Answers
  1. x=12−yx = 12 - y, so P=(12−y)y2=12y2−y3P = (12 - y)y^2 = 12y^2 - y^3. dPdy=24y−3y2=3y(8−y)=0\dfrac{dP}{dy} = 24y - 3y^2 = 3y(8 - y) = 0 gives y=8y = 8 (y=0y = 0 is rejected). d2Pdy2=24−6y=−24<0\dfrac{d^2P}{dy^2} = 24 - 6y = -24 < 0, maximum. x=4x = 4, P=4×64=256P = 4 \times 64 = 256.

  2. x2h=32x^2 h = 32, so h=32x2h = \dfrac{32}{x^2}. Open box: base plus four sides, S=x2+4xh=x2+128xS = x^2 + 4xh = x^2 + \dfrac{128}{x}. dSdx=2x−128x2=0\dfrac{dS}{dx} = 2x - \dfrac{128}{x^2} = 0 gives x3=64x^3 = 64, x=4x = 4. d2Sdx2=2+256x3>0\dfrac{d^2S}{dx^2} = 2 + \dfrac{256}{x^3} > 0, minimum. The base is 44 cm by 44 cm and the height is 22 cm (S=48 cm2S = 48\ \text{cm}^2).

  3. With vertices (±x,0)(\pm x, 0) and (±x,12−x2)(\pm x, 12 - x^2), A=2x(12−x2)=24x−2x3A = 2x(12 - x^2) = 24x - 2x^3. dAdx=24−6x2=0\dfrac{dA}{dx} = 24 - 6x^2 = 0 gives x=2x = 2. d2Adx2=−12x=−24<0\dfrac{d^2A}{dx^2} = -12x = -24 < 0, maximum. A=4×8=32A = 4 \times 8 = 32.

  4. 2x2h=722x^2 h = 72, so h=36x2h = \dfrac{36}{x^2}. S=2(2x2)+2(xh)+2(2xh)=4x2+6xh=4x2+216xS = 2(2x^2) + 2(xh) + 2(2xh) = 4x^2 + 6xh = 4x^2 + \dfrac{216}{x}. dSdx=8x−216x2=0\dfrac{dS}{dx} = 8x - \dfrac{216}{x^2} = 0 gives x3=27x^3 = 27, x=3x = 3. d2Sdx2=8+432x3>0\dfrac{d^2S}{dx^2} = 8 + \dfrac{432}{x^3} > 0, minimum. S=36+72=108 cm2S = 36 + 72 = 108\ \text{cm}^2.

  5. For a point (x,x2)(x, x^2), D=d2=x2+(x2−2)2=x4−3x2+4D = d^2 = x^2 + (x^2 - 2)^2 = x^4 - 3x^2 + 4. dDdx=4x3−6x=2x(2x2−3)=0\dfrac{dD}{dx} = 4x^3 - 6x = 2x(2x^2 - 3) = 0 gives x=0x = 0 or x2=32x^2 = \tfrac{3}{2}. d2Ddx2=12x2−6\dfrac{d^2D}{dx^2} = 12x^2 - 6: at x=0x = 0 it is −6-6 (a local maximum of distance, d=2d = 2); at x2=32x^2 = \tfrac{3}{2} it is 12>012 > 0, minimum. D=94−92+4=74D = \tfrac{9}{4} - \tfrac{9}{2} + 4 = \tfrac{7}{4}, so the shortest distance is 72≈1.32\dfrac{\sqrt{7}}{2} \approx 1.32, at (±32,32)\left(\pm\sqrt{\tfrac{3}{2}}, \tfrac{3}{2}\right).

  6. 2πr2+2πrh=150π2\pi r^2 + 2\pi rh = 150\pi, so h=75−r2rh = \dfrac{75 - r^2}{r}. V=πr2h=πr(75−r2)=π(75r−r3)V = \pi r^2 h = \pi r(75 - r^2) = \pi(75r - r^3). dVdr=π(75−3r2)=0\dfrac{dV}{dr} = \pi(75 - 3r^2) = 0 gives r=5r = 5. d2Vdr2=−6πr<0\dfrac{d^2V}{dr^2} = -6\pi r < 0, maximum. V=π(375−125)=250π≈785 cm3V = \pi(375 - 125) = 250\pi \approx 785\ \text{cm}^3.

  7. 12r2θ=16\tfrac{1}{2}r^2\theta = 16, so rθ=32rr\theta = \dfrac{32}{r} and P=2r+rθ=2r+32rP = 2r + r\theta = 2r + \dfrac{32}{r}. dPdr=2−32r2=0\dfrac{dP}{dr} = 2 - \dfrac{32}{r^2} = 0 gives r=4r = 4. d2Pdr2=64r3>0\dfrac{d^2P}{dr^2} = \dfrac{64}{r^3} > 0, minimum. P=8+8=16P = 8 + 8 = 16 cm, and θ=3216=2\theta = \dfrac{32}{16} = 2 radians.

  8. The perimeter is the base 2r2r, two sides hh and the semicircular arc πr\pi r: 2r+2h+πr=82r + 2h + \pi r = 8, so 2h=8−2r−πr2h = 8 - 2r - \pi r. A=2rh+12πr2=r(8−2r−πr)+12πr2=8r−(2+π2)r2A = 2rh + \tfrac{1}{2}\pi r^2 = r(8 - 2r - \pi r) + \tfrac{1}{2}\pi r^2 = 8r - \left(2 + \tfrac{\pi}{2}\right)r^2. dAdr=8−(4+π)r=0\dfrac{dA}{dr} = 8 - (4 + \pi)r = 0 gives r=84+πr = \dfrac{8}{4 + \pi}. d2Adr2=−(4+π)<0\dfrac{d^2A}{dr^2} = -(4 + \pi) < 0, maximum. At this rr, (2+π2)r2=12(4+π)r⋅r=4r\left(2 + \tfrac{\pi}{2}\right)r^2 = \tfrac{1}{2}(4 + \pi)r \cdot r = 4r, so A=8r−4r=4r=324+π≈4.48 m2A = 8r - 4r = 4r = \dfrac{32}{4 + \pi} \approx 4.48\ \text{m}^2.

  9. The line is y−4=−m(x−2)y - 4 = -m(x - 2). At y=0y = 0: x=2+4mx = 2 + \dfrac{4}{m}. At x=0x = 0: y=4+2my = 4 + 2m. Area =12(2+4m)(4+2m)=12(8+4m+16m+8)=8+2m+8m= \tfrac{1}{2}\left(2 + \dfrac{4}{m}\right)(4 + 2m) = \tfrac{1}{2}\left(8 + 4m + \dfrac{16}{m} + 8\right) = 8 + 2m + \dfrac{8}{m}. dAdm=2−8m2=0\dfrac{dA}{dm} = 2 - \dfrac{8}{m^2} = 0 gives m=2m = 2. d2Adm2=16m3>0\dfrac{d^2A}{dm^2} = \dfrac{16}{m^3} > 0, minimum. Minimum area =8+4+4=16= 8 + 4 + 4 = 16.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action