topic badge

6.08 Graph inequalities

Introduction

We've previously looked at how to  graph numbers on a number line  . We can also represent solutions to inequalities that include a variable on a number line.

Graph inequalities

Let's look at how we can graph x\leq4 on a number line.

When we say "x is less than or equal to 4", we're not just talking about one number. We're talking about a whole set of numbers, including x=4, x=2, x=0, x=-1 and x=-1000. All of these numbers are less than or equal to 4.

If we graph all of the integers that are less than or equal to 4 on a number line, we get something that looks like this:

-8-6-4-202468

Our number line represents all the whole numbers that are shown and less than 4, but what about fractions like \dfrac{1}{2} or decimals like -2.5? These numbers are also less than or equal to 4, so we need to include them in our graph.

Rather than trying to graph all of the individual points, which would get very messy, we can draw a ray that includes all of the points, since they all are numbers that make the inequality true.

-8-6-4-202468

What if we instead want to graph the very similar inequality x<4? The only difference now is that x cannot be equal to 4 because 4 is not less than 4, and so the graph should not include the point where x=4.

So we want to graph the same ray, but leave off the point at the end where x=4. To represent this we draw the graph with an unfilled circle, instead of a filled in circle, to show that 4 is not included:

-8-6-4-202468

To graph inequalities that are greater than or greater than or equal to, we use the same method but the arrow will be facing to the right. For example, the graph of x>2 looks like this:

-8-6-4-202468

Examples

Example 1

State the inequality for x that is represented on the number line.

-10-50510
Worked Solution
Create a strategy

To determine the direction of the inequality, we can think about which values are covered by the line.

We can then look at whether the starting point is included or not to determine which inequalit symbol to use.

Apply the idea

The line starts at the point 1 and stretches out to the right, which means the line covers all values greater than 1. Since the circle on the point 1 is hollow, it means that it is not included in the inequality.

Therefore the inequality represented by this line is x>1.

Idea summary

To graph an inequality, start by determining which direction the ray will point, right or left. This can be determined by making sure that the ray covers all the values make the inequality true.

The end point of the ray will be an unfilled circle if the inequality has a < or >.

The end point of the ray will be a filled circle if the inequality has a \leq or \geq.

Graph solutions to inequalities

Now let's consider an inequality such as x + 3 > 5. What would we graph for this inequality?

We want to graph all of the possible values that the variable can take - which will be all of the solutions that make the inequality true.

The inequality x + 3 > 5 has the solutions "all numbers which, when added to 3 result in a number greater than 5". This is a bit complicated to represent on a number line.

In order to graph the solutions to an inequality, it will be easiest to start with solving the inequality.

\displaystyle x+3\displaystyle >\displaystyle 5Given inequality
\displaystyle x+3-3\displaystyle >\displaystyle 5-3Subtract 3 from both sides
\displaystyle x\displaystyle >\displaystyle 2Simplify

We can now graph the solutions of the inequality which are "all numbers greater than 2" on the number line, which looks like this:

-8-6-4-202468

Examples

Example 2

Consider the inequality x-4<1

a

Solve the inequality for x.

Worked Solution
Create a strategy

We can solve the inequality by getting x by itself. We'll use the opposite operation of subtraction which is addition.

Apply the idea
\displaystyle x-4\displaystyle <\displaystyle 1Original inequality
\displaystyle x-4+4\displaystyle <\displaystyle 1+4Add 4 to both sides
\displaystyle x\displaystyle <\displaystyle 5Simplify

The solution to the inequality is x<5.

b

graph the solutions to the inequality x-4<1 on the number line beelow.

-8-6-4-202468
Worked Solution
Create a strategy

To graph the solutions, we will graph the solved inequality, x<5.

The ray should cover all of the possible solutions, so all values less than 5.

The end point will be hollow because 5 is not included in the solution.

Apply the idea
-8-6-4-202468
Idea summary

To graph solutions to inequalities, we start by solving the inequality, followed by graphing the result.

Outcomes

6.EE.B.8

Write an inequality of the form x > c or x < c to represent a constraint or condition in a real-world or mathematical problem. Recognize that inequalities of the form x > c or x < c have infinitely many solutions; represent solutions of such inequalities on number line diagrams.

What is Mathspace

About Mathspace