Solving Linear Equations

Learning goals

  • Confirm a solution by substituting it into the original equation
  • Apply the properties of equality to write an equivalent equation
  • Undo the operations around the variable in reverse order with inverse moves
  • Distribute and combine like terms before isolating the variable
  • Collect the variable on one side when it appears on both

What a linear equation is

An equation is a statement that two expressions are equal, written with an equals sign between them, such as 3x−5=73x - 5 = 7. A solution of an equation is a value of the variable that makes that statement true. Test a candidate by substitution: replace the variable with the value and check whether the two sides are equal.

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

3(4)−5=12−5=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.

A linear equation in one variable uses sums and differences of constants and constant multiples of the variable. Parentheses can group those terms, including groups inside other groups, and a constant can multiply a group. The variable appears only to the first power, never under a root or in a denominator. Expand the parentheses, combine like terms, and add or subtract the same terms on both sides to write the equation in standard form

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

where aa, bb, and cc are fixed numbers. For example, 3x−5=73x - 5 = 7 has a=3a = 3, b=−5b = -5, and c=7c = 7. Equations such as x2=9x^2 = 9, x=3\sqrt{x} = 3, and 6x=2\frac{6}{x} = 2 are not linear equations. The next lesson shows how some equations with variable denominators reduce to linear equations on their original allowed inputs.

When the collected variable coefficient aa is nonzero, the equation has exactly one solution, as we will show below. These are the equations we solve in this lesson. Sometimes the variable terms cancel, leaving a coefficient of zero. The next lesson handles those cases, which have no solution or infinitely many.

Keeping the balance: the properties of equality

Subtracting 33 from each side of x+3=8x + 3 = 8 keeps the balance level. Adding 33 back to each side gives the original equation again. Because we can undo the move, we neither lose a solution nor gain a new one.

The properties of equality give four such moves. If a=ba = b, then:

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
Subtracting 3 from both sides of x + 3 = 8 leaves x = 5. Removing equal amounts keeps the balance level.

Two equations with exactly the same solutions are equivalent equations. Solving means finding a chain of equivalent equations that ends with the variable alone.

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

For x+4=11x + 4 = 11, subtracting 44 gives x=7x = 7. Adding 44 reverses the step. Any value that works in either equation therefore works in the other.

The same reasoning works for any equation. Call its sides LL and RR. At a solution, they have the same value. Adding a number cc gives that value plus cc on each side, so the solution still works in L+c=R+cL + c = R + c. Subtracting cc returns L=RL = R, so a solution of the new equation must also solve the original. No solutions are lost or gained. Subtraction works the same way, and adding undoes it.

Multiplying by a nonzero number is undone by dividing, and dividing is undone by multiplying. So these moves also keep exactly the same solutions. Multiplying x=5x = 5 by zero instead gives 0=00 = 0, which is true even at x=2x = 2. That step gained solutions, and it cannot be undone. Division by zero is undefined.

We can also add or subtract the same variable expression on both sides, provided it is defined at every input allowed by the original equation. The expression 3x3x meets that condition. At each candidate value of xx, it has the same value on each side, and the move can be undone. That is why we can collect variable terms before we know xx.

Isolating the variable

To isolate a variable means to leave it alone on one side. For a two-step expression such as 2x+32x + 3, first xx is multiplied by 22, then 33 is added. Undo the operations in reverse order: subtract 33, then divide by 22. These are inverse operations, operations that undo one another. Addition and subtraction form a pair; multiplication and division by a nonzero number form another.

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

For 3x+4=223x + 4 = 22, subtract 44 from both sides to get 3x=183x = 18, then divide by 33 to get x=6x = 6. Check: 3(6)+4=223(6) + 4 = 22. Multiplying by 33 and adding 44 reverses the two steps. The same two solving steps work for any other numbers, as long as the number we divide by is not zero.

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 a≠0a \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+b−b=c−b,ax=c−b.\begin{aligned} ax + b - b &= c - b, \\ ax &= c - b. \end{aligned}

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

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

Every step is reversible, so the original has exactly the same solution as this last equation.

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

Two things happen to 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+3−3=11−3,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 that may already contain a mistake:

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, then check your value in the original equation.

Answer choices

Clearing parentheses and combining like terms

When an equation has parentheses or like terms, simplify each side first, and you often get a two-step equation. Use distribution and combining like terms from the Language of Algebra chapter. These moves replace an expression with an equal one; they do not change the equation’s solutions. Then use the properties of equality to isolate the variable.

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 been on only one side. When it appears on both, as in 5x+2=3x+105x + 2 = 3x + 10, you cannot isolate it until it is on a single side. We use the subtraction property to move it. Compare the coefficients of the two variable terms, 55 and 33, and subtract the term with the smaller coefficient, 3x3x, from both sides. On the right, 3x−3x=03x - 3x = 0, so the variable leaves that side entirely; on the left, 5x−3x=2x5x - 3x = 2x:

5x+2−3x=3x+10−3x,2x+2=10.\begin{gathered} 5x + 2 - 3x = 3x + 10 - 3x, \\ 2x + 2 = 10. \end{gathered}

What remains is a two-step equation. Subtracting 3x3x leaves a positive coefficient, 22, which can make the signs easier to track. Subtracting 5x5x instead is also legal; it leaves a negative coefficient on the right. Either route works if you apply each move to both sides.

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

The variable sits on both sides, so first collect it on one. The term with the smaller coefficient is 2x2x, so subtract 2x2x from both sides. That removes the xx term on the right, and the left becomes 5x−45x - 4:

7x−4−2x=2x+11−2x,5x−4=11.\begin{gathered} 7x - 4 - 2x = 2x + 11 - 2x, \\ 5x - 4 = 11. \end{gathered}

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 6x−5=4x+96x - 5 = 4x + 9.

Answer choices

Putting the steps together

For the equations in this lesson, work in this order.

  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 nonzero coefficient of the variable to leave it alone.
  5. Check by substituting the answer into the original equation.

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

Both sides carry parentheses, so clear them first:

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

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

2x−4=6.2x - 4 = 6.

Add 44, then divide by 22:

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

Check: the left is 4(5−1)=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}:

32⋅23x=32⋅6,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(x−1)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.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems 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)

Robert Recorde was tired of writing that one quantity was equal to another. In his 1557 algebra book The Whetstone of Witte, the Welsh mathematician introduced two parallel strokes of equal length. Their matching lengths suggested equality, and the sign saved him from repeating the words.

The strokes were much longer than today’s equals sign. Nor did the new mark become standard at once: other writers used different symbols, and abbreviations from the Latin word for “equal” remained in use into the 1700s.

The title is also a pun. Algebra was known as the “cossic art,” from a word for the unknown “thing.” A similar Latin word meant whetstone, a stone used to sharpen tools. Recorde’s book offered a way to sharpen the reader’s mathematical wit.

MacTutor: Robert Recorde and The Whetstone of Witte

Your progress

See all your progress →