Differential Calculus for Social Science 201-103 • CEGEP, Montreal

Corrected exercises: applied optimization (201-103)

These ten corrected exercises close the course: everything that came before, domain, derivative, second derivative, extrema, is now used to settle a decision. The calculus is the short part; setting up the equation and reading the result are the rest.

The thread of the set fits in one sentence: an optimum exists only on a DOMAIN, and the domain comes from the context, not from the mathematics. A regulatory cap, a whole number of places, a fixed budget change the answer as much as the function itself.

Three pitfalls are named outright: taking the critical number for the answer without looking at the admissible domain (exercises 5 and 8), rounding a non-integer optimum instead of comparing the two neighbouring integers (exercises 6 and 8), and confusing the return per dollar with the net effect (exercises 7 and 8).

10 corrected exercises • 100 points • 150 minutes

This chapter is part of 201-103, every chapter with its set and sheet Before you start Revision sheet: the traps and the method for this chapter

Self-checking set Type your answers and check them question by question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points, and your right answers stay filled in when you come back.

Course recap

  • • The FIVE STEPS: name the variables, write the constraint, write the objective function, substitute so that only one variable remains, differentiate and compare with the endpoints.
  • • The constraint is used only to eliminate a variable. The domain comes from the context and decides the answer.
  • • For C(x)=ax+bxC(x)=ax+\dfrac{b}{x}, the optimum is at x=bax=\sqrt{\dfrac{b}{a}}, and the TWO terms are equal there. A free check on your work.
  • • For C(x)=ax+bxC(x)=ax+\dfrac{b}{\sqrt{x}}, the root term is worth TWICE the linear term at the optimum.
  • • For N(x)=ax−bxN(x)=a\sqrt{x}-bx, the cost is HALF of the gross gain at the optimum, and profitability ends at x=(ab)2x=\left(\dfrac{a}{b}\right)^{2}.
  • • Minimizing a SUM of two opposing costs never amounts to minimizing each of them: at the optimum, neither one is minimal.
  • • If no critical number lies in the admissible domain, the optimum is at an ENDPOINT, and the sign of the derivative says which one.
  • • COST OF A CONSTRAINT: the difference between the free optimum and the constrained optimum. It is the number you bring to a negotiation.
  • • INTEGER optimum: evaluate at the two neighbouring integers and compare. The tipping point is the GEOMETRIC mean n(n+1)\sqrt{n(n+1)}, not the midpoint.
  • • Maximizing the RETURN, result per dollar, and maximizing the NET EFFECT, result minus spending, give two different answers. A scarce budget calls for the first, need calls for the second.
  • • Maximizing RC\dfrac{R}{C} with R=knR=kn and C=an2+bn+cC=an^{2}+bn+c gives n=can=\sqrt{\dfrac{c}{a}}: the linear term plays no role.
  • • A total cost curve is FLAT around its minimum: the right recommendation is a range, not a figure to the tenth.
  • • Every conclusion is reread against the model: a flawless optimum on an unchecked assumption is still an optimum on an unchecked assumption.

Part A: the basics (/50)

Exercise 1: Constraint, objective function and domain

An optimization problem is always solved in the same order: write the CONSTRAINT, write the OBJECTIVE FUNCTION, eliminate one variable using the constraint, state the domain, then differentiate. The differentiation is the easy part.

A public health department splits 500 thousand dollars between prevention, xx, and treatment, 500−x500-x. The number of cases avoided is estimated at E(x)=40x+30500−xE(x)=40\sqrt{x}+30\sqrt{500-x}.

  • a) Write the constraint and the objective function, then name the five steps of the method.
  • b) Give the domain of EE in this context.
  • c) Compute E′(x)E'(x) and solve E′(x)=0E'(x)=0.
  • d) Compute the maximum value, in exact form and then to the nearest tenth.
  • e) Check the endpoints of the domain and conclude.

Type your answers, the page tells you right or wrong 0/9

a)
b)
Domain ,
c)
d)
e)
Show the solution

Answers

  • a) Constraint x+y=500x+y=500, objective E=40x+30yE=40\sqrt{x}+30\sqrt{y} to be maximized.
  • b) [0,500][0, 500], closed and bounded interval.
  • c) E′(x)=20x−15500−xE'(x)=\dfrac{20}{\sqrt{x}}-\dfrac{15}{\sqrt{500-x}}, zero at x=320x=320.
  • d) E(320)=5005≈1,118.0E(320)=500\sqrt{5}\approx 1{,}118.0 cases avoided.
  • e) E(0)≈670.8E(0)\approx 670.8 and E(500)≈894.4E(500)\approx 894.4: the critical number is indeed the absolute maximum.
a)

The constraint is x+y=500x+y=500, where yy is the share going to treatment; the objective function is the number of cases avoided, E=40x+30yE=40\sqrt{x}+30\sqrt{y}, to be MAXIMIZED. The five steps: name the variables, write the constraint, write the objective, substitute so that only one variable remains, then differentiate and compare with the endpoints. The constraint serves only to eliminate a variable, and that is its sole role.

b)

Substituting y=500−xy=500-x gives E(x)=40x+30500−xE(x)=40\sqrt{x}+30\sqrt{500-x}. Both square roots require x≥0x\ge 0 and 500−x≥0500-x\ge 0, so the domain is [0,500][0, 500]. It is a CLOSED and BOUNDED interval, so the maximum exists and is found among the critical numbers and the two endpoints.

c)

