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

Exercise 6.3 · Q14: x+y=60x+y=60⁠, largest xy3xy^3⁠: x=15x=15⁠, y=45y=45

Exercise 6.3Optimisation · Section 6.4
The question

Find two positive numbers xx and yy such that x+y=60x + y = 60 and xy3xy^3 is maximum.

Exam answer

From x+y=60x + y = 60⁠, y=60−xy = 60 - x⁠, where 0<x<600 < x < 60⁠. Let

f(x)=xy3=x(60−x)3f(x) = xy^3 = x(60 - x)^3

By the product rule,

f′(x)=(60−x)3−3x(60−x)2=(60−x)2(60−4x)=4(60−x)2(15−x)\begin{aligned} f'(x) &= (60 - x)^3 - 3x(60 - x)^2 \\ &= (60 - x)^2(60 - 4x) \\ &= 4(60 - x)^2(15 - x) \end{aligned}

For 0<x<600 < x < 60⁠, f′(x)=0f'(x) = 0 gives x=15x = 15⁠.

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

x=15x = 15 and y=45y = 45⁠.

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

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

The one idea this problem is built on

Use x+y=60x + y = 60 to write xy3xy^3 as a function of xx alone, on the range 0<x<600 < x < 60 that keeps both numbers positive. Factorising its derivative shows a single sign change, from ++ to −-⁠, so the critical point gives the largest value on the whole range. The power 3 on yy means yy deserves the bigger share: the answer is not "equal halves".

Given, to find, and the plan
Given
x>0x > 0⁠, y>0y > 0 and x+y=60x + y = 60⁠.
To find
The xx and yy for which xy3xy^3 is largest.
Plan
Put y=60−xy = 60 - x⁠; find the range of xx⁠; let f(x)=x(60−x)3f(x) = x(60 - x)^3⁠; differentiate with the product and chain rules and factorise; locate the critical point in the range; test it, and use the sign of f′f' to show it is the largest value of all.

Basics you need

1Building the function and its range

Replace yy using the condition, and write down exactly which values of xx are allowed. Basics: building the function to optimise

2Product rule and chain rule

(uv)′=u′v+uv′(uv)' = u'v + uv'⁠; ddx(60−x)3\frac{d}{dx}(60 - x)^3 =3(60−x)2⋅(−1)= 3(60 - x)^2 \cdot (-1) (outer t3t^3⁠, inner 60−x60 - x⁠). Basics: the chain rule

3Sign of a product

A square is positive (when nonzero), so the sign of (60−x)2(15−x)(60 - x)^2(15 - x) is the sign of 15−x15 - x⁠. Basics: sign of a product

4Local versus largest

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

