Differential Calculus 201-SN2-RE • CEGEP, Montreal

Corrected exercises: applied optimization (201-SN2-RE)

This is the corrected exercise set on applied optimization for Differential Calculus, 201-SN2-RE (formerly 201-NYA), the longest and most heavily weighted type of problem on the final exam. Part A sets up the method on five geometric problems, from the pen against a barn wall to the cylinder inscribed in a sphere and the Norman window: identify the constraint and the function to optimize, eliminate a variable, establish the physical domain, differentiate, and above all JUSTIFY that the point found really is an extremum, the step that half of all solutions leave out. Part B rises to exam level with physical and economic contexts: marginal cost and maximum profit, the minimal travel time problem, which gives back Snell's law of refraction by differential calculus alone, the closest point on a parabola and maximum power transfer, the economic order quantity, and the undersea cable. Part C adds five classics: the rectangle under a parabola, the cone rolled from a disk, the strongest beam cut from a log, the longest ladder around an L-shaped corner and the most economical cruising speed of a ship.

This set is written for CEGEP students in the Science program (Sciences de la nature) taking differential calculus, 201-SN2-RE.

Marks are rarely lost on the differentiation, which is mechanical, and almost always on the three steps around it: translating the statement into equations, establishing the right domain, and justifying the nature of the extremum. An optimization problem whose answer is not justified earns only a fraction of the marks, even if the final number is exact.

15 corrected exercises • 150 points • 225 minutes

This chapter is part of 201-SN2-RE, 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 six-step method: 1) draw a DIAGRAM and name the variables; 2) write the function to OPTIMIZE; 3) write the CONSTRAINT; 4) use the constraint to eliminate a variable and keep only ONE; 5) establish the physically admissible DOMAIN; 6) differentiate, find the critical numbers and JUSTIFY the extremum.
  • • On a CLOSED bounded interval [a,b][a,b]: the absolute maximum and minimum exist (Extreme Value Theorem) and are found by comparing ff at the critical numbers AND at both endpoints.
  • • On an OPEN interval: the endpoints are not reached. The justification must come from elsewhere: the First Derivative Test over the whole interval, the Second Derivative Test, or showing that ff tends to infinity (or to a smaller value) at the ends.
  • • If there is ONLY ONE critical number on the interval and the First Derivative Test shows a local maximum there, then that maximum is ABSOLUTE on the interval. It is the most economical justification.
  • • Economics: the marginal cost is C′(x)C'(x), the revenue is R(x)=x p(x)R(x)=x\,p(x) where pp is the unit price, and the profit is P(x)=R(x)−C(x)P(x)=R(x)-C(x). Profit is maximal where R′(x)=C′(x)R'(x)=C'(x), that is, where marginal revenue equals marginal cost.
  • • Always check that the answer makes physical SENSE: a negative length, a zero radius or a quantity greater than the available stock signals an error in the domain or in the constraint.
  • • Do not confuse the variable being optimized with the quantity asked for: the question often asks for the DIMENSIONS, not the value of the maximum, or the other way around.

Part A: The method and geometric problems (/50)

Exercise 1: Constraint, objective function and domain

A farmer has 200 metres of fencing to enclose a rectangular pen against the wall of a barn, which therefore needs no fence. We look for the maximum area.

  • a) Draw the diagram, name the variables, then write the function to optimize and the constraint.
  • b) Reduce the problem to a single variable and establish the physically admissible domain.
  • c) Find the dimensions that maximize the area, and JUSTIFY that this really is an absolute maximum.
  • d) What becomes of the answer if the pen must be fenced on all four sides? Compare the two shapes obtained and comment.

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

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

Answers

  • a) A=LℓA=L\ell with L+2ℓ=200L+2\ell=200
  • b) A(ℓ)=200ℓ−2ℓ2A(\ell)=200\ell-2\ell^{2} on (0,100)(0, 100)
  • c) ℓ=50\ell=50 m, L=100L=100 m: 50005000 m²
  • d) Square of side 5050 m: 25002500 m², half as much
a)

Diagram: a rectangle with one side of length LL along the barn wall, and the other three sides fenced, namely the side LL opposite the wall and the two sides of width ℓ\ell. Function to OPTIMIZE: the area A=LℓA=L\ell. CONSTRAINT: the available fencing gives L+2ℓ=200L+2\ell=200. Translating the statement decides everything: mixing up the two relations, or fencing four sides when the wall spares one, brings down the whole rest of the problem even if the computation that follows is flawless.

b)

From the constraint, L=200−2ℓL=200-2\ell, which we substitute into the area: A(ℓ)=(200−2ℓ)ℓ=200ℓ−2ℓ2A(\ell)=(200-2\ell)\ell=200\ell-2\ell^{2}. Domain: we need ℓ>0\ell>0 and L=200−2ℓ>0L=200-2\ell>0, that is, ℓ<100\ell<100. The admissible domain is therefore (0,100)\left(0, 100\right), or [0,100]\left[0, 100\right] if we accept the degenerate cases of zero area. Taking the CLOSED interval [0,100]\left[0, 100\right] is convenient here, because it lets us invoke the Extreme Value Theorem directly in part c).

c)

A′(ℓ)=200−4ℓA'(\ell)=200-4\ell, which vanishes for ℓ=50\ell=50. Then L=200−100=100L=200-100=100 and the area is A=100×50=5000A=100\times 50=5000 m². Justification: on the closed interval [0,100]\left[0, 100\right], the continuous function AA reaches its absolute maximum, and the candidates are the critical number ℓ=50\ell=50 and the endpoints. Now A(0)=0A(0)=0 and A(100)=0A(100)=0, while A(50)=5000A(50)=5000: the absolute maximum is indeed reached at ℓ=50\ell=50 ✓. We could also conclude from A′′(ℓ)=−4<0A''(\ell)=-4<0, which shows a parabola that is concave down, so a vertex that is a maximum. The optimal dimensions are 100100 m parallel to the wall and 5050 m perpendicular to it.

d)

With four fenced sides, the constraint becomes 2L+2ℓ=2002L+2\ell=200, that is, L+ℓ=100L+\ell=100 and L=100−ℓL=100-\ell. The area is A(ℓ)=(100−ℓ)ℓA(\ell)=(100-\ell)\ell, whose derivative 100−2ℓ100-2\ell vanishes at ℓ=50\ell=50, hence L=50L=50: we get a SQUARE with sides of 50 m and an area of 25002500 m². Comparison: with the same length of fencing, the pen against the wall reaches 50005000 m², exactly TWICE as much. The optimal shape changes too: a square in the second case, a rectangle twice as long as it is wide in the first. The explanation fits in one sentence: the wall provides one side for free, and the optimum always consists in sharing the fencing evenly between the two DIRECTIONS, here 100 m for the direction parallel to the wall and 2×502\times 50 m for the perpendicular direction. This principle of balance between directions comes back in almost every geometric optimization problem.

wallLℓℓ

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: The open-top box and the open domain

When the constraint bears on the volume rather than on a length, the domain becomes an OPEN interval and the justification changes completely. The figure below shows the situation.

xxhopen
  • a) We want to make a box with a square base and NO lid, with a volume of 32,00032{,}000 cm³, using as little material as possible. Set up the problem and reduce it to one variable.
  • b) Establish the domain. Why does the Extreme Value Theorem not apply directly here?
  • c) Find the optimal dimensions and justify the minimum with an argument that is valid on an open interval.
  • d) Compare the ratio of height to side obtained with the one you would get WITH a lid. Is the result intuitive?

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

a)
b)
c)
d)
Show the solution

Answers

  • a) S(x)=x2+128,000xS(x)=x^{2}+\frac{128{,}000}{x}
  • b) (0,+∞)(0, +\infty): no Extreme Value Theorem
  • c) x=40x=40 cm, h=20h=20 cm, S=4800S=4800 cm²
  • d) Without a lid hx=12\frac{h}{x}=\frac{1}{2}; with a lid, a cube
a)

Let xx be the side of the square base and hh the height. Volume (CONSTRAINT): V=x2h=32,000V=x^{2}h=32{,}000, hence h=32,000x2h=\frac{32{,}000}{x^{2}}. Surface area to MINIMIZE, with no lid, so one base and four walls: S=x2+4xhS=x^{2}+4xh. Substituting: S(x)=x2+4x⋅32,000x2=x2+128,000xS(x)=x^{2}+4x\cdot\frac{32{,}000}{x^{2}}=x^{2}+\frac{128{,}000}{x}.