E′(x)=402x−302500−x=20x−15500−xE'(x)=\dfrac{40}{2\sqrt{x}}-\dfrac{30}{2\sqrt{500-x}}=\dfrac{20}{\sqrt{x}}-\dfrac{15}{\sqrt{500-x}}, the minus sign coming from the derivative of 500−x500-x. Set it to zero: 20x=15500−x\dfrac{20}{\sqrt{x}}=\dfrac{15}{\sqrt{500-x}}, so 20500−x=15x20\sqrt{500-x}=15\sqrt{x}. Squaring: 400 (500−x)=225x400\,(500-x)=225x, that is, 200,000=625x200{,}000=625x and x=320x=320. The share going to treatment is then 180180.

d)

E(320)=40320+30180E(320)=40\sqrt{320}+30\sqrt{180}. Since 320=85\sqrt{320}=8\sqrt{5} and 180=65\sqrt{180}=6\sqrt{5}, we get E(320)=3205+1805=5005≈1,118.0E(320)=320\sqrt{5}+180\sqrt{5}=500\sqrt{5}\approx 1{,}118.0 cases avoided. The exact form 5005500\sqrt{5} is worth writing: it shows that the maximum depends only on the total budget and the two coefficients, and it avoids any rounding error.

e)

E(0)=30500≈670.8E(0)=30\sqrt{500}\approx 670.8 cases avoided, and E(500)=40500≈894.4E(500)=40\sqrt{500}\approx 894.4. Both endpoints are clearly below 1,1181{,}118, so the critical number is indeed the ABSOLUTE maximum. Management reading: putting everything into prevention, which the coefficient 40 might suggest, would lose more than two hundred avoided cases compared with the 320 versus 180 split. This is the consequence of the diminishing returns of each square root, and it is the quantitative argument against single-pronged policies.

Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.

Exercise 2: Two opposing costs: the number of service points

The most common form of a management problem is this one: one cost that rises with the quantity, another that falls, and a total with a minimum in between.

An organization opens gg service points. Each costs 4,2004{,}200 dollars per month, and the users' travel costs 205,800g\dfrac{205{,}800}{g} dollars per month collectively. The total cost is C(g)=4,200g+205,800gC(g)=4{,}200g+\dfrac{205{,}800}{g}.

246810121416400005000060000700008000090000100000110000120000C(g)structure cost onlyg, service pointsdollars per month
  • a) Give the domain of CC and explain what each of the two terms represents.
  • b) Compute C′(g)C'(g) and solve C′(g)=0C'(g)=0.
  • c) Verify that it is a minimum using the second derivative.
  • d) Compute the minimum cost and the share of each of the two terms.
  • e) What happens if the organization opens 4 points, then 12? Comment on the shape of the curve.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Domain (0,+∞)(0, +\infty); increasing structure cost, decreasing access cost.
  • b) C′(g)=4,200−205,800g2C'(g)=4{,}200-\dfrac{205{,}800}{g^{2}}, zero at g=7g=7.
  • c) C′′(g)=411,600g3>0C''(g)=\dfrac{411{,}600}{g^{3}}>0: absolute minimum.
  • d) C(7)=58,800C(7)=58{,}800 dollars, each term being worth 29,40029{,}400.
  • e) C(4)=68,250C(4)=68{,}250 and C(12)=67,550C(12)=67{,}550: the curve is flat, and the recommendation is a range of 5 to 10 points.
a)

The mathematical domain is (0,+∞)(0, +\infty), and the real domain is the strictly positive integers, a point that exercise 6 will come back to. The term 4,200g4{,}200g is the STRUCTURE cost: rent, staff, equipment; it grows with the number of points. The term 205,800g\dfrac{205{,}800}{g} is the ACCESS cost: the more points there are, the shorter the users' trips, so it decreases.

b)

C(g)=4,200g+205,800 g−1C(g)=4{,}200g+205{,}800\,g^{-1}, so C′(g)=4,200−205,800g2C'(g)=4{,}200-\dfrac{205{,}800}{g^{2}}. Set it to zero: g2=205,8004,200=49g^{2}=\dfrac{205{,}800}{4{,}200}=49, so g=7g=7, the negative root being outside the domain.

c)

C′′(g)=2×205,800g3=411,600g3C''(g)=\dfrac{2\times 205{,}800}{g^{3}}=\dfrac{411{,}600}{g^{3}}, strictly positive on the domain. The curve is therefore concave up everywhere, and the critical number is an ABSOLUTE minimum, not merely a local one.

d)

C(7)=4,200×7+205,8007=29,400+29,400=58,800C(7)=4{,}200\times 7+\dfrac{205{,}800}{7}=29{,}400+29{,}400=58{,}800 dollars per month. The two terms are EQUAL at the minimum, which is a general property of the form ag+bgag+\dfrac{b}{g}: setting a−bg2a-\dfrac{b}{g^{2}} to zero gives ag=bgag=\dfrac{b}{g}. It is a free check on your work, and a result managers know in the form “at the optimum, the structure cost equals the access cost”.

e)

C(4)=16,800+51,450=68,250C(4)=16{,}800+51{,}450=68{,}250 dollars and C(12)=50,400+17,150=67,550C(12)=50{,}400+17{,}150=67{,}550 dollars. Moving three points one way or five the other costs less than 10,000 dollars a month, about 16 percent: the curve is FLAT around its minimum, like all curves of this type. The practical consequence is the same as in the previous chapter: the right recommendation is a range, here 5 to 10 service points, and a debate over the seventh point versus the eighth is about almost nothing.

246810121416400005000060000700008000090000100000110000120000C(g)structure cost only(7, 58,800)68,25067,550g, service pointsdollars per month

