Checking Solution Values

Introduction

You have made it to lesson five of six in Understanding Inequalities — we are in the home stretch! Over the first four lessons, we built up the four inequality symbols, learned when to include or exclude a boundary value, translated everyday phrases into mathematical notation, and discovered that inequalities produce entire ranges of values rather than single answers. That last idea was a big conceptual shift. Today, we put it to practical use by learning a simple but powerful skill: checking whether a specific value belongs to an inequality's solution set. The technique boils down to one word — substitution.

Why Would We Need to Check?

In our previous lesson, we saw that an inequality like x>4x > 4 has infinitely many solutions. That is a lot of numbers! But in real life, we often care about just one number at a time. Suppose a store offers free shipping on orders of at least $35, and your cart totals $34.99. Does your order qualify? You are not solving the whole inequality from scratch — you just need to know whether that one particular value passes the test.

This kind of membership check is something we do all the time, often without realizing it. Today, we will turn it into a clear, repeatable mathematical procedure.

The Substitute-Then-Evaluate Procedure

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