Exercise 6.3 · Q13: Sum 24, largest product: the numbers and
Find two numbers whose sum is 24 and whose product is as large as possible.
Let the numbers be and ( real). Their product is
gives .
for all , so : is a point of maxima.
The numbers are and .
Want the reason behind every step, the basics and the checks?
The condition "sum is 24" ties the two numbers together: once one is chosen, the other is fixed. So the product is a function of one variable, and we can maximise it with derivatives. Because the question does not say the numbers are positive, the variable may be any real number; we must show the answer beats every real choice, not just nearby ones.
- Given
- Two (real) numbers with sum 24.
- To find
- The two numbers whose product is the largest possible.
- Plan
- Call the numbers and ; write the product ; find where ; use the second derivative test for a local maximum and the sign of on the whole real line to show it is the largest product of all.
Basics you need
A condition such as "" lets us replace by , so the quantity to optimise depends on alone. Basics: building the function to optimise
If and , then is a point of local maxima. Lesson: derivative tests
To show a value is the largest on the whole allowed range, show increases up to that point and decreases after it (sign of , Theorem 1, Section 6.3). Lesson: optimisation problems
Solution
Choose the variable and its allowed range
Let one number be . Since the sum is 24, the other number is . The question puts no other restriction on the numbers, so
Every pair of numbers with sum 24 has the form and for exactly one (take to be the first number). So maximising over all real is the same as maximising over all such pairs.The product as a function of
Product means multiply the two numbers. Expanding makes it easy to differentiate term by term.by the distributive law. Basics: algebraCritical point
is a polynomial, differentiable everywhere, so its only critical point is where , namely .Critical point: or not differentiable (Note after Theorem 2, Section 6.4). Lesson: maxima and minimaSecond derivative test
, so by the second derivative test (Theorem 4) is a point of local maxima of .
and : the graph is flat at and bends downward there, so it is a peak.Theorem 4(i), Section 6.4. Lesson: derivative testsIt is the largest product of all
The sign of is the sign of :
- for : , so is increasing on ;
- for : , so is decreasing on .
Hence for every real . The same fact can be seen without calculus by completing the square:
with equality only at .
is a parabola opening downward with its vertex at . Every other choice of , including negative numbers, gives a smaller product. The second derivative test only speaks about points near 12. The question asks for the largest product overall, so we need the global argument: rises all the way up to 12 and falls all the way after it.Answer the question
, and the other number is . The largest product is .
The question asks for the two numbers, so state both, with the product as a check.Answer in the words of the question. Basics: building the function
The numbers are 12 and 12; their product 144 is larger than that of any other pair with sum 24. (Textbook answer: 12, 12.)
, , and : all smaller than . Each falls short of 144 by exactly the square of its distance from 12: for example .
- Assuming the numbers must be positive. The question does not say so. The argument above covers every real number, so the answer stands either way.
- Stopping at the second derivative test. It proves a local maximum; the sign of (or the completed square) proves it is the largest.
- Answering 144. The question asks for the two numbers.
- For a fixed sum, the product is largest when the two numbers are equal.
- Two-number problems: use the condition to write one number in terms of the other, then optimise a function of one variable over its allowed range.
- Variations with powers and positivity: Question 14, Question 15, and the sum of cubes in Question 16.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Writing the quantity as a function of one variable | Steps 1, 2 | Section 6.4 examples (Lesson: optimisation problems) |
| Critical point | Step 3 | Note after Theorem 2, Section 6.4 (Lesson: maxima and minima) |
| Second derivative test | Step 4 | Theorem 4, Section 6.4 (Lesson: derivative tests) |
| Sign of decides increasing or decreasing | Step 5 | Theorem 1 and the Remark after it, Section 6.3 (Lesson: increasing and decreasing) |
| Completing the square | Step 5 | Algebra (Basics: algebra) |
| Answer 12, 12 | Result | Answers to Exercise 6.3, Question 13 |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →