This site is a work in progress. New lessons are added regularly. Contact us

Solving Linear Equations

Learning goals

  • Treat an equation as a condition each number passes or fails
  • Classify it as conditional, an identity, or a contradiction
  • Distinguish a reversible step from one needing a check
  • Reduce every linear equation to ax=bax = b
  • List excluded values before clearing denominators

An equation is a condition, not a statement

Read 3x+5=173x + 5 = 17 literally and it looks like a claim: three times something, plus five, equals seventeen. But the something is unknown, so the claim is not yet true or false. It becomes a definite claim only once you choose a value for xx. Put x=4x = 4 into it and you get 17=1717 = 17, which is true. Put x=1x = 1 into it and you get 8=178 = 17, which is false. An equation in xx is therefore not a single statement at all. It is a condition on xx, a test that each real number either passes or fails.

The numbers that pass are the only thing solving is ever after. The solution set of an equation is the set of all real numbers that make it true. We write it with set braces, so the solution set of 3x+5=173x + 5 = 17 is {4}\{4\}, the set whose only member is 44. Two symbols will recur. The symbol R\mathbb{R} stands for the set of all real numbers, every number on the number line. The symbol \varnothing stands for the empty set, the set with no members at all, which is what we write when nothing passes the test.

Sorting equations by their solution set gives exactly three kinds.

An equation is conditional when it is true for some values of xx but not others, so its solution set is neither empty nor all of R\mathbb{R}. Every equation you ever solved for a numerical answer was conditional. For instance 3x+5=173x + 5 = 17 is conditional, with solution set {4}\{4\}.

An equation is an identity when it is true for every real number, so its solution set is all of R\mathbb{R}. For instance 2(x+1)=2x+22(x + 1) = 2x + 2 holds no matter what xx is, because the two sides are the same expression written two ways.

An equation is a contradiction when it is true for no real number, so its solution set is \varnothing. For instance x=x+1x = x + 1 can never hold, since a number cannot equal one more than itself.

This reframes what the word solve means. To solve an equation is to describe its solution set, not merely to “find xx.” For a conditional equation with a single solution the two sound identical, and writing x=4x = 4 is a fine shorthand for “the solution set is {4}\{4\}.” But for an identity the honest answer is “every real number,” and for a contradiction it is “no solution, \varnothing.” An equation with no single number to report still has an answer. The answer is a description of the set.

Equivalent equations and the one safe move

Solving works by replacing a hard equation with an easier one that has the same solution set, then repeating until the set can be read off at a glance. Two equations are equivalent when they have exactly the same solution set. The equation x=4x = 4 is equivalent to 3x+5=173x + 5 = 17 because both have solution set {4}\{4\}. The whole job of solving is to travel from 3x+5=173x + 5 = 17 to x=4x = 4 through a chain of equivalent equations.

So the central question of this entire chapter is narrow and precise: which operations on an equation are guaranteed to produce an equivalent one? The answer is a single word, reversible. A step you can undo is guaranteed to produce an equivalent equation, and here is why that one word carries the guarantee.

Why a reversible step preserves the solution set#

Suppose an operation turns an equation AA into an equation BB, and suppose that same operation can be undone by a reverse step that turns BB back into AA. Take any solution ss of AA. Doing the same thing to two equal numbers leaves them equal, so applying the operation keeps the equation true at ss, which means ss is also a solution of BB. Every solution of AA therefore survives into BB.

Now run the reverse step. It turns BB back into AA by the same kind of move, so by the identical reasoning every solution of BB is a solution of AA. Neither equation has a solution the other lacks, so their solution sets are equal and the two equations are equivalent.

The reverse step did real work in that argument. Without it we could only conclude that every solution of AA carries into BB, and BB might still carry extra solutions that AA never had. Reversibility is exactly the guarantee that no extras appear and that nothing is left behind.

