Intervals and Number Lines

Introduction

Welcome back to Representing and Interpreting Solutions! This is lesson two of four in the course, so we are making great progress. In the previous lesson, we learned how to write inequality solutions using interval notation — parentheses, brackets, and infinity. Now we are going to connect that skill with a visual tool we have been using since the very beginning of our learning path: the number line. By the end of this lesson, you will be able to look at a number-line graph and write its interval notation, and just as comfortably, read interval notation and sketch the correct number-line graph yourself.

Two Representations, One Solution

A number-line graph and an interval notation expression are two ways of describing the exact same set of values. Think of it like a street address and a pin on a map — different formats, same location. Our job in this lesson is to move fluently between these two formats without losing any detail.

As you may recall, a number-line graph uses circles and shading to show which values satisfy an inequality. An open circle means the endpoint is not included, while a closed (filled) circle means it is included. The shaded region shows every value that belongs to the solution set.

Interval notation captures the same information in written form. A parenthesis signals "not included" (matching an open circle), and a bracket signals "included" (matching a closed circle). Infinity symbols indicate that the solution extends without bound in one direction and always pair with a parenthesis, since infinity is never a reachable value.

Reading a Number-Line Graph

From Number Line to Interval Notation

From Interval Notation to Number Line

Graphing Bounded Solution Sets

All Real Numbers and No Solution

Common Mistakes to Avoid

Conclusion and Next Steps

Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal