Chapter 3 · Algebraic foundations

Graph and Write Inequalities on Number Lines

Learn to show every solution of an inequality on a number line with a circle and a ray, and to write the inequality that a finished graph shows.

15 min read

You already know how to test whether a number is a solution of an inequality: substitute it and check whether the statement is true. An inequality such as x<3x < 3 has more solutions than you could ever list. The numbers 22, 00 and −10-10 work, and so do 2.92.9 and 2.992.99, but 33 itself does not, because 3<33 < 3 is false. A graph on a number line shows every solution at once.

In this lesson, xx can be any real number, so a graph shows every solution, whether it is an integer, a fraction or a decimal. When an inequality describes a real situation, the context may restrict the solution values: a number of people, for example, must be a whole number, so only some points on a graph would fit that situation.

Key concept

An inequality and its graph carry the same three facts

When an inequality compares xx with one number and xx can be any real number:

  • Boundary: the number xx is compared with, placed on its labelled tick.
  • Circle: filled for ≤\le or ≥\ge: these non-strict symbols allow equality, so the boundary is a solution. Hollow for << or >>: these strict symbols rule out equality, so the boundary is not a solution.
  • Ray: a thick part of the line that runs from the circle, without end, to one side. It covers the side where a test value (a number you substitute) makes the inequality true. One test on each side is enough, because the inequality can switch between true and false only at the boundary.

Graphing finds these facts in an inequality; writing reads them back from a graph.

Worked example

Graphing with a filled circle

Graph x≥1x \ge 1 on a number line.

  1. Find the boundary, the number that x is compared with, since that is where the inequality can switch between true and false. Here it is 1, so place the boundary on the tick labelled 1.

  2. Test the boundary itself to choose the circle. Substituting x = 1 gives a true statement, because the symbol means greater than or equal to, and 1 is equal to 1. So 1 is a solution, and the circle is filled.

    1≥1(true)1 \ge 1 \quad \text{(true)}
  3. Test a value on the left of the boundary, such as 0. The statement is false, so no number on the left side is a solution, since every number there gives the same result.

    0≥1(false)0 \ge 1 \quad \text{(false)}
  4. Test a value on the right, such as 3. The statement is true, so every number on the right side is a solution.

    3≥1(true)3 \ge 1 \quad \text{(true)}
  5. Finish the graph with a ray running from the filled circle to the right. Its arrowhead shows that the solutions continue past the end of the drawing, since every number greater than 1 works.

Answer

The graph of x≥1x \ge 1 is a filled circle at 11 with a ray running to the right, as shown below.

The filled circle at 11 includes 11, and the ray to the right covers every number greater than 11, such as 1.51.5 and 33: this is the graph of x≥1x \ge 1.

Worked example

Graphing when the variable is on the right

Graph 4>x4 > x on a number line.

  1. The boundary is 4, the number that x is compared with. Place it on the tick labelled 4.

  2. Test the boundary. The symbol means greater than, which is strict and rules out equality, and 4 is not greater than itself. The boundary is not a solution, so leave the circle hollow.

    4>4(false)4 > 4 \quad \text{(false)}
  3. Test one value on each side. The value 0, on the left, makes the inequality true; the value 6, on the right, makes it false.

    4>0 (true)4>6 (false)4 > 0 \ \text{(true)} \qquad 4 > 6 \ \text{(false)}
  4. Run the ray from the hollow circle to the left, the side whose test value made the inequality true.

  5. Confirm the side by reading the inequality from right to left: if 4 is greater than x, then x is less than 4, and numbers less than 4 lie to its left. Swapping the two sides and turning the symbol around states the same comparison, so both forms have the same solutions and the same graph.

    4>x  means the same as  x<44 > x \ \text{ means the same as } \ x < 4

Answer

The graph of 4>x4 > x is a hollow circle at 44 with a ray running to the left, as shown below; it is also the graph of x<4x < 4.

The hollow circle at 44 leaves 44 out, and the ray to the left covers every number less than 44, such as 3.93.9 and 00: this is the graph of 4>x4 > x.

Now go the other way: start from a finished graph and write its inequality. Read three facts from the picture.

  • Boundary: the number printed at the circle's tick. Take it from the label, not from where the circle seems to sit.
  • Circle: filled means the boundary is a solution, so the symbol is ≤\le or ≥\ge. Hollow means it is not, so the symbol is << or >>.
  • Direction: numbers increase to the right, so a ray running left covers the numbers less than the boundary, and a ray running right covers the numbers greater than it.

Then check your inequality with two values: one on the ray's side, which must make it true, and one on the other side of the boundary, which must make it false.

The ticks on this line are 0.50.5 apart, and the filled circle sits on the tick labelled −1.5-1.5.

Worked example

Writing an inequality from a graph

Write the inequality shown by the graph above, where xx can be any real number, then check it.

  1. Read the boundary from its label. The circle sits on the tick labelled -1.5, so the boundary is exactly -1.5. The inequality compares x with -1.5, and its symbol is still to be chosen.

    x □ −1.5x \ \square \ -1.5
  2. Read the circle. It is filled, so -1.5 is a solution and the symbol must allow equality.

    x≤−1.5orx≥−1.5x \le -1.5 \quad \text{or} \quad x \ge -1.5
  3. Read the direction. Numbers increase to the right, so a ray running left covers the numbers less than -1.5. With the filled circle, that means less than or equal to.

    x≤−1.5x \le -1.5
  4. Check with a value on the ray's side. The value -3 lies left of -1.5 and makes the inequality true, as it should.

    −3≤−1.5(true)-3 \le -1.5 \quad \text{(true)}
  5. Check with a value on the other side. The value 0 lies right of -1.5 and makes the inequality false, which matches the part of the line the ray does not cover.

    0≤−1.5(false)0 \le -1.5 \quad \text{(false)}

Answer

The graph shows x≤−1.5x \le -1.5. You could also write it as −1.5≥x-1.5 \ge x by swapping the sides and turning the symbol around, as in the second example.

Takeaway: for inequalities like the ones in this lesson, the inequality and its graph carry the same three facts: the boundary, whether the boundary is a solution, and which side holds the other solutions. To graph, place the boundary, test it to choose a filled or hollow circle, and test one value on each side to choose the ray's direction. To write, read those three facts from the graph, then check with one value on each side of the boundary.

Next, you will solve one-step, two-step and multi-step inequalities and explain when the inequality symbol reverses.