Graphing Compound Solutions

Introduction

Welcome back to Solving Compound Inequalities! You are now on the fifth of six lessons, which means you are almost at the finish line for this course. Over the previous four lessons, you learned to distinguish "and" from "or," solved both types of compound inequalities, and streamlined bounded solutions using three-part chains.

Along the way, number-line visuals appeared to illustrate results — but we never paused to study how those graphs are built from scratch. This lesson puts the number line front and center.

You will learn exactly how to graph compound solutions by choosing the correct endpoint style and drawing the correct shape — whether that is a single bounded segment or two separated rays.

Two Shapes, Two Meanings

The logical difference between "and" and "or" produces two visually distinct shapes on the number line. Recognizing this connection before you pick up a pencil makes graphing much faster.

  • An "and" solution usually appears as a single bounded segment — a finite stretch between two boundary values where both conditions are satisfied.
  • An "or" solution usually appears as two separated rays — one extending to the left and one to the right, with a gap of excluded values in between.

Think of it this way: "and" squeezes the solution into a window, so the shading stays between the boundaries. "Or" pushes the solution outward, so the shading moves away from the boundaries in both directions. Once you know which connective the compound inequality uses, you already know the overall shape before drawing a single mark.

Graphing "And" Solutions: The Bounded Segment

An "and" compound inequality produces a solution set where the variable is trapped between two boundary values. Consider the solved result:

2x<72 \leq x < 7

This tells us xx must be at least 22 and less than 77. On the number line, we mark both boundaries and shade the region between them. Here is the process:

  1. Draw a number line and label the two boundary values, 22 and 77.
  2. Place the correct circle at each boundary — we will cover circle types in the next section.
  3. Shade the region between the two circles to show every value that satisfies both conditions.

The result is a single, finite segment. No shading extends to the left of 22 or to the right of 77, because values outside that window fail at least one of the two conditions.

Number line graph of 2 less than or equal to x less than 7
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