Optimize a linear objective over a feasible region

Lesson progressPractice problems 0/3
Difficulty
Advanced
Estimated time
24 minutes
Domains
Algebra
Techniques
Feasible-regionsCorner-pointsLinear-objectivesMaximum-minimumInteger-restrictionsHybrid-method

What you’ll learn

  1. Find every corner of a feasible region that's closed in on all sides.
  2. Work out the value of a separate linear expression, the objective, at each corner.
  3. Pick the greatest or least value, whichever the question asks for.
  4. Check crossing points exactly, and handle answers that must be whole numbers.

Why this matters on the SAT

The best value may mix both quantities

Some SAT questions give you a feasible region, the set of points that satisfy every inequality, and then ask for the greatest or least value of a different expression. It's tempting to hunt for the biggest xx or the biggest yy. But the best value can come from a mix of the two.

SAT example

The variables xx and yy satisfy

x≥0y≥0x+2y≤122x+y≤12.\begin{aligned} x&\ge0\\[1.4em] y&\ge0\\[1.4em] x+2y&\le12\\[1.4em] 2x+y&\le12. \end{aligned}

What is the greatest possible value of 3x+4y3x+4y?

  1. A

    1818

  2. B

    2424

  3. C

    2828

  4. D

    3636

Fast hybrid solution

Hybrid means Desmos draws the picture and you pin down the exact numbers. Type in the four inequalities, and the region where their shading overlaps is the feasible region. Then type the two slanted boundaries as equations, x+2y=12x+2y=12 and 2x+y=122x+y=12, each on its own line, so you can click the point where they cross.

The region has four corners:

(0,0), (6,0), (4,4), (0,6).(0,0),\ (6,0),\ (4,4),\ (0,6).

Now plug each corner into 3x+4y3x+4y:

CornerValue of the objective
(0,0)(0,0)00
(6,0)(6,0)1818
(4,4)(4,4)2828
(0,6)(0,6)2424

The greatest value is 28\boxed{28}, at (4,4)(4,4), so the answer is C.

Look at choice B. The biggest yy in the region is 66, at (0,6)(0,6), and that corner gives only 2424. The mixed corner (4,4)(4,4) beats it.

Calculator loads as you approach
The shading shows the feasible region, and the boundary lines and dots mark its exact corners. Change a constraint to see the region move. Reset brings back the example.

Recognize a separate objective

These questions have two kinds of pieces, and it helps to name them.

A constraint is a limit on which pairs (x,y)(x,y) are allowed. The feasible region is where all the constraints overlap.

The objective is the expression you're trying to make as large or as small as possible. In a story, it's usually profit, points, area, cost or total output.

For example, the constraints might be two resource limits:

3x+2y≤24x+4y≤20\begin{aligned} 3x+2y&\le24\\[1.4em] x+4y&\le20 \end{aligned}

and the objective might be the profit

P=5x+7y.P=5x+7y.

The objective doesn't limit anything. It gives every point in the region a score. Here's the picture to keep: the constraints draw the region, and the objective scores the points.

You'll know you need this method when a question asks for the greatest or least value of an expression like 5x+7y5x+7y. If it asks only for the greatest possible xx-coordinate or yy-coordinate, you want the feasible-edge method from Graph and model two-variable inequalities instead.

Common mistake:

Don’t graph the objective as if it were one more limit. That cuts the region down, and you end up with the wrong corners. Graph only the limits the question states. Keep the objective to one side, then plug each corner into it.

Find and list every feasible corner

A corner point, also called a vertex, is a spot where the edge of the region turns. Corners usually come from one of these:

  • two boundary lines crossing each other;
  • a boundary line meeting the xx-axis;
  • a boundary line meeting the yy-axis; or
  • an endpoint the question gives you directly.

Here's how to collect them:

  1. Turn every limit in the question into an inequality, and graph them all.
  2. Trace around the outside edge of the overlap, so you don't skip a corner.
  3. Let Desmos show you where boundary lines cross, and click those points when that saves you graphing work.
  4. Find each corner exactly by solving its two boundary equations together, or use that algebra to confirm what Desmos shows.
  5. Throw out a crossing point that breaks any of the original inequalities.
  6. Write each feasible corner down once, and only then start plugging into the objective.

Let's run this on the opening example. The slanted boundaries cross where

x+2y=122x+y=12.\begin{aligned} x+2y&=12\\[1.4em] 2x+y&=12. \end{aligned}

Subtract the first equation from the second and you get x−y=0x-y=0, so y=xy=x. Put that back into x+2y=12x+2y=12 to get 3x=123x=12, so the crossing is exactly (4,4)(4,4).

