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

Solving Linear Equations

Learning goals

  • Confirm a solution by substituting it into the original equation
  • Recognize the standard form ax+b=cax + b = c with a0a \neq 0
  • Apply the properties of equality to make an equivalent equation
  • Undo the operations in reverse order with inverse moves
  • Collect the variable on one side when it appears on both
  • Distribute and combine like terms before isolating

What a linear equation is

An equation is a statement that two expressions are equal, written with an equals sign between them, such as 3x5=73x - 5 = 7. A solution of an equation is a value of the variable that makes that statement true. You already have the tool for testing a candidate, namely substitution: replace the variable with the value and check whether the two sides come out equal.

Is x=4x = 4 a solution of 3x5=73x - 5 = 7? Substitute and compute the left side:

3(4)5=125=7.3(4) - 5 = 12 - 5 = 7.

The left side equals 77, the same as the right, so x=4x = 4 is a solution. The value x=2x = 2 is not, because 3(2)5=13(2) - 5 = 1, which is not 77. Solving an equation means finding every value that passes this test.

This lesson is about linear equations in one variable: equations in which the variable appears only to the first power. It is never squared, never under a root, never in a denominator, so x2=9x^2 = 9, x=3\sqrt{x} = 3, and 6x=2\frac{6}{x} = 2 all fall outside our scope for now. The linear equations you will solve in this lesson can be rearranged into the standard form

ax+b=c,ax + b = c,

where aa, bb, and cc are numbers and a0a \neq 0, which gives exactly one solution. A few one-variable equations instead collapse to the special case a=0a = 0, with either no solution or infinitely many, and the next lesson handles those. The name linear comes from the straight line such an equation graphs, a picture the graphing chapter will draw later. Here the point is that the variable stands alone to the first power, which makes these the most basic equations to solve and the foundation for everything after.

Keeping the balance: the properties of equality

Picture an equation as a balance scale. The equals sign is the pivot, and the two expressions are equal weights in the two pans, holding the beam level. This picture is the key to solving, because it tells you exactly which moves are legal. Anything you do to one pan alone tips the scale and breaks the equation. But if you do the same thing to both pans, the beam stays level and the equality survives.

Four such moves, the properties of equality, are the only tools you need. If a=ba = b, then for any number cc:

Each move produces a new equation, and the new equation has exactly the same solutions as the old one. Two equations with the same solution set are called equivalent. Solving works by walking through a chain of equivalent equations, each simpler than the last, until the variable stands alone. Here is why the moves preserve the solutions.

Why the same move on both sides keeps the same solutions#

An equation L=RL = R makes a claim about a number. The claim is that for a particular value of the variable, the expression on the left and the expression on the right come out to the same number. Call a value a solution when that claim is true there.

Suppose x=sx = s is a solution of L=RL = R, so substituting ss makes both sides equal to one and the same number, call it kk. Now add the same quantity cc to each side, producing L+c=R+cL + c = R + c. At x=sx = s the left side becomes k+ck + c and the right side becomes k+ck + c, the very same number, so ss solves the new equation as well. Adding cc to both sides therefore never loses a solution.

It never gains one either, because the move can be undone. Subtracting cc from both sides of L+c=R+cL + c = R + c returns you to L=RL = R, and by the same reasoning any solution of the new equation is a solution of the old. Since neither equation has a solution the other lacks, the two have exactly the same solution set, which is what it means for them to be equivalent.

The identical argument works for multiplying both sides by a number cc, undone by dividing by cc, provided cc is not zero. That nonzero condition is essential. Multiplying both sides by 00 turns any equation into 0=00 = 0, which is true for every value. So the step erases all information about the variable and cannot be reversed. That is the one move the balance forbids: you may add, subtract, multiply, or divide both sides by the same number, but never multiply or divide by zero.

An equation as a balance scaleA level balance beam on a central fulcrum. The left pan is labeled x plus 3 and the right pan is labeled 8. A minus 3 tag with an arrow points into each pan, showing that subtracting 3 from both sides keeps the balance level.x + 38-3-3the same move on both sides keeps the balance
An equation is a balance: the left side x + 3 weighs the same as the right side 8, so the beam is level. Removing 3 from both pans keeps it level, and the balance then reads x against 5, so x = 5. Whatever you do to one side you must do to the other.

