Before the final
Where is the largest area, and why is the top flat?
Trade length for depth in a pen against a wall: the best pen is where the trade balances, so a small change there costs almost nothing, unless the wall runs out first.
Builds on the chain rule and logarithms.
The lesson as text
1. Same fence, same area?
You have m of fence for a rectangular pen against a long wall, which makes the fourth side. The pen runs m along the wall and its ends are m deep. Drag its far corner: the graph below draws its area, .
Question: As runs from to , what does the area do?
It rises, then falls. The same m of fence holds nothing at , a pen with no width, and nothing at , a pen with no depth. In between is a best pen, at the top of the graph.
The figure: A plan, to scale, of a pen against a wall: 8.0 m along the wall and 16.0 m deep, fenced on three sides with 40 m of fence. The wall runs the width of the figure. The area A(x) = x(40 − x)/2 against x. At x = 8.0 it is 128.0 m², and the tangent there has slope 12.0.
2. What a metre trades
Lengthen the pen by a metre along the wall. It gains a strip down the side, about square metres, but its ends shorten by half a metre, so it loses a strip along the front, square metres. While the gain beats the loss, the area grows.
Drag the corner until a metre along the wall gains as much as it loses.
At , : each metre gains m² and loses m², so the slope is . That is the best pen, m², twice as long as it is deep.
The figure: A plan, to scale, of a pen against a wall: 20.0 m along the wall and 10.0 m deep, fenced on three sides with 40 m of fence. The wall runs the width of the figure. Nudged 1.0 m along the wall, it gains a strip of 9.5 m² down the side and loses a strip of 10.0 m² along the front. The area A(x) = x(40 − x)/2 against x. At x = 20.0 it is 200.0 m², and the tangent there has slope 0.0.
3. Why the top is flat
At the top the gain and the loss balance, so a small change of shape barely changes the area. Here the best pen is nudged m along the wall, and its ends shorten by m.
Question: How much area does that nudge lose?
m². The side strip is m² and the front strip m²: only the corner the side strip misses is lost, . Halve the nudge and the loss falls to a quarter, m². Away from the top it is not small: from the same nudge gains m².
The figure: A plan, to scale, of a pen against a wall: 20.0 m along the wall and 10.0 m deep, fenced on three sides with 40 m of fence. The wall runs the width of the figure. Nudged 2.0 m along the wall, it gains a strip of 18.0 m² down the side and loses a strip of 20.0 m² along the front. The area A(x) = x(40 − x)/2 against x. At x = 20.0 it is 200.0 m², and the tangent there has slope 0.0.
4. A short wall
Now the wall is only m long and the pen must lie along it, so . Solving still gives : the amber pen, which runs past the end of the wall. Taking it without checking the domain is the slip.
Question: Which pen holds the most now?
: a pen by , m². On , stays positive: at the end of the wall a metre more would still gain m² and lose only . The critical point is outside the domain, so it is no candidate.
The figure: A plan, to scale, of a pen against a wall: 14.0 m along the wall and 13.0 m deep, fenced on three sides with 40 m of fence. The wall is 14.0 m long. In amber, the pen where A′ = 0, 20 m by 10 m, which runs past the end of the wall. The area A(x) = x(40 − x)/2 against x, solid on the wall's 14.0 m and dashed beyond it. At x = 14.0 it is 182.0 m², and the tangent there has slope 6.0. In amber, the top of the curve at (20, 200), outside the domain.
5. Check the ends
So the largest area is at a critical point inside the domain or at one of its ends. The pen drawn now is the best one for its wall. Drag the end of the wall.
Lengthen the wall until the best pen no longer uses all of it.
From m on, the critical point fits on the wall, and the best pen is by , m², however long the wall. Shorter than m, stays positive to the end and the best pen takes the whole wall.
The figure: A plan, to scale, of a pen against a wall: 20.0 m along the wall and 10.0 m deep, fenced on three sides with 40 m of fence. The wall is 26.0 m long. The area A(x) = x(40 − x)/2 against x, solid on the wall's 26.0 m and dashed beyond it. At x = 20.0 it is 200.0 m², and the tangent there has slope 0.0.
The film, as said, 1:46
- 0:00
m of fence makes three sides of a pen against a wall: m along it, ends m deep.
- 0:07
Run from short to long. The area rises to a top, then falls: the same fence does not hold the same area.
- 0:19
Add a metre along the wall. The pen gains a strip down the side, about m², and loses one along the front, m².
- 0:30
At a metre gains m² and loses : the area is still growing.
- 0:35
At a metre gains and loses , so : the best pen, by , m².
- 0:44
There a nudge barely matters. Lengthen by m: the side strip is m², the front strip , a loss of only .
- 0:54
Halve the nudge and the loss falls to a quarter, m². That is why the top of the graph is flat.
- 1:02
Now the wall is only m long. The pen must lie along it, so is at most .
- 1:12
The slip solves anyway and reports : the amber pen, which runs past the end of the wall.
- 1:18
On the wall's m the area only rises, so the best pen uses all of it: by , m².
- 1:28
Lengthen the wall and the best pen grows with it, up to m. From there it stays by .
- 1:39
The largest value is at a critical point inside the domain or at an end: find every candidate, and compare.