Skip to content
tryhardprep
All lessons

Linear inequalities in one or two variables

14 minute read · 14 sections

Read first: Math: how the section works, Desmos basics for the test

0 of 14 sectionsSections

What the questions look like

An inequality compares two amounts with <\lt, >\gt, ≤\leq or ≥\geq.

Read the last line first. It might say:

  • “Which inequality represents this situation?”
  • “What is the greatest number of shirts the club can order without exceeding its budget?”
  • “Which point (x,y)(x, y) is a solution to the given system of inequalities in the xyxy-plane?”
  • “For which of the following tables are all the values of xx and their corresponding values of yy solutions to the given inequality?”
  • “The shaded region shown represents the solutions to which inequality?”
  • “Which statement is the best interpretation of 3.80b3.80b in this context?”

Inequality choices often share every number and differ only in the sign or in which price goes with which letter, so look at what changes.

Leave Desmos closed when the question only asks which sign to use or what a number means.

Solving a budget question

A club is ordering printed T-shirts. The shop charges an $18 setup fee plus $4.75 per shirt, and the club can spend no more than $250. What is the greatest number of shirts the club can order?

  1. Name the letter and what it counts.

    s=number of shirtss=\text{number of shirts}
  2. Build the total cost. The $18 is paid once, and $4.75 is paid for each shirt.

    18+4.75s18+4.75s
  3. “No more than $250” lets the total equal 250 but not go over, so use ≤\leq.

    18+4.75s≤25018+4.75s\leq250
  4. Subtract 18 from both sides. The sign stays the same.

    4.75s≤2324.75s\leq232
  5. Divide both sides by 4.75. It's positive, so the sign still stays.

    s≤2324.75≈48.84s\leq\frac{232}{4.75}\approx48.84
  6. Round down. The money runs out before shirt 49.

    s=48s=48
  7. Check 48 in the original cost. $246 fits in $250.

    18+4.75(48)=24618+4.75(48)=246
  8. Check one more. 49 shirts go over, so 48 is the answer.

    18+4.75(49)=250.7518+4.75(49)=250.75

On a A question where you type your own answer instead of picking one of four.Read the lesson, you'd enter 48.

Here's one to try.

Worked example

Elif manages sole stock at a neighborhood shoe repair. To prepare for the next 4 weeks, she will order identical pairs of replacement soles from a supplier. The supplier charges a one-time delivery fee of $7.70 plus $3.40 for each pair of soles. Elif can spend no more than $227.00 on the order, including the delivery fee.

What is the greatest number of pairs of replacement soles Elif can order without exceeding the budget?

Show the answer

Accepted answer: 64

Solution

Let pp be the number of pairs. The total cost is the one-time delivery fee plus the charge per pair, so 7.70+3.40p≤227.007.70+3.40p\leq227.00. Subtract 7.707.70:

3.40p≤219.303.40p\leq219.30. Divide by 3.403.40:

p≤64.5p\leq64.5. Only whole pairs can be ordered, so the greatest possible number is 6464. The cost of 6464 pairs is 7.70+3.40(64)=225.307.70+3.40(64)=225.30, which is within the budget. A common wrong answer is 6565, which comes from rounding 64.564.5 up even though 6565 pairs would cost 7.70+3.40(65)=228.707.70+3.40(65)=228.70, exceeding the budget. Another common wrong answer is 2929, which comes from multiplying the one-time 7.707.70 delivery fee by the number of pairs and treating 3.403.40 as a fixed charge.

Which sign the words give

WordsSign
At least, no fewer than, minimum≥\geq
At most, no more than, maximum, cannot exceed, up to≤\leq
More than, over, exceeds>\gt
Less than, under, below<\lt

“At least” and “at most” include the number itself. “More than” and “less than” leave it out, and an inequality that leaves it out is a An inequality that uses less than or greater than without “or equal to,” so the boundary value itself doesn’t count., written with <\lt or >\gt.

Decide whether the boundary number counts before you solve.

Right
A petition has 29 signatures and needs at least 40, so 11 more is enough.
Wrong
A petition has 29 signatures and needs at least 40, so it needs 12 more.

29+n≥4029+n\geq40 gives n≥11n\geq11. Eleven more makes exactly 40, and “at least 40” lets 40 count.

Trap: The sign points the wrong way

The T-shirt order was an $18 setup fee plus $4.75 a shirt, with no more than $250 to spend. 18+4.75s≥25018+4.75s\geq250 has every number in place, but it says the club has to spend at least $250. 18+4.75s<25018+4.75s\lt250 is wrong too, since it rules out spending exactly $250.