Exercise 3: The sample size that minimizes the total cost

Enlarging a sample is expensive and reduces imprecision; keeping a small sample is cheap and leaves a margin of error that also has a price, that of poorly informed decisions. The total cost therefore has a minimum.

A survey costs C(n)=12,000+9n+486,000nC(n)=12{,}000+9n+\dfrac{486{,}000}{\sqrt{n}} dollars, where nn is the number of respondents.

  • a) Explain what each of the three terms represents.
  • b) Compute C′(n)C'(n).
  • c) Solve C′(n)=0C'(n)=0.
  • d) Compute the minimum cost and the share of each of the three terms.
  • e) Verify that it is a minimum, then compare with n=400n=400 and n=1,600n=1{,}600.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Fixed cost, collection cost per respondent, imprecision cost decreasing like the square root of n.
  • b) C′(n)=9−243,000n3/2C'(n)=9-\dfrac{243{,}000}{n^{3/2}}.
  • c) n3/2=27,000=303n^{3/2}=27{,}000=30^{3}, so n=900n=900 respondents.
  • d) 36,30036{,}300 dollars: 12,00012{,}000 fixed, 8,1008{,}100 collection and 16,20016{,}200 imprecision.
  • e) C′′>0C''>0 so a minimum; C(400)=39,900C(400)=39{,}900 and C(1,600)=38,550C(1{,}600)=38{,}550 dollars.
a)

The term 12,00012{,}000 is the FIXED cost: questionnaire design, sampling plan, analysis; it is paid whatever nn is. The term 9n9n is the COLLECTION cost, nine dollars per respondent. The term 486,000n\dfrac{486{,}000}{\sqrt{n}} puts a price on IMPRECISION: it decreases like n\sqrt{n} because the margin of error of a poll itself decreases like 1n\dfrac{1}{\sqrt{n}}, and it is this square root that gives the problem its whole shape.

b)

Rewrite C(n)=12,000+9n+486,000 n−1/2C(n)=12{,}000+9n+486{,}000\,n^{-1/2}, so C′(n)=9−486,0002 n−3/2=9−243,000n3/2C'(n)=9-\dfrac{486{,}000}{2}\,n^{-3/2}=9-\dfrac{243{,}000}{n^{3/2}}, in dollars per respondent.

c)

9=243,000n3/29=\dfrac{243{,}000}{n^{3/2}} gives n3/2=243,0009=27,000n^{3/2}=\dfrac{243{,}000}{9}=27{,}000, so n=27,0002/3n=27{,}000^{2/3}. Since 27,000=30327{,}000=30^{3}, we have n3/2=303n^{3/2}=30^{3} and n=302=900n=30^{2}=900 respondents. Going through powers of 30 avoids any calculator, and it is the kind of verification a marker notices.

d)

C(900)=12,000+9×900+486,00030=12,000+8,100+16,200=36,300C(900)=12{,}000+9\times 900+\dfrac{486{,}000}{30}=12{,}000+8{,}100+16{,}200=36{,}300 dollars. The imprecision cost, 16,20016{,}200 dollars, remains the heaviest item, and it is exactly TWICE the collection cost: this is the signature of the exponent 12\dfrac{1}{2}, just as the equal terms of exercise 2 were the signature of the exponent 1.

e)

C′′(n)=32×243,000n5/2>0C''(n)=\dfrac{3}{2}\times\dfrac{243{,}000}{n^{5/2}}>0 on the domain, so the curve is concave up and n=900n=900 is indeed an absolute minimum. Comparisons: C(400)=12,000+3,600+486,00020=12,000+3,600+24,300=39,900C(400)=12{,}000+3{,}600+\dfrac{486{,}000}{20}=12{,}000+3{,}600+24{,}300=39{,}900 dollars, and C(1,600)=12,000+14,400+486,00040=12,000+14,400+12,150=38,550C(1{,}600)=12{,}000+14{,}400+\dfrac{486{,}000}{40}=12{,}000+14{,}400+12{,}150=38{,}550 dollars. Dividing the sample by more than two or multiplying it by almost two therefore costs between six and ten percent more: the reasonable range runs from about 600 to 1,400 respondents, and that is what a quote should propose, with the cost range that goes with it.

Exercise 4: The optimal length of a training program

A training program produces a productivity gain with diminishing returns, and it costs the wages of the hours it takes up. The net benefit therefore has a maximum, and it arrives sooner than you would think.

The productivity gain of a training program of dd days is 1,600d1{,}600\sqrt{d} dollars per employee, and the opportunity cost is 200d200d dollars. The net benefit is N(d)=1,600d−200dN(d)=1{,}600\sqrt{d}-200d.

816243240485664500100015002000250030003500N(d)d, length in daysN(d), dollars per employee
  • a) Compute N′(d)N'(d).
  • b) Solve N′(d)=0N'(d)=0.
  • c) Compute the maximum net benefit.
  • d) Give the domain on which the training stays profitable, that is, where N(d)≥0N(d)\ge 0.
  • e) A manager proposes doubling the length to double the effect. What do you answer, with figures to support it?

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) N′(d)=800d−200N'(d)=\dfrac{800}{\sqrt{d}}-200.
  • b) d=4\sqrt{d}=4, so d=16d=16 days.
  • c) N(16)=3,200N(16)=3{,}200 dollars per employee, the cost being half of the gross gain.
  • d) (0,64](0, 64] days.
  • e) N(32)≈2,651N(32)\approx 2{,}651 dollars, which is 549 less: the gain follows 2\sqrt{2}, the cost doubles.
a)

