Equations and Inequalities

☰ Contents

An equation says that two expressions have the same value. Solving it means finding every value of the letter that makes that true. Every step has one justification: do the same thing to both sides, and the two sides stay equal. The one exception is an inequality, where dividing by a negative number reverses the sign.

How do negative numbers work in real situations?

A negative number is an amount on the other side of zero. A temperature of −4 °C is four degrees below freezing, a diver at −12 m is twelve meters below sea level, and a card worth −20 points takes twenty points off a score. On a number line the negative numbers sit to the left of zero, and every number is smaller than the numbers to its right. So −14 is colder than −11, because it lies further to the left, and the order from coldest to warmest of five freezers at 2 °C, −9 °C, −14 °C, −1 °C and −11 °C is −14, −11, −9, −1, 2. Below Zero introduces the line, and Ordering Negative Numbers puts it to work. Moving along the line is adding and subtracting, so a shed at −4 °C that warms by 9 °C reaches −4 + 9 = 5 °C.

−10°−5°0°5°10°−7°
−7 hangs below −2, so −7 is smaller. Bigger means higher up, not bigger-looking. Full lesson: Ordering Negative Numbers

A rise is an addition and a fall is a subtraction, wherever the number starts, which Adding and Subtracting Across Zero practices. If the shed then cools by 8 °C, it reaches 5 − 8 = −3 °C. Subtracting a negative number is the step that surprises people. If a player's score is 5 and a −20 card is taken away from them, the score goes up, because the card was costing them twenty points: 5 − (−20) = 5 + 20 = 25. Taking away a loss is a gain. Subtracting Negative Numbers works through this. The same rule finds the distance between two heights. From a cliff top 30 m above sea level down to a sea bed at −25 m is 30 − (−25) = 55 m. A distance is never negative, so it is the size of the difference, whichever way round the subtraction is done, which is what Absolute Value means.

Multiplying by a negative number is repeated change in the negative direction, as Multiplying and Dividing Negative Numbers shows. A quiz that gives −3 marks for each wrong answer takes 4 × (−3) = −12 marks for four wrong answers, and a pond losing 12 liters a minute changes by 5 × (−12) = −60 liters in five minutes. Two negatives multiply to a positive. Walking west is a negative speed and a time in the past is a negative time, so walking west at 4 meters a second, three seconds ago the walker was 12 meters east of where they are now: (−4) × (−3) = 12. Try it on the strip below by reversing the direction of walking, and then the clock.

−20−15−10−505101520position 6velocity 3 m/s · time 2 s3 × 2 = 6vt−5 west+5 east−4 s (ago)+4 s (ahead)

east at v and t seconds ahead: position = v × t > 0, east of the start

Set the velocity to −4 and the time to −3 and find the walker

These situations turn into equations with negative numbers in them, and the equations are solved in the usual way, as in Solving Linear Equations, with a letter such as r standing for the number that is not known (Algebraic Notation). On a quiz of 25 questions, with 3 marks for a right answer and −1 for a wrong one, a student who scores 51 and answers every question has r right and 25 − r wrong, so 3r − (25 − r) = 51. Expanding gives 4r − 25 = 51, so 4r = 76 and r = 19. Check it: 19 right answers earn 57 marks, 6 wrong answers lose 6, and 57 − 6 = 51. A pond of 180 liters that changes by −12 liters a minute is empty when 180 − 12m = 0, which is after m = 15 minutes. A time or a count that comes out negative, or not whole, is a sign that the equation was set up wrongly, so read the answer back into the situation.

Now you

7 − ?1607−1?−2?−3?

7 − (−3)

9 − ?1809−1?−2?−3?

9 − (−3)

2 − ?1102−1?−2?−3?

2 − (−3)

How do you solve a linear equation?