b)

Domain: x>0x>0 strictly, since x=0x=0 defines no box and would make hh infinite. On the other hand there is no upper bound: a huge base with a tiny height is still geometrically admissible. The domain is therefore (0,+∞)\left(0, +\infty\right), an OPEN and unbounded interval. The Extreme Value Theorem does not apply, since it requires a closed and bounded interval: here it guarantees the existence of no extremum at all, and the justification will have to come from elsewhere. Note also that S→+∞S\to+\infty at both ends: when x→0+x\to 0^{+} because of the term 128,000x\frac{128{,}000}{x}, and when x→+∞x\to+\infty because of x2x^{2}.

c)

S′(x)=2x−128,000x2S'(x)=2x-\frac{128{,}000}{x^{2}}. Setting it to zero: 2x=128,000x22x=\frac{128{,}000}{x^{2}}, so 2x3=128,0002x^{3}=128{,}000, that is, x3=64,000x^{3}=64{,}000 and x=40x=40 cm. Then h=32,0001600=20h=\frac{32{,}000}{1600}=20 cm, and the surface area is S=1600+128,00040=1600+3200=4800S=1600+\frac{128{,}000}{40}=1600+3200=4800 cm². Justification valid on an open interval: S′′(x)=2+256,000x3>0S''(x)=2+\frac{256{,}000}{x^{3}}>0 for every x>0x>0, so SS is CONCAVE UP on the whole domain; a critical point of a concave up function is necessarily a minimum, and it is absolute. We could also argue with the First Derivative Test: S′<0S'<0 for x<40x<40 and S′>0S'>0 for x>40x>40, so SS decreases then increases, with a single critical number: the minimum at x=40x=40 is therefore absolute. This is the expected argument, and it replaces any appeal to the endpoints.

d)

Without a lid we get h=20h=20 and x=40x=40, that is, hx=12\frac{h}{x}=\frac{1}{2}: the box is twice as wide as it is tall. With a lid, the surface area would be S=2x2+4xh=2x2+128,000xS=2x^{2}+4xh=2x^{2}+\frac{128{,}000}{x}, with derivative 4x−128,000x24x-\frac{128{,}000}{x^{2}}, which vanishes for x3=32,000x^{3}=32{,}000, that is, x≈31.75x\approx 31.75 cm and h=32,000x2≈31.75h=\frac{32{,}000}{x^{2}}\approx 31.75 cm: we get a CUBE, with hx=1\frac{h}{x}=1. The result is intuitive in hindsight: with a lid, all directions play the same role and the most economical shape is the cube, the three-dimensional analogue of the square in the previous problem. Without a lid, the top is free, so it pays to SPREAD the box out to enlarge the face that costs nothing, exactly as the barn wall made it pay to stretch the pen along its direction. The same principle governs both problems: the dimension whose surface is not charged for should be developed.

1020304050607080901002000400060008000100001200014000minimum at x = 40S → +∞at 0⁺

Exercise 3: The cylinder inscribed in a sphere

A classic exam problem in geometry, where the constraint is the Pythagorean theorem and where the substitution requires some care. The figure below shows the situation.

Rrh
  • a) A right circular cylinder is inscribed in a sphere of radius R=3R=3. Calling rr the radius of the cylinder and hh its height, write the constraint linking rr, hh and RR.
  • b) Express the volume of the cylinder as a function of hh alone, and give the domain.
  • c) Maximize the volume and give the optimal dimensions as well as the volume obtained.
  • d) What fraction of the volume of the sphere does the optimal cylinder occupy? Does this ratio depend on RR?

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

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

Answers

  • a) r2+h24=9r^{2}+\frac{h^{2}}{4}=9
  • b) V(h)=π(9h−h34)V(h)=\pi\left(9h-\frac{h^{3}}{4}\right) on (0,6)(0, 6)
  • c) h=23h=2\sqrt{3}, r=6r=\sqrt{6}, V=123π≈65.30V=12\sqrt{3}\pi\approx 65.30
  • d) 13≈57.7\frac{1}{\sqrt{3}}\approx 57.7 %, independent of RR
a)

Since the cylinder is inscribed and centred, its axis passes through the centre of the sphere and its two base circles lie at a distance h2\frac{h}{2} from the centre. A radius of the sphere joining the centre to a point on the rim of a base forms a right triangle with legs rr and h2\frac{h}{2} and hypotenuse RR. The constraint is therefore r2+(h2)2=R2r^{2}+\left(\frac{h}{2}\right)^{2}=R^{2}, here r2+h24=9r^{2}+\frac{h^{2}}{4}=9.

b)

Volume of the cylinder: V=πr2hV=\pi r^{2}h. Since the constraint gives r2=9−h24r^{2}=9-\frac{h^{2}}{4} directly, the substitution is immediate and avoids any square root: V(h)=π(9−h24)h=π(9h−h34)V(h)=\pi\left(9-\frac{h^{2}}{4}\right)h=\pi\left(9h-\frac{h^{3}}{4}\right). Domain: we need h>0h>0 and r2>0r^{2}>0, that is, h24<9\frac{h^{2}}{4}<9, or h<6h<6. The domain is therefore (0,6)\left(0, 6\right), which can be closed to [0,6]\left[0, 6\right] to include the degenerate cases of zero volume. Substituting r2r^{2} rather than rr is the technical move of the exercise: writing r=9−h24r=\sqrt{9-\frac{h^{2}}{4}} and substituting it into VV would lead to the same result, but with a much more painful differentiation.

c)

V′(h)=π(9−3h24)V'(h)=\pi\left(9-\frac{3h^{2}}{4}\right), which vanishes when 3h24=9\frac{3h^{2}}{4}=9, that is, h2=12h^{2}=12 and h=23≈3.464h=2\sqrt{3}\approx 3.464. Then r2=9−124=6r^{2}=9-\frac{12}{4}=6, so r=6≈2.449r=\sqrt{6}\approx 2.449. Volume: V=π⋅6⋅23=123 π≈65.30V=\pi\cdot 6\cdot 2\sqrt{3}=12\sqrt{3}\,\pi\approx 65.30. Justification: on [0,6]\left[0, 6\right], V(0)=V(6)=0V(0)=V(6)=0 and V(23)>0V\left(2\sqrt{3}\right)>0, so the absolute maximum is indeed at the critical number ✓ (we can also note that V′′(h)=−3πh2<0V''(h)=-\frac{3\pi h}{2}<0 on the domain, hence concave down and a maximum).

d)

Volume of the sphere: VS=43πR3=43π(27)=36π≈113.10V_{S}=\frac{4}{3}\pi R^{3}=\frac{4}{3}\pi(27)=36\pi\approx 113.10. Ratio: 123π36π=33=13≈0.577\frac{12\sqrt{3}\pi}{36\pi}=\frac{\sqrt{3}}{3}=\frac{1}{\sqrt{3}}\approx 0.577, that is, about 57.757.7 percent. The ratio does NOT depend on RR, and you can see it without redoing the computation: the problem is invariant under a change of scale, since multiplying all lengths by a factor kk multiplies all volumes by k3k^{3}, which leaves their ratio unchanged. Redoing the computation with any RR, we would indeed find h=2R3h=\frac{2R}{\sqrt{3}} and r2=2R23r^{2}=\frac{2R^{2}}{3}, hence V=4πR333V=\frac{4\pi R^{3}}{3\sqrt{3}} and the ratio 13\frac{1}{\sqrt{3}} ✓. This homogeneity argument pays off on an exam: it predicts that a dimensionless ratio will be universal, and checks the consistency of the result along the way.

rh/2Rr² + (h/2)² = R²

Exercise 4: The box cut from a sheet of cardboard

The most classic optimization problem of all, and the one where the DOMAIN follows from the geometry rather than from the statement. The figure below shows the situation.

30 cm30 cmxx
  • a) From a square sheet of cardboard 30 cm on a side, a square of side xx is cut from each corner, then the edges are folded up to form an open box. Express the volume as a function of xx.
  • b) Establish the admissible domain, justifying each endpoint by the geometry.
  • c) Find the xx that maximizes the volume and the value of that volume, and justify that it really is an absolute maximum.
  • d) Does the second critical number found by solving V′(x)=0V'(x)=0 make sense? What does it represent geometrically?

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

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

