Courses · Calculus 1 · Unit guide
Calculus 1: Optimization
How to build the function, find the best value, and prove it's really the best
This unit covers: Modelling a quantity, finding and justifying absolute extrema on an interval.

Have you ever found where the derivative equals zero, called it the maximum, and still lost marks? On a calculus exam, that's the classic slip. In this video, you'll model a quantity, find its absolute extrema on an interval, and justify your answer properly.
What an optimization problem asks
An optimization problem asks you to make some quantity as large or as small as possible. Think of the most area from a fixed length of fence, the least material for a can, or the shortest time for a trip. Your job has two halves. First, you turn the words into a function of one variable on a sensible interval. Then you find its absolute extreme value and prove it really is the best.
Key points.
- Make a quantity as large or as small as possible
- First half: turn words into a one-variable function
- Second half: find and justify the absolute extremum
Modelling the quantity
Here's the routine most lecturers teach. Start with a picture and name every changing quantity. Write a formula for the thing you're optimizing, which is called the objective. If it has two variables, use the constraint, like a fixed perimeter or volume, to eliminate one. Then write down the domain, because lengths can't be negative. Only after all that do you reach for calculus to find and justify the answer.
- Draw and label a picture
- Write the objective quantity as a formula
- Use the constraint to cut to one variable
- State the domain from the physical setup
- Find and justify the absolute extremum
The Extreme Value Theorem
The theorem that makes all this work is the Extreme Value Theorem. It says that if f is continuous on a closed interval from a to b, then f reaches an absolute maximum and an absolute minimum somewhere on that interval. Both conditions matter. Drop continuity, or let the interval be open, and the guarantee disappears, which is exactly why stating your domain carefully isn't just bookkeeping.
If f is continuous on a closed interval [a, b], then f attains an absolute maximum and an absolute minimum on [a, b]. Extreme Value Theorem
Key points.
- Continuous function on a closed interval
- Absolute max and min are guaranteed to exist
- Open interval or a discontinuity breaks the guarantee
The closed interval method
So how do you find those values? First, find the critical numbers, where f prime of x equals zero or doesn't exist, and keep only those inside the open interval from a to b. Next, evaluate f at the endpoints a and b. Then evaluate f at each critical number c. Finally, compare the whole list: the largest value is the absolute maximum, and the smallest is the absolute minimum.
f'(x) = 0 or undefined keep c in (a, b) evaluate f(a), f(b) evaluate f(c) for each c largest → abs max smallest → abs min
Key points.
- Find critical numbers inside the interval
- Evaluate f at the endpoints and critical numbers
- Largest value is the max, smallest is the min
Exam problem: setting up the box
Here's a classic exam problem. You cut equal squares of side x from the corners of a twelve by twelve inch sheet, then fold up the sides into an open box. Which x gives the largest volume? The height is x and each base side is twelve minus two x, so the volume is x times twelve minus two x, squared. Lengths can't be negative, so x runs from zero to six.
Key points.
- Cut x by x squares from a 12 by 12 sheet
- Height x, base side 12 − 2x
- V = x(12 − 2x)² on 0 ≤ x ≤ 6
Exam problem: finding and justifying the max
We write the volume, x times twelve minus two x squared, on the closed interval from zero to six. Using the product rule and factoring, V prime equals twelve minus two x, times twelve minus six x. Setting that to zero gives x equals two or x equals six. At both endpoints the volume is zero. At x equals two it's two times eight squared, which is one hundred twenty eight cubic inches, the absolute maximum.
V = x(12 − 2x)², 0 ≤ x ≤ 6 V' = (12 − 2x)(12 − 6x) V' = 0 → x = 2, x = 6 V(0) = 0, V(6) = 0 V(2) = 2·8² = 128 max V = 128 in³ at x = 2
Key points.
- V' = (12 − 2x)(12 − 6x)
- Critical numbers x = 2 and x = 6
- V(2) = 128 beats the endpoint values of 0
When the interval isn't closed
Not every problem hands you a closed interval. A can's radius, for example, can be any positive number, so the Extreme Value Theorem doesn't apply. In that case you justify things differently. If there's only one critical number and f prime changes from positive to negative there, it's an absolute maximum. Or, if f double prime is negative on the whole interval, that critical point is the absolute maximum.
Closed interval [a, b]
- Theorem guarantees a max and a min
- Compare endpoints and critical values
- No derivative sign test needed
Open or infinite interval
- No guarantee an extremum exists
- One critical point plus f' sign change
- Or f'' keeps one sign on the whole interval
Traps that cost marks
A few traps cost marks every year. Finding where the derivative is zero isn't enough, because you must say why that point is the absolute extremum. Don't forget the endpoints, since on some intervals the biggest value sits at an edge. Throw out critical numbers outside your domain. And reread the question: if it asks for the maximum volume, answer one hundred twenty eight cubic inches, not just x equals two.
Key points.
- Setting V' = 0 is not a justification on its own
- Check endpoints, not just critical points
- Discard critical numbers outside the domain
- Answer the question asked, with units
Remember this
The one thing to remember: a critical point is only a candidate, and the answer comes from comparing values or proving it's the best. Now quiz yourself on a few setups and justifications to make it stick.
Practice this unit
- Calculus 1: Optimization quiz15 multiple-choice questions with explanations · no account needed
- Calculus 1: Limits and Continuity quiz15 multiple-choice questions with explanations · no account needed
- Calculus 1: The Derivative as a Limit quiz15 multiple-choice questions with explanations · no account needed
- Calculus 1: Optimization32 flashcards · study free
- Calculus 1: Limits and Continuity36 flashcards · study free
- Calculus 1: The Derivative as a Limit32 flashcards · study free
- Calculus 1: Differentiation Rules33 flashcards · study free
Every Calculus 1 deck and quiz: the Calculus 1 page.
Other Calculus 1 unit guides
- Limits and continuityStudy guide
- The derivative as a limitStudy guide
- Differentiation rulesStudy guide
- Chain rule and implicit differentiationStudy guide
- Related ratesStudy guide
- Curve sketching and the Mean Value TheoremStudy guide
- Linear approximation and L’Hôpital’s ruleStudy guide
- Antiderivatives and Riemann sumsStudy guide
- Fundamental Theorem of Calculus and substitutionStudy guide
Try it with your own material
Upload a PDF, slides or notes and study the deck in minutes. Making your own cards is free with no limits.