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

Example 37: Price 5−x1005-\frac{x}{100}⁠, cost x5+500\frac{x}{5}+500⁠: sell 240 items for maximum profit

ExamplesOptimisation · Section 6.4 · Miscellaneous Examples
The question

Manufacturer can sell xx items at a price of rupees (5−x100)\left(5 - \frac{x}{100}\right) each. The cost price of xx items is Rs (x5+500)\left(\frac{x}{5} + 500\right)⁠. Find the number of items he should sell to earn maximum profit.

Exam answer

Let xx items be sold, 0≤x≤5000 \le x \le 500 (price not negative). Profit = selling price minus cost of xx items:

P(x)=(5−x100)x−(x5+500)=245x−x2100−500\begin{aligned} P(x) &= \left(5 - \frac{x}{100}\right)x \\ &\quad - \left(\frac{x}{5} + 500\right) \\ &= \frac{24}{5}x - \frac{x^2}{100} - 500 \end{aligned} P′(x)=245−x50P'(x) = \frac{24}{5} - \frac{x}{50}

P′(x)=0P'(x) = 0 gives x=240x = 240⁠.

P′′(x)=−150<0P''(x) = -\frac{1}{50} < 0

So PP is maximum at x=240x = 240⁠, the only critical point.

∴\therefore he should sell 240240 items to earn maximum profit.

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

The one idea this problem is built on

Profit = money received − cost. The money received is (number of items) × (price per item), and the price falls as more items are sold, so the profit is a downward-opening quadratic in xx⁠. Its derivative is zero at exactly one point, and because the second derivative is negative everywhere, that point gives the largest profit of all.

Given, to find, and the plan
Given
Selling xx items, each sells for Rs (5−x100)\left(5 - \frac{x}{100}\right)⁠; the cost of xx items is Rs (x5+500)\left(\frac{x}{5} + 500\right)⁠.
To find
The number of items xx that gives the maximum profit.
Plan
Write the selling price S(x)S(x) of xx items and the cost C(x)C(x)⁠; form the profit P(x)=S(x)−C(x)P(x) = S(x) - C(x)⁠; solve P′(x)=0P'(x) = 0⁠; apply the second derivative test; show the maximum is the largest over the whole allowed range; check xx is a whole number.

Basics you need

1Revenue, cost and profit

Money received from selling xx items at a price pp each is x⋅px \cdot p⁠; profit is this minus the cost. Basics: building the function to optimise

2Second derivative test (Theorem 4, Section 6.4)

If P′(c)=0P'(c) = 0 and P′′(c)<0P''(c) < 0⁠, then cc is a point of local maxima. Lesson: derivative tests

3From local to overall maximum

If P′>0P' > 0 to the left of cc and P′<0P' < 0 to the right throughout the range, then P(c)P(c) is the largest value on the whole range (Theorem 1, Section 6.3). Lesson: optimisation problems

4Completing the square

−1100(x2−480x)-\frac{1}{100}(x^2 - 480x) =−1100((x−240)2−2402)= -\frac{1}{100}\left((x - 240)^2 - 240^2\right)⁠. This rewrites a quadratic so that its largest value can be read off directly. Basics: factorising and the discriminant

