Graphing Linear Inequalities
Graphing Linear Inequalities
Now, we’re ready to put all this together to graph linear inequalities.
Example: How to Graph Linear Inequalities
Graph the linear inequality\(y\ge \frac{3}{4}x-2\).
Solution
The steps we take to graph a linear inequality are summarized here.
Graph a linear inequality.
- Identify and graph the boundary line.
- If the inequality is \(\le \text{or}\ge \), the boundary line is solid.
- If the inequality is < or >, the boundary line is dashed.
- Test a point that is not on the boundary line. Is it a solution of the inequality?
- Shade in one side of the boundary line.
- If the test point is a solution, shade in the side that includes the point.
- If the test point is not a solution, shade in the opposite side.
Example
Graph the linear inequality \(x-2y<5\).
Solution
First we graph the boundary line \(x-2y=5\). The inequality is \(<\) so we draw a dashed line.
Then we test a point. We’ll use \(\left(0,0\right)\) again because it is easy to evaluate and it is not on the boundary line.
Is \(\left(0,0\right)\) a solution of \(x-2y<5\)?
The point \(\left(0,0\right)\) is a solution of \(x-2y<5\), so we shade in that side of the boundary line.
What if the boundary line goes through the origin? Then we won’t be able to use \(\left(0,0\right)\) as a test point. No problem—we’ll just choose some other point that is not on the boundary line.
Example
Graph the linear inequality \(y\le -4x\).
Solution
First we graph the boundary line \(y=-4x\). It is in slope–intercept form, with \(m=-4\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}b=0\). The inequality is \(\le \) so we draw a solid line.
Now, we need a test point. We can see that the point \(\left(1,0\right)\) is not on the boundary line.
Is \(\left(1,0\right)\) a solution of \(y\le -4x\)?
The point \(\left(1,0\right)\) is not a solution to \(y\le -4x\), so we shade in the opposite side of the boundary line. See the figure below.
Some linear inequalities have only one variable. They may have an x but no y, or a y but no x. In these cases, the boundary line will be either a vertical or a horizontal line. Do you remember?
\(\begin{array}{cccc}x=a\hfill & & & \text{vertical line}\hfill \\ y=b\hfill & & & \text{horizontal line}\hfill \end{array}\)
Example
Graph the linear inequality \(y>3\).
Solution
First we graph the boundary line \(y=3\). It is a horizontal line. The inequality is > so we draw a dashed line.
We test the point \(\left(0,0\right)\).
\(\left(0,0\right)\) is not a solution to \(y>3\).
So we shade the side that does not include (0, 0).
This lesson is part of:
Graphs and Equations