What to do: Translate the limit words by themselves. Then pick a number that clearly fits the story, such as 10 shirts, and check that your inequality lets it in.

Building the total

The T-shirt order has an $18 setup fee plus $4.75 per shirt, with no more than $250 to spend.

Add a one-time fee once, and multiply each price by its own count.

Right
18+4.75s≤25018+4.75s\leq250
Wrong
18s+4.75≤25018s+4.75\leq250

The wrong one charges the $18 fee for every shirt and the $4.75 only once.

With two items, each price goes with its own letter. Say a school pays $1.60 for each notebook and $3.80 for each binder, and it can spend up to $500. With nn notebooks and bb binders, that's 1.60n+3.80b≤5001.60n+3.80b\leq500.

Trap: Prices on the wrong items

3.80n+1.60b≤5003.80n+1.60b\leq500 has both prices, but it charges $3.80 for each notebook and $1.60 for each binder.

What to do: Read each term aloud with its units: 1.60 dollars per notebook times the number of notebooks. If a term doesn't make sense that way, the price is on the wrong letter.

Now try one with four choices.

Worked example

Enzo can spend up to $825 on a flour delivery. Bread-flour bags cost $19.25 each, and rye-flour bags cost $24.75 each.

Which inequality represents this situation, where bb is the number of bread-flour bags and rr is the number of rye-flour bags?

  1. A

    19.25b+24.75r≥82519.25b + 24.75r \geq 825

  2. B

    24.75b+19.25r≤82524.75b + 19.25r \leq 825

  3. C

    19.25b+24.75r<82519.25b + 24.75r \lt 825

  4. D

    19.25b+24.75r≤82519.25b + 24.75r \leq 825

Show the answer
  • A

    19.25b+24.75r≥82519.25b + 24.75r \geq 825

    This reads “up to” as a minimum, so it requires the delivery to cost at least 825825 dollars.

  • B

    24.75b+19.25r≤82524.75b + 19.25r \leq 825

    This attaches each price to the wrong A letter that stands for a number you don’t know yet, like the x in 5x + 7.Read the lesson: bb is multiplied by the rye-flour price, and rr is multiplied by the bread-flour price.

  • C

    19.25b+24.75r<82519.25b + 24.75r \lt 825

    This uses a An inequality that uses less than or greater than without “or equal to,” so the boundary value itself doesn’t count.Read the lesson, <\lt , even though “up to 825825” allows Enzo to spend exactly 825825 dollars.

  • D

    19.25b+24.75r≤82519.25b + 24.75r \leq 825

    Correct answer

    The bread-flour bags cost 19.25b19.25b dollars, and the rye-flour bags cost 24.75r24.75r dollars. Because “up to 825825” means the total can be at most 825825, the A statement that one side is bigger or smaller than the other, such as x being greater than 3.Read the lesson is 19.25b+24.75r≤82519.25b + 24.75r \leq 825.

Solution

Multiply each bag price by its number of bags. The bread-flour cost is 19.25b19.25b, and the rye-flour cost is 24.75r24.75r, so the total cost is 19.25b+24.75r19.25b + 24.75r.

The phrase “up to 825825” means the total may equal 825825 but cannot exceed it. Therefore, the situation is represented by 19.25b+24.75r≤82519.25b + 24.75r \leq 825.

Tax and what's left over

A 6% sales tax turns a price pp into p+0.06pp+0.06p, which is 1.06p1.06p.

Say the T-shirt shop ($18 setup plus $4.75 a shirt) adds 6% tax to the whole order, and the club's $250 has to cover it. Write the cost before tax first, 18+4.75s18+4.75s. Then multiply all of it by 1.06.

A percent added on multiplies the whole amount.

Right
1.06(18+4.75s)≤2501.06(18+4.75s)\leq250
Wrong
18+4.75s+0.06≤25018+4.75s+0.06\leq250

The wrong one adds 6 cents to the bill. The tax is 6% of the whole order, so it grows with the bill.

Some limits are on what's left. A 500-gallon tank has to keep at least 80 gallons after gg gallons are pumped out. What's left is 500−g500-g.

Write what's left as the total minus what's used, and put the limit on that.

Right
500−g≥80500-g\geq80
Wrong
g≥80g\geq80

The wrong one says at least 80 gallons get pumped out. The 80 is the least that can stay in the tank.

  1. Start.

    500−g≥80500-g\geq80
  2. Add gg to both sides.

    500≥80+g500\geq80+g
  3. Subtract 80 from both sides. At most 420 gallons can be pumped out.

    420≥g420\geq g

