Skip to content

MATH 100 optimization practice

An optimization question hands you a situation and asks for the best possible version of it: the largest area, the cheapest can, the closest point. The calculus involved is usually just a derivative set to zero. The marks are in everything around that.

Every one of these problems has the same skeleton. Name the quantity being optimised, write it as a function, use the constraint to reduce it to a single variable, differentiate, and then justify that the critical point you found really is the maximum or minimum on the domain the situation allows.

That last step is the one most often skipped and most often worth marks. A critical point is a candidate, not an answer, and a closed interval has endpoints that are candidates too.

In this topic

Taught
Before the final
Questions
18
Total marks
53
Suggested time
93 min
Difficulty

Introductory to Capstone

Show the 5 hardest

Key results

Where extremes can be
f has a local max or min at c  ⟹  f′(c)=0 or f′(c) does not existf \text{ has a local max or min at } c \implies f'(c) = 0 \text{ or } f'(c) \text{ does not exist}

When cc is not an endpoint of the domain; f′(c)=0f'(c) = 0 makes cc a critical point, and a missing f′(c)f'(c) a singular point.

The closed interval method
max⁡[a,b]f and min⁡[a,b]f occur atcritical points, singular pointsor the endpoints a,b\begin{aligned} &\max_{[a, b]} f \text{ and } \min_{[a, b]} f \text{ occur at} \\ &\text{critical points, singular points} \\ &\text{or the endpoints } a, b \end{aligned}

When ff is continuous on the closed, finite interval [a,b][a, b]; both extremes then exist.

The second derivative test
f′(c)=0, f′′(c)<0  ⟹  local max at cf′(c)=0, f′′(c)>0  ⟹  local min at c\begin{aligned} f'(c) = 0,\ f''(c) < 0 &\implies \text{local max at } c \\ f'(c) = 0,\ f''(c) > 0 &\implies \text{local min at } c \end{aligned}

When f′′(c)f''(c) exists; if f′′(c)=0f''(c) = 0, the test gives no conclusion.

One turning point on an interval
f′(x)>0 for x<c,  f′(x)<0 for x>c  ⟹  f(c)=max⁡Iff'(x) > 0 \text{ for } x < c,\ \ f'(x) < 0 \text{ for } x > c \implies f(c) = \max_{I} f

When ff is continuous on an interval II containing cc and the signs hold at every other point of II; reversed signs make f(c)f(c) the minimum.

One critical point, one concavity
f′(c)=0 and f′′<0 on I  ⟹  f(c)=max⁡Iff'(c) = 0 \text{ and } f'' < 0 \text{ on } I \implies f(c) = \max_{I} f

When II is an interval containing cc; with f′′>0f'' > 0 on II instead, f(c)f(c) is the minimum.

Read the theoryUBC Math 100 §8 OptimizationCLP-1 §3.5 Optimisation

Worked example

Standard3 marks · 5 min

A rectangular plot is fenced on three sides, with a straight river forming the fourth side. With 240 m of fencing available, what is the largest area that can be enclosed?

Give the area in square metres.

Strategy

Write the quantity to be maximised, use the constraint to reduce it to one variable, differentiate, and confirm the critical point really is the maximum.

Working

  1. 2x+y=240  ⟹  y=240−2x2x + y = 240 \implies y = 240 - 2x

    The constraint. Only three sides need fencing because the river bounds the fourth.

  2. A(x)=x(240−2x)=240x−2x2,0≤x≤120A(x) = x(240 - 2x) = 240x - 2x^{2}, \qquad 0 \le x \le 120

    Neither side can be negative, so x runs from 0 to 120.

  3. A′(x)=240−4x=0  ⟹  x=60A'(x) = 240 - 4x = 0 \implies x = 60

    Differentiate and solve for the critical point.

  4. A′′(x)=−4<0A''(x) = -4 < 0

    A is concave down on the whole domain, so its only critical point, x = 60, gives the absolute maximum.

  5. y=240−120=120,A=60×120=7200 m2y = 240 - 120 = 120, \qquad A = 60 \times 120 = 7200 \ \text{m}^{2}

    Back-substitute for the other dimension and the area.

Answer

Amax⁡=7200 m2A_{\max} = 7200 \ \text{m}^{2}

The answer is 7200 m².

Check

Sides of 50 m or 70 m give 50 × 140 = 7000 m² and 70 × 100 = 7000 m², both less than 7200 m².

Where this goes wrong

Using the constraint 2x + 2y = 240 out of habit, as though all four sides were fenced. That gives a 60 × 60 square of area 3600 and misses half the available area.

On the paper

Name the variables and state the domain. Write the quantity in one variable, justify the maximum or minimum on the whole domain, and answer the question asked, with units.