Isolating the variable

To solve is to transform the equation, one legal move at a time, into the form x=(a number)x = (\text{a number}). The strategy is to undo the operations wrapped around the variable, in reverse order. Building an expression like 2x+32x + 3 from xx means first multiplying by 22 and then adding 33. To take that expression apart, you reverse both the operations and their order, subtracting 33 first and dividing by 22 last. Each undoing uses an inverse operation: addition and subtraction undo each other, and multiplication and division undo each other.

Applied to the standard form, this reverse-order idea always lands on a single value.

Why ax+b=cax + b = c has the single solution x=cbax = \dfrac{c - b}{a}#

Take any linear equation in one variable, gathered into the standard form ax+b=cax + b = c, where aa, bb, and cc are numbers and a0a \neq 0. Two moves isolate xx, each one an application of the properties of equality.

First subtract bb from both sides to strip away the constant:

ax+bb=cb,soax=cb.ax + b - b = c - b, \qquad\text{so}\qquad ax = c - b.

Then divide both sides by aa, which is legal precisely because a0a \neq 0:

axa=cba,sox=cba.\frac{ax}{a} = \frac{c - b}{a}, \qquad\text{so}\qquad x = \frac{c - b}{a}.

Because every step produced an equivalent equation, this value is the one and only solution. The formula itself is not worth memorizing; the two moves that built it are. Undo the added constant, then undo the multiplication by the coefficient, and any one-variable linear equation collapses to a single value of xx.

Worked example 1 Solve 2x+3=112x + 3 = 11

Two operations wrap the variable: it is multiplied by 22, then 33 is added. Undo them in reverse order. First subtract 33 from both sides to peel off the constant:

2x+33=113,2x=8.2x + 3 - 3 = 11 - 3, \qquad 2x = 8.

Then divide both sides by 22, the coefficient of xx:

2x2=82,x=4.\frac{2x}{2} = \frac{8}{2}, \qquad x = 4.

Check the answer in the original equation, not in a later line where a slip might already hide:

2(4)+3=8+3=11.2(4) + 3 = 8 + 3 = 11.

The left side equals 1111, matching the right, so x=4x = 4 is correct.

Check your understanding

Solve 3x+7=223x + 7 = 22.

Answer choices

Clearing parentheses and combining like terms

Most equations do not arrive in tidy standard form. They come with parentheses and with several like terms scattered on a side. So before you isolate the variable, you first simplify each side on its own, using the skills from the last two lessons. Distribute to clear any parentheses, then combine like terms, and only then start undoing operations. Keep the two jobs separate: finish simplifying a side before you move any term across the equals sign.

Worked example 2 Solve 2(x+3)+3x=262(x + 3) + 3x = 26

The left side has parentheses and two xx terms, so tidy it before isolating anything. Distribute the 22 across the parentheses:

2(x+3)+3x=2x+6+3x.2(x + 3) + 3x = 2x + 6 + 3x.

Combine the like terms 2x2x and 3x3x:

2x+3x+6=5x+6.2x + 3x + 6 = 5x + 6.

The equation is now the two-step 5x+6=265x + 6 = 26. Subtract 66, then divide by 55:

5x=20,x=4.5x = 20, \qquad x = 4.

Substituting back into the original, 2(4+3)+3(4)=14+12=262(4 + 3) + 3(4) = 14 + 12 = 26, which matches.

Variables on both sides

So far the variable has lived on one side. When it appears on both, as in 5x+2=3x+105x + 2 = 3x + 10, you cannot isolate it until it occupies a single side, and the subtraction property is what gets it there. Subtract the smaller variable term, 3x3x, from both sides. On the right, 3x3x=03x - 3x = 0, so the variable leaves that side entirely; on the left, 5x3x=2x5x - 3x = 2x:

5x+23x=3x+103x,2x+2=10.5x + 2 - 3x = 3x + 10 - 3x, \qquad 2x + 2 = 10.