Two familiar moves are reversible for every real number, so both are always safe. Adding the same quantity to both sides is undone by subtracting it, as long as the quantity is defined for every xx. Adding a constant like 55, or a whole expression like 3x3x, is fine, because 55 and 3x3x are defined for every real number and can be subtracted straight back. (Adding something like 1x\frac{1}{x} would not qualify, since it is undefined at x=0x = 0.) Multiplying both sides by the same nonzero constant is undone by dividing by it, and dividing by a nonzero constant is undone by multiplying. The word nonzero is the whole point: multiplying both sides by 00 turns every equation into 0=00 = 0, which is true for all xx. The new equation 0=00 = 0 keeps no record of where you started, so the step cannot be reversed.

The trouble starts when the thing you multiply or divide by is not a constant but an expression that can equal zero. Then the step is reversible for most values of xx but not all, and the exceptions are exactly the solutions that get gained or lost.

Multiplying both sides by an expression that can be zero can add solutions. Multiply both sides of an equation by x2x - 2. Wherever x20x - 2 \neq 0 the step is reversible, since you can divide by x2x - 2 to undo it, so those solutions stay safe. But at x=2x = 2 the multiplier is zero, and the new equation reads 0=00 = 0 there whether or not x=2x = 2 solved the original. So x=2x = 2 can slip into the new solution set without belonging to the old one. A value that solves the new equation but not the original is called extraneous, and it is always found among the zeros of whatever you multiplied by.

Dividing both sides by an expression that can be zero can destroy solutions. Consider x2=xx^2 = x. Its solution set is {0,1}\{0, 1\}, because x2=xx^2 = x means x2x=0x^2 - x = 0, that is x(x1)=0x(x - 1) = 0, which holds exactly when x=0x = 0 or x=1x = 1. Now divide both sides of x2=xx^2 = x by xx. You get x=1x = 1, whose solution set is just {1}\{1\}. The solution x=0x = 0 has vanished, and no wonder: dividing by xx is legal only when x0x \neq 0, so the step quietly threw away the very value it could not handle. A solution removed by an illegal step is a lost solution.

A reversible step always preserves the solution set exactly, which is the guarantee just proved. A step you cannot undo is not automatically wrong; it is merely not guaranteed to be safe. That missing guarantee is the real reason such a step’s candidates have to be checked at the end rather than trusted. When a step you cannot undo does change the solution set, there are only two ways the set can change, and they are mirror images. Multiplying by something that is zero at a point, where the inverse fails, can add an extraneous solution there. Dividing by something that is zero at a point, where the step itself is illegal, can lose a solution there. Added roots and lost roots are the only changes a step can make, so every safe-solving rule you meet is really a way of ruling one of them out.

Check your understanding

A student solves x2=4xx^2 = 4x by dividing both sides by xx, gets x=4x = 4, and reports that as the only solution. Which solution did that step destroy?

Answer choices

Every linear equation becomes ax = b

A linear equation in one variable is one you can put in the form ax=bax = b using only safe moves, and two different kinds of move are at work. Distributing across parentheses and combining like terms are rewrites of a single side: they replace an expression by an equal one, justified by the distributive law and by arithmetic. Both rewrites are safe because after the rewrite the two sides still name the same number for every xx, so the solution set cannot change. Moving a variable term or a constant to the other side is the second kind. That move adds the same expression to both sides, a reversible operation of the sort proved safe above. Both kinds preserve the solution set, for these two different reasons. Whatever tangle you start with, they collect it into

ax=b,ax = b,

where aa and bb are specific real numbers. This single form settles the equation completely, and there are exactly three cases according to whether aa is zero.

The three cases of ax=bax = b#

Start from ax=bax = b with aa and bb fixed real numbers.

If a0a \neq 0, divide both sides by aa. This is a safe move because aa is a nonzero constant, and it gives the single value x=bax = \frac{b}{a}. The solution set is {ba}\left\{\frac{b}{a}\right\}, exactly one number, so the equation is conditional.

If a=0a = 0 and b0b \neq 0, the equation reads 0x=b0 \cdot x = b, that is 0=b0 = b with bb not zero. The left side is 00 for every xx, so it never equals the nonzero bb, and no value of xx works. The solution set is \varnothing, so the equation is a contradiction.

