Class 12 Maths, Worked in Full Past papersGet updates
Chapter 6 · Application of Derivatives

Exercise 6.3 · Q15: x+y=35x+y=35⁠, largest x2y5x^2y^5⁠: x=10x=10⁠, y=25y=25

Exercise 6.3Optimisation · Section 6.4
The question

Find two positive numbers xx and yy such that their sum is 35 and the product x2y5x^2y^5 is a maximum.

Exam answer

From x+y=35x + y = 35⁠, y=35−xy = 35 - x⁠, where 0<x<350 < x < 35⁠. Let

f(x)=x2y5=x2(35−x)5f(x) = x^2y^5 = x^2(35 - x)^5

By the product rule,

f′(x)=2x(35−x)5−5x2(35−x)4=x(35−x)4(70−7x)=7x(35−x)4(10−x)\begin{aligned} f'(x) &= 2x(35 - x)^5 \\ &\quad - 5x^2(35 - x)^4 \\ &= x(35 - x)^4(70 - 7x) \\ &= 7x(35 - x)^4(10 - x) \end{aligned}

For 0<x<350 < x < 35⁠, f′(x)=0f'(x) = 0 gives x=10x = 10⁠.

In (0,10)(0, 10)⁠, f′(x)>0f'(x) > 0⁠. In (10,35)(10, 35)⁠, f′(x)<0f'(x) < 0⁠. So ff is greatest at x=10x = 10⁠.

x=10x = 10 and y=25y = 25⁠.

The answer key lists 25, 10 without saying which is xx⁠; the maximum needs x=10x = 10⁠, y=25y = 25⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Use the sum to write the product in terms of xx alone on the range 0<x<350 < x < 35⁠. The derivative factorises into pieces whose signs are obvious on that range; it changes sign only once, from ++ to −-⁠, so the single critical point gives the largest product of all.

Given, to find, and the plan
Given
x>0x > 0⁠, y>0y > 0 and x+y=35x + y = 35⁠.
To find
The xx and yy for which x2y5x^2y^5 is largest.
Plan
Put y=35−xy = 35 - x⁠, find the range of xx⁠, let f(x)=x2(35−x)5f(x) = x^2(35 - x)^5⁠; differentiate (product and chain rules), take out the common factors, find the critical point inside the range, and read the sign of f′f' on the whole range.

Basics you need

1Building the function and its range

Replace yy using the condition and state the allowed values of xx⁠. Basics: building the function to optimise

2Product rule and chain rule

(uv)′=u′v+uv′(uv)' = u'v + uv'⁠; ddx(35−x)5\frac{d}{dx}(35 - x)^5 =5(35−x)4⋅(−1)= 5(35 - x)^4 \cdot (-1)⁠. Basics: the chain rule

3Sign of a product

On 0<x<350 < x < 35⁠: x>0x > 0 and (35−x)4>0(35 - x)^4 > 0⁠, so only the remaining factor decides the sign. Basics: sign of a product

4Local versus largest

Increasing up to cc and decreasing after cc means f(c)f(c) is the largest value on the range (Theorem 1, Section 6.3). Lesson: optimisation problems