N(d)=1,600 d1/2−200dN(d)=1{,}600\,d^{1/2}-200d, so N′(d)=800 d−1/2−200=800d−200N'(d)=800\,d^{-1/2}-200=\dfrac{800}{\sqrt{d}}-200 dollars per day.

b)

800d=200\dfrac{800}{\sqrt{d}}=200 gives d=4\sqrt{d}=4, so d=16d=16 days. The critical number is unique on the domain (0,+∞)(0, +\infty).

c)

N(16)=1,600×4−200×16=6,400−3,200=3,200N(16)=1{,}600\times 4-200\times 16=6{,}400-3{,}200=3{,}200 dollars per employee. The gross gain is 6,4006{,}400 dollars and the cost 3,2003{,}200: at the optimum, the cost is exactly HALF of the gross gain, which is yet another signature of the exponent 12\dfrac{1}{2}.

d)

1,600d≥200d1{,}600\sqrt{d}\ge 200d is equivalent to 8d≥d8\sqrt{d}\ge d, that is, dividing by d>0\sqrt{d}>0, to 8≥d8\ge\sqrt{d}, so d≤64d\le 64. The training stays profitable on (0,64](0, 64] days, and beyond that it costs more than it earns. This is also what the figure shows, which comes back down to zero at d=64d=64.

e)

Doubling the length does not double the effect, because the gain follows a SQUARE ROOT: going from 16 to 32 days multiplies the gross gain by 2≈1.41\sqrt{2}\approx 1.41 and not by 2, while the cost doubles exactly. The computation gives N(32)=1,60032−6,400≈9,051−6,400=2,651N(32)=1{,}600\sqrt{32}-6{,}400\approx 9{,}051-6{,}400=2{,}651 dollars, which is 549 dollars LESS than with sixteen days. The proposal therefore loses money while tying up twice as much working time. The general rule, valid for any activity with diminishing returns: increase the effort as long as the MARGINAL gain exceeds the marginal cost, here as long as 800d>200\dfrac{800}{\sqrt{d}}>200, and not an hour longer.

816243240485664500100015002000250030003500N(d)(16, 3,200)profitable up to 64d, length in daysN(d), dollars per employee

Exercise 5: When the optimum falls outside the admissible domain

A management problem almost always carries an administrative constraint in addition to the resource constraint: a staffing ceiling, a regulatory limit, a number of licensed places. When the mathematical optimum falls beyond it, the answer changes completely.

The social benefit of a program is P(n)=−0.02n2+24n−1,500P(n)=-0.02n^{2}+24n-1{,}500 thousand dollars for nn beneficiaries. A clause of the grant caps the program at 450 beneficiaries. The figure below shows the situation.

1002003004005006007008009001000-2000-10001000200030004000500060007000n ≤ 450n, beneficiariesP(n), thousand dollars
  • a) Compute P′(n)P'(n) and find the optimum WITHOUT the constraint.
  • b) Compute the benefit at this optimum.
  • c) Does the cap of 450 change the answer? Justify using the sign of P′P' on [0,450][0, 450].
  • d) Compute P(450)P(450) and conclude on the best admissible choice.
  • e) Put a number on the cost of the constraint and say what it can be used for.

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) P′(n)=−0.04n+24P'(n)=-0.04n+24, zero at n=600n=600.
  • b) P(600)=5,700P(600)=5{,}700 thousand dollars.
  • c) Yes: P′>0P'>0 on [0,450][0, 450], so the maximum is at the right endpoint.
  • d) P(450)=5,250P(450)=5{,}250 thousand: serve exactly 450 beneficiaries.
  • e) 5,700−5,250=4505{,}700-5{,}250=450 thousand dollars per year, the price of the cap.
a)

P′(n)=−0.04n+24P'(n)=-0.04n+24, in thousand dollars per beneficiary. Set it to zero: 0.04n=240.04n=24, so n=600n=600 beneficiaries. Since P′′=−0.04<0P''=-0.04<0, it is indeed a maximum.

b)

P(600)=−0.02×360,000+24×600−1,500=−7,200+14,400−1,500=5,700P(600)=-0.02\times 360{,}000+24\times 600-1{,}500=-7{,}200+14{,}400-1{,}500=5{,}700 thousand dollars, that is, 5.7 million.

c)

Yes, it changes everything, because 600600 does not belong to [0,450][0, 450]. On that interval, P′(n)=−0.04n+24P'(n)=-0.04n+24 stays POSITIVE, since −0.04×450+24=6>0-0.04\times 450+24=6>0: the function is strictly increasing there. The admissible maximum is therefore reached at the RIGHT ENDPOINT, n=450n=450, and not at a critical number. This is the situation announced by exercise 7 of the previous chapter: when no critical number lies in the interval, the extremum is necessarily at an endpoint.

d)

P(450)=−0.02×202,500+24×450−1,500=−4,050+10,800−1,500=5,250P(450)=-0.02\times 202{,}500+24\times 450-1{,}500=-4{,}050+10{,}800-1{,}500=5{,}250 thousand dollars. The best admissible choice is therefore to serve exactly 450 beneficiaries, the cap, for a benefit of 5.25 million. Any proposal to serve fewer reduces the benefit, and any proposal to serve more is inadmissible.

e)

The COST OF THE CONSTRAINT is the difference between the free optimum and the constrained optimum: 5,700−5,250=4505{,}700-5{,}250=450 thousand dollars, that is, 450,000 dollars of social benefit lost each year because of the cap. This number is the most useful one in the whole exercise, because it is what you bring to the negotiating table: it puts a price on what raising the cap would be worth, and it lets you compare that with what raising it would cost the funder. An optimum under constraint therefore never just gives the admissible solution; it also gives the price of the constraint.