If a=0a = 0 and b=0b = 0, the equation reads 0x=00 \cdot x = 0, that is 0=00 = 0. This is true for every xx, so the solution set is all of R\mathbb{R}, and the equation is an identity.

Those three cases are exhaustive, because either a=0a = 0 or it is not, and when it is zero either b=0b = 0 or it is not. So a linear equation always has exactly one solution, or no solution, or every real number as a solution. It can never have exactly two. This is the same conditional, contradiction, identity trichotomy as before, now read straight off the two numbers aa and bb.

Reducing to ax=bax = b is not busywork. It is the whole classification packed into two letters. The next lesson lets aa and bb be built from other letters, solving a formula for one of its variables. The only real question is then which of these three cases you land in as those letters change.

The three solution sets of a linear equationThree horizontal number lines. Top: one filled dot, a conditional equation with exactly one solution. Middle: no point marked, a contradiction with no solution. Bottom: the entire line shaded, an identity true for every real number.Conditional: exactly one solutionx = b / aContradiction: no solutionno point marked (empty set)Identity: every real numberthe whole number line is shaded
The three possible solution sets of a linear equation reduced to ax = b: a single point when a is nonzero (one solution), nothing marked when a is zero but b is not (no solution), and the entire line when a and b are both zero (every real number).

Worked example 1 Solve 4(x1)+6=2x+34(x - 1) + 6 = 2x + 3

Distribute and combine like terms on the left:

4x4+6=4x+2,so4x+2=2x+3.4x - 4 + 6 = 4x + 2, \qquad\text{so}\qquad 4x + 2 = 2x + 3.

Subtract 2x2x from both sides and then subtract 22, collecting the equation into the form ax=bax = b:

2x+2=3,2x=1.2x + 2 = 3, \qquad 2x = 1.

Here a=2a = 2, which is nonzero, so divide by it:

x=12.x = \frac{1}{2}.

The equation is conditional, with the single solution 12\frac{1}{2}, so the solution set is {12}\left\{\frac{1}{2}\right\}.

Worked example 2 Solve 5x3(x2)=2x+15x - 3(x - 2) = 2x + 1

Clear the parentheses on the left, watching the sign on the 33:

5x3x+6=2x+1.5x - 3x + 6 = 2x + 1.

Combine the like terms on the left:

2x+6=2x+1.2x + 6 = 2x + 1.

Subtract 2x2x from both sides, and every xx cancels at once:

6=1.6 = 1.

This is the case a=0a = 0, b0b \neq 0: the reduced form is 0x=50 \cdot x = -5. No value of xx can make 66 equal 11, so the solution set is \varnothing and the equation is a contradiction.

Worked example 3 Solve 3(2x1)=6x33(2x - 1) = 6x - 3

Distribute on the left:

6x3=6x3.6x - 3 = 6x - 3.

The two sides are identical. Subtract 6x6x from both sides and then add 33:

0=0.0 = 0.

This is the case a=0a = 0, b=0b = 0: the reduced form is 0x=00 \cdot x = 0, true for every real number. The solution set is all of R\mathbb{R}, and the equation is an identity. Notice that a single true line like 0=00 = 0 reports infinitely many solutions, while a single false line like 6=16 = 1 reports none. The reduced form tells you which.

Check your understanding

After simplifying both sides, an equation becomes 4x+7=4x+74x + 7 = 4x + 7. What is its solution set?

Answer choices

Clearing denominators changes the domain

Equations with the variable in a denominator are solved by multiplying both sides by the least common denominator to clear the fractions. That is convenient, but look at what kind of move it is. The denominators can be zero, so multiplying by them is the very “multiply by an expression that can be zero” step that adds extraneous solutions. Clearing denominators is the single most common place extraneous roots appear.

The fix is to respect the domain of the original equation. A fraction is undefined when its denominator is zero, so any value that makes a denominator zero is excluded. An excluded value is not eligible to be a solution, no matter what the algebra says later. The discipline is short. First, before clearing anything, list the excluded values. Then clear the denominators and solve the resulting equation. Finally, check each candidate against the excluded list and throw out any that appears there, because those are extraneous.

