## Graph an Inequality in Two Variables

So how do you get from the algebraic form of an inequality, like [latex]y>3x+1[/latex], to a graph of that inequality? Plotting inequalities is fairly straightforward if you follow a couple steps.

To graph an inequality:

- Graph the related boundary line. Replace the , ≤ or ≥ sign in the inequality with = to find the equation of the boundary line.
- Identify at least one ordered pair on either side of the boundary line and substitute those [latex](x,y)[/latex] values into the inequality. Shade the region that contains the ordered pairs that make the inequality a true statement.
- If points on the boundary line are solutions, then use a solid line for drawing the boundary line. This will happen for ≤ or ≥ inequalities.
- If points on the boundary line aren’t solutions, then use a dotted line for the boundary line. This will happen for < or > inequalities.

Let’s graph the inequality [latex]x+4y\leq4[/latex].

To graph the boundary line, find at least two values that lie on the line [latex]x+4y=4[/latex]. You can use the *x*– and *y*-intercepts for this equation by substituting 0 in for *x* first and finding the value of *y*; then substitute 0 in for *y* and find *x*.

Plot the points [latex](0,1)[/latex] and [latex](4,0)[/latex], and draw a line through these two points for the boundary line. The line is solid because ≤ means “less than or equal to,” so all ordered pairs along the line are included in the solution set.

The next step is to find the region that contains the solutions. Is it above or below the boundary line? To identify the region where the inequality holds true, you can test a couple of ordered pairs, one on each side of the boundary line.

If you substitute [latex](−1,3)[/latex] into [latex]x+4y\leq4[/latex]:

[latex]\begin{array}{r}−1+4\left(3\right)\leq4\\−1+12\leq4\\11\leq4\end{array}[/latex]

This is a false statement, since 11 is not less than or equal to 4.

On the other hand, if you substitute [latex](2,0)[/latex] into [latex]x+4y\leq4[/latex]:

[latex]\begin{array}{r}2+4\left(0\right)\leq4\\2+0\leq4\\2\leq4\end{array}[/latex]

This is true! The region that includes [latex](2,0)[/latex] should be shaded, as this is the region of solutions.

And there you have it—the graph of the set of solutions for [latex]x+4y\leq4[/latex].