📘 CodingMarble Learn

Linear Equations in One Variable

A linear equation in one variable has one unknown (like x) with power 1, for example 2x + 3 = 11. An equation is like a balance: both sides are equal. To solve it, do the same thing to both sides (add, subtract, multiply or divide by the same non-zero number) until x is alone. Always check by putting the answer back in.

🎬 Step-by-step story

  1. Look at the balance. Left pan: 2 blue boxes and 3 orange cubes. Right pan: 11 cubes. It is level, so 2x + 3 = 11.
  2. Take 3 cubes off both pans. The beam stays level. Now 2x = 8.
  3. Split each pan into 2 equal halves. One box balances 4 cubes. So x = 4.
  4. Now x is on both sides: 3x + 2 = x + 10. Take one box off each pan first. Then solve as before: x = 4.
  5. Check the answer. Open each box: it holds 4 cubes. 2 × 4 + 3 = 11. Level, so x = 4 is right.
  6. Free play: choose a, b and a secret x. Move the Guess slider until the beam is level.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why must I do the same thing to both sides?

An equation is a balance. If you take cubes from one pan only, it tips and the two sides are no longer equal.

Is transposing a different method?

No. Moving +3 across as −3 is the same as taking 3 off both pans; you just skip writing the middle line.

Why do I remove the + and − before dividing?

If you split the pans while loose cubes are there, you must split them too. Removing them first keeps the numbers simple.

What do I do when x is on both sides?

Take the same number of x boxes off both pans, so x stays on one side only.

How do I know my answer is right?

Put it back into the equation. If both sides come out equal, the beam is level and the answer is correct.

Can a guess work instead?

Yes, trial and error can find x, but it is slow. Try the Guess slider and see how the balance method is faster.

What is a linear equation in one variable?

An equation is a statement that two things are equal. It has an equals sign (=).

A variable (or unknown) is a letter, like x, that stands for a number we do not know yet.

An equation is linear when the variable has power 1. So 2x + 3 = 11 is linear. But x² = 9 is not linear.

The solution (or root) is the number that makes both sides equal. For 2x + 3 = 11, the solution is x = 4.

General form: ax + b = 0, where a ≠ 0. A linear equation in one variable has exactly one solution.

The balance method

Think of the equals sign as the middle of a balance. You may do any of these to both sides and it stays level:

Goal: get x alone on one side.

Transposing (shortcut)

Moving a term to the other side and changing its sign is called transposing. It is just the balance method written faster.

x + 7 = 12 → x = 12 − 7 = 5. (+7 became −7.)

3x = 18 → x = 18 ÷ 3 = 6. (× 3 became ÷ 3.)

Harder equations

Variable on both sides

Collect all x terms on one side and all numbers on the other. 5x − 4 = 2x + 11 → 5x − 2x = 11 + 4 → 3x = 15 → x = 5.

Brackets

Open brackets first. 3(x − 2) = 12 → 3x − 6 = 12 → 3x = 18 → x = 6. Or divide both sides by 3 first: x − 2 = 4 → x = 6.

Fractions

Multiply both sides by the LCM of the denominators to clear fractions. x/2 + x/3 = 10 → multiply by 6 → 3x + 2x = 60 → 5x = 60 → x = 12.

Equations that reduce to linear form

(x + 1)/(x − 2) = 3/2. Cross-multiply: 2(x + 1) = 3(x − 2) → 2x + 2 = 3x − 6 → x = 8. (x cannot be 2, because we cannot divide by zero.)

Special cases

If x disappears and you get a true statement like 4 = 4, every number works (an identity). If you get a false one like 4 = 7, there is no solution.

Word problems: from story to equation

  1. Read carefully. What is unknown? Call it x (write it down: "Let x = …").
  2. Write the other amounts using x.
  3. Find the sentence that says two things are equal. Make the equation.
  4. Solve.
  5. Check the answer in the story, and write it with units.