Solve a linear equation by undoing the operations around the letter, one at a time, in reverse order. In 3x + 7 = 22, x was multiplied by 3 and then 7 was added, so subtract 7 from both sides first: 3x = 15. Then divide both sides by 3: x = 5. Doing the same to both sides keeps two equal amounts equal. A bracket changes the order of the work. In 4(x − 2) = 20, either expand to 4x − 8 = 20 or, since 4 divides 20, divide first to get x − 2 = 5, so x = 7. A negative coefficient needs care: in 10 − 2x = 4, subtract 10 to get −2x = −6, then divide by −2 to get x = 3. Finish by putting each answer back into its original equation: for x = 5, 3 × 5 + 7 = 22, and for x = 7, 4 × 5 = 20.

xxx3x + 4193x + 4 = 19taken off 3both pansleft pan only

3 taken from both pans: 3x + 4 = 19, still level, because equal amounts left equal sides; 4 more to take before the x blocks stand alone

Take 7 off both pans, then read x

A bracket is expanded first, and the number in front multiplies every term inside it. See Equations with Brackets.

3(x + 2) = 15expand: 3 lots of x, 3 lots of 23x + 6 = 15
Expand first — the 3 multiplies both parts inside, just as with brackets alone. Full lesson: Equations with Brackets

The same shortcut turns 3(x + 1) = 12 into x + 1 = 4. See Treating a Bracket as a Single Quantity.

When the letter appears on both sides, subtract the smaller x term from both sides so that it appears only once. Removing the smaller term keeps the coefficient positive. See Equations with the Unknown on Both Sides.

5x + 32x + 12both sides − 2x
Take 2x off both pans. The scales stay level, and one side has no letter left. Full lesson: Equations with the Unknown on Both Sides

When the equation has fractions, multiply every term by the common denominator, including any term that is not a fraction. In x/3 + x/4 = 7, multiply by 12: 4x + 3x = 84, so x = 12. See Equations with Fractions.

x12
Multiply both sides by 3 and the equation reads x = 12. Full lesson: Equations with Fractions

Now you

4x + 42x + 14both sides − 2x

4x + 4 = 2x + 14

8x + 94x + 45both sides − 4x

8x + 9 = 4x + 45

How many solutions does it have?

Usually the x terms survive and there is exactly one solution. Sometimes they cancel, and what is left decides. If it is false, such as 1 = 5, no value of x works. If it is true, such as 4 = 4, every value works, and the equation is an identity. See How Many Solutions an Equation Has.

xy2x + 12x + 5
Each side is a line. 2x + 1 and 2x + 5 climb alike, so they never meet. Full lesson: How Many Solutions an Equation Has

In ax + 3 = 5x + 7, the x terms collect to (a − 5)x = 4. Choose a = 5 and the x term is zero, and zero lots of x can never equal 4. See Choosing a Coefficient to Fix the Solution Count.

(a − 5)x = 4a = 5 empties the bracket0x = 4zero lots of x can never reach 4no solution
Choose a = 5 and the x term dies. Zero lots of x never reach 4: none. Full lesson: Choosing a Coefficient to Fix the Solution Count

How do you change the subject of a formula?

Changing the subject of a formula means rearranging it so that a different letter stands alone on one side. Undo the operations around the letter you want, in reverse order, doing the same to both sides. In v = u + at, subtract u and divide by a to get t = (v − u)/a. To make r the subject of A = πr², divide both sides by π, then take the square root: r = √(A/π). See Changing the Subject of a Formula. The steps change when the letter appears twice, as in ax = b + cx: gather both x terms on one side, take x out as a common factor, and divide by the bracket, so x = b/(a − c). Numbers test a rearrangement. If u = 4, a = 2 and t = 3, then v is 4 + 2 × 3 = 10, and the new formula gives back (10 − 4) ÷ 2 = 3.

r = 3A = 28.3A = πr²r = 3 → ² → 9 → × π → A = 28.3A = 28.3 → √ → 5.32 → ÷ π → 1.69 ≠ r ✗÷ π, √√, ÷ π

the square root taken first: √28.3 = 5.32, then ÷ π gives 1.69, not 3; the steps were square then × π, so they are undone as ÷ π then square root, the reverse order

