Concept understanding — Maximizing Product Given Sum
The Core Intuition
You have a fixed length of rope and want the largest rectangular garden. The perimeter is fixed, so the sum of length and width is constant — but you're asked about the product of two numbers whose sum is fixed. This is the classic "Maximizing Product Given Sum" problem, appearing in optimisation, inequality proofs, and why a square beats a rectangle for area.
Suppose two numbers add up to 10:
1 and 9 → product = 9
2 and 8 → product = 16
3 and 7 → product = 21
4 and 6 → product = 24
5 and 5 → product = 25
As the numbers get closer together, the product grows; the maximum is at equality. For a fixed sum, the product is maximised when the numbers are as balanced as possible.
Note
This holds for any count of positive numbers. Three numbers summing to 30 give the maximum product when each is 10.
The Precise Statement
Maximizing Product Given Sum
For positive reals x1,…,xn with fixed sum S, the product x1x2⋯xn is maximised when all are equal:
x1=x2=⋯=xn=nS
This follows from the AM–GM inequality:
nx1+⋯+xn≥nx1⋯xn
with equality iff all xi are equal. Since the left side is fixed at S/n, the product is bounded above by (S/n)n, achieved exactly when all numbers are equal.
Important
"Positive numbers" is crucial. If negatives are allowed, the product can be made arbitrarily large in magnitude (e.g. x=1000, y=−990: sum 10, product −990000). For non-negative numbers the result holds, but the maximum is zero if any number is zero.
Why This Matters for Exams
Three main forms:
Direct: "Find two positive numbers whose sum is 20 with maximum product." → 10 and 10.
Word problems: "100 m of fencing for a rectangular pen — maximise area." Length + width = 50, so a 25 m square is best.
Inequality proofs: "For positive a,b with a+b=1, prove ab≤1/4." The two-number case.
Watch out
A common mistake: applying this to perimeter problems without halving. If all four sides sum to a fixed value, length + width is half of it. Always check what is being summed.
Writing the area as a function of one side using the perimeter constraint x+y=10 and maximizing A(x)=10x−x2 via the first and second derivative tests shows the area is greatest when the rectangle is a square. …
Q.Find two numbers whose sum is 24 and whose product is as large as possible.
OR
Find the equation of the tangent and normal to the curve x2/3+y2/3=2 at (1,1).
›Reveal solutionSolution
Maximise P=x(24−x) using calculus for Part 1; differentiate the curve implicitly and use point-slope form for Part 2 (OR).
Part 1: Let the two numbers be x and 24−x. Their product:
P(x)=x(24−x)=24x−x2
P′(x)=24−2x=0⇒x=12
P′′(x)=−2<0⇒maximum at x=12
The two numbers are 12 and 24−12=12; maximum product =12×12=144.
OR — Part 2: Curve x2/3+y2/3=2 at (1,1). Differentiating implicitly: