Graphing Inequalities
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Draw the boundary dashed for strict and solid for inclusive
- Choose an off-boundary test point and use it to decide which half-plane to shade
- Recognize as a vertical boundary and as horizontal
- Check whether a given point, including one on the boundary, is a solution
- Keep only the overlap for a system, the feasible region
The boundary line and the two half-planes
For , replacing with gives . This line is the boundary between solutions and non-solutions. Graph it using its slope and intercept.
More generally, we graph inequalities such as , where and are not both zero. The matching equation is a line. If both coefficients were zero, we would instead have a constant statement, such as , with no boundary line.
A line splits the plane into two sides, called half-planes. The inequality selects one whole side. An inclusive symbol also includes the boundary. Here is why all the points on one side give the same answer.
Why one whole side satisfies the inequality#
At , the boundary has height . The point sits units above it, so is true. The point sits unit below it, so is false.
Now take any line and any input . The boundary height there is , so
The difference on the right is the vertical gap: positive above the line, zero on it, and negative below it. Thus every point above the line satisfies , and every point below it fails. In the same way, selects the points below the line, and or also keep the line itself.
For with , solve for to make this comparison, reversing the symbol if you divide by a negative . When , we have and the vertical boundary instead. Dividing by , reversing the symbol if is negative, compares with . Then the horizontal gap is positive to the right and negative to the left. In either case, testing one point off the boundary tells you the answer for its whole side.
Picking the side with a test point
Choose a point off the boundary and substitute its coordinates into the original inequality. If the result is true, shade that point’s side. If it is false, shade the other side.
The origin usually makes the arithmetic easiest. But if it lies on the boundary, its test only tells you whether equality counts; it cannot choose between the two sides. Use another off-line point, such as or .
Draw the boundary dashed for or : equality is excluded. Draw it solid for or : equality is included. This is the same distinction as open and filled circles on a number line.
Worked example 1 Graph
Start with the boundary. Replacing with gives , a line with slope and -intercept . Plot , step up and right to , and draw the line. The symbol is strict, so make it dashed: the points on the line are not part of the solution.
Now pick the side. Test the origin , which is not on the line, in the original inequality:
which is false. The origin is not a solution, so the solutions lie on the other side. Shade the half-plane that does not contain the origin, the region above the line.
The finished graph is a dashed line with the region above it shaded. As a check, the point is in the shaded region, and the original reads , which is true. The unshaded point , by contrast, gives , and is false.
Worked example 2 Graph
The boundary is , quickest from its intercepts. Setting gives , so and the -intercept is . Setting gives , so and the -intercept is . Draw the line through those two points. The symbol is , which is inclusive, so make the line solid: the points on it are solutions too.
Test the origin in the original inequality:
which is true. The origin is a solution, so shade the side that contains it, the region below the line.
You chose the side with the test point, without solving for . To check, try a point on the far side. The point gives , and is false, so that point is correctly left unshaded.
Check your understanding
To graph , how should you draw the boundary line, and does the origin lie in the shaded region?
The symbol is , which is inclusive, so the boundary is drawn solid. Now test the origin in the inequality.
That is false, so the origin is not a solution and the shaded region is the side that does not contain it.
Horizontal and vertical boundaries
Two kinds of inequality have boundaries that run straight across or straight up and down, and you graph them the same way as any other. An inequality in alone, such as , has the vertical boundary . An inequality in alone, such as , has the horizontal boundary . Draw the boundary dashed or solid from the symbol as always, then test a point.
For the boundary is the vertical line two units left of the -axis, drawn dashed because the symbol is strict. Testing the origin gives , which is true, so shade the side holding the origin, everything to the right of the line.
For the boundary is the horizontal line one unit above the -axis, drawn solid because is inclusive. Testing the origin gives , which is true, so shade the side holding the origin, everything on or below the line.
There is a quick sense-check for the shading. The statement says ” is greater than ,” and greater lies to the right, so the region opens rightward. In the same way says ” is at most ,” and smaller lies downward, so the region opens downward. A test point gives the same answer.
Check your understanding
To graph , how should you draw the boundary, why can't you use the origin as the test point, and which side should you shade?
The symbol is strict, so the boundary is dashed. That boundary is the -axis itself, so the origin sits on it and cannot tell you which side to shade. Pick another easy point such as .
That point is a solution, so shade the half-plane to the right of the -axis, where is positive.
Checking whether a point is a solution
To check a point, substitute its coordinates into the inequality. A true statement means the point belongs to the solution region. On the boundary, the two sides are equal: and accept the point, while and reject it.
Worked example 3 Test three points against
Check each point by substituting it into and judging the result.
The point : the right side is , so the statement is , which is false. This point is not a solution.
The point : the right side is , so the statement is , which is true. This point is a solution.
The point : the right side is , so the statement is , which is true. This point sits exactly on the boundary line, and because the symbol is the boundary is solid and its points count, so is a solution.
Had the inequality been the strict , the point would give , which is false, and it would not be a solution. Whether the line is dashed or solid matters only for points on the boundary itself.
Check your understanding
Is the point a solution of ?
Substitute and into the left side .
That is false, so the point is not a solution. In fact lands exactly on the boundary , and since the symbol is the strict , that boundary is dashed and its points are excluded.
Systems of linear inequalities
A system asks for points satisfying all its inequalities at once. Graph each half-plane, then keep their common part, called the feasible region. A point that lies in some of the shaded half-planes but not all of them fails at least one inequality, so it is left out.
A feasible region need not have any area at all. The conditions and leave only the line . The conditions and have no common points, so their feasible region is empty.
Test a point separately for each inequality. The origin may be off one boundary but on another; choose a different test point whenever it lies on the boundary you are handling.
Worked example 4 Graph the system and
Handle one inequality at a time, then take the overlap.
The first inequality has boundary , a line with slope and -intercept . The symbol is strict, so the line is dashed. Testing the origin, is , which is true, so shade the side containing the origin, above this line.
The second inequality has boundary , slope and -intercept . The symbol is inclusive, so the line is solid. Testing the origin, is , which is true, so shade the side containing the origin, below this line.
The two boundaries cross where , that is , so and then : the point . That crossing point sits on the dashed boundary , so it marks where the two lines meet, not a solution of the system; it is excluded because the first inequality is strict. The feasible region is the wedge that is above the dashed line and below the solid line at the same time.
The origin sits inside the overlap, which agrees with both tests coming out true. A point in only one of the half-planes, such as , fails the system. That point gives , true for the first inequality, but , false for the second, so the point is left out of the feasible region.
Worked example 5 Graph the system , , and
The first two inequalities are the special vertical and horizontal kind. The region is on or to the right of the -axis, and is on or above the -axis. Together they pin everything to the first quadrant. Both boundaries are solid, since both symbols are inclusive.
The third inequality has boundary , the line through and , drawn solid. Testing the origin gives , which is true, so its half-plane is the side toward the origin, below the line.
Overlapping all three leaves a triangle. Its edges are the two axes and the line , and its three corners, or vertices, are , , and . Each is a crossing of two boundaries and satisfies all three inequalities. Always check every condition: crossing two boundaries alone does not guarantee a feasible corner.
Every point of this triangle satisfies all three inequalities. The interior point , for instance, has , then , and then , all true. A point just outside, such as , has false, so it is not in the feasible region even though it clears the first two conditions.
Adding a condition can shrink this region or leave it unchanged; it cannot add new points. For example, adding removes , even though it is still a crossing of two original boundaries.
Check your understanding
Which point lies in the feasible region of the system and ?
A point is in the feasible region only when it satisfies both inequalities, so test each candidate against and .
The point fails because is false; fails because is false; fails because is false. Only satisfies both.