Twice or half works like the tax. If the water left had to be at least twice what's pumped out, write the amount being doubled first, then multiply: 500−g≥2g500-g\geq2g.

Two limits on one amount

A summer job wants you to work at least 12 but no more than 20 hours a week. Write each limit by itself first, h≥12h\geq12 and h≤20h\leq20. Then put them together with the smaller number on the left.

A range puts two limits on the same amount, and both have to hold.

Right
12≤h≤2012\leq h\leq20
Wrong
12≥h≥2012\geq h\geq20

The wrong one asks for a number of hours that's at most 12 and at least 20, and no number is both.

“Between” with no “inclusive” leaves out both ends, so “between 12 and 20 hours” is 12<h<2012\lt h\lt20. With “inclusive,” use ≤\leq on both sides.

To solve a range, do the same thing to all three parts.

  1. Start.

    2≤x+3≤102\leq x+3\leq10
  2. Subtract 3 from all three parts.

    −1≤x≤7-1\leq x\leq7

A triangle's third side has two limits too. It's longer than the difference of the other two sides and shorter than their sum, so with sides 5 and 9, the third side xx fits 4<x<144\lt x\lt14.

What a pair or a term means

A school pays $1.60 for each of its nn notebooks and $3.80 for each of its bb binders, and it can spend up to $500.

1.60n+3.80b≤500. 1.60n+3.80b\leq500.

Match the pair to the order of the letters, and the sentence to the direction of the sign.

Right
(150,65)(150,65) means 150 notebooks and 65 binders cost no more than $500.
Wrong
(150,65)(150,65) means 150 notebooks and 65 binders cost exactly $500.

The inequality sets a cap and never says the total is exactly 500. These cost 1.60(150)+3.80(65)=4871.60(150)+3.80(65)=487 dollars.

A question can also ask about one term, like 3.80b3.80b. That's $3.80 times the number of binders, so it's what the binders cost by themselves.

Trap: A true sentence about the wrong part

Asked about 3.80b3.80b, a choice says the school can spend at most $500 on supplies. That's true, but it describes the 500, the limit on all the supplies together.

What to do: Find the part of the inequality the sentence is about. If you can't point to it, cross the choice out.

When the sign flips

Solve an inequality with the moves from linear equations in one variable. Adding, subtracting, and multiplying or dividing by a positive number leave the sign alone.

When you multiply or divide both sides by a negative number, turn the sign around.

Right
−3x≥12-3x\geq12 gives x≤−4x\leq-4.
Wrong
−3x≥12-3x\geq12 gives x≥−4x\geq-4.

The wrong answer lets in x=0x=0. Check it: −3(0)≥12-3(0)\geq12 says 0≥120\geq12, which is false.

You can skip the flip by moving the letter to the side where its The number multiplying a letter, like the 5 in 5x.Read the lesson comes out positive.

  1. Start.

    −4x+7≥19-4x+7\geq19
  2. Add 4x4x to both sides. Now the xx term is positive.

    7≥19+4x7\geq19+4x
  3. Subtract 19 from both sides.

    −12≥4x-12\geq4x
  4. Divide both sides by 4, a positive number.

    −3≥x-3\geq x
  5. Read it from the side of xx: xx is at most −3-3.

    x≤−3x\leq-3

Trap: Sides swapped, sign kept

x≥−3x\geq-3 comes from moving xx to the front of −3≥x-3\geq x and keeping the sign. It lets in x=0x=0, and 7≥197\geq19 is false.

What to do: When the two sides trade places, the sign turns around with them. Then check one value: x=−5x=-5 gives 20+7=2720+7=27, which is at least 19.

Rounding to a whole number

A count of shirts or cans has to be a whole number, so the last step is often rounding. For the greatest count under a limit, round down, as with the 48 shirts. For the least count that meets a need, round up.

Say 162 gallons of water go into 5-gallon cans, and the question asks for the least number of cans.

  1. The cans have to hold at least 162 gallons.

    5c≥1625c\geq162
  2. Divide both sides by 5.

    c≥32.4c\geq32.4
  3. Round up. 32 cans hold only 160 gallons.

    c=33c=33

A count can't be negative either. For the supplies, (−5,50)(-5,50) makes 1.60n+3.80b≤5001.60n+3.80b\leq500 true, but no school buys −5-5 notebooks.

Trap: Rounded the wrong way

For the T-shirts, 49 is a choice. It's 48.84 rounded the usual way, and 49 shirts cost $250.75. For the cans, 32 is a choice, and it leaves 2 gallons with nowhere to go.