1002003004005006007008009001000-2000-10001000200030004000500060007000n ≤ 450(600, 5,700)(450, 5,250)gap 450n, beneficiariesP(n), thousand dollars

Part B: problems and reasoning (/50)

Exercise 6: An integer optimum

The derivative works with real numbers, whereas a number of sessions, counters or employees is an INTEGER. Going from one to the other is not a matter of rounding, and believing otherwise loses marks on an exam and money in management.

The cost of a workshop program is C(s)=260s+9,000sC(s)=260s+\dfrac{9{,}000}{s} dollars, where ss is the number of sessions.

  • a) Compute C′(s)C'(s) and find the critical number, to the nearest thousandth.
  • b) Compute C(5)C(5) and C(6)C(6).
  • c) Which integer should be chosen, and what is the corresponding cost?
  • d) Another program has cost D(s)=1,000s+30,200sD(s)=1{,}000s+\dfrac{30{,}200}{s}. Compute its critical number, then D(5)D(5) and D(6)D(6).
  • e) What does the second case show, and what rule do you draw from it?

Type your answers, the page tells you right or wrong 0/11

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) C′(s)=260−9,000s2C'(s)=260-\dfrac{9{,}000}{s^{2}}, zero at s≈5.884s\approx 5.884.
  • b) C(5)=3,100C(5)=3{,}100 and C(6)=3,060C(6)=3{,}060 dollars.
  • c) Six sessions, for 3,0603{,}060 dollars.
  • d) s≈5.495s\approx 5.495, D(5)=11,040D(5)=11{,}040 and D(6)≈11,033.33D(6)\approx 11{,}033.33 dollars.
  • e) Rounding would give 5 and the right integer is 6: evaluate at the two neighbouring integers, never round.
a)

C′(s)=260−9,000s2C'(s)=260-\dfrac{9{,}000}{s^{2}}. Set it to zero: s2=9,000260≈34.615s^{2}=\dfrac{9{,}000}{260}\approx 34.615, so s≈5.884s\approx 5.884 sessions. Obviously, a program cannot be given in 5.884 sessions.

b)

C(5)=1,300+9,0005=1,300+1,800=3,100C(5)=1{,}300+\dfrac{9{,}000}{5}=1{,}300+1{,}800=3{,}100 dollars. C(6)=1,560+9,0006=1,560+1,500=3,060C(6)=1{,}560+\dfrac{9{,}000}{6}=1{,}560+1{,}500=3{,}060 dollars.

c)

Choose s=6s=6 sessions, for 3,0603{,}060 dollars, which is 40 dollars less than with five sessions. Note that the cost at the critical number, C(5.884)≈3,059.9C(5.884)\approx 3{,}059.9 dollars, is barely lower than the integer cost: since the curve is flat around its minimum, rounding costs less than a dollar.

d)

D′(s)=1,000−30,200s2D'(s)=1{,}000-\dfrac{30{,}200}{s^{2}} vanishes for s2=30.2s^{2}=30.2, so s≈5.495s\approx 5.495 sessions. D(5)=5,000+30,2005=5,000+6,040=11,040D(5)=5{,}000+\dfrac{30{,}200}{5}=5{,}000+6{,}040=11{,}040 dollars, and D(6)=6,000+30,2006≈6,000+5,033.33=11,033.33D(6)=6{,}000+\dfrac{30{,}200}{6}\approx 6{,}000+5{,}033.33=11{,}033.33 dollars.

e)

The second case is the counterexample you need to know. The critical number is 5.4955.495, so it ROUNDS to 5; yet it is 6 that gives the lower cost, by nearly 7 dollars. The reason is that the tipping point between two integers is not their arithmetic midpoint 5.55.5, but their geometric mean 5×6=30≈5.477\sqrt{5\times 6}=\sqrt{30}\approx 5.477, and 5.4955.495 is already beyond it. The RULE is therefore: never conclude by rounding, EVALUATE the function at the two neighbouring integers and compare the two values. It is two more computations and the only safe method, even when the difference is seven dollars out of eleven thousand.

Exercise 7: Maximizing a ratio or maximizing a net effect

Two criteria compete in every public decision: the RETURN, that is, the result per dollar spent, and the NET EFFECT, that is, the result minus the spending. They almost never give the same answer, and differential calculus shows why.

A program serves nn people. Its cost is C(n)=0.5n2+40n+1,250C(n)=0.5n^{2}+40n+1{,}250 thousand dollars and the estimated benefit is R(n)=180nR(n)=180n thousand dollars.

  • a) Write the return ρ(n)=R(n)C(n)\rho(n)=\dfrac{R(n)}{C(n)} and compute its derivative.
  • b) Find the value of nn that maximizes the return.
  • c) Compute ρ\rho at this optimum, then at n=30n=30 and n=80n=80.
  • d) Now find the value of nn that maximizes the net effect R(n)−C(n)R(n)-C(n), and compute that net effect.
  • e) The two answers differ greatly. Which one should be chosen, and under what condition?

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) ρ′(n)=180 (1,250−0.5n2)(0.5n2+40n+1,250)2\rho'(n)=\dfrac{180\,(1{,}250-0.5n^{2})}{\bigl(0.5n^{2}+40n+1{,}250\bigr)^{2}}.
  • b) n=1,2500.5=50n=\sqrt{\dfrac{1{,}250}{0.5}}=50 people.
  • c) ρ(50)=2.00\rho(50)=2.00; ρ(30)≈1.862\rho(30)\approx 1.862; ρ(80)≈1.882\rho(80)\approx 1.882.
  • d) n=140n=140 people, for a net effect of 8,5508{,}550 thousand dollars.
  • e) The return if the budget is scarce, the net effect if need is. The fault is not saying which one was optimized.