Undo the steps in the order that brings r back

y = mx + ctake c from both sidesy − c = mxdivide both sides by m
Then divide both sides by m. The whole side is divided, never just one part. Full lesson: Changing the Subject of a Formula

The same method handles any formula with a repeated letter. See Making a Twice-Appearing Letter the Subject.

ax − bx = cfactor the x outx(a − b) = c
Now factor: ax − bx is x times (a − b), so the two x terms become one. Full lesson: Making a Twice-Appearing Letter the Subject

Now you

y = 2x + 3which move frees x?

Make x the subject of y = 2x + 3

y = 7x + 2which move frees x?

Make x the subject of y = 7x + 2

Turning words into equations

A word problem becomes an equation once the unknown has a name. Write the definition down: let n be the smaller number. See Forming Equations.

nn + 3
Together they make 17, so n + (n + 3) = 17. Full lesson: Forming Equations

A formula answers every version of a question at once, and a case you can count checks it. See Writing Formulas from Words.

C = n × p + 3n rides at $p each, plus $3 onceC = np + 3
C = np + 3: the $3 entry is paid once, and $p is charged for each of the n rides. Full lesson: Writing Formulas from Words

How do you solve simultaneous equations?

To solve simultaneous equations, remove one unknown, solve for the other, then substitute back. Take x + y = 10 and x − y = 4. Adding the equations cancels y and leaves 2x = 14, so x = 7, and the first equation then gives y = 3. Adding is allowed because both equations hold at once, so their sides add to equal totals. On a graph each equation is a line, and the solution is where the lines cross. When no letter has matching coefficients, scale one equation first. With 2x + 3y = 12 and x + y = 5, multiply the second by 2 to get 2x + 2y = 10, then subtract: y = 2, and x = 3. Check both original equations: 2 × 3 + 3 × 2 = 12 and 3 + 2 = 5. For the first pair, 7 + 3 = 10 and 7 − 3 = 4.

y = x + 1(0.67, 1.67)y = −0.5x + 2x = 0.67, y = 1.67−4−4−2−22244

m₁ ≠ m₂: the two lines share exactly one point, and its coordinates are the one pair (x, y) that satisfies both equations

Make the gradients equal with different intercepts

Removing a letter by adding or subtracting the equations is called elimination. See Simultaneous by Elimination.

x + y = 10x − y = 4add: +y and −y cancel2x = 14x = 7x back into the first equation7 + y = 10, so y = 3
Add them: +y and −y cancel, so 2x = 14 and x = 7. Then 7 + y = 10 gives y = 3. Full lesson: Simultaneous by Elimination

Sometimes both equations need scaling before a pair of coefficients match. See Solving Simultaneous Equations by Scaling.

x + y = 5double every term2x + 2y = 10
Multiply the second equation by 2, and its 2y matches the 2y in the first equation. Full lesson: Solving Simultaneous Equations by Scaling

Substitution rearranges one equation for one letter and puts that expression into the other. If y = x + 1 and 2x + y = 10, then 2x + x + 1 = 10, so x = 3 and y = 4. Use it when one equation already gives a letter on its own. See Simultaneous by Substitution.

A word problem with two unknowns needs two facts. Name both unknowns, write one equation from each fact, and read the answer back in the words of the question. See Writing a Pair of Equations from a Word Problem.

Two lines can cross once, run parallel, or be the same line: one solution, none, or infinitely many. Scaling one equation to match the other shows which. See How Many Solutions a Pair of Equations Has and Choosing a Coefficient in a Pair of Equations.

xy2x + y = 54x + 2y = 14
These two lines are equally steep, so they run alongside and never meet. Full lesson: How Many Solutions a Pair of Equations Has

Sometimes the question asks only for x + y. If 3x + 2y = 11 and 2x + 3y = 9, adding gives 5x + 5y = 20, so x + y = 4. See Solving for x + y Without Finding x and y.

Now you

3x + 2y = 28x + y = 11

3x + 2y = 28 and x + y = 11. Solve for x and y.