Solution

  1. The variable and its range

    Let xx be the number of items sold. It is a whole number with x≥0x \ge 0⁠, and the price 5−x1005 - \frac{x}{100} can only make sense while it is not negative, that is for x≤500x \le 500⁠. So we work on 0≤x≤5000 \le x \le 500⁠, treating xx as a real number for the calculus and checking at the end that the answer is a whole number.

    Calculus works with a continuous variable. That is fine here as long as the best xx found turns out to be a whole number of items (it will).
    5−x100≥0  ⟺  x≤5005 - \frac{x}{100} \ge 0 \iff x \le 500⁠. Basics: interval notation
  2. Selling price and cost of xx items

    S(x)=(5−x100)x=5x−x2100,S(x) = \left(5 - \frac{x}{100}\right)x = 5x - \frac{x^2}{100}, C(x)=x5+500.C(x) = \frac{x}{5} + 500.
    "Price of rupees (5−x100)\left(5 - \frac{x}{100}\right) each" is per item, so the total received for xx items is xx times it. The cost is already given for all xx items together.
    Total = number × price per item. Basics: building the function
  3. The profit function

    P(x)=S(x)−C(x)=5x−x2100−x5−500=245x−x2100−500.\begin{aligned} P(x) &= S(x) - C(x) \\ &= 5x - \frac{x^2}{100} - \frac{x}{5} - 500 \\ &= \frac{24}{5}x - \frac{x^2}{100} - 500. \end{aligned}
    Profit is what is left after paying the cost. The two xx-terms combine: 5x−x5=25x−x5=245x5x - \frac{x}{5} = \frac{25x - x}{5} = \frac{24}{5}x⁠.
    Subtracting a bracket changes the sign of every term in it: −(x5+500)=−x5−500-\left(\frac{x}{5} + 500\right) = -\frac{x}{5} - 500⁠.
  4. Where the derivative is zero

    P′(x)=245−2x100=245−x50.P'(x) = \frac{24}{5} - \frac{2x}{100} = \frac{24}{5} - \frac{x}{50}. P′(x)=0  ⟺  x50=245  ⟺  x=24×505=240.P'(x) = 0 \iff \frac{x}{50} = \frac{24}{5} \iff x = \frac{24 \times 50}{5} = 240.
    At a maximum inside the range the graph is flat, so P′P' must be zero there (Theorem 2, Section 6.4). This gives the only candidate, x=240x = 240⁠, which lies inside [0,500][0, 500]⁠.
    ddx(x2100)=2x100=x50\frac{d}{dx}\left(\frac{x^2}{100}\right) = \frac{2x}{100} = \frac{x}{50}⁠; the constant −500-500 has derivative 0.
  5. Second derivative test

    P′′(x)=−150,P′′(240)=−150<0.P''(x) = -\frac{1}{50}, \qquad P''(240) = -\frac{1}{50} < 0.

    By Theorem 4, x=240x = 240 is a point of local maxima of PP⁠.

    P′(240)=0P'(240) = 0 with P′′(240)<0P''(240) < 0 is case (i) of the second derivative test: the profit curve is flat and bending down at x=240x = 240⁠.
    Theorem 4 (Second Derivative Test), Section 6.4. Lesson: derivative tests
  6. It is the largest profit over the whole range

    P′(x)=245−x50P'(x) = \frac{24}{5} - \frac{x}{50} is positive for x<240x < 240 and negative for x>240x > 240⁠. So PP increases on [0,240][0, 240] and decreases on [240,500][240, 500]⁠, and P(240)P(240) is larger than every other value. Completing the square shows the same thing directly:

    P(x)=−1100(x2−480x)−500=−(x−240)2100+576−500=76−(x−240)2100.\begin{aligned} P(x) &= -\frac{1}{100}\left(x^2 - 480x\right) - 500 \\ &= -\frac{(x - 240)^2}{100} + 576 - 500 \\ &= 76 - \frac{(x - 240)^2}{100}. \end{aligned}

    The square is never negative, so P(x)≤76P(x) \le 76⁠, with equality only at x=240x = 240⁠.

    100 200 300 400 500 −600 −400 −200 x (items) P (Rs) highest point (240, 76) ≈ 153 ≈ 327 P(0) = −500 P(500) = −600
    The profit P(x)P(x) for 0≤x≤5000 \le x \le 500⁠: a downward parabola with its highest point at (240,76)(240, 76)⁠. Profit is positive only between about 153 and 327 items.
    The second derivative test alone guarantees only a local maximum. The question asks for the maximum profit, so we show no other number of items does better. Since P′′P'' is negative everywhere, there is no other peak anywhere.
    2402100=57600100=576\frac{240^2}{100} = \frac{57600}{100} = 576⁠. Basics: factorising and the discriminant
  7. Answer the question

    x=240x = 240 is a whole number, so it is an allowed number of items. The manufacturer should sell 240 items. Then each sells for 5−240100=2.605 - \frac{240}{100} = 2.60 rupees, he receives 240×2.60=624240 \times 2.60 = 624 rupees, the cost is 2405+500=548\frac{240}{5} + 500 = 548 rupees, and the maximum profit is Rs 76.

    The question asks for the number of items, so that is the main answer. The profit itself (Rs 76) is a useful check: it agrees with P(240)P(240) from the completed square.
    624−548=76624 - 548 = 76⁠.
Result

Profit P(x)=245x−x2100−500P(x) = \frac{24}{5}x - \frac{x^2}{100} - 500⁠, with P′(240)=0P'(240) = 0 and P′′=−150<0P'' = -\frac{1}{50} < 0⁠. The manufacturer should sell 240 items to earn the maximum profit, which is Rs 76. (Textbook's own solution: 240 items.)

Check it with numbers

P(239)=P(241)=76−1100=75.99P(239) = P(241) = 76 - \frac{1}{100} = 75.99⁠, P(200)=76−16=60P(200) = 76 - 16 = 60 and P(300)=76−36=40P(300) = 76 - 36 = 40⁠: all less than P(240)=76P(240) = 76⁠. Directly from the definition: P(200)=200×3−(40+500)P(200) = 200 \times 3 - (40 + 500) =600−540=60= 600 - 540 = 60⁠. Checking every whole number from 0 to 500 by computer, the largest profit is 76, at 240 items only.

Common mistakes
  1. Using the price as the selling price of all items. 5−x1005 - \frac{x}{100} is the price of one item; multiply by xx⁠.
  2. Sign slip in the cost. Profit subtracts the whole cost, including the fixed 500.
  3. Differentiating x2100\frac{x^2}{100} as x100\frac{x}{100}⁠. The power rule gives 2x100=x50\frac{2x}{100} = \frac{x}{50}⁠.
  4. Answering with the profit instead of the number of items. The question asks how many items: 240.
What to take away
  1. Profit problems: revenue = quantity × price, profit = revenue − cost, then maximise.
  2. A quadratic with negative x2x^2 coefficient has its single maximum where the derivative is zero; P′′<0P'' < 0 everywhere makes the local maximum the overall one.
  3. When the variable counts objects, check the optimum is a whole number (or compare the neighbouring whole numbers if it is not).

Every fact used, and where it comes from

FactUsed inSource
Revenue = quantity × price; profit = revenue − costSteps 2, 3Commercial arithmetic
At an interior extremum f′(c)=0f'(c) = 0Step 4Theorem 2, Section 6.4 (Lesson: maxima and minima)
Second derivative testStep 5Theorem 4, Section 6.4 (Lesson: derivative tests)
Sign of f′f' decides increasing or decreasingStep 6Theorem 1, Section 6.3 (Lesson: increasing and decreasing)
Completing the squareStep 6Algebra
Textbook working and answerResultExample 37, Miscellaneous Examples, Chapter 6
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 →