Inequality
grapher.
Graph up to four inequalities in x and y and see the region where all of them hold.
- Window shaded
- 45%
- Corners
- 1
- Region area
- Unbounded
Shade above the dashed line y = 2x − 3. Shade below the solid line y = −x + 4. Together they leave a region that runs on past the edge of the graph, so it has no finite area.
The solution region
Drag the test pointGraph from −10 to 10 on both axes of y > 2x − 3, y ≤ −x + 4. The shaded part, about 45% of the window, is where every inequality holds. Boundary 1 is dashed. Boundary 2 is solid. Corners: (2.33, 1.67). The test point at (0, 0) is inside the region.
A dashed edge is left out of the region and a solid edge is part of it. Filled dots are corners that count as solutions; open dots sit on a dashed edge.
Checking the test point
- 1Inequality 1: put x = 0 and y = 0 in, then move everything to the left(y) − (2x − 3) = 33 > 0 is true
- 2Inequality 2: put x = 0 and y = 0 in, then move everything to the left(y) − (−x + 4) = −4−4 ≤ 0 is true
- 3Check: every inequality is true, so the point is in the shaded region(0, 0): 2 of 2 true
Corner points
| Corner | Dot | ||
|---|---|---|---|
| A | 73 | 53 | Open |
Together they leave a region that runs on past the edge of the graph, so it has no finite area.
Test several points
Type points or paste two columns from a spreadsheet. Each row says whether it is a solution and which inequality it fails.
| # | x | y |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 |
Results
| Point | Result | Fails |
|---|---|---|
| (0, 0) | SolutionFails None | None |
| (3, 1) | Not a solutionFails y > 2x − 3 | y > 2x − 3 |
| (−2, 5) | SolutionFails None | None |
| (4, −1) | Not a solutionFails y > 2x − 3 | y > 2x − 3 |
How it's worked out
An inequality in two variables splits the plane into two parts. The edge between them, the boundary, is what you get when you swap the sign for an equals sign. OpenStax gives the hand method in three steps: draw the boundary, test a point that is not on it, and shade the side where the test comes out true.
The boundary is solid for ≤ and ≥, because points on it count. It is dashed for < and >, because they do not. The tool moves every term to one side and checks the sign of what is left:
For , that gives , and a point is a solution when g is above 0. The tool works out g across a fine grid, shades every cell that passes, and traces the line where g is exactly 0. That works for curves too, such as a circle, where y is not a single function of x.
A system is several inequalities at once. Its solution is the overlap, the part shaded by all of them, which OpenStax calls the region shaded twice when there are two. For , and , the overlap is a triangle with an area of 12.
Corner points are where two straight boundaries meet on the edge of the region. Each straight boundary is , and two of them cross at:
If the bottom is 0, the lines are parallel and never meet. Not every crossing is a corner: one that lands outside the region is dropped. When the corners close the region in, its area comes from the shoelace formula, with the corners in order around the shape:
Worked examples
Priya checks a two-line homework system
Priya has to graph and and show that the origin is a solution. The first boundary is dashed and the second is solid.
At (0, 0) the first one leaves 3 after moving everything left, and 3 is above 0. The second leaves −4, which is at most 0. Both hold, so the origin is a solution, and the shading covers it.
The two lines cross at (, ). That corner sits on the dashed line, so it is drawn as an open dot and is not a solution itself. The region is open on the left, so it runs past the edge of the graph and has no finite area. About 45% of the window from −10 to 10 is shaded.
Theo plans the bars for a soap stall
Theo makes small bars (x) and large bars (y) for a craft fair. He wants at least 20 bars, so . A small bar takes 3 oz of soap base, a large one takes 6 oz, and he has 90 oz, so . He cannot make a negative number of either.
The four boundaries close in a triangle with corners at (10, 10), (20, 0), (30, 0). Its area is 50 square units. A plan of 20 small and 4 large bars is inside it. A plan of 5 small and 10 large bars fails 1 of the four, because 15 bars is short of his minimum.
If he later adds a price for each bar, the plan that earns the most will be at one of those three corners, which is why the corner list matters in linear programming.
Ana marks a garden bed and a path
Ana sketches a round bed of radius 4 m centered on a post, , and a straight path along . She wants the part of the bed on the post side of the path, .
The circle is solid and the path is dashed. A plant at (−2, 1) is in the region. One at (3, 0) is inside the circle (true) but on the wrong side of the path (false), so it is out.
About 36% of the window from −5 to 5 is shaded. Because one edge is curved, the tool lists no corners and gives no exact area. The shaded share of the window is the estimate to use.
Reading your result
The answer says whether your test point satisfies every inequality. The working shows each one with the point put in, the left side minus the right side, and that number compared with 0. If one is false, the point is outside, and the answer names the inequality it breaks.
Filled and open dots. A corner on a solid edge is a solution and is filled. A corner where a dashed edge passes is not a solution, so it is open, even though the region comes right up to it.
Unbounded regions. If you can walk off in some direction and stay inside, the region has no finite area. Two lines that cross in an X leave such a region. The tool checks this from the boundary lines themselves, not from the window, so zooming out does not change it.
No shading at all means the inequalities share no point in the window. OpenStax gives with as an example: the lines are parallel and the sides point away from each other, and 0% of the window is shaded. Try a larger window before you decide a system has no solution.
Common mistakes
- Forgetting to flip the sign. Dividing by −1 gives , not . At (1, 0), the version as typed is false, the correct rewrite is false, and the wrong one is true. Type it either way and compare the shading.
- Testing a point on the line. For the boundary passes through the origin, so (0, 0) tells you nothing. OpenStax tests (1, 0) instead, and it fails, so you shade the other side.
- Reading "greater than" as "above" every time. That only works when y is alone on the left with a plus sign. In the region is below the line, and in it is below too.
- Writing a chain on one line. Split into and . The tool asks for one sign per line.
- Drawing a dashed line as solid. It changes the answer for points on the edge, such as a corner that a linear programming answer might use.