Introduction to Optimization
A tent from one sheet
A sheet of canvas meters wide and meters long is draped over a horizontal ridge rope along its center line. Each half slopes from the rope to the ground as a rectangle meters by meters. The two bottom edges are staked down parallel to the rope, and the ends are left open.
The spacing of the stakes sets the tent's shape. Staked meters apart, the ridge is meters high, and each triangular end has area square meters. Staked meters apart, the ridge is meters high, and the end's area is again square meters. Either way, the tent holds cubic meters.
A wide tent is low and a tall tent is narrow, so the volume depends on one choice, the spacing. Finding the spacing with the largest volume is an optimization problem: a quantity is made as large or as small as the situation allows.
The tent, step by step
The quantity to maximize is the tent's volume , in cubic meters. Let be half the distance between the staked edges and the height of the ridge, both in meters. Each end is a triangle with base and height , and the tent is meters long, so
The constraint is the canvas. Each slanted side is meters long, the hypotenuse of a right triangle with legs and , so . Since the height can't be negative, . Substituting it into gives the volume as a function of one variable,
For the domain, can't be negative, and the half-spacing can't be longer than the -meter side, so . Both ends of that interval are flat tents. At the halves hang straight down against each other, and at the canvas lies on the ground, so at both. Keeping them gives the closed interval .
The wide tent above has , and , which is , the volume found there.
Solving the tent problem
The function is continuous on and differentiable on . By the product and chain rules,
On the denominator is positive, so only where , at . The other root, , is outside the domain. The derivative is undefined at , which is already a candidate as an endpoint. The candidates are
since . By the Candidates Test, the absolute maximum of on is , at . The ridge height is then as well.
Stake the bottom edges meters apart. The ridge is then meters high, and the tent holds cubic meters, more than the of either tent above. Since , each half of the end is an isosceles right triangle, so the two sides of canvas meet at a right angle at the ridge.