Answers

  • a) V(x)=x(30−2x)2V(x)=x(30-2x)^{2}
  • b) (0,15)(0, 15)
  • c) x=5x=5 cm: 20002000 cm³
  • d) x=15x=15: a degenerate box of zero volume
a)

After cutting and folding, the height of the box is xx (the folded-up square), and the base is a square whose side has lost xx at each end, so it measures 30−2x30-2x. The volume is V(x)=x(30−2x)2V(x)=x(30-2x)^{2}.

b)

We need x>0x>0 for the cut to exist, and 30−2x>030-2x>0 for the base to survive, that is, x<15x<15. The admissible domain is therefore (0,15)\left(0, 15\right), which can be closed to [0,15]\left[0, 15\right] by accepting the two degenerate cases of zero volume (no cut at all, or a cut that uses up the whole sheet). Closing the interval is convenient here, because it lets us invoke the Extreme Value Theorem.

c)

Let us expand before differentiating, it is safer: V(x)=x(900−120x+4x2)=900x−120x2+4x3V(x)=x\left(900-120x+4x^{2}\right)=900x-120x^{2}+4x^{3}, so V′(x)=900−240x+12x2=12(x2−20x+75)=12(x−5)(x−15)V'(x)=900-240x+12x^{2}=12\left(x^{2}-20x+75\right)=12(x-5)(x-15). The critical numbers are x=5x=5 and x=15x=15. On [0,15]\left[0, 15\right], the candidates are therefore 00, 55 and 1515: V(0)=0V(0)=0, V(15)=0V(15)=0 and V(5)=5(30−10)2=5(400)=2000V(5)=5(30-10)^{2}=5(400)=2000 cm³. The absolute maximum is therefore 20002000 cm³, reached for a cut of 55 cm ✓. You can also factor V′(x)=(30−2x)(30−6x)V'(x)=(30-2x)(30-6x) directly, which gives the roots without expanding.

d)

The second critical number x=15x=15 corresponds to the endpoint of the domain: cutting 15 cm from each corner of a 30 cm sheet uses up the whole width, the base disappears and the volume is zero. It is therefore not a maximum but the degenerate case, mathematically valid (it does make the derivative zero) and physically meaningless. It is a useful reminder: solving V′(x)=0V'(x)=0 produces CANDIDATES, and you must always confront them with the domain and with geometric common sense before concluding. A student who announced x=15x=15 without evaluating VV would end up with a box of zero volume.

Exercise 5: The Norman window

A rectangle topped by a semicircle, a fixed perimeter, an area to maximize. The constraint mixes segments and an arc, and the final result is surprisingly simple. The figure below shows the situation.

rh
  • a) A window consists of a rectangle topped by a semicircle. Its total perimeter is 8 m. Calling rr the radius of the semicircle and hh the height of the rectangle, write the constraint and the area.
  • b) Reduce the area to a function of rr alone and give the domain.
  • c) Find the rr and hh that maximize the area, as well as the maximum area.
  • d) Show that the relation h=rh=r is EXACT, and not the product of rounding. What does it mean for the shape of the window?

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

a)
b)
c)
d)
Show the solution

Answers

  • a) 2r+2h+πr=82r+2h+\pi r=8; A=2rh+πr22\mathcal{A}=2rh+\frac{\pi r^{2}}{2}
  • b) A(r)=8r−2r2−πr22\mathcal{A}(r)=8r-2r^{2}-\frac{\pi r^{2}}{2} on (0,82+π)\left(0,\frac{8}{2+\pi}\right)
  • c) r=h=84+π≈1.120r=h=\frac{8}{4+\pi}\approx 1.120 m; A≈4.481\mathcal{A}\approx 4.481 m²
  • d) h=rh=r exactly
a)

The width of the rectangle is 2r2r (the diameter of the semicircle). The perimeter consists of the base 2r2r, the two vertical sides 2h2h, and the arc of the semicircle πr\pi r (half of 2πr2\pi r): the upper horizontal side does not exist, since the semicircle sits on it. CONSTRAINT: 2r+2h+πr=82r+2h+\pi r=8. AREA: that of the rectangle plus that of the semicircle, A=2rh+πr22\mathcal{A}=2rh+\frac{\pi r^{2}}{2}.

b)

From the constraint, 2h=8−2r−πr2h=8-2r-\pi r, so h=8−2r−πr2h=\frac{8-2r-\pi r}{2}. Substituting: A(r)=2r⋅8−2r−πr2+πr22=r(8−2r−πr)+πr22=8r−2r2−πr2+πr22=8r−2r2−πr22\mathcal{A}(r)=2r\cdot\frac{8-2r-\pi r}{2}+\frac{\pi r^{2}}{2}=r(8-2r-\pi r)+\frac{\pi r^{2}}{2}=8r-2r^{2}-\pi r^{2}+\frac{\pi r^{2}}{2}=8r-2r^{2}-\frac{\pi r^{2}}{2}. Domain: r>0r>0, and h>0h>0 requires 8−2r−πr>08-2r-\pi r>0, that is, r<82+π≈1.556r<\frac{8}{2+\pi}\approx 1.556. The domain is therefore (0,82+π)\left(0,\frac{8}{2+\pi}\right).

c)

A′(r)=8−4r−πr=8−r(4+π)\mathcal{A}'(r)=8-4r-\pi r=8-r(4+\pi), which vanishes for r=84+π≈1.1202r=\frac{8}{4+\pi}\approx 1.1202 m. It is indeed a maximum, since A′′(r)=−(4+π)<0\mathcal{A}''(r)=-(4+\pi)<0: the function is concave down, so its only critical point is an absolute maximum. Corresponding height: h=8−2(1.1202)−π(1.1202)2≈1.1202h=\frac{8-2(1.1202)-\pi(1.1202)}{2}\approx 1.1202 m. Maximum area: A≈8(1.1202)−2(1.2548)−π(1.2548)2≈8.962−2.510−1.971≈4.481\mathcal{A}\approx 8(1.1202)-2(1.2548)-\frac{\pi(1.2548)}{2}\approx 8.962-2.510-1.971\approx 4.481 m².

d)

Let us prove it exactly. We have r=84+πr=\frac{8}{4+\pi}, so 8=r(4+π)8=r(4+\pi). Substituting into the expression for hh: h=8−2r−πr2=r(4+π)−2r−πr2=4r+πr−2r−πr2=2r2=rh=\frac{8-2r-\pi r}{2}=\frac{r(4+\pi)-2r-\pi r}{2}=\frac{4r+\pi r-2r-\pi r}{2}=\frac{2r}{2}=r ✓. The relation is therefore EXACT, all the terms in π\pi cancelling out. Geometric meaning: the height of the rectangle equals the radius of the semicircle, so it is HALF the width 2r2r. The optimal rectangle is thus twice as wide as it is tall, and the whole window fits exactly into half a square topped by its semicircle. It is the same kind of remarkable proportion as the h=2rh=2r of the can: geometric optimization problems almost always produce a simple ratio, independent of the numerical data, and checking it symbolically is the best control of the solution.

width 2rheight hrperimeter = 2h + 2r + πrarea = 2rh + πr²/2

Part B: Physical and economic contexts (/50)

Exercise 6: Marginal cost, revenue and maximum profit

In economics, the derivative goes by the name of “marginal”. The vocabulary changes; the differential calculus stays exactly the same.

  • a) A company has a total cost of C(x)=2000+40x+0.05x2C(x)=2000+40x+0.05x^{2} dollars for xx units produced. Give the marginal cost and interpret C′(100)C'(100) concretely.
  • b) The unit price follows p(x)=120−0.15xp(x)=120-0.15x dollars. Write the revenue R(x)R(x) and the profit P(x)P(x).
  • c) Find the production level that maximizes profit, and check the rule “marginal revenue equals marginal cost”.
  • d) The average cost is Cˉ(x)=C(x)x\bar{C}(x)=\frac{C(x)}{x}. Minimize it and show that at the minimum, the average cost equals the marginal cost. Is this a coincidence?

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

a)
b)
c)
d)
Show the solution

Answers

  • a) C′(x)=40+0.1xC'(x)=40+0.1x; C′(100)=50C'(100)=50 dollars
  • b) R(x)=120x−0.15x2R(x)=120x-0.15x^{2}; P(x)=−0.2x2+80x−2000P(x)=-0.2x^{2}+80x-2000
  • c) x=200x=200: 60006000 dollars; R′=C′=60R'=C'=60
  • d) x=200x=200: Cˉ=C′=60\bar{C}=C'=60 dollars
