This sheet is not a summary of section 4.7 of Stewart: you already have the course notes and a page of classic problems. It answers one question only, what makes students lose marks on optimization problems in MATH 140 at McGill University, and which precise gesture avoids each loss.
Almost every student finds the critical number. The marks are lost before it, on the domain, and after it, on the justification of the GLOBAL extremum and on the answer to the question actually asked. Every value below is exact and done by hand, as on the exam, and every trap comes with the sentence that earns the method mark.
Mark this sheet as read or add it to your favourites: a free account, no password, keeps your read sheets and favourites from one visit to the next, tells you which chapter to tackle next and lets you ask for the method or exercise you are missing. Create your space, an email is enough.
A critical number is only a CANDIDATE: the answer is proved global by the DOMAIN, read from the situation before anything is differentiated, with the closed interval method on a closed interval and the sign of f′ on the whole domain otherwise, and the answer is the quantity the question asks, never the critical number.
The five moves, and why the derivative is only the fourth
•Name the variables on a FIGURE; write the CONSTRAINT that links them; write the OBJECTIVE in ONE variable by substituting the constraint.
•Give the DOMAIN from the situation: every length ≥0, every capacity or land limit. A formula knows nothing about cardboard or seats; the domain does.
•Find the candidates: the critical numbers INSIDE the domain (f′=0 or f′ undefined). A critical number outside the domain is struck off, with the reason in words.
•Prove the extremum is GLOBAL (next block), then answer the question asked: dimensions, time, price, area, with units.
•A constraint that binds moves the optimum to an ENDPOINT, where f′=0: pasture A(x)=x(600−3x) with x≤80 is largest at x=80, where A′(80)=120.
With the land cap x≤80, the vertex at x=100 lies outside the domain: A is still increasing at x=80, and the maximum is the endpoint value 28800.
Markers split an optimization question roughly into set-up, candidates, justification and answer. The derivative itself is often worth less than the domain line.
The licences for a GLOBAL extremum
•Closed and bounded domain [a,b], f continuous: the Extreme Value Theorem guarantees the extrema; compare f at the candidates AND at a and b (closed interval method).
•Open or unbounded domain: no endpoint to evaluate and no guarantee. Use the sign of f′ on the WHOLE domain: negative then positive around c proves an absolute minimum.
•Only one critical number on an interval, and it is a local extremum: it is the absolute extremum of that kind.
•f′′<0 on the WHOLE domain (a downward parabola, for instance): the critical number is the absolute maximum. f′′(c)<0 at the point alone only proves a LOCAL maximum.
•An endpoint may be a real object (the half-disk window, the rowboat landing at the village): its value is not 0 and must be compared exactly.
The can's area A(r)=2πr2+r500π (here over π) blows up at both ends of the open domain: no endpoint to test, but A′ changes sign once, at r=5.
Write the licence in one sentence with its hypothesis: “A is continuous on the closed interval [0,5], so by the closed interval method…”. That sentence is the method mark.
The rules in table form
Each row reads from left to right: the assumptions, then the result. A red cell is not an answer, it is the finding that the form settles nothing and the instruction to rewrite it. Every case is followed by a worked example.
Which justification for which domain
Read a line as: with a domain of the first kind, this argument proves the global extremum. The red line is a sentence students write that proves nothing global.
Domain
Argument
Global?
[a,b]
closed interval method
yes
Example: Box: V(0)=V(5)=0 and V(2)=144, so 144 cm3 is the maximum.
(0,∞)
sign of f′ everywhere
yes
Example: Can: A′(r)=r24π(r3−125)<0 on (0,5) and >0 on (5,∞): 150π is the minimum.
any interval
f′′<0 everywhere
yes
Example: Stained glass window: L′′=−(4+23π)<0, so r=8+3π16 gives the maximum.
any interval
f′′(c)<0 only
local onlynot a licence
Example: f(x)=x3−6x2+9x+1: f′′(1)=−6<0 and f(1)=5, yet f(5)=21 on [0,5].
What to do: Add the endpoint comparison, or show that c is the ONLY critical number of the interval.
The red line becomes a licence as soon as c is the only critical number: a single local maximum on an interval cannot be beaten.
The mistakes that cost marks
These are the errors I correct most often in session. Each one costs marks on a paper, even when the reasoning behind it is right.
1.Answering with the critical number
1 to 2 marks, the conclusion line
What not to write
“A′(x)=600−6x=0, so the maximum area is x=100.”
What to write
“The maximum area is 30000 m2, for a pasture of 300 m along the river and 100 m deep.”
The critical number x=100 is a depth. The answer is the pasture itself: 300 m along the river, 100 m deep, area 30000 m2.
Why: x=100 is a length and a candidate. The question asked for the area and the dimensions: compute them from the constraint, with units.
2.Stopping at the second derivative test
the whole justification, and here the answer
What not to write
“f′′(1)=−6<0, so f(1)=5 is the maximum of f(x)=x3−6x2+9x+1 on [0,5].”
What to write
“Closed interval method: f(0)=1, f(1)=5, f(3)=1, f(5)=21. The absolute maximum is 21, at x=5.”
The curve has a local maximum (1,5), but on [0,5] it climbs again to (5,21): the second derivative test at x=1 was right and useless.
Why: f′′(c)<0 compares f(c) with its NEIGHBOURS only. With two critical numbers, or with an endpoint that climbs, the local maximum is beaten.
3.Keeping a critical number outside the domain
1 mark, and a negative volume on the paper
What not to write
“V′(x)=4(3x−20)(x−2): V′′(2)<0 gives the maximum and V′′(320)>0 gives the minimum.”
What to write
“The domain is [0,5], since the sheet is 10 cm wide. x=320>5 is rejected: it describes no box.”
The sheet is 10 cm wide, so a corner square can be at most 5 cm: the candidate x=320 would cut more than the whole width.
Why: V(320)=−271600. The formula is valid algebra outside the domain and meaningless geometry: strike the candidate off BEFORE testing it.
4.Ignoring a capacity that moves the optimum
the whole question
What not to write
“R′(p)=1500−40p=0, so the best price for the 600-seat hall is 37.50 dollars.”
What to write
“q≤600 forces p≥45. On [45,75], R′<0, so the best price is 45 dollars: sold out, 27000 dollars.”
Below 45 dollars more than 600 people want a seat (shaded): the top of the parabola at 37.50 is not allowed. On [45,75] revenue only falls, so the best price is the endpoint 45.
Why: At 37.50 dollars the hall holds only 600 of the 750 buyers: 22500 dollars. A constraint that binds puts the optimum on the boundary, where the derivative is not 0.
5.Running the closed interval method on an open domain
2 to 3 marks
What not to write
“A(r)=2πr2+r500π on (0,∞). Endpoints: A(0)=0, so the minimum is at r=0.”
What to write
“The domain (0,∞) has no endpoint. A′(r)=r24π(r3−125) is negative on (0,5) and positive on (5,∞), so A(5)=150π is the absolute minimum.”
Why: A(0) does not exist: r500π→∞ as r→0+. On an open domain the justification is the sign of A′ on the whole domain.
6.Giving the minimum of the squared distance as the distance
1 mark
What not to write
“D(x)=x2−5x+9 is smallest at x=25, so the least distance from (3,0) to y=x is 411.”
What to write
“The least value of D=d2 is 411, so the least distance is 411=211.”
The closest point of y=x to (3,0) is (25,25); the green segment has length 211, the square root of the minimum 411 of d2.
Why: Squaring changes the function, not the point, because t is increasing. The value asked must come back through the square root.
7.Differentiating before eliminating a variable
the whole question: every line after is meaningless
What not to write
“A=xy, so A′=y+x=0.”
What to write
“With y=600−3x, A(x)=600x−3x2 and A′(x)=600−6x.”
Why: A derivative is taken with respect to ONE variable. The constraint is exactly the tool that turns xy into a function of x alone; use it before differentiating.
8.Comparing an endpoint with a calculator decimal, or not at all
1 to 2 marks of justification
What not to write
“The Norman window is best at r=4+π8, since A(0)=0.”
What to write
“At r=2+π8 the window is a half-disk of area (2+π)232π, and 4+π32>(2+π)232π because (2+π)2−π(4+π)=4>0.”
Same perimeter 8: the best Norman window has h=r=4+π8; the endpoint r=2+π8 is a real window too, a half-disk, whose area must be compared exactly.
Why: Only ONE endpoint was checked, and the other is a real window. The exact comparison reduces to one line of algebra; no calculator is needed or allowed.
Which method to choose
Which justification, by the FORM of the domain and of the objective
Once the objective is written in one variable and its domain is known, look at the domain first, then at the objective
If a closed and bounded interval [a,b], objective continuous → closed interval method: list the interior critical numbers and both endpoints, compare the values
Example: Box: V(0)=0, V(2)=144, V(5)=0
If the only interior critical number is outside the domain → f′ has one sign on the whole domain: the optimum is at an endpoint
Example: Village 2 km away: T′<0 on [0,2], row straight to it
If an open or unbounded domain such as (0,∞) → sign of f′ on the WHOLE domain, or f′′ of constant sign; check the ends only to see whether an optimum exists
Example: Can: A′<0 then >0 around r=5
If an objective that is a quadratic with negative leading coefficient → the vertex is the absolute maximum if it lies in the domain; otherwise the nearest endpoint
Example: Revenue 1500p−20p2: vertex 37.5, but p≥45 in the small hall
If a distance, or an area with a square root → optimize d2 or A2 (nonnegative), then take the square root of the VALUE
Example: D=x2−5x+9, minD=411, dmin=211
If none applies, the optimum may not exist: the can of fixed volume has no MAXIMUM area. Saying so, with the limit that shows it, is the answer.
How the answer is expected to be written
A marker ticks steps. Here they are in order, with the concluding sentence expected word for word.
Writing up an optimization problem
When to use it: Any question that asks for the largest, smallest, cheapest, fastest or closest, with a situation to model
1Draw the figure and name the variables with their units; say which quantity is optimized.
2Write the constraint, solve it for the variable that is easy to isolate, and write the objective in one variable.
3State the domain, with the reason for each bound (a length ≥0, the width of the sheet, the capacity).
4Differentiate, naming the rules used; list the critical numbers and strike off those outside the domain.
5Name the licence for the global extremum and apply it: the closed interval method with every value, or the sign of f′ on the whole domain.
6Answer the question asked, with every requested quantity and its unit.
Concluding sentence
“V is continuous on the closed interval [0,5]. Its only critical number in the interval is x=2, and V(0)=0, V(2)=144, V(5)=0. By the closed interval method, the largest volume is 144 cm3, for a box 12 cm by 6 cm by 2 cm.”
The trap: Skipping the domain line: without it the reader cannot tell which critical numbers are allowed, nor which licence applies.
Marking: Typically 3 marks for the set-up (constraint, objective, domain), 2 for the derivative and candidates, 3 for the justification of the global extremum, 2 for the final answer with units.
Check before you hand in
Five minutes of checking recover more marks than one more problem started in a hurry.
The answer satisfies the constraint
Put the optimal dimensions back into the constraint. It takes five seconds and catches most algebra slips.
Pasture: 3×100+300=600. A result x=100, y=400 would fail at once.
One feasible value on each side
Evaluate the objective at a convenient point on each side of the candidate. It must be worse on both sides for a maximum or a minimum.
Box: V(1)=112 and V(3)=120, both below V(2)=144.
The classic ratios
Several classics have a clean shape. If yours has the same set-up and not the same shape, look again.
Can of one metal: h=2r. Norman window: h=r. Square sheet box: x=6a. Cylinder in a cone: h=3H.
The candidate is in the domain and the units are right
A negative length, a price above the zero-demand price, or an area in cm are all signs of a wrong model or a skipped domain.
x=320 for a sheet 10 cm wide gives V=−271600: a negative volume.
The typical problem, taken apart
The poster of least area: an open domain from start to finish
A poster must carry a printed region of area 50 cm2, with margins of 4 cm at the top and bottom and 2 cm on each side. Find the dimensions of the poster that uses the least paper.
No calculator. Every step must be justified as on a MATH 140 final.
The printed region is x by x50; the margins add 4 to the width and 8 to the height, whatever the value of x.
Step 1
Let x be the width of the printed region, in cm. Its height is x50 (constraint). The poster is (x+4) by (x50+8), so A(x)=(x+4)(x50+8)=50+8x+x200+32=82+8x+x200.
Why
The constraint is used BEFORE differentiating, to get one variable. Expanding the product first makes the derivative a two term computation.
Step 2
Domain: any width x>0 gives a poster, so x∈(0,∞). As x→0+, x200→∞, and as x→∞, 8x→∞.
Why
The domain is open: the closed interval method is unavailable, and saying so tells the marker which licence comes next.
Step 3
A′(x)=8−x2200=x28(x2−25). On (0,∞) the only zero is x=5; A′<0 on (0,5) and A′>0 on (5,∞).
Why
Factoring A′ over a common denominator makes its sign readable on the WHOLE domain, which is exactly the justification required.
Step 4
So A decreases on (0,5] and increases on [5,∞): A(5)=82+40+40=162 is the absolute minimum. The printed region is 5 by 10, the poster 9 cm by 18 cm.
Why
The first derivative test for absolute extreme values is named, then the question is answered with the poster's dimensions, not with x=5.
Step 5
Check: 9×18=162, and nearby widths do worse: A(4)=82+32+50=164, A(10)=82+80+20=182.
Why
Two quick evaluations on either side confirm the minimum and catch a slip in the expansion of A.
The conclusion, written out
“A(x)=82+8x+x200 on (0,∞) has A′<0 on (0,5) and A′>0 on (5,∞), so its absolute minimum is A(5)=162. The poster of least area is 9 cm wide and 18 cm high.”
The classic mistake on this problem: Evaluating “A(0)” as an endpoint, or answering x=5 (the printed width) instead of the poster's 9 cm by 18 cm.
Learn by heart
•Figure, variables, constraint, objective in ONE variable, domain, candidates, licence, answer.
•A critical number is a candidate; outside the domain it is struck off.
•Closed interval [a,b]: compare the candidates with BOTH endpoints.
•Open domain: sign of f′ on the WHOLE domain, or f′′ of constant sign.
•f′′(c)<0 alone proves a LOCAL maximum; one critical number on an interval makes it global.
•Minimize d2, not d: same point, then the square root of the value.
•A binding constraint puts the optimum on the boundary, where f′=0.
•Answer with the quantity asked, in its units, never with the bare critical number.
Frequently asked questions
How do I justify that my answer is an absolute maximum in an optimization problem?
Look at the domain. If it is a closed interval and the function is continuous, use the closed interval method: compare the value at each critical number with the values at both endpoints. If the domain is open or unbounded, show that the derivative is positive before the critical number and negative after it, on the whole domain. A second derivative at the point alone only proves a local maximum.
What do I do when the critical number is outside the domain?
Strike it off and say why in words, for instance that it would need a negative width. Then the derivative has one sign on the whole domain, so the function is monotone there and the optimum is at an endpoint. This happens whenever a capacity, a land limit or the size of a sheet cuts the problem short.
Can I minimize the square of the distance instead of the distance?
Yes. The square root is increasing, so the distance and its square are smallest at the same point, and the square has no root to differentiate. Just remember that the least value you found is the square of the distance: take its square root before giving the least distance.
Why does my answer lose marks when the critical number is right?
Usually for one of three reasons: the domain was never stated, the global extremum was not justified, or the final line gives the critical number instead of what was asked. The question wants the dimensions, the time or the price, with units, and the justification is worth about as much as the derivative.
Corrected exercises: Optimization problems, MATH 140 at McGill
A method is proved on a paper, not on a sheet. The set for the same chapter takes each of these traps into a problem, with the solution written out step by step.
Something missing from this sheet?A method, a trap, an exercise to practise it, 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.
Get in touch for a first session. Optimization is the long question of almost every MATH 140 final, and its marks go to the set-up and the justification, which are exactly what a session trains.