Example: a rectangle is 4 m longer than it is wide. Its perimeter is 32 m. Let width = x. Length = x + 4. 2(x + x + 4) = 32 → 4x + 8 = 32 → x = 6. Width 6 m, length 10 m.

Common types: ages, consecutive numbers, perimeter, money and coins, speed–distance–time, percent.

Key formulas and definitions

Worked examples

1. Solve x − 9 = 4.

Add 9 to both sides: x = 4 + 9 = 13. Check: 13 − 9 = 4 ✓.

2. Solve 4x + 5 = 29.

Subtract 5: 4x = 24. Divide by 4: x = 6. Check: 4 × 6 + 5 = 29 ✓.

3. Solve 7x − 3 = 4x + 12.

Subtract 4x: 3x − 3 = 12. Add 3: 3x = 15. Divide by 3: x = 5. Check: 32 = 32 ✓.

4. Solve 2(3x − 1) = 5(x + 2).

Open brackets: 6x − 2 = 5x + 10. Subtract 5x: x − 2 = 10. So x = 12. Check: 2 × 35 = 70 and 5 × 14 = 70 ✓.

5. Solve x/4 − 1 = x/6.

LCM of 4 and 6 is 12. Multiply by 12: 3x − 12 = 2x. So x = 12. Check: 3 − 1 = 2 ✓.

6. The sum of three consecutive numbers is 72. Find them.

Let them be x, x + 1, x + 2. 3x + 3 = 72 → 3x = 69 → x = 23. Numbers: 23, 24, 25.

7. A mother is 3 times as old as her son. In 12 years she will be twice as old. Find their ages now.

Son = x, mother = 3x. In 12 years: 3x + 12 = 2(x + 12) → 3x + 12 = 2x + 24 → x = 12. Son 12 years, mother 36 years.

Common mistakes

Practice quiz

1. Which is a linear equation in one variable?
2. The solution of 3x = 21 is:
3. When +6 is transposed to the other side, it becomes:
4. Solve 5x − 2 = 3x + 8.
5. To clear fractions in x/3 + x/5 = 8, multiply both sides by:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is a linear equation in one variable?

An equation with just one unknown, whose highest power is 1, like 3x − 4 = 11. It has exactly one solution.

How do you solve linear equations with variables on both sides?

Move all x terms to one side and all numbers to the other (by adding or subtracting the same thing on both sides), then divide by the number in front of x.

How do you solve a linear equation with fractions?

Multiply every term on both sides by the LCM of the denominators. The fractions disappear and you solve a normal equation.

Where this is taught

Canada (Ontario)Grade 8C. Algebra
Canada (Ontario)Grade 10Modelling Linear Relations
NetherlandsVWO 3 (onderbouw)Equations
PolandSzkoła podstawowa, klasa VIIEquations in one unknown
Spain2º ESOAlgebraic sense
Spain3º ESOAlgebraic sense
CBSE (India)Class 8Algebra Play
England (GCSE, A level)Year 9Algebra
USA (Common Core, NGSS, AP)Grade 8Expressions and Equations (8.EE)
USA (Common Core, NGSS, AP)Grade 9Relationships between quantities and reasoning with equations
USA (Common Core, NGSS, AP)Grade 9Relationships between quantities
USA (Common Core, NGSS, AP)Grade 9Linear and exponential relationships
USA (Common Core, NGSS, AP)Grade 9Reasoning with equations
USA (Common Core, NGSS, AP)Grade 10Expressions and equations
USA (Common Core, NGSS, AP)Grade 11Modeling with functions
USA (Common Core, NGSS, AP)Grade 11Polynomial, rational and radical relationships
USA (Common Core, NGSS, AP)Grade 11Mathematical modeling
South Korea고등학교 2학년Change and relationships
FranceQuatrièmeNumbers and calculations
FranceSecondeNumbers, calculations and algebra
Russia7 классEquations and inequalities
Russia7 классEquations and inequalities

Learn first

Learn next

Related lessons

All Maths lessons