UPSC CSAT 2025 Q76: Maximum Product with Fixed Sum — Solved

Let p + q = 10, where p, q are integers.

Value-I = Maximum value of p × q when p, q are positive integers.

Value-II = Maximum value of p × q when p ≥ −6, q ≥ −4.

Which one of the following is correct ?

  1. Value-I < Value-II
  2. Value-II < Value-I
  3. Value-I = Value-II
  4. Cannot be determined due to insufficient data

Answer: (c) Value-I = Value-II

Solution

  1. Set up the problem. The sum is fixed: p + q = 10, so q = 10 − p. The product is p × q = p × (10 − p) = 10p − p².
  2. Rewrite the product to see where it peaks. 10p − p² = 25 − (p − 5)². Since (p − 5)² is never negative, the product can never be more than 25. It equals 25 only when p = 5, which gives q = 5.
  3. Value-I (p, q positive integers). The possible pairs are (1, 9), (2, 8), (3, 7), (4, 6), (5, 5), (6, 4), (7, 3), (8, 2), (9, 1). The products are 9, 16, 21, 24, 25, 24, 21, 16, 9. The largest is 5 × 5 = 25. So Value-I = 25.
  4. Value-II (p ≥ −6, q ≥ −4). First find the full range of p. From q ≥ −4: 10 − p ≥ −4, so p ≤ 14. Together with p ≥ −6, p can be any integer from −6 to 14.
  5. Check whether the peak point is allowed. p = 5 lies between −6 and 14, and q = 5 is at least −4. So the pair (5, 5) is allowed, and by step 2 nothing can beat 25.
  6. Check the new pairs that negatives allow, to be sure they do not help. - p = −6, q = 16: product = −96. - p = −1, q = 11: product = −11. - p = 0, q = 10: product = 0. - p = 14, q = −4: product = −56. - p = 11, q = −1: product = −11. When one number is negative, the other is positive (their sum is 10), so the product is negative. Both cannot be negative, because two negative numbers cannot add up to 10. So allowing negative values only adds smaller products. It never adds a bigger one.

  7. So Value-II = 25.

  8. Compare: Value-I = 25 and Value-II = 25.

Answer: Value-I = Value-II.

Option-wise explanation

  • a: incorrect — This would need Value-II to be more than 25. The trap is assuming that a wider range of allowed values must give a bigger maximum. Here the extra pairs all have one negative number, so their products are negative (for example −6 × 16 = −96).
  • b: incorrect — This would need Value-II to be below 25. That would be true only if the pair (5, 5) were excluded. It is not excluded, since 5 ≥ −6 and 5 ≥ −4. Widening the range can never lower a maximum. Students who compare the smallest product (−96) by mistake fall for this option.
  • c: correct — Both maximums occur at p = q = 5, which satisfies both sets of conditions, so both values are 25. Every new pair allowed in the second case has one negative number and gives a negative product.
  • d: incorrect — The data are enough. The conditions q ≥ −4 and p ≥ −6 limit p to the integers from −6 to 14, so the set of pairs is finite. The trap is thinking that once negatives are allowed, the product has no limit. In fact, two negative numbers cannot add up to 10.

How to eliminate

Fixed sum, maximum product: the numbers should be as equal as possible, so 5 and 5 give 25. Check whether (5, 5) is allowed in both cases. It is, since 5 is positive and also above −6 and −4. That gives Value-II ≥ 25. Next, ask whether negatives can help. A negative product cannot help. Making the product positive would need both numbers negative, and two negatives cannot add up to 10. So Value-II = 25 as well. Cross out the 'insufficient data' option, because the bounds make the set finite. Cross out 'Value-II < Value-I', because adding allowed values can never lower a maximum. About 30–45 seconds. Attempt this one first: the risk is in overthinking, not in the calculation.

Know more

Fixed sum, maximum product

If x + y = S, then x × y = (S/2)² − (x − S/2)². So the product is largest when the two numbers are as close to each other as possible.

Case Best pair Maximum product
S even, integers S/2, S/2 S²/4
S odd, integers (S−1)/2, (S+1)/2 (S² − 1)/4
Real numbers S/2, S/2 S²/4

How to handle extra conditions (bounds, negatives):

  1. Find the balanced point (S/2, S/2).
  2. If it is allowed, it is the answer. Widening the allowed range never reduces a maximum.
  3. If it is not allowed, take the allowed pair closest to it, usually at a boundary.
  4. For a positive sum S, one negative number makes the product negative, so negatives never help a maximum. They matter only for the minimum, which is found at the extreme ends.

Worked variant: a + b = 11, a, b integers, a ≥ 7. The balanced point 5.5 is not allowed, and the nearest allowed value is a = 7. That gives b = 4, and the maximum is 7 × 4 = 28. Without the bound, 5 × 6 = 30 would win.

Contrast (fixed product, minimum sum): for positive x × y = P, the sum is smallest when x = y = √P. The same idea applies: balanced numbers give the best result.