The axis corners need one more check. The line x+2y=12x+2y=12 hits the xx-axis at (12,0)(12,0), but 2(12)+0=242(12)+0=24 breaks 2x+y≤122x+y\le12. So (12,0)(12,0) isn't a corner. On the xx-axis, the tighter limit is 2x+y=122x+y=12, which stops at (6,0)(6,0). The same thing happens on the yy-axis, where x+2y=12x+2y=12 stops you at (0,6)(0,6).

Use the graph to find corners, not to prove them. A decimal on the screen can hide an exact fraction, and two boundary lines can cross at a point that breaks a third constraint.

Why checking the corners works

You might wonder why the corners are enough. The region has infinitely many points inside it.

Start at any point inside the region. A linear objective goes up steadily in one direction, so you can keep moving that way and the value keeps growing until you reach the edge. Now look along that edge. On a straight edge, the objective changes at a steady rate from one end to the other.

That leaves two possibilities:

  • one end of the edge scores better, and that end is a corner; or
  • the objective has the same value all along the edge, so the two corners at its ends share that value.

So on a bounded region like the ones here, closed in on all sides with straight edges, the maximum and the minimum each show up at a corner. Check the corners, not the inside.

Check your understanding:

A feasible region has corners (0,0)(0,0), (7,0)(7,0), (5,3)(5,3), and (0,6)(0,6). Which corner maximizes 2x+5y2x+5y, and what is the maximum value?

Example: Maximize reward points under two limits

Worked example

A workshop makes standard kits and deluxe kits. Each standard kit requires 22 machine-hours and earns 88 reward points. Each deluxe kit requires 55 machine-hours and earns 1717 reward points.

The workshop will make at most 3030 kits and can use at most 9696 machine-hours. The numbers of both types of kits must be nonnegative whole numbers.

What is the greatest possible number of reward points the workshop can earn?

  1. A

    240240

  2. B

    326326

  3. C

    348348

  4. D

    360360

Step 1

Separate the limits from the objective

Let xx be the number of standard kits and yy the number of deluxe kits.

The kit count and the machine-hours are limits, and neither count can be negative:

x+y≤302x+5y≤96x≥0y≥0.\begin{aligned} x+y&\le30\\[1.4em] 2x+5y&\le96\\[1.4em] x&\ge0\\[1.4em] y&\ge0. \end{aligned}

The reward points are what you want to make as big as possible, so they're the objective:

R=8x+17y.R=8x+17y.

Step 2

Find the feasible corners

Graph the inequalities, then trace around the edge of the overlap.

Three corners sit on the axes:

(0,0),(30,0),(0,965).(0,0),\quad (30,0),\quad \left(0,\frac{96}{5}\right).

On the xx-axis, the kit limit stops you at 3030 kits, before the hours limit would at 4848. On the yy-axis, it's the other way around: the hours run out at 965\frac{96}{5} deluxe kits, well before 3030.

The last corner is where the two slanted boundaries cross, so solve

x+y=302x+5y=96.\begin{aligned} x+y&=30\\[1.4em] 2x+5y&=96. \end{aligned}

Double the first equation to get 2x+2y=602x+2y=60. Subtract that from the second, and you're left with 3y=363y=36, so y=12y=12 and x=18x=18. The fourth corner is (18,12)(18,12).

Step 3

Score each corner

CornerR=8x+17yR=8x+17y
(0,0)(0,0)00
(30,0)(30,0)240240
(18,12)(18,12)348348
(0,965)\left(0,\frac{96}{5}\right)16325=326.4\frac{1632}{5}=326.4

If fractions of a kit were allowed, the best you could do is 348348, at (18,12)(18,12).

Step 4

Check the story and answer

The story needs whole numbers of kits, and (18,12)(18,12) already is one, with nothing negative. Check it against both limits:

18+12=30≤3018+12=30\le30

and

2(18)+5(12)=96≤96.2(18)+5(12)=96\le96.

So the workshop can earn

8(18)+17(12)=3488(18)+17(12)=\boxed{348}

reward points, and the answer is C.

Common mistake:

Seventeen points beats eight, so why not make only deluxe kits? Because a deluxe kit also eats 55 machine-hours instead of 22, and the all-deluxe corner scores only 326.4326.4. The mix at (18,12)(18,12) earns more. Write down both limits, then score every corner.

Calculator loads as you approach
Use the shading to spot the corners, then solve the crossing boundary equations exactly. Reset brings back the limits, boundaries and corner points.

When the answer must be whole numbers

The corner rule works on the full region, fractions and all. When xx and yy count things, like kits or people, the best corner might not be a real option. This is the trickiest part of these questions, so let's go slowly.

Say xx and yy must be whole numbers, and

2x+3y≤224x+y≤21x≥0y≥0,\begin{aligned} 2x+3y&\le22\\[1.4em] 4x+y&\le21\\[1.4em] x&\ge0\\[1.4em] y&\ge0, \end{aligned}

