How do you graph an inequality? Graphing linear inequalities
Graphing takes three decisions:
- Boundary: graph the line .
- Solid or dashed: the symbol includes "equal to", so the line is solid.
- Side: is greater than the line, so shade above. Confirm with a test point: gives , true, and is above the line.
The shortcut "greater means above" only works once the inequality is solved for with a positive coefficient. For , divide by and flip: , so shade above a dashed line.
Graphing inequalities calculator method: 2x + 3y ≤ 7 step by step
An inequality in two variables has a solution set that consists of a whole region of the plane, not a single line. The method is the same one you use for linear equations, plus one shading decision.
- Step 1: treat it as an equation. Replace ≤ with = to get the boundary 2x + 3y = 7, an equation in two variables.
- Step 2: find two points. Choose values of x and find the corresponding value of y: x = 0 gives y = 7/3 ≈ 2.33, and x = 2 gives y = 1.
- Step 3: draw a straight line and connect the two points. Use a solid line for ≤ or ≥ and a dashed line for < or >; here it is solid.
- Step 4: test a point. Substitute the value (0, 0): 2(0) + 3(0) = 0 ≤ 7 is true, so the origin is a solution.
- Step 5: shade the side that contains the test point. Solving for y gives y ≤ −(2/3)x + 7/3, so the shading is below the line.
To check the graph for 2x + 3y ≤ 7 in the workspace, enter it in slope-intercept form. Remember to flip the inequality symbol whenever you multiply or divide both sides by a negative number while solving for y: from −3y ≥ 2x − 7 you get y ≤ −(2/3)x + 7/3. A system of linear inequalities is just several of these drawn together; its solution is the overlap. Absolute value inequalities and quadratic ones follow the same test-point idea, but the boundary is a V shape or a parabola instead of a line.
System of linear inequalities graph: the default example
The workspace graphs two boundaries, and . Consider the system
The solution is the wedge above the first line and below the second. Its vertex is where the boundaries meet: , so the corner is . Test points make the region concrete:
| Point | ? | ? | In the solution? |
|---|---|---|---|
| 2 ≥ 1 ✓ | 2 ≤ 3 ✓ | Yes | |
| 0 ≥ 1 ✗ | 0 ≤ 3 ✓ | No | |
| 5 ≥ −1 ✓ | 5 ≤ 4 ✗ | No | |
| equal ✓ | equal ✓ | Yes (corner) |
The intersect tool in the CALC inspector returns the corner directly, so you can check the algebra in one click. If either inequality were strict, the corner itself would not be included.
Keystroke reference: shading on an 84-series handheld
| Task | TI-84 style key sequence | GraphingCalc84 |
|---|---|---|
| Enter boundary | Y= → Y1 | Function slot |
| Shade above (≥, >) | Cursor left of Y1, ENTER until ◥ | Type y>=x+1 or y>x+1 |
| Shade below (≤, <) | Cursor left of Y1, ENTER until ◣ | Type y<=-0.5x+3 or y<-0.5x+3 |
| Corner of the region | 2ND TRACE → 5: intersect | CALC inspector → intersect |
| Vertical boundary | Inequality app, or 2ND PRGM → Vertical | Read from the table / note on paper |
Vertical lines like are not functions of , so a function grapher cannot shade them directly. Handle them by restricting the window or marking them by hand.
Feasible region and linear programming
Linear programming problems ask for the best value of an objective over a region defined by inequalities. Example: a small bakery makes trays of muffins and trays of scones with
Graph and , shade below both, and keep the first quadrant. The boundaries meet where , so . Evaluate profit at each corner:
| Corner | (0, 0) | (5, 0) | (2, 6) | (0, 8) |
|---|---|---|---|---|
| P = 3x + 2y | 0 | 15 | 18 | 16 |
The maximum, 18, occurs at . The corner-point theorem guarantees a linear objective is optimised at a vertex of a bounded feasible region, so you never need to test interior points.
Types of inequalities and common mistakes
- Forgetting to flip. rearranges to without flipping (you added ), but becomes because you divided by .
- Number line vs plane. A one-variable inequality such as has the solution , drawn on a number line with an open circle at 4. Only two-variable inequalities need a shaded plane.
- Empty regions. and have parallel boundaries and no overlap: the system has no solution.
For equations rather than inequalities, the system of equations grapher finds intersection points directly, and the table of values generator helps you plot boundary lines by hand. OpenStax College Algebra covers linear inequalities and systems with additional exercises.
Solve the inequality and graph the solution on a number line
One-variable inequalities follow the same four rules, and the answer is a ray or an interval:
- : closed circle at , shade right. Interval notation .
- Compound: : open circle at , closed at 2, shade between.
- Absolute value: .
To check any of these on a grapher, graph both sides as separate functions — for example and — and read where the first is below or on the second. The crossing at is the boundary of the solution.