| Extremes on a closed interval |
|---|
Lesson
The theory — Optimisation: the Box and the Can
Optimisation with a derivative: write the quantity you want largest or smallest as a function of one variable on the interval the problem allows, find where its derivative is zero, and compare the values there with the values at the ends of the interval. A differentiable function's largest and smallest values on a closed interval are among those candidates. A can's radius may be any positive number, so there are no ends to compare, and the sign of the derivative decides instead: negative at every point before the critical one and positive at every point after, the function falls and then rises, and the critical point is its least value on the whole range.
What each symbol means
x- the side of the square cut from each corner of the sheet, in cm
r- the radius of the can, in cm; its height then follows from the volume
k- what a cm² of end costs, measured in cm² of wall
- Assumes
- The sheet is square and the box has no lid. The can is a closed cylinder, and its metal is counted by area alone: no seams, no rims, no allowance for the thickness of the sheet.
Problems solved in full
-
The best box from a 24 cm square 3 steps
Cut equal squares from the corners of a 24 cm square sheet and fold up the sides. Which cut gives the box of largest volume, and what does it hold?
-
Write the volume in the cut x. The cut cannot pass half the side:
-
Differentiate with the product rule and take out the common factor:
-
Both roots are candidates, and so are the two ends of the range:
Answer
Cut 4 cm from each corner. The box is 16 cm square and 4 cm deep, and holds 1,024 cm³. The cut is a sixth of the side, as it is on every square sheet. The root x = 12 is a candidate too, and gives no box at all: the two cuts on each side meet and leave no base.
-
-
The same sheet, at most 3 cm deep 3 steps
The box from the 24 cm sheet has to fit a shelf, so it can be at most 3 cm deep. What is the best cut now, and is the derivative zero there?
Show solution
-
The volume is the same function on a shorter range:
-
Both factors of V′ stay positive across the range:
-
So the volume rises all the way to the limit, and the best box is at the end:
Answer
Cut 3 cm. The box holds 972 cm³, and the rate there is 108 cm³ per cm, not zero. Setting V′ = 0 gives x = 4, which is ruled out. The largest value sits at an end of the interval, and only checking the ends finds it.
-
-
The can of least metal 3 steps
A closed cylindrical can must hold 1000 cm³, and its ends are cut from the same sheet as its wall. Which radius uses the least metal, and how tall is that can?
Show solution
-
The volume fixes the height, which leaves the metal as a function of r alone:
-
Set M′(r) = 0:
-
The height and the metal. M′ is negative below this radius and positive above it, so this is the minimum:
Answer
r ≈ 5.42 cm and h ≈ 10.84 cm: the can is as tall as it is wide, and uses 553.6 cm² of metal. h = 2r is exact, not a coincidence of rounding: with πr³ = 500, h = 1000/(πr²) = 2r.
-
-
Lids stamped from squares 3 steps
The same 1000 cm³ can, but each end is stamped from a square of side 2r and the corners are thrown away. Counting the whole squares, which radius uses the least metal now?
Show solution
-
A cm² of end now costs the square’s area over the circle’s, 4/π, so the ends weigh more:
-
Set M′(r) = 0:
-
The metal, and the height:
Answer
r = 5 cm, 600 cm² of metal, and the can is 12.73 cm tall. The ends take 200 cm² and the wall 400 cm², half, as at every best can. Dearer ends make the best can narrower and taller: 1.27 diameters, which is 4/π.
-
-
Fencing against a wall 3 steps
A farmer has 60 m of fence to make a rectangular pen against a long wall, which serves as the fourth side. Which dimensions give the largest area?
Show solution
-
Let x be each side running out from the wall. The fence left for the side parallel to it is 60 − 2x, so the area is a function of x alone, on the range the fence allows:
-
Set A′ = 0:
-
Compare with the ends, where the pen has no area:
Answer
15 m out from the wall and 30 m along it, for 450 m². The side along the wall is twice the others. Without the wall the best pen is a square 15 m on a side, for only 225 m²: the wall saves a whole side of fence.
-
-
The point of y = √x nearest (3, 0) 3 steps
Find the point on the curve y = √x closest to the point (3, 0), and its distance.
Show solution
-
The distance from (3, 0) to (x, √x) has a root in it. Its square is smallest where the distance is, and has no root:
-
Differentiate and set it to zero:
-
The range has one end, x = 0. On the other side D² grows without bound, so compare the critical point with that end:
Answer
The nearest point is (2.5, √2.5) ≈ (2.5, 1.5811), at a distance √11/2 ≈ 1.6583. Minimising D² in place of D is allowed because the square root only ever grows, so both are smallest at the same x. Differentiating D itself by the chain rule gives the same x, with a root in every line.
-
-
The best box from a sheet of A4 4 steps
A sheet of A4 paper is 21 cm by 29.7 cm. Cut the same square from each corner, fold up the sides, and find the cut that gives the box of largest volume, and that volume. The page's sheets are square. Press A4's short side to see a 21 cm square, whose best cut is 3.5 cm and whose box holds 686 cm³.
Show solution
-
With a cut of x the base is 21 − 2x by 29.7 − 2x and the box is x deep. Multiplied out, for cuts up to half the short side:
-
Differentiate term by term:
-
Set V′(x) = 0 and use the quadratic formula. The number under the root is 16 × 699.39, which tidies it:
-
The second root is past 10.5 cm, where the short side is used up, so it is not a box. At both ends of the range the volume is 0, so the best box comes from the first root:
Answer
Cut 4.04 cm from each corner: the box is 12.92 cm by 21.62 cm and 4.04 cm deep, and it holds about 1,128.5 cm³, a little over a litre. The cut lies between a sixth of the short side, 3.5 cm, and a sixth of the long side, 4.95 cm, and is neither. For a sheet a by b the best cut is (a + b − √(a² − ab + b²))/6. On a square sheet the root is just a, and the formula collapses to the page's L/6.
-
Supplementary problems, answers only
-
Two positive numbers add up to 20. Which pair has the largest product?
Show answer
10 and 10, with product 100
-
Of all rectangles with a perimeter of 40 cm, which has the largest area?
Show answer
The 10 cm square, 100 cm²
-
An open-topped box with a square base must hold 32 m³. Which dimensions use the least material?
Show answer
A base 4 m by 4 m and a height of 2 m, using 48 m²
-
A firm’s profit from q units is P(q) = −2q² + 120q − 1000. Which output maximises the profit, and what is it?
Show answer
q = 30, with a profit of 800
-
Find the points of y = x² closest to (0, 2).
Show answer
(±√(3/2), 3/2), at a distance √7/2 ≈ 1.3229. The origin, where the derivative of D² is also zero, is a local maximum of the distance, at 2.
-
Find the largest value of x e^(−x) for x ≥ 0.
Show answer
1/e ≈ 0.3679, at x = 1
Learning path
Differentiation: how rates combine
References (2)
- The method in the definition and in the step-through (evaluate at the endpoints, find the critical points inside the interval, compare all the values: “the absolute extrema must occur at endpoints or critical points”), the Extreme Value Theorem (Theorem 4.1) and Fermat's theorem (Theorem 4.2) behind it: G. Strang and E. Herman, Calculus Volume 1, OpenStax (2016), section 4.3, “Maxima and Minima”.
- The open box worked on a rectangular sheet, 24 in. by 36 in., whose best cut is x = 10 − 2√7 ≈ 4.7 in. for about 1,825 in³ (Example 4.33, the same calculation as the page's A4 worked problem), and the applied-problem strategy's step that sets the domain from the physical problem before looking for the extremum (Step 5) and the remark that locating it “typically involves looking for critical points and evaluating a function at endpoints” (Step 6): G. Strang and E. Herman, Calculus Volume 1, OpenStax (2016), section 4.7, “Applied Optimization Problems”.