Theorem
A product with a fixed sum is largest when the factors are equal
Algebra • Expressions • Maximum and Minimum Values
Formula
Among pairs of non-negative numbers with a fixed sum , the product is greatest when and falls away as the two move apart; over the integers with odd the maximum is attained at the two nearest integers and , which tie.
How to use it
- 1Check first that the two factors really do have a constant sum, for instance and .
- 2For integers with an odd sum, expect a tie between the two middle values rather than a single winner.
- 3Read backwards, the same statement gives the least sum for a fixed product.
Worked example
Two positive integers add to . What is their greatest possible product?
Step-by-step
- 1The product is , a pair with fixed sum .
Why: Write the pair in terms of a single variable.
- 2is odd, so the nearest available pair is and .
Why: The exact maximum at is not open to integers.
- 3
Answer
Watch out
It applies only when the sum is fixed; with a fixed difference the product grows without bound. When the integer sum is odd the maximum is a genuine tie at two values, and reporting only one of them is the usual error.