What to do: Test your whole number in the original words, then test the next one past it. For a greatest count, one more should break the limit. For a least count, one fewer should fall short.

Checking points and tables

A point is a solution when its numbers make the inequality true. A tank starts with aa gallons and fills at mm gallons a minute. After 6 minutes it has to hold at least 480 gallons, and after 15 minutes it can hold no more than 1,200 gallons.

a+6m≥480 a+6m\geq480 a+15m≤1200 a+15m\leq1200

Check every condition before you pick a pair.

Do this
Test (a,m)=(150,75)(a,m)=(150,75) in both. 150+450=600150+450=600 is at least 480, but 150+1125=1275150+1125=1275 is over 1,200, so it fails.
Not this
See that 600≥480600\geq480 and pick (150,75)(150,75).

A pair can pass one condition and fail the other. (240,50)(240,50) passes both, with 540 and 990.

A table works only if every row does. Here's one table for y>6x−20y\gt6x-20.

xxyy
30
45
510
  1. Row 1 passes.

    6(3)−20=−2,  0>−26(3)-20=-2,\ \ 0\gt-2
  2. Row 2 passes.

    6(4)−20=4,  5>46(4)-20=4,\ \ 5\gt4
  3. Row 3 fails. 10 isn't greater than 10.

    6(5)−20=10,  10>10 is false6(5)-20=10,\ \ 10\gt10 \text{ is false}

Trap: Only part of it checked

This table is a choice, and its first two rows work. The third lands exactly on the boundary, and >\gt leaves the boundary out.

What to do: Check every row, and stop a table at the first row that fails. In a system, check the pair in every inequality.

The most of one thing

Some questions ask for the greatest possible value of one count. Give the other count the smallest value the story allows, then solve. For the supplies, 1.60n+3.80b≤5001.60n+3.80b\leq500, here's the greatest number of binders.

  1. Fewer notebooks leave more money for binders, so use n=0n=0.

    1.60(0)+3.80b≤5001.60(0)+3.80b\leq500
  2. Divide both sides by 3.80.

    b≤5003.80≈131.58b\leq\frac{500}{3.80}\approx131.58
  3. Round down.

    b=131b=131

Zero works only when the story allows it. If the school has to buy at least 20 notebooks, use n=20n=20.

  1. The fewest notebooks allowed is 20.

    1.60(20)+3.80b≤5001.60(20)+3.80b\leq500
  2. 1.60(20)=321.60(20)=32. Subtract it from both sides.

    3.80b≤4683.80b\leq468
  3. Divide both sides by 3.80.

    b≤4683.80≈123.16b\leq\frac{468}{3.80}\approx123.16
  4. Round down.

    b=123b=123

If the question fixes one count, as in “if the school buys 20 notebooks,” put that number in the same way.

Reading a shaded graph

A coordinate grid where the horizontal axis counts by 3s and the vertical axis by 1s. A solid line falls from (0, 5) on the y-axis to (15, 0) on the x-axis. Every point below and on the line is shaded, and the region above it is left white.

Check what one grid square is worth first. Here the horizontal One of the two lines a graph is measured against, one running across and one running up. counts by 3s and the vertical axis by 1s, so the solid line crosses at (0,5)(0,5), the The output when the input is 0, which is where a graph crosses the vertical axis.Read the lesson, and (15,0)(15,0), the The value of x where a graph crosses the horizontal axis, so the output there is 0.Read the lesson. Find the How steep a line is, measured by how much it goes up for each unit it moves to the right.Read the lesson and the line from those two points, as in the linear functions lesson.

  1. Find the slope: change in yy over change in xx.

    m=0−515−0=−13m=\frac{0-5}{15-0}=-\frac13
  2. The line meets the vertical axis at (0,5)(0,5), so the starting value is 5.

    y=−13x+5y=-\frac13x+5
  3. Solid line, shading below.

    y≤−13x+5y\leq-\frac13x+5

Solid or dashed tells you whether the boundary counts.

Right
y≤−13x+5y\leq-\frac13x+5
Wrong
y<−13x+5y\lt-\frac13x+5

A solid line means the points on it are solutions, which takes ≤\leq or ≥\geq. A dashed line takes <\lt or >\gt.

Trap: Misread the picture

y≤−x+5y\leq-x+5 comes from counting five squares to the right and calling the crossing (5,0)(5,0). Each of those squares is worth 3, so the crossing is at 15.

What to do: Read the numbers on each axis before you count squares. Then test a point that's clearly shaded in your answer.