Leans on

Writing a function from a word problem, from Functions, graphs and inverses

Your turn

Standard3 marks · 5 min

An open-topped box is made from a 30 cm by 30 cm square sheet of card by cutting a square of side x from each corner and folding up the sides. Which value of x gives the largest volume?

V(x)=x(30−2x)2,0<x<15V(x) = x(30 - 2x)^{2}, \qquad 0 < x < 15
Answer this question

What you should be able to do

  • Separate the objective from the constraint

    One quantity is being optimised and another is fixed. Identifying which is which before writing anything down prevents the most expensive error in the topic.

  • Reduce to a single variable

    Solve the constraint for whichever variable is easiest to remove, substitute, and simplify. You cannot differentiate usefully until the objective depends on one thing.

  • Establish the domain from the situation

    A length cannot be negative and a cut-out corner cannot exceed half the sheet. The physical setup, not the algebra, decides which critical points are admissible.

  • Justify the extreme value

    Use a first derivative sign chart across the whole domain, the second derivative test together with the fact that this is the only critical point in the domain, or the closed-interval method. Stating which test you used and what it showed is part of a complete answer.

  • Answer the question that was asked

    Some questions want the dimensions, some want the optimal value, some want both. Read the final line again before writing your answer down.

Where marks are usually lost

  • Optimising the constraint by accident

    In a fixed-volume can problem the volume is given, so it cannot be what you maximise. Surface area is the objective. Write down which is which before differentiating.

  • Assuming all four sides need fencing

    When a river, wall or existing fence bounds one side, the constraint has three terms, not four. Sketching the region first makes the correct constraint obvious.

  • Keeping a critical point outside the domain

    Solving V′(x)=0V'(x) = 0 for a box made from a 30 cm sheet gives x=5x = 5 and x=15x = 15. At x=15x = 15 the box has no base at all, so it is rejected on physical grounds rather than algebraic ones.

  • Ignoring the endpoints on a closed interval

    On [a,b][a, b] the absolute extremes can occur at either end. Evaluating only the critical points is the standard way to lose a closed-interval question.

  • Stopping at the critical point

    Without a second derivative, a sign chart or an endpoint comparison, nothing so far distinguishes a maximum from a minimum, or from a point that is neither, as x=0x = 0 is for x3x^{3}.

Practice questions

5 of the 18, across every level. Open a solution to read the working, or answer the question yourself and it counts towards your progress.

  • Introductory2 marks · 3 min

    Find the global minimum value of f(x)=x3−3x+1f(x) = x^{3} - 3x + 1 on the closed interval [0,2][0, 2].

    Answer this question
  • Introductory2 marks · 3 min

    Find the coordinates of the local minimum of h(x)=x3−27x+5h(x) = x^{3} - 27x + 5.

    Answer this question
  • Standard2 marks · 4 min

    Find the absolute maximum value of f(x)=x3−6x2+9x+2f(x) = x^{3} - 6x^{2} + 9x + 2 on the closed interval [0,5][0, 5].

    Answer this question
  • Challenging4 marks · 7 min

    Find the xx-coordinate of the point on the curve y=xy = \sqrt{x} closest to the point (4,0)(4, 0).

    Answer this question
  • Capstone5 marks · 10 min

    A rowing boat is 6 km offshore from the nearest point AA on a straight coastline. The rower wants to reach a camp on the coast 10 km from AA. She can row at 5 km/h and walk along the coast at 13 km/h. To minimise her total travel time, how far from AA should she land?

    Give the distance from A in kilometres.

    Answer this question

Browse all 18 questions

Common questions

Which justification should I use, the first or second derivative test?
Either, if it covers the whole domain. The second derivative test at a critical point shows only a local maximum or minimum; it becomes the absolute one when that is the only critical point in the domain, or when the second derivative keeps its sign on the whole domain. A first derivative sign chart across the domain does this in one step, and is the safer choice when the second derivative is awkward or zero.
Do I have to check endpoints every time?
Whenever the domain is a closed interval, yes. When the domain is open (a length that must be strictly positive, for example), you instead check the behaviour as the variable approaches each end, which is often enough to rule those ends out.
Is it acceptable to minimise the squared distance instead of the distance?
Yes, and it is usually the better choice. Squaring is an increasing function on non-negative values, so the two are minimised at the same point, and the algebra is considerably lighter.
  • Differentiation rules

    Power, sum, product and quotient rules, tangent lines and higher-order derivatives.

    23 questions

  • Curve sketching

    Increase, concavity, inflection points, asymptotes and full sketches.

    29 questions

  • Related rates

    Translating a moving situation into an equation, then differentiating.

    26 questions