a)

Marginal cost: C′(x)=40+0.1xC'(x)=40+0.1x dollars per unit. At x=100x=100: C′(100)=40+10=50C'(100)=40+10=50 dollars. Concrete interpretation: producing the 101st unit costs about 50 dollars more. Direct check: C(101)−C(100)=(2000+4040+0.05×10201)−(2000+4000+500)=6550.05−6500=50.05C(101)-C(100)=(2000+4040+0.05\times 10201)-(2000+4000+500)=6550.05-6500=50.05 dollars, which confirms the approximation to within five cents. The marginal cost is thus a differential in disguise: it is dCdC for dx=1dx=1, and the 5-cent gap is exactly the neglected quadratic term.

b)

Revenue: R(x)=x p(x)=x(120−0.15x)=120x−0.15x2R(x)=x\,p(x)=x(120-0.15x)=120x-0.15x^{2}. Profit: P(x)=R(x)−C(x)=120x−0.15x2−2000−40x−0.05x2=−0.2x2+80x−2000P(x)=R(x)-C(x)=120x-0.15x^{2}-2000-40x-0.05x^{2}=-0.2x^{2}+80x-2000. The profit is a parabola that opens downward, which guarantees from the start that a unique maximum exists.

c)

P′(x)=−0.4x+80P'(x)=-0.4x+80, which vanishes for x=200x=200 units. Since P′′(x)=−0.4<0P''(x)=-0.4<0, it is indeed a maximum, and it is absolute since the parabola is concave down. Maximum profit: P(200)=−0.2(40,000)+16,000−2000=−8000+16,000−2000=6000P(200)=-0.2(40{,}000)+16{,}000-2000=-8000+16{,}000-2000=6000 dollars. Checking the rule: the marginal revenue is R′(x)=120−0.3xR'(x)=120-0.3x, so R′(200)=120−60=60R'(200)=120-60=60 dollars; the marginal cost is C′(200)=40+20=60C'(200)=40+20=60 dollars. They are equal ✓. The rule is proved in one line: P′=R′−C′P'=R'-C', so setting P′P' to zero is exactly the same as writing R′=C′R'=C'. The economic interpretation is crystal clear: as long as the next unit brings in more than it costs, keep producing; stop when the two become equal.

d)

Cˉ(x)=2000x+40+0.05x\bar{C}(x)=\frac{2000}{x}+40+0.05x. Differentiating: Cˉ′(x)=−2000x2+0.05\bar{C}'(x)=-\frac{2000}{x^{2}}+0.05, which vanishes when x2=40,000x^{2}=40{,}000, that is, x=200x=200 units. It is a minimum, since Cˉ′′(x)=4000x3>0\bar{C}''(x)=\frac{4000}{x^{3}}>0. Value: Cˉ(200)=10+40+10=60\bar{C}(200)=10+40+10=60 dollars per unit, and the marginal cost C′(200)=40+20=60C'(200)=40+20=60 dollars: the two coincide ✓. It is NOT a coincidence, and the general proof is short: Cˉ(x)=C(x)x\bar{C}(x)=\frac{C(x)}{x} gives, by the quotient rule, Cˉ′(x)=C′(x)x−C(x)x2\bar{C}'(x)=\frac{C'(x)x-C(x)}{x^{2}}. Setting this derivative to zero amounts to C′(x)x=C(x)C'(x)x=C(x), that is, C′(x)=C(x)x=Cˉ(x)C'(x)=\frac{C(x)}{x}=\bar{C}(x). At the minimum of the average cost, marginal cost and average cost are therefore always equal, whatever the cost function. It is a standard result of microeconomics, and it comes entirely out of the quotient rule. A small coincidence specific to this problem: the production level that minimizes the average cost is here the same as the one that maximizes profit, which is not true in general and comes from the choice of coefficients.

Exercise 7: The minimal travel time and the law of refraction

The figure shows the path of a lifeguard who runs on the sand and then swims: starting from A, they enter the water at the point xx and reach B. The same computation governs light crossing two media.

θ₁θ₂AB40 m30 mx100 msandwater
  • a) A lifeguard is 40 m from the shoreline (on the sand), the swimmer in distress is 30 m from the shoreline in the water, and their projections onto the shoreline are 100 m apart. The lifeguard runs at 8 m/s and swims at 2 m/s. Write the total time T(x)T(x), where xx is the distance covered along the shoreline before entering the water.
  • b) Differentiate TT and write the equation that gives the optimal entry point. Interpret each term.
  • c) Solve numerically and give the minimum time. Check against the endpoint values.
  • d) Show that the optimality condition reads sin⁡θ1v1=sin⁡θ2v2\frac{\sin\theta_{1}}{v_{1}}=\frac{\sin\theta_{2}}{v_{2}} and identify the law obtained. What does this result say about light?

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

a)
b)
c)
d)
Show the solution

Answers

  • a) T(x)=1600+x28+900+(100−x)22T(x)=\frac{\sqrt{1600+x^{2}}}{8}+\frac{\sqrt{900+(100-x)^{2}}}{2}
  • b) sin⁡θ18=sin⁡θ22\frac{\sin\theta_{1}}{8}=\frac{\sin\theta_{2}}{2}
  • c) x≈92.92x\approx 92.92 m: T≈28.06T\approx 28.06 s
  • d) Snell's law
a)

The path on the sand goes from the lifeguard to the entry point: its length is 402+x2=1600+x2\sqrt{40^{2}+x^{2}}=\sqrt{1600+x^{2}}, covered at 8 m/s. The path in the water goes from the entry point to the swimmer: its length is 302+(100−x)2=900+(100−x)2\sqrt{30^{2}+(100-x)^{2}}=\sqrt{900+(100-x)^{2}}, covered at 2 m/s. The total time is therefore T(x)=1600+x28+900+(100−x)22T(x)=\frac{\sqrt{1600+x^{2}}}{8}+\frac{\sqrt{900+(100-x)^{2}}}{2}, on the domain [0,100]\left[0, 100\right].

b)

T′(x)=x81600+x2−100−x2900+(100−x)2T'(x)=\frac{x}{8\sqrt{1600+x^{2}}}-\frac{100-x}{2\sqrt{900+(100-x)^{2}}}. Setting it to zero: x81600+x2=100−x2900+(100−x)2\frac{x}{8\sqrt{1600+x^{2}}}=\frac{100-x}{2\sqrt{900+(100-x)^{2}}}. Interpretation: in each term, the quotient x1600+x2\frac{x}{\sqrt{1600+x^{2}}} is the SINE of the angle the path makes with the normal to the shoreline, and the remaining denominator is the speed. The equation therefore says that the ratio “sine over speed” must be the same on both sides, which part d) makes formal.

c)

The equation cannot be solved algebraically in a simple way (it leads to a polynomial of degree 4), so we solve it numerically, by bisection or by Newton's method. The critical number is x≈92.92x\approx 92.92 m, and the corresponding time is T(92.92)=1600+86348+900+50.12≈12.65+15.41≈28.06T(92.92)=\frac{\sqrt{1600+8634}}{8}+\frac{\sqrt{900+50.1}}{2}\approx 12.65+15.41\approx 28.06 s. Justification: on the closed interval [0,100]\left[0, 100\right], we compare with the endpoints, T(0)=5+52.20=57.20T(0)=5+52.20=57.20 s (entering the water right away) and T(100)=13.46+15=28.46T(100)=13.46+15=28.46 s (running all the way to the perpendicular). Since 28.06<28.46<57.2028.06<28.46<57.20, the absolute MINIMUM is indeed at the critical number ✓. These three values outline the graph of TT: it falls steeply, bottoms out a little before x=100x=100, then rises slightly. The result makes physical sense: since swimming is four times slower than running, the lifeguard should run almost the whole distance (92.992.9 m out of 100) before entering the water. Note that the gain over the naive solution “run all the way” is only 0.40.4 s: the minimum is very flat, which is typical of optima and explains why an error of a few metres on the entry point costs almost nothing.

d)