What remains is an ordinary two-step equation. Subtracting the smaller coefficient, 3x3x rather than 5x5x, is a deliberate choice. That choice leaves the variable with a positive coefficient, which heads off the sign slips that a negative coefficient invites. From there you solve as before, and the balance never tipped, because every term you removed left from both pans at once.

Worked example 3 Solve 7x4=2x+117x - 4 = 2x + 11

The variable sits on both sides, so first collect it on one. The smaller variable term is 2x2x, so subtract 2x2x from both sides; it vanishes on the right and drops the left to 5x5x:

7x42x=2x+112x,5x4=11.7x - 4 - 2x = 2x + 11 - 2x, \qquad 5x - 4 = 11.

Now it is an ordinary two-step equation. Add 44, then divide by 55:

5x=15,x=3.5x = 15, \qquad x = 3.

Check in the original, evaluating each side on its own. The left is 7(3)4=177(3) - 4 = 17 and the right is 2(3)+11=172(3) + 11 = 17. The two sides agree, so x=3x = 3.

Check your understanding

Solve 6x5=4x+96x - 5 = 4x + 9.

Answer choices

Putting the steps together

Every linear equation, however tangled, yields to the same ordered routine. Nothing in it is new; it just fixes the order in which to spend the tools you already have.

  1. Clear parentheses by distributing across each one.
  2. Combine like terms on each side separately.
  3. Collect the variable on one side and the constants on the other, using the addition and subtraction properties.
  4. Divide by the coefficient of the variable to leave it alone.
  5. Check by substituting the answer into the original equation.

The last step is not optional. A single arithmetic slip anywhere above produces a wrong value, and substituting back into the original equation is how you catch it. That check works because the original is the one line you know for certain was written correctly.

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

Both sides carry parentheses, so clear them first:

4x4=2x+6.4x - 4 = 2x + 6.

Collect the variable on the left by subtracting the smaller term 2x2x from both sides:

2x4=6.2x - 4 = 6.

Add 44, then divide by 22:

2x=10,x=5.2x = 10, \qquad x = 5.

Check: the left is 4(51)=164(5 - 1) = 16 and the right is 2(5+3)=162(5 + 3) = 16, so the solution is x=5x = 5.

Worked example 5 Solve 23x+1=7\dfrac{2}{3}x + 1 = 7

A fractional coefficient is handled the same way; the inverse of multiplying by 23\frac{2}{3} is multiplying by its reciprocal 32\frac{3}{2}. First subtract 11 from both sides:

23x=6.\frac{2}{3}x = 6.

Now multiply both sides by 32\frac{3}{2} to undo the 23\frac{2}{3}:

3223x=326,x=9.\frac{3}{2} \cdot \frac{2}{3}x = \frac{3}{2} \cdot 6, \qquad x = 9.

Check in the original: 23(9)+1=6+1=7\frac{2}{3}(9) + 1 = 6 + 1 = 7. Multiplying by the reciprocal turns a fractional coefficient into 11, which is why it isolates xx in a single step.

Check your understanding

Solve 2(x+4)=3(x1)2(x + 4) = 3(x - 1).

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)

Copying out algebra used to be slow work. The word “equals” had to be written out in full, every single time it was needed. One worked problem might carry the phrase “is equalle to” a dozen times over, spelled in letters and never once in a sign.

Robert Recorde decided that was enough. He was a Welshman who wrote the first algebra book in English, and in 1557 he gave it the splendid title The Whetstone of Witte. Inside it he offered a mark that would spare him the repetition: two straight lines of equal length, one set above the other. He drew them far longer than we do, a stretched pair of rails running across the page.

The new sign did not sweep the field. For most of the next century authors and printers carried on with words, or with rival marks of their own invention. Recorde’s pair of lines won out slowly, and only because enough people found them convenient.

What they won was worth the wait. An equals sign is not an instruction to work something out. It is a claim that two descriptions name one and the same number. That claim is what licenses every move in this lesson. If both sides really are a single number, the same operation applied to both must leave them a single number still. That is why the balance never tips.