4x + 2y = 26scale this onex + y = 9

4x + 2y = 26 and x + y = 9. Multiply the second by what to match the y terms?

What does an inequality mean?

An inequality describes a range of values rather than one value. x > 4 means every number greater than 4. On a number line it is a ray, with a hollow circle at 4 because 4 is not greater than 4. x ≥ 4 includes 4, and the circle is filled. See Inequalities and Solution Sets of Inequalities. Solving one works like solving an equation: from 3x − 2 > 10, add 2 and divide by 3 to get x > 4. Adding to both sides, or multiplying by a positive number, keeps their order. Multiplying or dividing by a negative number reverses it, so the sign must flip: from −x < −4, dividing by −1 gives x > 4. Test one value on each side of the boundary. For x = 5, 3 × 5 − 2 = 13, which is more than 10; for x = 3, 3 × 3 − 2 = 7, which is not.

−8−6−4−202468abka = 2kb = 6

for k > 0, a < b gives ka < kb — a positive scalar preserves order on the real line

Multiply by a negative and watch the inequality sign reverse

012345678910x > 4
Every value right of 4 works. The circle is hollow: 4 is not greater than 4. Full lesson: Inequalities

From 2x + 3 < 11, subtract 3, then divide by 2: x < 4. See Two-Step Inequalities.

Dividing by a negative number reverses the sign. From −2x > 6, divide by −2: x < −3. A negative sign reflects the number line: 2 < 3, but −2 > −3.

−55−3−223
True: 2 < 3. Make both negative: −2 > −3. Bigger became smaller — the sign flips. Full lesson: Inequalities

A compound inequality has two ends. −3 < x ≤ 5 has infinitely many solutions but only eight integer solutions, because −3 is out and 5 is in. See Integer Solutions of Inequalities.

−57−2−1012345
The integers inside run −2, −1, 0, 1, 2, 3, 4, 5 — the −3 is out, the 5 is in. Full lesson: Integer Solutions of Inequalities

Now you

−99?

Solve −2x + 8 < −2

06?

Solve 4x + 5 < 13

Inequalities in two variables

A limit on a total of two things is written with an inequality sign: pens at $2 and pads at $5 with $30 to spend is 2p + 5d ≤ 30. "At most" gives ≤ and "at least" gives ≥. See Forming an Inequality in Two Variables.

To graph it, draw the boundary line, dashed when the sign is strict and solid when it is ≤ or ≥. Test a point off the line, usually the origin, and shade the side where the inequality holds. See Graphing an Inequality in Two Variables.

xyy > x + 1(−2, 4)
The side holding (−2, 4) is the solution, and the dashed boundary is left out. Full lesson: Graphing an Inequality in Two Variables

Two inequalities together are solved by the region where both shadings overlap. See The Overlap of Two Inequality Regions.

xy
Draw both. The doubly shaded wedge is where the two demands hold at once. Full lesson: The Overlap of Two Inequality Regions

Equations with a modulus

The modulus |x| is the distance of x from zero, so it is never negative, and |x| = 5 has two solutions: 5 and −5. An equation with a modulus splits into two cases, because the expression inside the bars can be positive or negative. From |x − 3| = 5, either x − 3 = 5, giving x = 8, or x − 3 = −5, giving x = −2. Substitute both back to check. |x + 1| = −4 has no solution. See Solving Absolute Value Equations.

c − d = 0c + d = 2d = 1|x − 1| ≤ 1−4−3−2−10123456789

|x − c| ≤ d is every x within distance d of c: the corridor from c − d = 0 to c + d = 2

Set c = 3 and d = 2 to solve |x − 3| ≤ 2

−3955−238
Read that on the line: 8 and −2 are each five steps away from 3. Full lesson: Solving Absolute Value Equations

An inequality with a modulus is a statement about distance. |x − 3| < 5 means x is within 5 of 3, one stretch of the line: −2 < x < 8. |x − 3| > 5 means more than 5 away from 3, which is two separate rays: x < −2 or x > 8. See Solving Absolute Value Inequalities.