Let θ1\theta_{1} be the angle between the path on the sand and the normal to the shoreline, and θ2\theta_{2} the corresponding angle in the water. By the definition of the sine in each right triangle: sin⁡θ1=x1600+x2\sin\theta_{1}=\frac{x}{\sqrt{1600+x^{2}}} and sin⁡θ2=100−x900+(100−x)2\sin\theta_{2}=\frac{100-x}{\sqrt{900+(100-x)^{2}}}. The condition T′(x)=0T'(x)=0 from part b) then reads exactly sin⁡θ18=sin⁡θ22\frac{\sin\theta_{1}}{8}=\frac{\sin\theta_{2}}{2}, that is, sin⁡θ1v1=sin⁡θ2v2\frac{\sin\theta_{1}}{v_{1}}=\frac{\sin\theta_{2}}{v_{2}} ✓. This is SNELL'S LAW of refraction, obtained here without any physics, by differential calculus alone. Numerical check at the optimum: sin⁡θ1=0.9185\sin\theta_{1}=0.9185 and sin⁡θ2=0.2296\sin\theta_{2}=0.2296, hence 0.91858=0.11481\frac{0.9185}{8}=0.11481 and 0.22962=0.11481\frac{0.2296}{2}=0.11481 ✓, a perfect match. Setting n=cvn=\frac{c}{v} for the index of refraction, the relation takes its usual form n1sin⁡θ1=n2sin⁡θ2n_{1}\sin\theta_{1}=n_{2}\sin\theta_{2}. What the result says about light is Fermat's principle: between two points, light follows the path that minimizes the travel time. Light obviously “chooses” nothing, but everything happens as if it were solving the lifeguard's problem. Along the way we recover the behaviour of the denser medium: where the speed is low (water, glass), the path gets shorter and the ray bends toward the normal, exactly as the lifeguard shortens the swimming part.

Exercise 8: Minimum distance and maximum power transfer

Two applications where the quantity to optimize comes in an awkward form: a square root in one case, a quotient in the other. A shrewd choice avoids most of the computation.

  • a) Find the point on the parabola y=x2y=x^{2} closest to the point A(0,2)A(0, 2).
  • b) Why is it legitimate, and much faster, to minimize d2d^{2} rather than dd? Does this trick work for any increasing function?
  • c) A battery with emf E=12E=12 V and internal resistance r=2r=2 ohms supplies a resistor RR. The power delivered to it is P(R)=E2R(R+r)2P(R)=\frac{E^{2}R}{(R+r)^{2}}. Find the value of RR that maximizes PP and compute this power.
  • d) What efficiency (useful power over total power) do we get at maximum power? Comment on the trade-off this imposes on an engineer.

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

a)
b)
c)
d)
Show the solution

Answers

  • a) (±1.2247,1.5)\left(\pm 1.2247, 1.5\right) at a distance ≈1.3229\approx 1.3229
  • b) Increasing square root: same optimal point
  • c) R=r=2R=r=2 Ω: 1818 W
  • d) Efficiency of 5050 %
a)

Let (x,x2)(x,x^{2}) be any point on the parabola. Its distance to A(0,2)A(0, 2) is d=(x−0)2+(x2−2)2d=\sqrt{(x-0)^{2}+(x^{2}-2)^{2}}. We minimize the square instead: d2(x)=x2+(x2−2)2=x2+x4−4x2+4=x4−3x2+4d^{2}(x)=x^{2}+(x^{2}-2)^{2}=x^{2}+x^{4}-4x^{2}+4=x^{4}-3x^{2}+4. Differentiating: (d2)′=4x3−6x=2x(2x2−3)\left(d^{2}\right)'=4x^{3}-6x=2x\left(2x^{2}-3\right), which vanishes for x=0x=0 and x2=32x^{2}=\frac{3}{2}, that is, x=±1.5≈±1.2247x=\pm\sqrt{1.5}\approx\pm 1.2247. Values: at x=0x=0, d2=4d^{2}=4 so d=2d=2; at x2=1.5x^{2}=1.5, d2=2.25−4.5+4=1.75d^{2}=2.25-4.5+4=1.75 so d=1.75≈1.3229d=\sqrt{1.75}\approx 1.3229. The minimum is therefore reached at the TWO points (±1.2247, 1.5)\left(\pm 1.2247,\, 1.5\right), at a distance of ≈1.32\approx 1.32 from AA. The symmetry was predictable, since AA lies on the axis of the parabola. The point x=0x=0, for its part, is a LOCAL maximum of the distance: it is the vertex of the parabola, farther from AA than its neighbours.

b)

It is legitimate because the square root function is strictly INCREASING on [0,+∞)\left[0, +\infty\right): if d2d^{2} reaches its minimum at x0x_{0}, then d=d2d=\sqrt{d^{2}} reaches its minimum at the same x0x_{0}. Minimizing the square therefore gives exactly the same optimal point; only the VALUE of the minimum changes (take the root at the end if the question asks for the distance). It is much faster because d2d^{2} is a polynomial, whereas differentiating d=…d=\sqrt{\ldots} would require the chain rule and leave a radical in the denominator to simplify. The trick works for any strictly increasing function applied to the quantity to optimize: you can minimize ln⁡f\ln f instead of ff (very useful for products and exponentials), or f3f^{3} instead of ff. Beware, on the other hand, of DECREASING functions, which swap minimum and maximum, and of non-monotonic functions, which preserve nothing.

c)

P(R)=E2R(R+r)2P(R)=\frac{E^{2}R}{(R+r)^{2}}. By the quotient rule: P′(R)=E2⋅(R+r)2−R⋅2(R+r)(R+r)4=E2⋅(R+r)−2R(R+r)3=E2(r−R)(R+r)3P'(R)=E^{2}\cdot\frac{(R+r)^{2}-R\cdot 2(R+r)}{(R+r)^{4}}=E^{2}\cdot\frac{(R+r)-2R}{(R+r)^{3}}=\frac{E^{2}(r-R)}{(R+r)^{3}}. On the domain R>0R>0, the denominator is positive, so the sign of P′P' is that of r−Rr-R: positive for R<rR<r, negative for R>rR>r. The power increases then decreases, and the maximum is reached for R=rR=r, here R=2R=2 ohms. Maximum power: P(2)=144×2(4)2=28816=18P(2)=\frac{144\times 2}{(4)^{2}}=\frac{288}{16}=18 W. We can also write the general formula Pmax⁡=E24r=1448=18P_{\max}=\frac{E^{2}}{4r}=\frac{144}{8}=18 W ✓. This result has a name in electricity, the maximum power transfer theorem, and it says that a source delivers the most power when the load EQUALS its internal resistance.

d)

At maximum power, the external and internal resistances are equal, so the current flows through two identical resistances and the power is shared equally between them. Explicit computation: the current is I=ER+r=124=3I=\frac{E}{R+r}=\frac{12}{4}=3 A, the total power supplied by the battery is EI=36EI=36 W, of which 18 W go to the load and 18 W are dissipated in the battery itself. The efficiency is therefore exactly 50 percent, and this figure depends neither on EE nor on rr. The trade-off for the engineer is real: maximizing the POWER transferred means wasting half the energy as internal heat. That is acceptable when the available power matters more than the energy consumed, for example for an audio signal or an antenna, where one speaks of impedance matching. It is unacceptable, however, for a power distribution grid, where EFFICIENCY is the goal and one therefore imposes R≫rR\gg r: one then accepts delivering less than the maximum possible power, in exchange for reduced line losses. Maximizing power and maximizing efficiency are two DIFFERENT optimization problems, and confusing them is the classic error on this topic.

Exercise 9: The economic order quantity

An inventory management model where two costs pull in opposite directions: ordering often costs in ordering fees, ordering a lot costs in storage. The optimum arbitrates between them, and its result is remarkable.

  • a) A company sells 10,000 units a year. Each order costs 50 dollars in fixed fees, and storing one unit for a year costs 4 dollars. Calling qq the size of an order, express the total annual cost.
  • b) Find the order size that minimizes this cost, and justify that it is an absolute minimum on an open domain.
  • c) Compute the minimum cost, then separately the ordering cost and the holding cost at the optimum. What do you notice?
  • d) Prove that this equality ALWAYS holds, whatever the parameters. What management rule can be drawn from it?

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

a)
b)
c)
d)
Show the solution

Answers

  • a) C(q)=500,000q+2qC(q)=\frac{500{,}000}{q}+2q
  • b) q=500q=500 units, CC concave up
  • c) 20002000 dollars: 10001000 for ordering, 10001000 for storage
  • d) q∗=2DKhq^{*}=\sqrt{\frac{2DK}{h}}: equal cost items
