Why Fixed Perimeter Creates an Optimization Problem
A rectangle’s area depends on two side lengths, while its perimeter records the total length around its boundary. If the perimeter is fixed, making one side longer forces the other side to become shorter. The question is whether some balance of the two lengths produces a greatest possible area, and, if so, which rectangle achieves it.
Let the fixed perimeter be \(P\), measured in units of length. Write the side lengths as \(x\) and \(y\), also measured in units of length. We consider ordinary, nondegenerate rectangles, so both side lengths must be positive. The perimeter condition and area formula are
We will use the perimeter condition to express the area in terms of just one side length. That gives an objective function on its feasible domain. An algebraic identity will then show not only which dimensions give the largest area, but why no other rectangle can tie that maximum.
Build the Area Function and Its Feasible Domain
Assume \(P>0\). Dividing the perimeter equation by \(2\) gives \(x+y=P/2\). Solving for \(y\), then substituting into \(A=xy\), gives
The formula is valid only when the side lengths describe a feasible rectangle. Since \(x>0\) and \(y>0\), the condition \(y=P/2-x>0\) requires \(x<P/2\). Thus the feasible domain is the open interval \(0<x<P/2\). The units are consistent: each term in the area function is a product of lengths, so \(A_P(x)\) is measured in square units.
The endpoints \(x=0\) and \(x=P/2\) are not feasible: at either endpoint one side would have length zero, so the shape would be degenerate rather than a rectangle. They can be useful for understanding how the area behaves near the edge of the domain, but they are not candidate rectangles.
The Algebraic Identity That Locates the Maximum
Expand the area function and complete the square. Every step is an equality, so this rewrites the same objective rather than approximating it:
A square is nonnegative, so \((x-P/4)^2\geq 0\). Subtracting a nonnegative quantity from \(P^2/16\) shows that the area cannot exceed \(P^2/16\). Equality holds exactly when that square is zero, which requires \(x=P/4\). The other side is then \(y=P/2-P/4=P/4\). This value of \(x\) is feasible because \(P>0\) implies \(0<P/4<P/2\).
This argument proves a global maximum directly: it compares the area at every feasible \(x\) with the same upper bound, and it identifies exactly when equality occurs. It also confirms that the maximum is attained inside the feasible domain, even though that domain is open. The nonattainment of the two boundary values does not prevent the interior square from attaining the maximum.
Calculus Check
The completed-square identity is enough to prove the result. Differentiation provides a useful check on the location of the optimum. On the feasible interval,
The only critical point satisfies \(A_P'(x)=0\), so \(P/2-2x=0\) and \(x=P/4\). It lies in the feasible interval. Since \(A_P''(x)=-2<0\), the graph is concave down; in this case, the critical point is a maximum. Substitution into the area function gives \(A_P(P/4)=(P/4)(P/4)=P^2/16\). The algebraic identity supplies the stronger direct comparison with every feasible rectangle and shows that equality occurs only at the square.
Worked Examples
Worked Example: A Rectangle with Perimeter 40 Centimeters
Find the greatest possible area of a rectangle whose perimeter is \(40\) centimeters, and determine its dimensions.
Set \(P=40\text{ cm}\). The perimeter equation is \(2x+2y=40\), so \(x+y=20\) and \(y=20-x\). Positivity of both sides requires \(0<x<20\), with \(x\) measured in centimeters. The area function is
Its derivative is \(A_{40}'(x)=20-2x\). Setting this equal to zero gives \(20-2x=0\), so \(2x=20\) and \(x=10\text{ cm}\). Then \(y=20-10=10\text{ cm}\). The area is \(10\cdot10=100\text{ cm}^2\).
Check the perimeter: \(2(10)+2(10)=40\text{ cm}\), as required. Check the area: \(xy=(10)(10)=100\text{ cm}^2\). The general identity gives \(40^2/16=1600/16=100\text{ cm}^2\), confirming that this feasible square attains the greatest possible area.
Worked Example: Comparing Two Rectangles with Perimeter 30 Meters
Compare the area of a \(6\)-meter by \(9\)-meter rectangle with the greatest possible area for perimeter \(30\) meters.
First check feasibility: the perimeter of the given rectangle is \(2(6)+2(9)=12+18=30\text{ m}\). Its area is \(6\cdot9=54\text{ m}^2\). For this perimeter, the maximizing side length is \(P/4=30/4=7.5\text{ m}\), and the other side is also \(7.5\text{ m}\). The greatest area is therefore \(7.5\cdot7.5=56.25\text{ m}^2\).
The completed-square identity checks the comparison directly. Taking \(x=6\text{ m}\),
Thus the given rectangle has \(56.25-54=2.25\text{ m}^2\) less area than the square. The identity also shows why: its side length \(6\text{ m}\) differs from the maximizing side length \(7.5\text{ m}\), so the square term subtracts a positive amount. The perimeter and area calculations both check: the sides sum to \(15\text{ m}\), giving perimeter \(30\text{ m}\), and their product is \(54\text{ m}^2\).
Worked Example: Maximum Area for Perimeter 48 Feet
Find the maximum area for a rectangle with perimeter \(48\) feet, and use the identity to compare it with a rectangle whose sides are \(10\) feet and \(14\) feet.
The fixed-perimeter equation gives \(x+y=48/2=24\text{ ft}\). The square has sides \(24/2=12\text{ ft}\) each, so its area is \(12\cdot12=144\text{ ft}^2\). The theorem’s formula gives the same result: \(48^2/16=2304/16=144\text{ ft}^2\).
For the proposed comparison rectangle, verify the perimeter: \(2(10)+2(14)=20+28=48\text{ ft}\). Its area is \(10\cdot14=140\text{ ft}^2\). Using \(x=10\text{ ft}\) and \(P/4=12\text{ ft}\), the identity gives
The comparison rectangle is \(4\text{ ft}^2\) below the maximum. Its sides satisfy the perimeter constraint and their product agrees with the identity, checking both calculations.
Common Mistake: Treating a Boundary Shape as a Rectangle
A tempting but incorrect approach is to include \(x=0\) or \(x=P/2\) as feasible endpoints because the area function is defined there algebraically. For example, when \(P=40\text{ cm}\), substituting \(x=0\) gives \(A_{40}(0)=0(20-0)=0\text{ cm}^2\). That calculation evaluates the formula, but it does not describe a nondegenerate rectangle: the corresponding side lengths are \(0\text{ cm}\) and \(20\text{ cm}\).
The correction is to distinguish the formula’s endpoint values from the feasible shapes. The rectangle requires \(0<x<P/2\), so the endpoints are excluded. The maximizing value \(x=P/4\), by contrast, lies strictly inside the interval and gives two positive sides. Another common error is to say the maximum occurs when \(x=P/2\), perhaps because that is the largest feasible-looking value of \(x\). In fact, at that boundary the other side would be zero; moreover, the area identity shows that the maximum occurs at the midpoint \(x=P/4\), where the two sides are equal.
Why the Square Result Matters
The result is not just a pattern seen in a few examples. For every positive perimeter \(P\), the same identity writes the area as the fixed upper bound \(P^2/16\) minus a square. Any unequal rectangle has \(x\ne P/4\), so the square term is strictly positive and its area is strictly smaller. This establishes both the optimal dimensions and their uniqueness.
The proof also makes the role of the constraint clear. The two sides cannot vary independently: their sum is fixed at \(P/2\). Moving one side away from half that sum necessarily moves the other in the opposite direction. The algebra quantifies the resulting loss in area as \((x-P/4)^2\). This is why the square is not merely one possible maximizing shape; it is the only one that reaches the maximum.
Check Your Understanding
Use the fixed-perimeter model and the completed-square identity to answer these questions.
- For a fixed perimeter \(P>0\), derive the area function in terms of \(x\) and state its feasible domain.
- What are the side lengths and maximum area for perimeter \(64\) meters?
- Why are the values \(x=0\) and \(x=P/2\) excluded from the feasible domain?
- For perimeter \(40\) centimeters, use the identity to find the area of a rectangle with \(x=8\) centimeters and compare it with the maximum.
- What condition makes the completed-square upper bound an equality, and what does that condition imply about the rectangle?