In this explainer, we will learn how to graph two-variable linear inequalities.

We should already be familiar with graphing single-variable linear inequalities and identifying the regions that satisfy these, such as or . Recall that we begin by drawing the boundary line for the region, the equation for which we obtain by temporarily replacing the inequality sign with an equals sign. For example, if we want to graph the inequality , the equation of the boundary line is . We recall also that the type of line we use to bound the region is dependent on the type of inequality we are graphing.

- We use a solid line to represent a weak inequality; that is, an inequality involving either of the signs or . This indicates that points on the boundary line itself satisfy the inequality.
- We use a dotted or broken line to represent a strict inequality; that is, an inequality involving either of the signs or . This indicates that points on the boundary line do not satisfy the inequality.

We then shade the side of the line that contains all the points that satisfy the inequality. This is also known as the solution set of the inequality. In the figure below, we illustrate the graphical representation of the inequality . The region is bounded by the line , which has been drawn as a broken line due to the strict inequality, and we have shaded the region above this line. The -coordinate of every point in this region is greater than 2.

In this explainer, we will extend our knowledge to include two-variable linear inequalities. The boundary lines will therefore be diagonal lines with equations given in the various forms of the equation of a straight line, such as or . We should already be familiar with finding the equation of a straight line from its graph, which will be a key skill required here.

Let us first consider an example in which we identify the correct notation for an inequality that has been represented graphically.

### Example 1: Identifying the Notation Used When Graphing Inequalities

Consider the inequalities shown in figure 1 and figure 2.

Which of the following is correct?

- Figure 1 shows ; figure 2 shows .
- Figure 1 shows ; figure 2 shows .

### Answer

Examining the two graphs, we see that in both cases the equation of the boundary line is , as for every point on the line the - and -coordinates are equal. We demonstrate this for just some of the points on the line in the figures below.

We note that in both graphs, the region above the boundary line is shaded. This means that for any given -value, the -coordinates of the points in the shaded region are greater than the value of on the boundary line. For example, if we consider when is equal to , we see that the coordinates of some of the points that lie in the shaded region are , , , and . In every case, the value of the -coordinate is greater than the value of the -coordinate.

The two inequalities graphed are therefore and , but we need to determine which inequality corresponds to which figure. The only difference between the two graphs is how the boundary line has been drawn; in figure 1 it is represented using a broken line, whereas in figure 2 it is represented using a solid line.

We recall that broken lines are used to represent strict inequalities; that is, inequalities involving the strictly less than or strictly greater than signs. Solid lines are used to represent weak inequalities; that is, those involving the less than or equal to signs, or those involving the greater than or equal to signs.

The boundary line in figure 1 is broken, indicating that the inequality graphed is a strict inequality. It must therefore represent the solution to . In figure 2, however, the boundary line is solid, indicating that the inequality graphed is .

Hence, the answer is A: figure 1 shows ; figure 2 shows .

In our first example, the equation of the boundary line was given to us. Let us now consider an example where we identify an inequality from its graph, applying our knowledge of the equations of straight lines to first determine the equation of the boundary line.

### Example 2: Identifying an Inequality from Its Graph

Write the inequality that has been graphed in the given figure.

### Answer

We begin by finding the equation of the line that bounds the shaded region. Recall that the equation of a straight line in slope–intercept form is where represents the slope of the line and represents the -intercept. From the figure, we identify that this line intercepts the -axis at , and so . To determine the slope of the line, we recall the formula where and are the coordinates of two points on the line.

We can choose any two points on the line to use in calculating the slope, but it is most straightforward to use points with integer coordinates. We have already identified that the line passes through the point , and from the figure we see that the point also lies on the line.

Substituting these values for and into the slope formula gives

Substituting and into the slope–intercept form of the equation of a straight line, we find that the equation of the boundary line is .

However, we are not asked simply to find the equation of the line, but to find the inequality that describes the shaded region. We note that the boundary of the region has been drawn using a broken line and so the inequality will be strict; it will involve either the strictly greater than or strictly less than sign.

Next, we observe that the region shaded lies below the line. This means that for any given -value, the -coordinates of all the points that lie in the shaded region are smaller than the -value on the line. The -value on the line is equal to the value of the expression and hence the inequality that has been graphed is .

As we have just seen, we need to determine the inequality represented by a graph based on which side of the boundary line has been shaded. We saw in the previous example one way to do this: by considering whether, for a given value of , a corresponding value of in the shaded region is smaller or larger than the -value on the line. An alternative method is described below.

### How To: Determining the Inequality Sign Needed

- Identify whether the boundary line itself is solid, in which case a weak inequality sign is needed, or whether it is broken, in which case a strict inequality is needed.
- Choose any point in the shaded region.
- Substitute the - and-coordinates of this point into each side of the equation of the boundary line and evaluate each expression.
- Determine which side has the greater value. Use the correct inequality sign to represent this, bearing in mind whether a weak or strict inequality is needed.

Let us now consider an example in which we use the coordinates of a point to determine the inequality sign needed.

### Example 3: Determining the sign of an Inequality