a)

If each order is for qq units and 10,000 are needed per year, the number of orders per year is 10,000q\frac{10{,}000}{q}, hence an ordering cost of 10,000q×50=500,000q\frac{10{,}000}{q}\times 50=\frac{500{,}000}{q} dollars. The stock decreases linearly from qq to 0 between two deliveries, so the AVERAGE stock is q2\frac{q}{2}, hence a holding cost of q2×4=2q\frac{q}{2}\times 4=2q dollars. Total annual cost: C(q)=500,000q+2qC(q)=\frac{500{,}000}{q}+2q, on the domain q>0q>0.

b)

C′(q)=−500,000q2+2C'(q)=-\frac{500{,}000}{q^{2}}+2, which vanishes when q2=250,000q^{2}=250{,}000, that is, q=500q=500 units (the negative root is excluded from the domain). Since the domain (0,+∞)\left(0, +\infty\right) is OPEN, the Extreme Value Theorem does not apply and the justification must come from elsewhere: C′′(q)=1,000,000q3>0C''(q)=\frac{1{,}000{,}000}{q^{3}}>0 for every q>0q>0, so CC is CONCAVE UP on the whole domain, and its only critical point is an absolute minimum ✓. One can also observe that C′<0C'<0 before 500 and C′>0C'>0 after, or that C→+∞C\to+\infty at both ends of the domain.

c)

Minimum cost: C(500)=500,000500+2(500)=1000+1000=2000C(500)=\frac{500{,}000}{500}+2(500)=1000+1000=2000 dollars per year. Breakdown: the ORDERING cost is 1000 dollars and the HOLDING cost is also 1000 dollars. The two components are EXACTLY EQUAL at the optimum. Neighbourhood check: C(400)=1250+800=2050C(400)=1250+800=2050 and C(600)≈833+1200=2033C(600)\approx 833+1200=2033, both greater than 2000 ✓.

d)

Let us write the general model with DD the annual demand, KK the cost per order and hh the unit holding cost: C(q)=DKq+hq2C(q)=\frac{DK}{q}+\frac{hq}{2}. Then C′(q)=−DKq2+h2=0C'(q)=-\frac{DK}{q^{2}}+\frac{h}{2}=0 gives q∗=2DKhq^{*}=\sqrt{\frac{2DK}{h}}, known as the Wilson formula (the EOQ formula). At this optimum, the ordering cost is DKq∗\frac{DK}{q^{*}} and the holding cost hq∗2\frac{hq^{*}}{2}; now the condition C′(q∗)=0C'(q^{*})=0 reads precisely DK(q∗)2=h2\frac{DK}{\left(q^{*}\right)^{2}}=\frac{h}{2}, which gives, multiplying both sides by q∗q^{*}: DKq∗=hq∗2\frac{DK}{q^{*}}=\frac{hq^{*}}{2} ✓. The two costs are therefore always equal at the optimum, whatever DD, KK and hh. MANAGEMENT RULE: a manager does not need to differentiate anything; it is enough to compare the two cost items. If more is spent on ordering fees than on storage, orders are placed too often and the lot size should increase, and vice versa. The equality of the two items is the signal of the optimum, and it is a criterion that can be read directly in the accounts.

Exercise 10: Problem: the undersea cable

Connecting an island to a coastal station at the lowest cost, knowing that laying cable under water costs more than on dry land. The optimality condition will remind you of something. The figure below shows the situation; it is not to scale.

θislandstation5 kmx13 kmsea
  • a) An island is 5 km offshore, and the station is 13 km along the coast from the point closest to the island. Laying cable costs 5000 dollars per kilometre under water and 3000 dollars per kilometre on land. The cable runs from the island to a point xx km along the coast, then follows the coast. Express the total cost.
  • b) Find the xx that minimizes the cost, giving its EXACT value.
  • c) Compute the minimum cost and compare it with the two naive strategies: straight to the station, or by the shortest route to the coast and then along the coast.
  • d) Show that the optimality condition reads sin⁡θ=30005000\sin\theta=\frac{3000}{5000}, where θ\theta is the angle between the undersea cable and the perpendicular to the coast. Which result already met do we recover?

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

a)
b)
c)
d)
Show the solution

Answers

  • a) C(x)=500025+x2+3000(13−x)C(x)=5000\sqrt{25+x^{2}}+3000(13-x)
  • b) x=154=3.75x=\frac{15}{4}=3.75 km
  • c) 59,00059{,}000 dollars against 64,00064{,}000 and 69,64269{,}642
  • d) sin⁡θ=0.6\sin\theta=0.6: Snell's law
a)

The UNDERSEA portion joins the island to the chosen point on the coast: by Pythagoras, its length is 25+x2\sqrt{25+x^{2}} km. The LAND portion follows the coast from the chosen point to the station, over 13−x13-x km. Total cost: C(x)=500025+x2+3000(13−x)C(x)=5000\sqrt{25+x^{2}}+3000(13-x), on the domain [0,13]\left[0, 13\right].

b)

C′(x)=5000⋅x25+x2−3000C'(x)=5000\cdot\frac{x}{\sqrt{25+x^{2}}}-3000. Setting it to zero: 5000x25+x2=3000\frac{5000x}{\sqrt{25+x^{2}}}=3000, that is, 5x=325+x25x=3\sqrt{25+x^{2}}. Squaring: 25x2=9(25+x2)=225+9x225x^{2}=9\left(25+x^{2}\right)=225+9x^{2}, so 16x2=22516x^{2}=225, x2=22516x^{2}=\frac{225}{16} and x=154=3.75x=\frac{15}{4}=3.75 km exactly. The value is rational, which confirms that the problem was built with compatible numbers (the 3−4−53{-}4{-}5 triangle hides behind it).

c)

C(3.75)=500025+14.0625+3000(9.25)=500039.0625+27,750=5000(6.25)+27,750=31,250+27,750=59,000C(3.75)=5000\sqrt{25+14.0625}+3000(9.25)=5000\sqrt{39.0625}+27{,}750=5000(6.25)+27{,}750=31{,}250+27{,}750=59{,}000 dollars. Naive strategies. By the shortest route to the coast, then along it (x=0x=0): C(0)=5000(5)+3000(13)=25,000+39,000=64,000C(0)=5000(5)+3000(13)=25{,}000+39{,}000=64{,}000 dollars. Straight to the station (x=13x=13): C(13)=500025+169=5000194≈69,642C(13)=5000\sqrt{25+169}=5000\sqrt{194}\approx 69{,}642 dollars. The optimum therefore saves 5000 dollars over the first strategy and nearly 10,642 dollars over the second. Justification of the minimum: on the CLOSED interval [0,13]\left[0, 13\right], the three candidates are x=0x=0, x=3.75x=3.75 and x=13x=13, and the critical point does give the smallest value ✓.

d)

Let θ\theta be the angle between the undersea cable and the perpendicular to the coast through the island. In the corresponding right triangle, the side opposite θ\theta is xx and the hypotenuse is 25+x2\sqrt{25+x^{2}}, so sin⁡θ=x25+x2\sin\theta=\frac{x}{\sqrt{25+x^{2}}}. Now the condition C′(x)=0C'(x)=0 read 5000⋅x25+x2=30005000\cdot\frac{x}{\sqrt{25+x^{2}}}=3000, that is, exactly 5000sin⁡θ=30005000\sin\theta=3000, or sin⁡θ=30005000=0.6\sin\theta=\frac{3000}{5000}=0.6 ✓ (and we check that 3.756.25=0.6\frac{3.75}{6.25}=0.6). We recover SNELL'S LAW, already obtained with the lifeguard who runs and then swims. The structure is identical: sin⁡θ1v1=sin⁡θ2v2\frac{\sin\theta_{1}}{v_{1}}=\frac{\sin\theta_{2}}{v_{2}} became here c1sin⁡θ1=c2sin⁡θ2c_{1}\sin\theta_{1}=c_{2}\sin\theta_{2} with costs instead of speeds, the second angle being 90∘90^{\circ} since the land cable runs along the coast. The remarkable fact is that light crossing two media, a lifeguard running then swimming, and an undersea cable all obey the same condition: whenever an additive quantity (time, cost) is minimized along a path through two media of different “resistances”, it is the ratio of the sines that settles the matter.

Part C: The classics (/50)

