Solving Or Inequalities

Introduction

You have made it to the fourth lesson of Solving Compound Inequalities, and the finish line for this unit is in sight! Over the past three lessons, you mastered the difference between "and" and "or," solved "and" inequalities by finding overlapping regions, and streamlined bounded solutions using three-part chains. Every one of those skills dealt with intersection — the place where two conditions meet.

This lesson flips the perspective entirely. We now tackle "or" compound inequalities, where a value only needs to satisfy one of the two conditions. Instead of looking for overlap, we combine both solution sets into a larger set called a union. You will learn to solve each part independently, merge the results, and determine whether the union breaks into two separate pieces or stretches across all real numbers.

Thinking in Unions

Recall from the first lesson that the word "or" means a value must satisfy at least one of the two conditions. If either inequality accepts a number, that number is part of the solution set. This contrasts with "and," which demanded that a number pass both tests simultaneously.

A helpful way to picture this: imagine two spotlights on a stage, each illuminating a different region. With "and," we only care about the area where both beams overlap. With "or," we care about every point touched by at least one beam. The combined lit area is the union of the two individual regions.

This mental image has a practical payoff. Many real-world rules use "or" logic — a smoke detector triggers when smoke is detected or when carbon monoxide is detected. The alarm does not need both dangers present; one alone is enough. That same logic drives the math we are about to explore.

Solving Each Part Separately

Two Separate Pieces

When the Union Covers All Real Numbers

When Both Parts Point the Same Direction

A Practical Example: Temperature Alerts

Common Pitfalls

Before heading into practice, keep these frequent mistakes in mind:

PitfallWhy it happensHow to avoid it
Intersecting instead of unitingHabits from "and" problems carry overRemember: "or" gathers everything from both sets
Skipping steps on one partRushing to combine before fully solvingIsolate the variable in each inequality first
Missing the all-real-numbers caseNot checking whether the two sets overlapCompare the boundaries — if there is no gap, the answer is all real numbers
Forcing two pieces on a same-direction "or"Assuming "or" always makes two raysIf both parts face the same way, keep the more inclusive one — the answer is a single ray

Conclusion and Next Steps

In this lesson, you learned to solve "or" compound inequalities by working each part independently and merging the results into a union. When the two solution sets do not touch, the answer forms two separate pieces. When they overlap enough to leave no gap, the answer is all real numbers — and recognizing that distinction is the single most important skill from this lesson. And when both parts point the same direction, the union simplifies to a single ray — the more inclusive condition.

Up next, you will practice these ideas hands-on: identifying union pieces, solving "or" inequalities from scratch, spotting the all-real-numbers and single-ray cases, and setting up a thermostat alert scenario on your own. Let's jump in and make these skills stick!

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