a)

ρ(n)=180n0.5n2+40n+1,250\rho(n)=\dfrac{180n}{0.5n^{2}+40n+1{,}250}. By the quotient rule, the numerator of ρ′\rho' is 180 (0.5n2+40n+1,250)−180n (n+40)180\,(0.5n^{2}+40n+1{,}250)-180n\,(n+40), that is, 180 (0.5n2+40n+1,250−n2−40n)=180 (1,250−0.5n2)180\,\bigl(0.5n^{2}+40n+1{,}250-n^{2}-40n\bigr)=180\,\bigl(1{,}250-0.5n^{2}\bigr). So ρ′(n)=180 (1,250−0.5n2)(0.5n2+40n+1,250)2\rho'(n)=\dfrac{180\,(1{,}250-0.5n^{2})}{\bigl(0.5n^{2}+40n+1{,}250\bigr)^{2}}. The 40n40n terms cancel, which is a sign that the computation is right.

b)

The denominator is a square, so the sign of ρ′\rho' is that of 1,250−0.5n21{,}250-0.5n^{2}: positive for n<50n<50, negative beyond. Solve 0.5n2=1,2500.5n^{2}=1{,}250, that is, n2=2,500n^{2}=2{,}500 and n=50n=50 people. The return rises then falls: it is indeed a maximum. Note that n=can=\sqrt{\dfrac{c}{a}}, where cc is the fixed cost and aa the quadratic coefficient: the linear term 40n40n plays no role, because it is proportional to nn, like the benefit.

c)

C(50)=0.5×2,500+2,000+1,250=1,250+2,000+1,250=4,500C(50)=0.5\times 2{,}500+2{,}000+1{,}250=1{,}250+2{,}000+1{,}250=4{,}500 and R(50)=9,000R(50)=9{,}000, so ρ(50)=2.00\rho(50)=2.00: each dollar spent produces two dollars of benefit. At n=30n=30: C=450+1,200+1,250=2,900C=450+1{,}200+1{,}250=2{,}900 and R=5,400R=5{,}400, so ρ≈1.862\rho\approx 1.862. At n=80n=80: C=3,200+3,200+1,250=7,650C=3{,}200+3{,}200+1{,}250=7{,}650 and R=14,400R=14{,}400, so ρ≈1.882\rho\approx 1.882. The return is therefore fairly flat between 30 and 80 people.

d)

The net effect is N(n)=180n−0.5n2−40n−1,250=−0.5n2+140n−1,250N(n)=180n-0.5n^{2}-40n-1{,}250=-0.5n^{2}+140n-1{,}250. Set N′(n)=−n+140N'(n)=-n+140 to zero, so n=140n=140 people, and N′′=−1<0N''=-1<0 confirms the maximum. C(140)=9,800+5,600+1,250=16,650C(140)=9{,}800+5{,}600+1{,}250=16{,}650 and R(140)=25,200R(140)=25{,}200, so N(140)=8,550N(140)=8{,}550 thousand dollars. Compare with N(50)=9,000−4,500=4,500N(50)=9{,}000-4{,}500=4{,}500 thousand: the net effect almost DOUBLES by serving 140 people rather than 50.

e)

It all depends on what is scarce. If the BUDGET is the constraint, because it is fixed and every dollar not spent here will be used elsewhere, you should maximize the return and serve 50 people: each dollar works hardest there. If NEED is the constraint, the budget being extensible or the money having no better use, you should maximize the net effect and serve 140 people, even though the return falls there to 25,20016,650≈1.51\dfrac{25{,}200}{16{,}650}\approx 1.51. Mathematics does not decide between the two criteria, it puts numbers on them; the choice is political, and the professional fault is to present one of the two numbers without saying which one was optimized.

nreturn50: 2.00nnet effect140: 8,550

Exercise 8: Five statements to correct

Each of these five sentences has been heard in class. Say whether it is true or false, and if it is false, write the correct statement.

A correction that merely says “false” earns no marks: the correct sentence is what is asked for.

  • a) The critical number found by the derivative is always the optimum sought.
  • b) To minimize a total cost, it is enough to minimize each of its terms.
  • c) If the mathematical optimum is 5.4955.495, we choose 5.
  • d) Maximizing the result per dollar spent amounts to maximizing the net effect.
  • e) An administrative constraint moves the optimum without costing anything.

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) False: you need the admissible domain and the endpoints.
  • b) False: you minimize the sum, and neither term is minimal there.
  • c) False: the tipping point is 30≈5.477\sqrt{30}\approx 5.477, so it is 6.
  • d) False: return maximal at 50 people, net effect maximal at 140.
  • e) False: a binding constraint costs the difference between the free optimum and the constrained optimum.
a)

FALSE. The critical number is only a candidate: you must still check that it belongs to the ADMISSIBLE DOMAIN, and compare it with the values at the ENDPOINTS. Exercise 5 gives the typical case: the free optimum is 600 beneficiaries, the cap allows 450, and the answer is 450. Correct statement: the optimum is found among the critical numbers lying in the domain, the points where the function is not differentiable, and the endpoints.

b)

