Quadratic Optimization
Progress can't be saved in this browser, so this lesson's status can't be set.
Watch the video explainer
Learning goals
- Locate the vertex input where the best value occurs
- Read the sign of to tell a maximum from a minimum
- Separate where the best occurs from how good it is
- Model a problem as a quadratic, then answer what was asked
- Apply it to fixed perimeter, revenue and projectile height
Why the vertex is the best value
Take a quadratic quantity with . From the parabola lesson you can find its vertex in two moves: the input is
and substituting this input gives the value there. In vertex form , read both coordinates directly: the input is and the value is .
If , the parabola opens upward and the vertex gives a minimum. If , it opens downward and the vertex gives a maximum. For now, allow every real input. We will check restrictions in the word problems.
Why the vertex holds the largest or smallest value#
Start with . The square is never negative, so subtracting twice that square cannot give more than . At , the square is zero and : the maximum is reached. For , adding twice the square gives at least , reached at the same input.
The same reasoning works for any vertex form . If , then , so . The minimum is reached when . If , then , so . The maximum is reached when .
In both cases, equality requires , which happens only at . Completing the square gives , so the vertex formula locates that input.
The two vertex coordinates answer different questions: where is the peak or valley, and how high or low is it?
First practice separating the input from the value in a quadratic with no physical restrictions.
Worked example 1 The maximum value of
The leading coefficient is . Since the parabola opens downward, so its vertex is the highest point and the quantity has a maximum. Find the input where that happens with , reading and :
The maximum occurs at the input . To get the maximum value, substitute back into the equation:
The maximum value is , reached at . The question asks for the value, so the answer is , not the input .
Check your understanding
Find the minimum value of .
The leading coefficient is , so the parabola opens upward and the vertex is the lowest point. The minimum occurs at with and .
That is the input, not the answer. Substitute it back to get the minimum value:
So the minimum value is , reached at . Choosing answers the wrong question: is where the minimum happens, and is the minimum itself.
A method for optimization problems
A word problem requires a model before you can use the vertex.
- Name the variable and allowed inputs. Choose a width, price, time or other input. Record restrictions such as positive lengths, whole-number counts or a stated time interval.
- Build the quadratic. Write the area, revenue, height, product or cost in terms of that input.
- Find the vertex and check it. Use . A downward parabola gives a maximum; an upward parabola gives a minimum. Is that input allowed?
- Answer with units. Substitute back if the question asks for the best value. If it asks for a dimension or price instead, convert the input to that quantity.
Why does the allowed-input check matter? For and whole-number inputs from to , the vertex input is unavailable. Inputs and are equally close to it and both give . Both are best; rounding to just one would miss a tie.
For a downward quadratic’s maximum, or an upward quadratic’s minimum, use the allowed input closest to the vertex, if such an input exists. This follows because the square measures squared distance from .
On a closed interval, a vertex outside the interval makes the nearer endpoint best for that extreme. For example, on is greatest at , where . To find the minimum of this downward quadratic on that interval, compare the endpoints: the minimum is at . More generally, the endpoint farthest from the vertex gives a downward quadratic’s minimum or an upward quadratic’s maximum on a closed interval.
An excluded endpoint cannot supply a reached maximum or minimum. For instance, a pen with side lengths and requires ; neither nor describes a pen.
“What price maximizes revenue?” asks for an input. “What is the greatest revenue?” asks for its value.
Greatest area for a fixed amount of fence
Area is a product of two lengths. When a fixed perimeter ties those two lengths together, their product becomes a quadratic. A fixed supply of fence is the usual setup.
Worked example 2 Largest rectangular pen from 40 meters of fence
A farmer has meters of fencing to enclose a rectangular pen. What dimensions enclose the greatest area, and what is that area?
Name the width (in meters). The four sides are two widths and two lengths, and they use all meters, so , which gives a length of . Both lengths must be positive, so . Area is length times width:
This is a quadratic in with and . Since the parabola opens downward, so its vertex is a maximum. The optimizing width is
The width is allowed. The length is meters, so the best pen is a by square. Its area is the value at the vertex:
The greatest area is square meters. The square result works for any fixed perimeter : the other side is , so has its maximum at . Both sides are then .
Try the fixed-perimeter comparison in the figure. It reports perimeter and area separately.
Hold the perimeter at by keeping the width and the height adding to . Build by , then by , then by . All three share the perimeter , but their areas are , , and : the two lopsided rectangles tie, and the square between them has the greatest area. Its width is the vertex input of . A question about “the best rectangle” only makes sense once you know which quantity is held fixed.
Same perimeter, different areas
A rectangle 3 units wide and 7 units tall. Perimeter 20 units. Area 21 square units.
Change the setup so the pen backs onto a wall, and only three sides need fencing. The wall gives one side for free, so the fence is split differently, but the method is the same.
Worked example 3 Largest pen against a wall with 60 meters of fence
A rectangular garden is built against a long straight wall, so the wall forms one side and fencing is needed only for the other three. With meters of fence, what is the largest area?
Let be the length of each side that runs out from the wall (there are two of these). The remaining fence forms the side parallel to the wall, so that side is . Positive side lengths require . The area is
Here and , and signals a maximum. The optimizing input is
The input is allowed. Each side out from the wall is meters, and the side parallel to the wall is meters. The greatest area is
So the largest garden is square meters, from a by rectangle. Notice the shape is no longer a square. With the wall as one side, the side parallel to the wall comes out twice as long as each of the other two.
The same product structure runs through pure number problems. Two numbers with a fixed sum have a product that is a quadratic. With the sum held fixed, that product is largest when the two numbers are equal, which is the number version of the square being the best rectangle.
Check your understanding
Two positive numbers add up to . What is the greatest possible value of their product?
Name one number ; since the two add to , the other is . Their product is a quadratic.
With the vertex is a maximum, at . So both numbers are , and the greatest product is
The answer is the product , not the number that achieves it.
Greatest revenue
Revenue is price times quantity sold. When the model says quantity decreases linearly as price rises, this product is a downward quadratic. The best price depends on that model.
Worked example 4 The ticket price that maximizes revenue
A theater sells tickets per show at dollars each. A survey predicts that every dollar increase in the ticket price will sell fewer tickets. What price brings in the greatest revenue?
Let be the number of dollar increases. Then the price is dollars, and the number of tickets sold is . For whole-dollar increases, is a whole number with ; the upper bound prevents a negative ticket count. Revenue is price times quantity:
Expand so you can see the coefficients:
Here and , and means the vertex is a maximum. The optimizing number of increases is
Five is an allowed number of increases. The best price is dollars, at which the theater sells tickets. The greatest revenue is the value at the vertex:
So a ticket price of dollars maximizes revenue, bringing in dollars. The question asked for the price, so dollars is the headline answer; the revenue of dollars is a separate figure. The raw vertex input (the number of increases) is neither of those, just a step along the way.
A projectile’s highest point
The falling-object model from the applications chapter is a quadratic in time, so its highest point is another vertex problem: the leading coefficient is negative, the graph of height against time is a downward parabola, and its vertex is the top of the flight.
Worked example 5 Maximum height of a launched ball
A ball is launched upward from a foot platform with an initial speed of feet per second. Ignoring air resistance, use the model for its height in feet after seconds, from launch until it reaches the ground. Find the maximum height and the time it occurs.
The coefficients are , , and . Because , the vertex is the highest point. The time at the peak is
The ball peaks at seconds. That is the time, not the height. Substitute back to get the maximum height:
The vertex time is positive, and completing the square gives . From to , the square decreases, so the height rises from to feet and stays above ground. The peak therefore occurs during the flight: feet at seconds.
For an object launched upward near Earth’s surface, neglecting air resistance, the model is
with height in feet and time in seconds. Here is the starting height and the initial upward speed, exactly the and the from the ball above. The input at the vertex is the time the object peaks; the value there is the maximum height. Keep those two apart exactly as before.
Check your understanding
A stone thrown upward has height feet after seconds. At what time does it reach its maximum height?
The height is a downward parabola (), so the peak is at the vertex. The question asks when, which is the vertex input, using and .
So the stone peaks at seconds. The trap answer feet is the maximum height, , which answers a different question. Watch which one the prompt wants: here it is the time, seconds.
Least cost and other minimums
For a quadratic cost with a positive leading coefficient, the vertex gives the least cost. Check the permitted production levels just as you checked lengths and prices.
Worked example 6 The production level that minimizes cost
A workshop finds that its daily cost in dollars to make units of a product is . How many units should it make to minimize the cost, and what is that minimum cost?
The coefficient is positive, so the parabola opens upward and the vertex is the lowest point, a minimum. The optimizing number of units is
Ten is an allowed nonnegative whole-number count, so making units minimizes the cost. The minimum cost is the value there:
So the workshop should make units, and the least possible daily cost is dollars. The cost drops as production rises toward units, bottoms out there, and climbs again beyond it.
Area, revenue, height, product and cost use the same vertex calculation. Whether the vertex answers the practical question depends on the model and on which inputs the model allows.