with the objective

P=3x+4y.P=3x+4y.

The two slanted boundaries cross at

(4110,235),\left(\frac{41}{10},\frac{23}{5}\right),

where

P=30710=30.7.P=\frac{307}{10}=30.7.

That's the best value anywhere in the region, but you can't make 4.14.1 of something. It still tells you a lot. With whole-number xx and yy, P=3x+4yP=3x+4y is always a whole number too, and it can't beat 30.730.7. So no allowed point can score more than 3030.

Now look for a whole-number point that actually hits 3030. Try (2,6)(2,6):

2(2)+3(6)=22≤22,4(2)+6=14≤21,2(2)+3(6)=22\le22,\qquad 4(2)+6=14\le21,

and

P=3(2)+4(6)=30.P=3(2)+4(6)=30.

It fits both limits and reaches the ceiling, so the greatest value is exactly 30\boxed{30}.

What about just rounding the corner? (4110,235)\left(\frac{41}{10},\frac{23}{5}\right) rounds to (4,5)(4,5), and

2(4)+3(5)=23>22,2(4)+3(5)=23>22,

so (4,5)(4,5) is outside the region. Rounding each coordinate on its own can push you over a limit. Use the fractional best value as a ceiling instead. Then search the whole-number points nearby and along the edges next to that corner, and plug your final point into every original constraint.

Common mistake:

The same idea works when the question asks for a least value. Rounding can still push a point outside the region, so don’t trust a rounded corner. The fractional minimum is a floor, a value no whole-number point can go below. Find a whole-number point that fits every limit, then score it exactly.

Practice problems

Your turn. The second problem asks for a least value, and the third one needs whole numbers.

Compare four simple corners

Practice problem

The variables xx and yy satisfy

x≥0y≥0x+y≤10x+2y≤14.\begin{aligned} x&\ge0\\[1.4em] y&\ge0\\[1.4em] x+y&\le10\\[1.4em] x+2y&\le14. \end{aligned}

What is the greatest possible value of 3x+5y3x+5y?

Answer choices
Calculator loads as you approach
By hand is quickest here, since the intercepts and the one crossing are easy to find. Graph it here if you want to see the region or check a corner.

Minimize across five corners

Practice problem

The variables xx and yy satisfy

x≥0y≥0x+y≥82x+y≥10x+y≤12.\begin{aligned} x&\ge0\\[1.4em] y&\ge0\\[1.4em] x+y&\ge8\\[1.4em] 2x+y&\ge10\\[1.4em] x+y&\le12. \end{aligned}

What is the least possible value of 4x+3y4x+3y?

Calculator loads as you approach
Go hybrid: graph all five inequalities here to spot every corner, then solve the crossings and compare values exactly.

Respect whole-number production

Practice problem

A studio makes Type A and Type B display pieces. Each Type A piece uses 33 panels and 11 connector and earns 22 points. Each Type B piece uses 22 panels and 44 connectors and earns 55 points.

The studio has at most 2525 panels and at most 2121 connectors. If the numbers of both types must be nonnegative whole numbers, what is the greatest possible number of points?

Answer choices
Calculator loads as you approach
Go hybrid. Let xx stand for Type A and yy for Type B, enter 3x+2y≤253x+2y\le25, x+4y≤21x+4y\le21, x≥0x\ge0, and y≥0y\ge0, and score 2x+5y2x+5y at the corners. Then find a whole-number point that fits.

Finish the lesson

3 practice examples left

Finish the remaining questions correctly to complete this lesson.

Quick recap

  • The constraints draw the feasible region. The objective scores each point in it.
  • Graph every constraint, trace the edge, and list every feasible corner.
  • Find axis corners, and solve crossing boundary equations exactly.
  • Score every corner with the whole objective, then pick the greatest or least, whichever the question asks for.
  • On a bounded region with straight edges, a linear objective's maximum and minimum sit at corners. If a whole edge ties, the corners at its ends tie too.
  • Let Desmos do the graphing and find the crossings, but check corners and your final answer exactly.
  • When the answer must be whole numbers, don't round a fractional corner. Use its value as a ceiling or floor, then find and check a whole-number point.

Related lessons

Review Graph and model two-variable inequalities for turning limits into inequalities, reading shaded overlap and checking feasible points.

Use Solve linear systems strategically to get faster at finding exactly where two boundary lines cross.

Try Inequalities and shaded overlap for more Desmos practice with systems of inequalities.

Head back to the SAT Algebra course to see the full lesson path.

Next lesson

Distribute, combine, and rewrite expressions

Rewrite polynomial expressions exactly by distributing, combining like terms, and expanding products.

Start next lesson

Practice

Practice this lesson

73 SAT questions use what this lesson teaches. Practice a few in a study session at the difficulty you choose.

Start practice