FALSE, and it is the most costly reasoning error of the chapter. The two terms of a total cost almost always oppose each other: minimizing the structure cost of exercise 2 would lead to a single service point, which would make the access cost explode. Correct statement: you minimize the SUM, which leads to a point where neither term is minimal, and where, for the form ag+bgag+\dfrac{b}{g}, the two are even equal.

c)

FALSE. The tipping point between two integers nn and n+1n+1 is their GEOMETRIC mean n(n+1)\sqrt{n(n+1)}, not their midpoint. For 5 and 6, 30≈5.477\sqrt{30}\approx 5.477, so 5.4955.495 is already beyond it and 6 wins, as exercise 6 verifies. Correct statement: you evaluate the function at the two neighbouring integers and compare the values obtained.

d)

FALSE. Exercise 7 puts numbers on it: the return is maximal at 50 people and the net effect at 140. The two criteria answer two different questions, and the gap is no anecdote, since the net effect doubles between the two answers. Correct statement: you maximize the return when the budget is the scarce resource, and the net effect when need is.

e)

FALSE. A constraint that binds changes the value of the optimum, and this loss can be PUT IN NUMBERS: it is the difference between the free optimum and the constrained optimum, that is, 450450 thousand dollars per year in exercise 5. Correct statement: the cost of a constraint is the loss of objective it imposes, and it is the number to bring to a negotiation. If the constraint does not bind, that is, if the free optimum already satisfies it, then its cost is zero and it indeed changes nothing.

Exercise 9: Problem: the number of places in a childcare service

A subsidized childcare service receives an amount per place and bears costs that accelerate with size: premises, supervision, coordination. The number of places that maximizes the result is neither the smallest nor the largest.

The subsidy brings in 9.29.2 thousand dollars per place per year. The annual cost is C(p)=0.04p2+3.0p+180C(p)=0.04p^{2}+3.0p+180 thousand dollars for pp places.

20406080100120140160-240-200-160-120-80-404080120P(p)p, placesP(p), thousand dollars
  • a) Write the result P(p)P(p) in expanded form.
  • b) Compute P′(p)P'(p) and find the optimal number of places.
  • c) The number of places is an integer. Compare P(77)P(77) and P(78)P(78) and conclude.
  • d) The subsidy rises to 9.89.8 thousand dollars per place. Recompute the optimum and the result.
  • e) Compare the increase in the subsidy and the shift of the optimum, as percentages.

Type your answers, the page tells you right or wrong 0/11

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) P(p)=−0.04p2+6.2p−180P(p)=-0.04p^{2}+6.2p-180 thousand dollars.
  • b) p=77.5p=77.5 places, for P=60.25P=60.25 thousand.
  • c) P(77)=P(78)=60.24P(77)=P(78)=60.24 thousand: the two integers are tied, by symmetry about the vertex.
  • d) p=85p=85 places, for P=109P=109 thousand.
  • e) A subsidy 6.56.5 percent larger shifts the optimum by 9.79.7 percent: the margin rules.
a)

P(p)=9.2p−(0.04p2+3.0p+180)=−0.04p2+6.2p−180P(p)=9.2p-\bigl(0.04p^{2}+3.0p+180\bigr)=-0.04p^{2}+6.2p-180 thousand dollars. The coefficient 6.26.2 is the NET MARGIN per place before size effects, that is, the subsidy minus the proportional variable cost.

b)

P′(p)=−0.08p+6.2P'(p)=-0.08p+6.2, zero for p=6.20.08=77.5p=\dfrac{6.2}{0.08}=77.5 places. Since P′′=−0.08<0P''=-0.08<0, the curve is concave down and it is indeed a maximum. P(77.5)=−0.04×6,006.25+480.5−180=−240.25+480.5−180=60.25P(77.5)=-0.04\times 6{,}006.25+480.5-180=-240.25+480.5-180=60.25 thousand dollars.

c)

P(77)=−0.04×5,929+477.4−180=−237.16+477.4−180=60.24P(77)=-0.04\times 5{,}929+477.4-180=-237.16+477.4-180=60.24 and P(78)=−0.04×6,084+483.6−180=−243.36+483.6−180=60.24P(78)=-0.04\times 6{,}084+483.6-180=-243.36+483.6-180=60.24 thousand. The two values are EQUAL, to the dollar, which is no surprise: 7777 and 7878 are symmetric about 77.577.5, and a parabola takes the same value at two points symmetric about its vertex. The service can therefore choose 77 or 78 places indifferently, and decide on another criterion, such as the size of the groups.

d)

The result becomes P(p)=9.8p−0.04p2−3.0p−180=−0.04p2+6.8p−180P(p)=9.8p-0.04p^{2}-3.0p-180=-0.04p^{2}+6.8p-180. Setting −0.08p+6.8-0.08p+6.8 to zero gives p=6.80.08=85p=\dfrac{6.8}{0.08}=85 places. The result is P(85)=−0.04×7,225+578−180=−289+578−180=109P(85)=-0.04\times 7{,}225+578-180=-289+578-180=109 thousand dollars, nearly double the previous one.

e)

The subsidy goes from 9.29.2 to 9.89.8, an increase of 0.69.2≈6.5\dfrac{0.6}{9.2}\approx 6.5 percent. The optimum goes from 77.577.5 to 85 places, an increase of 7.577.5≈9.7\dfrac{7.5}{77.5}\approx 9.7 percent. The shift of the optimum is therefore MORE THAN PROPORTIONAL to the increase in the subsidy. The reason can be read in the formula p∗=s−3.00.08p^{*}=\dfrac{s-3.0}{0.08}: it is not the subsidy ss that rules, it is the MARGIN s−3.0s-3.0, which went from 6.26.2 to 6.86.8, also 9.79.7 percent. Every subsidy policy has this leverage effect, and it is stronger the closer the variable cost is to the subsidy: with a variable cost of 3.03.0, six percent more subsidy buys ten percent more places.