Exercise 11: The largest rectangle under a parabola

A rectangle has its base on the xx-axis and its two upper vertices on the parabola y=12−x2y=12-x^{2}, symmetric about the yy-axis, as in the figure.

-4-3-2-1123424681012A(x)xy = 12 − x²
  • a) Calling x>0x>0 the xx-coordinate of the right-hand vertex, express the area A(x)A(x) and give the domain.
  • b) Find the rectangle of maximum area and justify that it is an absolute maximum.
  • c) What fraction of the height of the parabola, 1212, does the optimal rectangle take up?
  • d) Redo the problem for the parabola y=c−x2y=c-x^{2} with c>0c>0. Does the ratio found in c) depend on cc?
  • e) What is the maximum perimeter of such a rectangle? Is it reached by the same rectangle?

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

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

Answers

  • a) A(x)=2x(12−x2)A(x)=2x(12-x^{2}) on (0,12)(0,\sqrt{12})
  • b) x=2x=2: a 4×84\times 8 rectangle, area 3232
  • c) Two thirds of the height
  • d) Always 23\frac{2}{3}
  • e) Maximum perimeter 2626 for x=1x=1
a)

The rectangle has width 2x2x and height 12−x212-x^{2}: A(x)=2x(12−x2)=24x−2x3A(x)=2x(12-x^{2})=24x-2x^{3}. We need x>0x>0 and 12−x2>012-x^{2}>0: domain (0,12)\left(0, \sqrt{12}\right), closed to [0,12]\left[0, \sqrt{12}\right] for the cases of zero area.

b)

A′(x)=24−6x2A'(x)=24-6x^{2}, zero for x=2x=2. A(0)=A(12)=0A(0)=A(\sqrt{12})=0 and A(2)=4×8=32A(2)=4\times 8=32: on the closed interval, the absolute maximum is 3232, for a rectangle 44 by 88. A′′(x)=−12x<0A''(x)=-12x<0 confirms that the graph is concave down.

c)

Height 88 out of 1212: two thirds.

d)

A(x)=2x(c−x2)A(x)=2x(c-x^{2}), A′(x)=2c−6x2=0A'(x)=2c-6x^{2}=0 for x=c3x=\sqrt{\frac{c}{3}}, height c−c3=2c3c-\frac{c}{3}=\frac{2c}{3}. The ratio is always 23\frac{2}{3}: all the parabolas y=c−x2y=c-x^{2} are obtained from one another by stretches that preserve ratios of heights.

e)

P(x)=2⋅2x+2(12−x2)=4x+24−2x2P(x)=2\cdot 2x+2(12-x^{2})=4x+24-2x^{2}, P′(x)=4−4x=0P'(x)=4-4x=0 for x=1x=1: P(1)=26P(1)=26, with the endpoints P(0)=24P(0)=24 and P(12)≈13.9P(\sqrt{12})\approx 13.9. Maximum 2626, for a rectangle 22 by 1111, very different from the rectangle of maximum area: optimizing another quantity gives another shape.

Exercise 12: The cone of maximum volume rolled from a disk

A sector is cut out of a paper disk of radius 1010 cm, then the remaining part is rolled up to form a cone, whose slant height is therefore 1010 cm. The figure below shows the disk and the cone obtained; it is not to scale.

10 cmremovedrh10 cm
  • a) Calling rr the radius and hh the height of the cone, write the constraint, then the volume as a function of hh alone.
  • b) Find the height that maximizes the volume, then the corresponding radius.
  • c) Compute the maximum volume to the nearest tenth.
  • d) What angle, in degrees, must the sector that is KEPT measure?
  • e) Compare with the volume obtained by keeping a half-disk.

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

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

Answers

  • a) r2+h2=100r^{2}+h^{2}=100; V=π3(100h−h3)V=\frac{\pi}{3}(100h-h^{3})
  • b) h=103≈5.774h=\frac{10}{\sqrt{3}}\approx 5.774 cm, r≈8.165r\approx 8.165 cm
  • c) V≈403.1V\approx 403.1 cm³
  • d) ≈293.9°\approx 293.9° kept
  • e) ≈226.7\approx 226.7 cm³ with a half-disk
a)

The slant height, the radius and the height form a right triangle: r2+h2=100r^{2}+h^{2}=100. V=13πr2h=π3(100−h2)h=π3(100h−h3)V=\frac{1}{3}\pi r^{2}h=\frac{\pi}{3}(100-h^{2})h=\frac{\pi}{3}(100h-h^{3}), for h∈(0,10)h\in(0, 10).

b)

V′(h)=π3(100−3h2)=0V'(h)=\frac{\pi}{3}(100-3h^{2})=0 for h=103≈5.774h=\frac{10}{\sqrt{3}}\approx 5.774 cm, and V′′(h)=−2πh<0V''(h)=-2\pi h<0: maximum. r=100−1003=2003≈8.165r=\sqrt{100-\frac{100}{3}}=\sqrt{\frac{200}{3}}\approx 8.165 cm.

c)

V=π3×2003×103=2000π93≈403.1V=\frac{\pi}{3}\times\frac{200}{3}\times\frac{10}{\sqrt{3}}=\frac{2000\pi}{9\sqrt{3}}\approx 403.1 cm3^{3}.

d)

The circumference of the base of the cone is the arc of the sector kept: 2πr≈51.302\pi r\approx 51.30 cm on a circle of radius 1010, that is, an angle of 51.3010≈5.130\frac{51.30}{10}\approx 5.130 rad, about 293.9°293.9°. Only a sector of about 66°66° is cut out.

e)

A half-disk gives an arc of 10π10\pi, so 2πr=10π2\pi r=10\pi, r=5r=5, h=75≈8.660h=\sqrt{75}\approx 8.660 and V=π3×25×8.660≈226.7V=\frac{\pi}{3}\times 25\times 8.660\approx 226.7 cm3^{3}: barely more than half the maximum. The optimal cone is much flatter than a “natural” cone.

Exercise 13: The strongest beam cut from a log

A beam with a rectangular cross-section is cut from a cylindrical log 6060 cm in diameter. The bending strength of a beam laid on edge is proportional to wh2wh^{2}, where ww is the width and hh the depth of the cross-section. The four corners of the cross-section touch the circle of the log. The figure below shows the situation.

wh60 cm
  • a) Write the constraint between ww and hh, then the strength S(w)=kwh2S(w)=kwh^{2} as a function of ww alone.
  • b) Find the dimensions of the strongest beam.
  • c) Show that the optimal ratio hw\frac{h}{w} is 2\sqrt{2}, whatever the diameter.
  • d) By what percentage is the optimal beam stronger than a beam with a square cross-section cut from the same log?
  • e) The STIFFNESS, for its part, is proportional to wh3wh^{3}. Which ratio hw\frac{h}{w} maximizes it?

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

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

Answers

  • a) w2+h2=3600w^{2}+h^{2}=3600; S=k(3600w−w3)S=k(3600w-w^{3})
  • b) w≈34.64w\approx 34.64 cm, h≈48.99h\approx 48.99 cm
  • c) hw=2\frac{h}{w}=\sqrt{2}
  • d) ≈8.9\approx 8.9 % more than a square
  • e) hw=3\frac{h}{w}=\sqrt{3} for stiffness
a)

The diagonal of the cross-section is a diameter: w2+h2=3600w^{2}+h^{2}=3600. S(w)=kw(3600−w2)=k(3600w−w3)S(w)=kw(3600-w^{2})=k(3600w-w^{3}) for w∈(0,60)w\in(0, 60).

b)

S′(w)=k(3600−3w2)=0S'(w)=k(3600-3w^{2})=0 for w=1200≈34.64w=\sqrt{1200}\approx 34.64 cm, and S′′(w)=−6kw<0S''(w)=-6kw<0: maximum. h=3600−1200=2400≈48.99h=\sqrt{3600-1200}=\sqrt{2400}\approx 48.99 cm.

c)

With a diameter dd: S′(w)=k(d2−3w2)=0S'(w)=k(d^{2}-3w^{2})=0 gives w2=d23w^{2}=\frac{d^{2}}{3} and h2=2d23h^{2}=\frac{2d^{2}}{3}, so h2w2=2\frac{h^{2}}{w^{2}}=2 and hw=2≈1.414\frac{h}{w}=\sqrt{2}\approx 1.414. It is the proportion carpenters already recommended: the beam is deeper than it is wide.

