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

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