Solution

  1. One variable and its allowed range

    From x+y=60x + y = 60⁠, y=60−xy = 60 - x⁠. Both numbers must be positive:

    x>0and60−x>0,x > 0 \quad\text{and}\quad 60 - x > 0,

    so the allowed range is

    0<x<60.0 < x < 60.
    Every allowed pair (x,y)(x, y) corresponds to exactly one xx in (0,60)(0, 60)⁠, and every xx in (0,60)(0, 60) gives an allowed pair. So maximising over this open interval is the same as maximising over all allowed pairs. The ends 0 and 60 are excluded because "positive" means strictly greater than 0.
    Interval notation: (0,60)(0, 60) means 0<x<600 < x < 60⁠. Basics: interval notation
  2. The function to maximise

    f(x)=x y3=x(60−x)3,0<x<60.f(x) = x\,y^3 = x(60 - x)^3,\qquad 0 < x < 60.
    Substituting y=60−xy = 60 - x turns a two-variable expression into a one-variable function that we can differentiate.
    Keep it factored: the derivative will factorise neatly. Basics: building the function
  3. Differentiate and factorise

    Product rule with u=xu = x⁠, v=(60−x)3v = (60 - x)^3⁠; chain rule for v′=3(60−x)2⋅(−1)v' = 3(60 - x)^2 \cdot (-1)⁠:

    f′(x)=(60−x)3−3x(60−x)2=(60−x)2 [(60−x)−3x]=(60−x)2 (60−4x)=4(60−x)2 (15−x).\begin{aligned} f'(x) &= (60 - x)^3 - 3x(60 - x)^2 \\ &= (60 - x)^2\,[(60 - x) - 3x] \\ &= (60 - x)^2\,(60 - 4x) \\ &= 4(60 - x)^2\,(15 - x). \end{aligned}
    Both terms contain (60−x)2(60 - x)^2⁠, so take it out as a common factor; what is left, 60−4x60 - 4x⁠, equals 4(15−x)4(15 - x)⁠. The factored form shows at once where f′f' is zero and what sign it has.
    Chain rule: outer function t3t^3 (derivative 3t23t^2⁠), inner function t=60−xt = 60 - x (derivative −1-1⁠). Basics: the chain rule
  4. Critical point in the range

    f′(x)=0  ⟺  x=60  or  x=15.f'(x) = 0 \iff x = 60 \ \text{ or } \ x = 15.

    x=60x = 60 is not in the allowed range (it would make y=0y = 0⁠), so the only critical point is

    x=15.x = 15.
    ff is a polynomial, differentiable everywhere, so critical points are only where f′=0f' = 0⁠. The algebra also produces x=60x = 60⁠, but the range rules it out.
    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<600 < x < 60⁠, (60−x)2>0(60 - x)^2 > 0⁠. So f′(x)=4(60−x)2(15−x)f'(x) = 4(60 - x)^2(15 - x) has the sign of 15−x15 - x⁠:

    • for 0<x<150 < x < 15⁠: f′(x)>0f'(x) > 0⁠, so ff is increasing on (0,15](0, 15]⁠;
    • for 15<x<6015 < x < 60⁠: f′(x)<0f'(x) < 0⁠, so ff is decreasing on [15,60)[15, 60)⁠.

    Hence f(x)<f(15)f(x) < f(15) for every other xx in (0,60)(0, 60)⁠. (The second derivative agrees: f′′(x)=−12(60−x)(30−x)f''(x) = -12(60 - x)(30 - x)⁠, so f′′(15)=−12×45×15f''(15) = -12 \times 45 \times 15 =−8100<0= -8100 < 0⁠, a local maximum by Theorem 4.)

    15 30 45 60 0.5 1 1.5 x f(x), millions largest: f(15) = 1 366 875 x = 45: only 151 875 f′ > 0 f′ < 0
    f(x)=x(60−x)3f(x) = x(60 - x)^3 on 0<x<600 < x < 60 (vertical scale in millions). One peak, at x=15x = 15⁠; the open dots at the ends are excluded. The rose dot shows the swapped choice x=45x = 45⁠, which is far worse.
    The first derivative changes from ++ to −- only once in the whole range, so ff climbs all the way to x=15x = 15 and descends all the way after it. That proves the global maximum, which the second derivative test alone would not.
    Theorem 1, Section 6.3 (and the Remark after it, for intervals whose end points are excluded). Lesson: increasing and decreasing
  6. The numbers, and the largest value

    x=15x = 15 and y=60−15=45y = 60 - 15 = 45⁠. The largest value is

    f(15)=15×453=15×91125=1366875.\begin{aligned} f(15) &= 15 \times 45^3 \\ &= 15 \times 91125 = 1366875. \end{aligned}
    Answer in terms of the named numbers: here the order matters because xx and yy play different roles in xy3xy^3⁠.
    452=202545^2 = 2025 and 2025×45=911252025 \times 45 = 91125⁠. Basics: building the function
Result

x=15x = 15 and y=45y = 45; then xy3=1366875xy^3 = 1366875⁠, the largest possible value. (Textbook answer: 45, 15. The key lists the same two numbers, 45 and 15, without saying which one is xx⁠. Read in the order x=45x = 45⁠, y=15y = 15 they would make xy3xy^3 only 45×153=15187545 \times 15^3 = 151875⁠, so the key's pair agrees with this page only as y=45y = 45⁠, x=15x = 15⁠.)

Check it with numbers

f(14)=14×463=1362704f(14) = 14 \times 46^3 = 1362704 and f(16)=16×443=1362944f(16) = 16 \times 44^3 = 1362944⁠, both a little below f(15)=1366875f(15) = 1366875⁠. Working with yy instead gives the same answer: g(y)=(60−y)y3g(y) = (60 - y)y^3 has g′(y)=4y2(45−y)g'(y) = 4y^2(45 - y)⁠, zero at y=45y = 45⁠. A computer search over x=0.001,0.002,…,59.999x = 0.001, 0.002, \dots, 59.999 finds the largest value at x=15x = 15⁠.

Common mistakes
  1. Splitting 60 equally. Equal halves maximise xyxy⁠, not xy3xy^3⁠; the cube rewards a larger yy⁠.
  2. Swapping xx and yy⁠. x=45x = 45⁠, y=15y = 15 gives only 151875. The key's "45, 15" names the two numbers without labelling them; the larger one must be yy⁠.
  3. Losing the minus sign in the chain rule. ddx(60−x)3=−3(60−x)2\frac{d}{dx}(60 - x)^3 = -3(60 - x)^2⁠.
  4. Keeping x=60x = 60⁠. It makes y=0y = 0⁠, which is not positive.
What to take away
  1. For x+y=sx + y = s with x,y>0x, y > 0 (and positive powers m,nm, n⁠), the product xmynx^m y^n is largest when x:y=m:nx : y = m : n⁠; here 1:31 : 3⁠, so x=15x = 15⁠, y=45y = 45⁠.
  2. Factor out the common power in the derivative; then the sign of f′f' is easy to read on the whole range.
  3. The same pattern with x2y5x^2y^5 is Question 15; the plain product is Question 13.

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)
Sign of f′f' decides increasing or decreasingStep 5Theorem 1 and the Remark after it, Section 6.3 (Lesson: increasing and decreasing)
Second derivative testStep 5Theorem 4, Section 6.4 (Lesson: derivative tests)
Answer 45, 15ResultAnswers to Exercise 6.3, Question 14
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 →