d)

Square: w=h=1800w=h=\sqrt{1800}, wh2=18003/2≈76,368wh^{2}=1800^{3/2}\approx 76{,}368. Optimum: 1200×2400≈83,138\sqrt{1200}\times 2400\approx 83{,}138. Ratio ≈1.089\approx 1.089: about 8.98.9 percent more strength, from the same log.

e)

R(w)=kw(3600−w2)3/2R(w)=kw(3600-w^{2})^{3/2}. R′(w)=k(3600−w2)1/2[(3600−w2)−3w2]=0R'(w)=k(3600-w^{2})^{1/2}\left[(3600-w^{2})-3w^{2}\right]=0 for w2=900w^{2}=900, that is, w=30w=30 and h=2700≈51.96h=\sqrt{2700}\approx 51.96: hw=3≈1.732\frac{h}{w}=\sqrt{3}\approx 1.732. A stiffer beam must be deeper still: strength and stiffness do not give the same cross-section.

Exercise 14: Problem: the longest ladder that goes around an L-shaped corner

A hallway 22 m wide opens at a right angle onto a hallway 33 m wide. A ladder, carried horizontally, must be moved from one hallway to the other. The figure shows the ladder touching the inner corner, at an angle θ\theta with the walls of the 22 m hallway.

θ2 m3 mladder
  • a) Show that the length of the segment that touches both outer walls while passing through the inner corner is L(θ)=2sin⁡θ+3cos⁡θL(\theta)=\frac{2}{\sin\theta}+\frac{3}{\cos\theta}, for θ∈(0,π2)\theta\in\left(0, \frac{\pi}{2}\right).
  • b) Why is the longest ladder that gets through the MINIMUM of LL, and not its maximum?
  • c) Show that L′(θ)=0L'(\theta)=0 is equivalent to tan⁡3θ=23\tan^{3}\theta=\frac{2}{3}, and give θ\theta to the nearest tenth of a degree.
  • d) Compute the maximum length of the ladder to the nearest hundredth, and check the formula (22/3+32/3)3/2\left(2^{2/3}+3^{2/3}\right)^{3/2}.
  • e) What does this length become if both hallways are 22 m wide?

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

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

Answers

  • a) L(θ)=2sin⁡θ+3cos⁡θL(\theta)=\frac{2}{\sin\theta}+\frac{3}{\cos\theta}
  • b) The tightest position decides: minimum of LL
  • c) tan⁡3θ=23\tan^{3}\theta=\frac{2}{3}: θ≈41.1°\theta\approx 41.1°
  • d) L≈7.02L\approx 7.02 m
  • e) 42≈5.664\sqrt{2}\approx 5.66 m
a)

The segment splits into two pieces on either side of the inner corner. In the 22 m hallway, the piece makes the angle θ\theta with the walls, and its projection perpendicular to the walls is the width 22: length 2sin⁡θ\frac{2}{\sin\theta}. In the other hallway, whose walls are perpendicular to the first ones, it makes the angle π2−θ\frac{\pi}{2}-\theta with the walls, and its perpendicular projection is 33: length 3sin⁡(π2−θ)=3cos⁡θ\frac{3}{\sin\left(\frac{\pi}{2}-\theta\right)}=\frac{3}{\cos\theta}.

b)

As the ladder turns around the corner, it must pass through ALL the positions θ\theta between 00 and π2\frac{\pi}{2}. For each θ\theta, L(θ)L(\theta) is the greatest length that fits in that position. A ladder gets through if and only if it fits in the tightest position, the one where LL is smallest. L→+∞L\to+\infty at both endpoints: the minimum exists.

c)

L′(θ)=−2cos⁡θsin⁡2θ+3sin⁡θcos⁡2θ=0L'(\theta)=-\frac{2\cos\theta}{\sin^{2}\theta}+\frac{3\sin\theta}{\cos^{2}\theta}=0 gives 3sin⁡3θ=2cos⁡3θ3\sin^{3}\theta=2\cos^{3}\theta, that is, tan⁡3θ=23\tan^{3}\theta=\frac{2}{3} and tan⁡θ=233≈0.8736\tan\theta=\sqrt[3]{\frac{2}{3}}\approx 0.8736, θ≈41.1°\theta\approx 41.1°. L′L' is negative before and positive after: minimum.

d)

sin⁡θ≈0.6580\sin\theta\approx 0.6580 and cos⁡θ≈0.7530\cos\theta\approx 0.7530: L≈3.039+3.984≈7.02L\approx 3.039+3.984\approx 7.02 m. Formula: (22/3+32/3)3/2≈(1.5874+2.0801)3/2≈7.02\left(2^{2/3}+3^{2/3}\right)^{3/2}\approx(1.5874+2.0801)^{3/2}\approx 7.02 ✓. A ladder of 7.027.02 m just gets through; one of 7.107.10 m gets stuck.

e)

By symmetry, the critical angle is 45°45° and L=2sin⁡45°+2cos⁡45°=42≈5.66L=\frac{2}{\sin 45°}+\frac{2}{\cos 45°}=4\sqrt{2}\approx 5.66 m. The general formula confirms it: (2×22/3)3/2=23/2×2=42\left(2\times 2^{2/3}\right)^{3/2}=2^{3/2}\times 2=4\sqrt{2}.

Exercise 15: Problem: the most economical cruising speed of a ship

A ship burns fuel at an hourly cost of 0.02v30.02v^{3} dollars, where vv is its speed in km/h. The crew and depreciation cost 540540 dollars per hour, whatever the speed.

  • a) Show that the cost per kilometre travelled is C(v)=0.02v2+540vC(v)=0.02v^{2}+\frac{540}{v}.
  • b) Find the speed that minimizes this cost, to the nearest hundredth, and justify the minimum.
  • c) Compute the minimum cost per kilometre and the cost of a 10001000 km voyage.
  • d) At the optimum, compare the hourly cost of fuel with that of the crew.
  • e) Prove that this ratio is always the same for an hourly cost av3+Fav^{3}+F, and give the practical rule.

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

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

Answers

  • a) C(v)=0.02v2+540vC(v)=0.02v^{2}+\frac{540}{v}
  • b) v=13,5003≈23.81v=\sqrt[3]{13{,}500}\approx 23.81 km/h
  • c) ≈34.02\approx 34.02 dollars per km, ≈34,020\approx 34{,}020 dollars
  • d) 270270 dollars per hour: half of 540540
  • e) Fuel equal to half of the hourly fixed costs
a)

Travelling one kilometre takes 1v\frac{1}{v} hour. The cost of one kilometre is therefore 0.02v3+540v=0.02v2+540v\frac{0.02v^{3}+540}{v}=0.02v^{2}+\frac{540}{v}.

b)

C′(v)=0.04v−540v2=0C'(v)=0.04v-\frac{540}{v^{2}}=0 for v3=13,500v^{3}=13{,}500, that is, v≈23.81v\approx 23.81 km/h. C′′(v)=0.04+1080v3>0C''(v)=0.04+\frac{1080}{v^{3}}>0: CC is concave up on (0,+∞)(0, +\infty), and its only critical point is the absolute minimum.

c)

C(23.81)≈11.34+22.68≈34.02C(23.81)\approx 11.34+22.68\approx 34.02 dollars per kilometre, that is, about 34,02034{,}020 dollars for 10001000 km. At 3030 km/h, the cost would be 18+18=3618+18=36 dollars per kilometre: going faster costs about 1,9801{,}980 dollars more over the voyage.

d)

Fuel: 0.02×13,500=2700.02\times 13{,}500=270 dollars per hour, exactly HALF of the 540540 dollars for the crew.

e)

C(v)=av2+FvC(v)=av^{2}+\frac{F}{v}, C′(v)=2av−Fv2=0C'(v)=2av-\frac{F}{v^{2}}=0 gives av3=F2av^{3}=\frac{F}{2}: at the optimum, fuel always costs half of the fixed costs per hour. Practical rule: if fuel costs more than half of the hourly fixed costs, the ship is going too fast; if it costs less, it can speed up.

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 Function analysis and curve sketching, 201-SN2-RE Next chapter Elementary integration, 201-SN2-RE

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/cegep-calc1-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. We work through differential calculus, 201-SN2-RE, at the level of real CEGEP tests, including the long optimization problems where the justification counts as much as the computation.

Site by Studio Squalli