Examples of Graphing Linear Inequalities

Now we are ready to apply the suggested steps in graphing linear inequality from the previous lesson. Let’s go over four (4) examples covering the different types of inequality symbols.

Example 1: Graph the linear inequality [latex]y>2x-1[/latex].

The first thing is to make sure that variable [latex]y[/latex] is by itself on the left side of the inequality symbol, which is the case in this problem. Next is to graph the boundary line by momentarily changing the inequality symbol to the equality symbol.

y>2x-1 is converted to y=2x-1

Graph the line [latex]y>2x-1[/latex] in the [latex]xy[/latex] axis using your preferred method. Since the inequality symbol is just greater than “>” , and not greater than or equal to “≥“, the boundary line is dotted or dashed. So here’s how it should look so far.

the line y=2x-1 is shown as a dotted line

The last step is to shade either above or below the boundary line. From the suggested steps, we were told to shade the top side of the boundary line if we have the inequality symbols > (greater than) or ≥ (greater than or equal to). Always remember that “greater than” implies “top”.

the graph of y>2x-1 shows that the top region of line y=2x-1 is shaded

To check if your final graph of the inequality is correct, we can pick any points in the shaded region. For this, let’s have the point (−1, 1).

the point (-1,1) is on the shaded region

Evaluate the [latex]x[/latex] and [latex]y[/latex] values of the point into the inequality, and see if the statement is true. In the point (−1,1), the values are [latex]x=-1[/latex] and [latex]y=1[/latex].

since x=-1 and y=1, we have y>2x-1 implies 1>2(-1)-1, 1>-3 which is true

Since the test point from the shaded region yields a true statement after checking with the original inequality, this shows that our final graph is correct!


Example 2: Graph the linear inequality [latex]y \ge -x+2[/latex].

The variable [latex]y[/latex] is found on the left side. That’s good! Notice, we have a “greater than or equal to” symbol. The “equal” aspect of the symbol tells us that the boundary line will be solid. So let’s graph the line [latex]y=-x+2[/latex] in the Cartesian plane.

the graph of the line y=-x+2 is shown

Just like in example 1, we will shade the top portion of the boundary line because we have a “greater than” case.

the graph of y>=-x+2 is the graph of the line y=-x+2 where the top region is shaded. also the line is solid, not dotted.

Verify if our graph is correct by picking the point (4,2) in the shaded section and evaluate the values of [latex]x[/latex] and [latex]y[/latex] of the point in the given linear inequality.

the point (4,2) is found on the shaded region

From selected test point, [latex]x=4[/latex] and [latex]y=2[/latex]

2 is greater than or equal to -2 which is a true statement

We have a true statement which makes us confident that our final graph of the inequality is correct as well.


Example 3: Graph the solution to the linear inequality [latex]\large{y < {1 \over 2}x – 1}[/latex] .

Looking at the problem, the inequality symbol is “less than”, and not “less than or equal to”. Because of this, the graph of the boundary line will be broken or dashed. In addition, “less than” means we will shade the region below the line. That’s all there’s to it!

Here’s the graph of the boundary line [latex]\large{y = {1 \over 2}x – 1}[/latex] .

the graph of y=(1/2)x-1 is a dotted line

Since the inequality symbol is less than< ), we shade the region below the dashed line.

the graph of y<(1/2)x-1 is the graph of a dotted line y=(1/2)x-1. since it is less than then we shade the region below the line.

I will leave it to you to verify that this is the correct graph by picking any test points from the shaded area and check them against the original linear equality.


Example 4: Graph the solution to the linear inequality [latex]y \le – {2 \over 3}x + 2[/latex] .

Since we have gone over a few examples already, I believe that you can almost work this out in your head. You can impress your teacher by giving a short solution just like this.

I see that the inequality symbol is “less than or equal to” ( ≤ ) which makes the boundary line solid. More so, the solution is below the boundary line because of the “less than” aspect of it. Here’s the correct graph of the inequality.

the graph of  y<=(-2/3)x+2 is the graph of a solid line y=(-2/3)x+2. since it is less than or equal to then we shade the area below.

In the examples above, you have seen linear inequalities where the y-variables are always found on the left side. You may even think of them as linear inequalities in slope-intercept form of a line.


X and Y are on the Same Side of the Inequality Symbol

This time, we are interested in examples where the [latex]x[/latex] and [latex]y[/latex] variables are located on the same side of the inequality symbol.

We may call them as linear inequalities in Standard Form. The following are four general cases where A, B, and C are just numbers or constants.

case 1) Ax+By>C case 2) Ax+By >=C case 3) Ax+by<C case 4) Ax+By <=c

What we need to do is to rewrite or manipulate the given inequality such that the variable [latex]y[/latex] is forced to stay on the left side. In other words, we are going to solve for [latex]y[/latex] in terms of [latex]x[/latex]. After doing so, we can now apply the suggested steps in graphing linear inequality as usual.

Let’s go over some examples.


Example 5: Graph the linear inequality in standard form [latex]4x + 2y < 8[/latex].

Start solving for [latex]y[/latex] in the inequality by keeping the y-variable on the left, while the rest of the stuff are moved to the right side. Do that by subtracting both sides by [latex]4x[/latex], and dividing through the entire inequality by the coefficient of [latex]y[/latex] which is [latex]4[/latex]. Since we divide by a positive number, the direction of the inequality symbol remains the same.

y<-2x+4

Since we have a “less than” symbol (<) and not “less than or equal to” symbol (≤), the boundary line is going to be dotted or dashed.

Just in case you forgot where to get the boundary line, change the inequality to equality symbol for the time being, that is, from [latex]y<-2x+4[/latex] to [latex]y=-2x+4[/latex]. Then graph the equation of the line using any of these methods.

the graph of y=-2x+4 is a dotted line

So the next obvious step is to decide which area to shade. Would it be above or below the boundary line? We will shade the bottom region of the boundary line because we have a “less than” case after we transformed the original inequality problem into the form in which the [latex]y[/latex] is on the left side.

the graph of y<-2x+4 is the graph of the dotted line y=-2x+4. because it is a less than case, we shade the bottom region.

We can verify if we have graphed it correctly by choosing any test points found in the shaded region. The best test point is the origin which is the point (0,0) because it is easy to calculate.

(0,0) is a test point of the bottom region

The test point (0,0) means [latex]x=0[/latex] and [latex]y=0[/latex]. Evaluate these values in the transformed inequality or the original inequality to see if you get a true statement.

0<0+4, 0<4 which is a true inequality statement

It does work! So we have shaded the correct region which is below the dashed line.


Example 6: Graph the linear inequality in standard form [latex]3x – 6y \le 12[/latex].

3x-6y≤12 → y≥x/2 -2

To keep the variable [latex]y[/latex] on the left side, I would subtract both sides by 3x and then divide the entire inequality by the coefficient of y which is − 6.

REMEMBER: When dividing the inequality by a negative number, we must change or switch the direction of the inequality symbol.

The “new” inequality will have a solid boundary line due to the symbol “≥” where it has the “equal ” component to it. In addition, since [latex]y[/latex] is “greater than” that means I will shade the region above the line.

the graph of y>=(1/2)x-2 is a solid line y=(1/2)x-2. since it is a greater than case then we shade the top region.

You may also be interested in these related math lessons or tutorials:

Solving Linear Inequalities

Steps on How to Graph Linear Inequalities

Graphing Systems of Linear Inequalities

Solving Compound Inequalities