Solution

  1. One variable and its allowed range

    From x+y=35x + y = 35⁠, y=35−xy = 35 - x⁠. Both numbers positive means x>0x > 0 and 35−x>035 - x > 0⁠:

    0<x<35.0 < x < 35.
    Each allowed pair matches exactly one xx in (0,35)(0, 35) and vice versa, so maximising over this interval covers every allowed pair. The ends are excluded because the numbers must be strictly positive.
    35−x>0  ⟺  x<3535 - x > 0 \iff x < 35⁠. Basics: interval notation
  2. The function to maximise

    f(x)=x2y5=x2(35−x)5,0<x<35.f(x) = x^2y^5 = x^2(35 - x)^5,\qquad 0 < x < 35.
    After substituting y=35−xy = 35 - x the product depends on xx only.
    Keep the factored form; the derivative will share these factors. Basics: building the function
  3. Differentiate and factorise

    Product rule with u=x2u = x^2⁠, v=(35−x)5v = (35 - x)^5⁠; chain rule gives v′=−5(35−x)4v' = -5(35 - x)^4⁠:

    f′(x)=2x(35−x)5−5x2(35−x)4=x(35−x)4 [2(35−x)−5x]=x(35−x)4 (70−7x)=7x(35−x)4 (10−x).\begin{aligned} f'(x) &= 2x(35 - x)^5 - 5x^2(35 - x)^4 \\ &= x(35 - x)^4\,[2(35 - x) - 5x] \\ &= x(35 - x)^4\,(70 - 7x) \\ &= 7x(35 - x)^4\,(10 - x). \end{aligned}
    Both terms contain xx and (35−x)4(35 - x)^4⁠; taking them out leaves 2(35−x)−5x2(35 - x) - 5x =70−7x=7(10−x)= 70 - 7x = 7(10 - x)⁠.
    Chain rule: outer t5t^5 (derivative 5t45t^4⁠), inner t=35−xt = 35 - x (derivative −1-1⁠). Basics: the chain rule
  4. Critical point in the range

    f′(x)=0  ⟺  x=0, x=35  or  x=10.f'(x) = 0 \iff x = 0,\ x = 35 \ \text{ or } \ x = 10.

    Only x=10x = 10 lies in 0<x<350 < x < 35⁠.

    x=0x = 0 and x=35x = 35 would make one number zero, which is not positive. ff is a polynomial, so there are no points where it fails to be differentiable.
    Critical point: Note after Theorem 2, Section 6.4. Lesson: maxima and minima
  5. Sign of f′f'⁠: the largest value on the whole range

    For 0<x<350 < x < 35⁠, 7x>07x > 0 and (35−x)4>0(35 - x)^4 > 0⁠, so f′(x)f'(x) has the sign of 10−x10 - x⁠:

    • for 0<x<100 < x < 10⁠: f′(x)>0f'(x) > 0⁠, so ff is increasing on (0,10](0, 10]⁠;
    • for 10<x<3510 < x < 35⁠: f′(x)<0f'(x) < 0⁠, so ff is decreasing on [10,35)[10, 35)⁠.

    So f(x)<f(10)f(x) < f(10) for every other allowed xx⁠: by the first derivative test (Theorem 3) x=10x = 10 is a point of local maxima, and the sign pattern makes it the largest value on the whole range.

    10 20 25 35 2 4 6 8 10 x f(x), units of 10⁸ largest: f(10) = 976 562 500 x = 25: only 62 500 000 f′ > 0 f′ < 0
    f(x)=x2(35−x)5f(x) = x^2(35 - x)^5 on 0<x<350 < x < 35⁠, vertical scale in units of 10810^8⁠. The single peak is at x=10x = 10⁠. The rose dot is the swapped choice x=25x = 25⁠, which gives a much smaller product.
    Here the first derivative test is the natural choice: the factored f′f' shows the sign change directly, while f′′f'' would be a long computation. The same sign information also gives the global conclusion.
    First Derivative Test, Theorem 3, Section 6.4; Theorem 1, Section 6.3. Lesson: derivative tests
  6. The numbers, and the largest value

    x=10x = 10 and y=35−10=25y = 35 - 10 = 25⁠. The largest value is

    f(10)=102×255=100×9765625=976562500.\begin{aligned} f(10) &= 10^2 \times 25^5 \\ &= 100 \times 9765625 \\ &= 976562500. \end{aligned}
    The question names xx (squared) and yy (to the fifth), so say which number is which.
    255=252×252×2525^5 = 25^2 \times 25^2 \times 25 =625×625×25=9765625= 625 \times 625 \times 25 = 9765625⁠. Basics: building the function
Result

x=10x = 10 and y=25y = 25; then x2y5=976562500x^2y^5 = 976562500⁠, the largest possible value. (Textbook answer: 25, 10. The key lists the same two numbers, 25 and 10, without saying which one is xx⁠. Read in the order x=25x = 25⁠, y=10y = 10 they would make x2y5x^2y^5 only 625×105=62500000625 \times 10^5 = 62500000⁠, so the key's pair agrees with this page only as y=25y = 25⁠, x=10x = 10⁠.)

Check it with numbers

f(9)=81×265=962391456f(9) = 81 \times 26^5 = 962391456 and f(11)=121×245=963477504f(11) = 121 \times 24^5 = 963477504⁠, both below f(10)=976562500f(10) = 976562500⁠. The ratio rule (see "What to take away") predicts x:y=2:5x : y = 2 : 5⁠, that is x=27×35=10x = \frac{2}{7} \times 35 = 10⁠. A computer search over x=0.001,0.002,…,34.999x = 0.001, 0.002, \dots, 34.999 finds the largest value at x=10x = 10⁠.

Common mistakes
  1. Expanding (35−x)5(35 - x)^5⁠. It works but is long and error-prone; take out common factors instead.
  2. Dropping the −1-1 from the chain rule, which gives 2(35−x)+5x2(35 - x) + 5x and no critical point in the range.
  3. Swapping the numbers. x=25x = 25⁠, y=10y = 10 gives 62500000, far less. The key's "25, 10" names the two numbers without labelling them; the larger one must be yy⁠.
  4. Keeping x=0x = 0 or x=35x = 35⁠. They make f′=0f' = 0 but are not allowed (the numbers must be positive), and there f=0f = 0⁠, the opposite of a maximum.
What to take away
  1. For x+y=sx + y = s with x,y>0x, y > 0⁠, xmynx^m y^n is largest when x:y=m:nx : y = m : n⁠: here 2:52 : 5⁠, so x=10x = 10⁠, y=25y = 25⁠.
  2. Factor the derivative completely; on the allowed range most factors have a fixed sign, and one factor decides everything.
  3. Compare Question 14 (xy3xy^3⁠, sum 60).

Every fact used, and where it comes from

FactUsed inSource
Writing the quantity in one variable with its rangeSteps 1, 2Section 6.4 examples (Lesson: optimisation problems)
Product rule; chain ruleStep 3Chapter 5 (Basics: the chain rule)
Critical pointStep 4Note after Theorem 2, Section 6.4 (Lesson: maxima and minima)
First derivative testStep 5Theorem 3, Section 6.4 (Lesson: derivative tests)
Sign of f′f' decides increasing or decreasingStep 5Theorem 1 and the Remark after it, Section 6.3 (Lesson: increasing and decreasing)
Answer 25, 10ResultAnswers to Exercise 6.3, Question 15
Found an error, or want more?

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 →