Fill in the blank: The point belongs to the solution set of the inequality .

### Answer

This problem requires us to determine which inequality sign belongs in the gap. We can do this by evaluating the expression on the left-hand side at the point and then comparing it to the value on the right-hand side.

When and , the left-hand side is equal to

This is equal to the value on the right-hand side. However, we are told that this is an inequality, not an equation. Whatever inequality sign we choose must allow the two sides to be equal if is to be included in its solution set. From the four options presented, only option D is an inequality sign that allows the two sides to be equal for some values of and .

The answer is D: .

In the two examples that follow, we will practice determining the inequality represented by a graph by first calculating the equation of the boundary line and then considering which side of the line has been shaded. Our next example will involve a boundary line that has a noninteger slope. This does not make the inequalities involved any more complicated, but care will be needed when determining the equation of the boundary line. If, for example, we are using points with noninteger coordinates to determine the slope, we must ensure we look carefully at the scale used on the coordinate axes.

### Example 4: Identifying an Inequality from Its Graph

Which inequality has been graphed in the given figure?

### Answer

We begin by determining the equation of the boundary line. Recall that the equation of a straight line in slope–intercept form is where represents the slope and represents the -intercept. From the figure, we identify that the line crosses the -axis at , and so .

To determine the slope of the line, we require the coordinates of two points that lie on the line. We have already identified the point , but there do not appear to be any other points that have integer coordinates in the figure. We therefore need to consider the scale that has been used on the axes. On both the - and -axes, there are five small squares between each integer value, and so each subdivision on these axes represents 0.2. From the figure, we identify that when , the -coordinate on the line is 2 small squares below , and so the -coordinate here is . Substituting the points and into the slope formula gives

As a fraction, the slope is equal to . The equation of the boundary line is therefore .

Next, we note that the boundary line has been drawn using a solid line, indicating a weak inequality. We now choose any point in the shaded region; the simplest point is the origin. Substituting into the left-hand side of the equation of the boundary line gives 0. Substituting into the right-hand side of the equation of the boundary line gives

As , we find that for points in the shaded region, the value of is greater than the value of the expression .

Combining this with the requirement for a weak inequality to include points on the boundary line itself, we find that the inequality that has been graphed is .

We could also have determined the correct inequality sign by observing that the region shaded lies above the boundary line.

In each example we have considered so far, our answers have been given in a form in which one variable, , is isolated on one side of the inequality. However, this does not have to be the case and indeed we may sometimes be asked to give our answer in a different form. We can rearrange an inequality to any equivalent form using the balancing method. We must be careful when doing this to follow the usual rules for rearranging or solving inequalities; specifically, if we multiply or divide both sides of an inequality by a negative value, we must reverse the direction of the inequality sign. Let us now consider an example in which we give our answer in the form .

### Example 5: Determining the Inequality Represented by a Given Graph

Determine the inequality whose solution set is represented by the colored region.

### Answer

The solution set of an inequality is the set of all points that satisfy that inequality. In the figure, this corresponds to all points in the colored region.

We begin by determining the equation of the boundary line. It looks from the figure as if the line intersects the -axis at , but we cannot be sure due to the scale used. We recall that the general equation of a straight line in point–slope form is where represents the slope of the line and are the coordinates of any point on the line.

From the figure, we identify the points and that both lie on the line and that we will first use to calculate the slope. We recall the formula for the slope of a line,

Substituting the coordinates of the two points gives

Substituting this value of and the point into the point–slope form of the equation of a straight line gives

To simplify, we first multiply both sides of the equation by 2 and then distribute the parentheses on the right-hand side as follows:

We have therefore found the equation of the boundary line. We note also from the figure that the boundary line has been drawn using a broken line and so the inequality is strict, containing either the strictly less than or strictly greater than sign. To test which sign we should use, we can choose any point in the colored region. The simplest point is the origin .

Substituting into the left-hand side of the equation of the boundary line gives

On the right-hand side, we have the expression , which is equal to

As , the correct inequality is . We do not have to give our answer in this particular form; any rearrangement of this inequality is also correct. By subtracting from each side, we obtain

In the previous example, we could have chosen to collect all three terms on the same side of the inequality and give our answer as . Alternatively, we could have collected all three terms on the other side of the inequality and given our answer as . Any of these alternative forms are acceptable, provided the correct steps have been followed when performing the rearrangement.

Let us finish by recapping some key points from this explainer.

### Key Points

- The solutions to two-variable linear inequalities can be represented using graphs.
- The solution set of an inequality is the set of all points that satisfy that inequality and is represented on a graph by a shaded region.
- To determine the inequality that has been graphed, we first determine the equation of the boundary line, using either the point–slope or the slope–intercept form of the equation of a straight line.
- The boundary lines for strict inequalities are represented using broken lines, and those for weak inequalities are represented using solid lines.
- To determine the inequality sign needed, we can consider the coordinates of any point that lies in the shaded region. By substituting the coordinates into each side of the equation of the boundary line, we can determine which side has the greater value and hence the inequality sign needed.