When the inequality isn't solved for yy, the sign alone doesn't tell you which side is shaded.

Test a point off the line to find the shaded side.

Do this
Test the origin in 4x−3y≤244x-3y\leq24. It gives 0≤240\leq24, which is true, so the shading covers the origin.
Not this
Decide that ≤\leq means the shading is below the line.

Solving 4x−3y≤244x-3y\leq24 for yy means dividing by −3-3, which flips it to y≥43x−8y\geq\frac43x-8. That one shades above its line.

If the line runs through the origin, as y=2xy=2x does, test another point, such as (0,3)(0,3).

Finding a letter from the graph

Say the shaded region below shows every solution of kx+9y≤45kx+9y\leq45, where kk is a A number that doesn’t change, like the 7 in 5x + 7, or a letter such as p that stands for one fixed value.Read the lesson, and the question asks for kk.

A coordinate grid where the horizontal axis counts by 3s and the vertical axis by 1s. A solid line falls from (0, 5) on the y-axis to (15, 0) on the x-axis. Every point below and on the line is shaded, and the region above it is left white.

The horizontal axis counts by 3s, so the line crosses the axes at (0,5)(0,5) and (15,0)(15,0).

  1. Points on the line make the two sides equal, so use an equals sign.

    kx+9y=45kx+9y=45
  2. Put in (15,0)(15,0). That's the crossing where the kk term isn't zero.

    k(15)+9(0)=45k(15)+9(0)=45
  3. 9(0)=09(0)=0.

    15k=4515k=45
  4. Divide both sides by 15.

    k=3k=3
  5. Check the shading. The origin gives 0≤450\leq45, which is true, and the origin is shaded.

    3(0)+9(0)≤453(0)+9(0)\leq45

Trap: The crossing that can't find k

9 comes from putting in (0,5)(0,5). There kxkx is 0, so 9(5)=459(5)=45 only gives back the 9 that's already printed. 15 is a choice too. It's the crossing itself, before any solving.

What to do: Put in the crossing where the kk term isn't zero. On this graph that's (15,0)(15,0), where x=15x=15.

Now try one on a different grid.

Worked example
100%
Coordinate graph with x-axis intervals of 8 and y-axis intervals of 10. A solid line passes through (0, 70) and (56, 0), with the region below the line shaded.

A taxi company limits its combined staffing cost for daytime and overnight shifts to $3,780. Daytime staffing costs $67.50 per hour.

In the graph, xx and yy represent daytime and overnight shift hours, respectively. The shaded region represents the solutions to 67.5x+ky≤3,78067.5x + ky \leq 3{,}780, where kk is a constant.

What is the value of kk?

  1. A

    54

  2. B

    67.5

  3. C

    63

  4. D

    70

Show the answer
  • A

    54

    Correct answer

    The boundary line passes through (0,70)(0,70), so 7070 overnight hours use the full 3,7803{,}780-dollar budget when there are no daytime hours. Substituting gives 70k=3,78070k=3{,}780, so k=54k=54.

  • B

    67.5

    Dividing 3,7803{,}780 by 5656 uses the horizontal Where a graph crosses an axis.Read the lesson in place of the vertical intercept. The 5656 represents daytime hours, so this calculation gives the daytime hourly cost.

  • C

    63

    This comes from reading the vertical Where a graph crosses an axis.Read the lesson as 6060, one grid interval below 7070, and calculating 3,780÷60=633{,}780\div60=63. Each vertical grid interval represents 1010 hours.

  • D

    70

    This treats the vertical Where a graph crosses an axis.Read the lesson, 7070, as the hourly cost. That intercept represents overnight hours at the full budget; you need to substitute it into the boundary Two expressions set equal to each other, like 5x + 7 = 22.Read the lesson to find kk.

Solution

On the boundary line, the staffing cost equals the budget, so 67.5x+ky=3,78067.5x+ky=3{,}780. The line crosses the vertical One of the two lines a graph is measured against, one running across and one running up. at (0,70)(0,70), where there are 00 daytime hours and 7070 overnight hours.

Substitute these coordinates: 67.5(0)+k(70)=3,78067.5(0)+k(70)=3{,}780. This gives 70k=3,78070k=3{,}780, so k=3,78070=54k=\frac{3{,}780}{70}=54. The overnight staffing cost is 5454 dollars per hour.

Practice

Before each one, find the limit words and decide whether the boundary counts. Then check your answer in the original words.

Try it

5 questions on this skill, with every choice explained.

Start the drill

Next steps