Return to the equation that opened the lesson, xx2=2x2\frac{x}{x - 2} = \frac{2}{x - 2}. The denominator x2x - 2 is zero at x=2x = 2, so x=2x = 2 is excluded from the domain before we touch the algebra. Multiplying both sides by x2x - 2 gives x=2x = 2, the one candidate. But 22 is exactly the excluded value, so it is extraneous and gets discarded. Nothing survives, and the solution set is \varnothing. The equation genuinely has no solution: for every xx where the two sides are even defined, the only way they could be equal forces x=2x = 2, which is not allowed. That clean step x=2x = 2 was true only about the cleared equation, not the original, and the domain is what told them apart.

Worked example 4 Solve x+3x4=7x4\dfrac{x + 3}{x - 4} = \dfrac{7}{x - 4}

The denominator x4x - 4 is zero at x=4x = 4, so record x=4x = 4 as excluded before clearing anything.

Multiply both sides by x4x - 4. On each side the denominator cancels:

x+3=7.x + 3 = 7.

Solve the linear equation:

x=4.x = 4.

The one candidate is x=4x = 4, but that is the excluded value, so it is extraneous and must be discarded. No candidate remains, so the solution set is \varnothing. The equation has no solution.

Worked example 5 Solve 5x=3x2\dfrac{5}{x} = \dfrac{3}{x - 2}

Two denominators can be zero, xx at x=0x = 0 and x2x - 2 at x=2x = 2, so exclude x=0x = 0 and x=2x = 2 before clearing.

Multiply both sides by the least common denominator x(x2)x(x - 2). On the left the xx cancels, and on the right the x2x - 2 cancels:

5(x2)=3x.5(x - 2) = 3x.

Distribute and solve:

5x10=3x,2x=10,x=5.5x - 10 = 3x, \qquad 2x = 10, \qquad x = 5.

The candidate x=5x = 5 is not on the excluded list, so it survives. Check it in the original: the left side is 55=1\frac{5}{5} = 1 and the right side is 352=33=1\frac{3}{5 - 2} = \frac{3}{3} = 1, which agree. The solution set is {5}\{5\}.

Worked example 6 Solve x24x2=x+2\dfrac{x^2 - 4}{x - 2} = x + 2

The denominator x2x - 2 is zero at x=2x = 2, so exclude x=2x = 2 before clearing.

Multiply both sides by x2x - 2. On the left the denominator cancels and leaves the numerator, and on the right the factor x2x - 2 appears:

x24=(x+2)(x2).x^2 - 4 = (x + 2)(x - 2).

The right side expands to x24x^2 - 4, so the equation reduces to 0=00 = 0, true for every xx:

x24=x24.x^2 - 4 = x^2 - 4.

The cleared equation is an identity, but the original still excludes x=2x = 2. So every real number except 22 is a solution, and the solution set is all of R\mathbb{R} with the single point 22 removed. This is the third rational outcome: not one solution and not none, but the whole line missing one excluded point.

Check your understanding

Before clearing denominators in 3x+4=xx1\dfrac{3}{x + 4} = \dfrac{x}{x - 1}, which values must be excluded from the domain?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (Optional)

Ask an ancient scribe how to solve a problem and you were usually shown one problem. The best of those traditions did carry a general recipe, buried inside the worked cases. But a textbook was still a shelf of examples. A reader learned by matching a new question to an old one. When nothing on the shelf matched, you were stuck.

Around the year 820820 a scholar named al-Khwarizmi wrote a book with a different ambition. He did not want a longer shelf. He wanted a procedure: a fixed run of moves that any equation of a given shape could be poured into, ending in the same dependable verdict every time.

Later readers translated him and mangled his name on the way. The Latin form of it drifted into an ordinary English word, algorithm. So our word for a step-by-step method is really a man’s name. It belongs to the man who sorted equations into types and gave every type a procedure of its own.

That ambition is this lesson. Whatever tangle you are handed, it is pushed into the single form ax=bax = b, and the three verdicts then read straight off aa and bb. You are not matching your question against a remembered example. You are running a procedure, and every step in it was chosen for one reason: it leaves the solution set exactly as it found it.