Variables on Both Sides

Introduction

Welcome back to Solving Multi-Step Inequalities! This is the fourth of five lessons in the course, which means we are almost at the finish line. So far, we have solved two-step inequalities, combined like terms to simplify before solving, and expanded parentheses with the distributive property. Every one of those problems had one thing in common: the variable appeared on only one side of the inequality. That changes now. In this lesson, we tackle inequalities where variable terms appear on both sides, and we learn how to gather them together strategically before solving. Let's get to it.

When Variables Show Up on Both Sides

So far, our solving workflow has focused on simplifying one side of the inequality and then isolating the variable with inverse operations. But many real-world comparisons naturally produce variable terms on both sides. For example, imagine choosing between two phone plans: one charges a $6 monthly fee plus $1 per gigabyte, and the other charges $4 per gigabyte with no fee. To find when the first plan is cheaper, we would write 6+x<4x6 + x < 4x, and now xx lives on both sides.

Before we can isolate xx, we need all the variable terms on one side and all the constants on the other. This "collecting" step is the new skill we are adding to our toolkit, and it works just like moving a constant across the inequality — subtract or add the same term on both sides to relocate it.

The Core Technique: Collecting Variable Terms

Choosing Which Side to Collect On

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