-4-20246810x < −2 or x > 8
Those are two rays heading apart, and no single stretch can describe them. Full lesson: Solving Absolute Value Inequalities

Now you

|x − 2| = 3two casesx − 2 = 3 or x − 2 = −3

Solve |x − 2| = 3

|x − 6| = 5two casesx − 6 = 5 or x − 6 = −5

Solve |x − 6| = 5

How do you know a solution is right?

A solution is right when it makes the original equation true, so substitute it into the equation you were given, not into a line you wrote along the way. Solving 5x + 4 = 2x + 19 gave x = 5. Work out each side separately: 5 × 5 + 4 = 29 and 2 × 5 + 19 = 29. The sides agree, so the answer stands. The first line matters because a slip in the middle carries into every later line, and those lines would agree with the wrong answer. For simultaneous equations, the pair must satisfy both equations, since a whole line of points fits either one alone. An inequality needs a different check, because its answer is a range: a value inside should work, and a value outside should fail. For x < −3 from −2x > 6, try x = −4, giving −2 × −4 = 8, which is more than 6, then try x = 0, which gives 0.

−10123456x5x + 42x + 195x + 4 = 19, 2x + 19 = 25x = 3: ≠5x + 4 = 2x + 19x² = 2x ?

x = 3: 5x + 4 = 19 and 2x + 19 = 25, not equal, so 3 is not a solution; the two lines cross once, at x = 5

Find every x where the two sides agree

That test catches a sign that was not reversed.

The four mistakes worth naming

3(x + 2) = 15the 2 never met the 3 — a slip3x + 2 = 15
The usual slip: only the x gets multiplied, and the 2 slides through untouched. Full lesson: Equations with Brackets

Where this leads next

The algebra behind these methods is in algebraic expressions, indices and surds, and the arithmetic in arithmetic methods. Quadratic equations need factoring or the quadratic formula. Proportional relationships written as equations start in ratio and proportion.

Your turn

Three to try — tap what you get.

Solve 3x + 5 = 20

Solve x/4 = 6

Which x satisfies 2x − 1 > 9?

Questions and answers

How do you solve an equation with the unknown on both sides?
Take the smaller x term away from both sides so the unknown appears only once, then solve as usual. For 5x + 4 = 2x + 19, subtract 2x from both sides to get 3x + 4 = 19, then subtract 4 and divide by 3, giving x = 5. Removing the smaller term keeps the coefficient positive, which avoids a sign error later.
How do you change the subject of a formula?
Undo the operations wrapped around the letter you want, outermost first, doing the same to both sides. To make r the subject of A = pi r squared, divide both sides by pi, then take the square root. It is the same process as solving an equation, except that the answer is an expression in the other letters rather than a number.
When do you flip the inequality sign?
Only when you multiply or divide both sides by a negative number. From -2x > 6, dividing by -2 gives x < -3, with the sign reversed. The reason is that negating reflects the number line: 3 is greater than 2, but -3 is less than -2. Adding and subtracting never reverse it, since they slide both sides equally.
How do you solve simultaneous equations?
Eliminate one unknown, then solve for the other. Elimination adds or subtracts the equations so one letter cancels; substitution rearranges one equation and puts it into the other. If neither letter matches, scale one equation first. Two equations in two unknowns usually meet at exactly one point, which is where their graphs cross.
How many solutions can a linear equation have?
One, none, or infinitely many. Normally the x terms survive and there is a single answer. If they cancel and leave something false, such as 4 = 7, no value works. If they cancel and leave something true, such as 4 = 4, every value works and the equation was an identity in disguise.
How do you solve an equation with a modulus?
Split it into two cases, because the expression inside can be positive or negative. From |2x - 1| = 7, either 2x - 1 = 7 giving x = 4, or 2x - 1 = -7 giving x = -3. Both must be checked in the original equation, since squaring or splitting can introduce a value that does not actually work.
Mr. Chalk