20406080100120140160-240-200-160-120-80-404080120P(p)(77.5, 60.25); P(77) = P(78) = 60.24p, placesP(p), thousand dollars

Exercise 10: Problem: coverage or depth?

With a fixed budget, a program can reach many people superficially or few people intensively. The trade-off is settled by a single derivative, and the result contradicts both opposite intuitions.

A budget of 270,000270{,}000 dollars pays 45 dollars per hour of support. If each person receives hh hours, the program reaches n=6,000hn=\dfrac{6{,}000}{h} people. The probability of success of a person who has received hh hours is f(h)=h2h2+100f(h)=\dfrac{h^{2}}{h^{2}+100}.

51015202530354050100150200250300350E(h)h, hours per personE(h), successes
  • a) Verify that 45 n h=270,00045\,n\,h=270{,}000 does give n h=6,000n\,h=6{,}000.
  • b) Write the total number of successes E(h)=n f(h)E(h)=n\,f(h) and simplify.
  • c) Compute E′(h)E'(h) and find the optimal length.
  • d) Give the number of people reached, the individual probability of success and the total at the optimum.
  • e) Compute E(4)E(4) and E(25)E(25). What do you notice, and what do you conclude?

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) 45 n h=270,00045\,n\,h=270{,}000 gives n h=6,000n\,h=6{,}000 hours.
  • b) E(h)=6,000hh2+100E(h)=\dfrac{6{,}000h}{h^{2}+100}.
  • c) E′(h)=6,000 (100−h2)(h2+100)2E'(h)=\dfrac{6{,}000\,(100-h^{2})}{(h^{2}+100)^{2}}, zero at h=10h=10 hours.
  • d) 600 people, a 50 percent success rate each, 300 successes in total.
  • e) E(4)=E(25)≈206.9E(4)=E(25)\approx 206.9: the model is symmetric under h↦100hh\mapsto\dfrac{100}{h}, and the parameter 100 alone decides the trade-off.
a)

The total budget is the number of people times the hours received, times the hourly rate: 45 n h=270,00045\,n\,h=270{,}000. Dividing by 45: n h=6,000n\,h=6{,}000 hours of support in total, so n=6,000hn=\dfrac{6{,}000}{h}.

b)

E(h)=n f(h)=6,000h×h2h2+100=6,000hh2+100E(h)=n\,f(h)=\dfrac{6{,}000}{h}\times\dfrac{h^{2}}{h^{2}+100}=\dfrac{6{,}000h}{h^{2}+100} successes. Cancelling one hh is what makes the problem tractable, and it deserves to be done before any differentiation: differentiating the unsimplified form would require the quotient rule twice.

c)

By the quotient rule: E′(h)=6,000 (h2+100)−6,000h×2h(h2+100)2=6,000 (100−h2)(h2+100)2E'(h)=\dfrac{6{,}000\,(h^{2}+100)-6{,}000h\times 2h}{(h^{2}+100)^{2}}=\dfrac{6{,}000\,(100-h^{2})}{(h^{2}+100)^{2}}. The denominator is a square, so the sign is that of 100−h2100-h^{2}: positive for h<10h<10, negative beyond. The optimal length is h=10h=10 hours per person, and it is a maximum.

d)

At the optimum, n=6,00010=600n=\dfrac{6{,}000}{10}=600 people are reached, f(10)=100200=0.50f(10)=\dfrac{100}{200}=0.50, that is, a 50 percent individual success rate, and E(10)=60,000200=300E(10)=\dfrac{60{,}000}{200}=300 successes in total. Neither maximum coverage, which would reach thousands of people with no effect, nor maximum depth, which would give a few dozen almost certain successes, beats this split.

e)

E(4)=24,000116≈206.9E(4)=\dfrac{24{,}000}{116}\approx 206.9 and E(25)=150,000725≈206.9E(25)=\dfrac{150{,}000}{725}\approx 206.9 successes: the two values are EQUAL. This is no accident, since E(h)=E ⁣(100h)E(h)=E\!\left(\dfrac{100}{h}\right) for every hh, and 4×25=1004\times 25=100. The model is therefore symmetric between coverage and depth around h=10h=10: diluting the support to four hours to reach 1,500 people produces exactly as much as concentrating it at twenty-five hours on 240 people, and both lose about a third of the successes compared with the optimum. This symmetry is a result of the MODEL, not of the world: it comes from the form of ff, whose parameter 100 alone sets the balance point. A serious evaluation would therefore begin by estimating this parameter from data, since it, and it alone, decides the trade-off.

51015202530354050100150200250300350E(h)(10, 300)E(4) = E(25) ≈ 206.9h, hours per personE(h), successes
Something missing from this set? A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.

Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space. Rather not create an account? Write to me directly.

What is it about?
I read every request myself, nobody else sees it. No need to write your name or your school.
When your request is dealt with, you hear about it by email and in your space.

By sending, you agree that I read your request to answer it. It is kept with your account, erased with it, and never published: privacy policy.

Previous chapter Curve sketching, 201-103 Next chapter Trigonometric functions and their derivatives

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/cegep-103-applied-optimization. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Looking for a differential calculus tutor in Montreal?

Get in touch for a first session. Calculus in the mathematics profile is the course that opens the limited-enrolment admissions to business and economics programs, and it is won or lost in the first weeks.

Site by Studio Squalli