Skip to content

Linear equations: solving step by step

A linear equation states that two linear expressions have the same value. Solving it means finding every value of the unknown that makes the statement true.

For example, the equation

3x+5=203x+5=20

has solution x=5x=5, because substituting 55 makes both sides equal to 2020.

Linear equations occur throughout A-level Mathematics. They appear directly, but they also form individual steps inside coordinate geometry, trigonometry, calculus, statistics and mechanics. The essential habit is to preserve equality while simplifying the equation.

You should already be able to:

  • calculate accurately with negative numbers and fractions;
  • collect like terms;
  • expand a single bracket;
  • substitute a value into an expression.

Review exact arithmetic or algebraic manipulation and factorisation if these steps are not yet secure.

An expression such as 4x74x-7 has no equals sign. It can be simplified or evaluated, but it cannot be solved by itself.

An equation such as

4x7=134x-7=13

asserts equality. A solution is a value that makes this assertion true. Here x=5x=5 is a solution because

4(5)7=13.4(5)-7=13.

The letter does not have to be xx. Solving 72t=157-2t=15 for tt uses exactly the same reasoning.

Think of the equals sign as a balance. If two quantities are equal, applying the same valid operation to both preserves equality:

a=ba+c=b+ca=b\quad\Longrightarrow\quad a+c=b+c

and, for c0c\ne0,

a=bac=bc.a=b\quad\Longrightarrow\quad \frac{a}{c}=\frac{b}{c}.

This explains the familiar instruction to “do the same to both sides”. Terms do not literally jump across the equals sign. What is often called moving a term is shorthand for adding or subtracting that term on both sides.

For instance,

x+8=19x+88=198x=11.\begin{aligned} x+8&=19\\ x+8-8&=19-8\\ x&=11. \end{aligned}

Writing every elementary line is not always necessary, but the operation must remain logically valid.

To isolate the unknown, undo operations in reverse order.

Solve 5x7=285x-7=28.

The expression 5x75x-7 means multiply by 55, then subtract 77. Undo subtraction first:

5x7=285x=35x=7.\begin{aligned} 5x-7&=28\\ 5x&=35\\ x&=7. \end{aligned}

Check:

5(7)7=357=28.5(7)-7=35-7=28.

Solve 43x=194-3x=19.

43x=193x=15x=5.\begin{aligned} 4-3x&=19\\ -3x&=15\\ x&=-5. \end{aligned}

Dividing 1515 by 3-3 gives 5-5. A negative solution is not evidence of an error.

From 6x+9=276x+9=27, first obtain 6x=186x=18, then divide both sides by 66.

Do not divide only 6x6x in the original equation. If you choose to divide the original equation by 33, every term must be divided:

2x+3=9.2x+3=9.

Solve:

  1. 7x+4=397x+4=39;
  2. 125x=812-5x=-8;
  3. x4+3=10\dfrac{x}{4}+3=10.
Answers
  1. 7x=357x=35, so x=5x=5.
  2. 5x=20-5x=-20, so x=4x=4.
  3. x4=7\dfrac{x}{4}=7, so x=28x=28.

Collect the unknown terms on one side and constants on the other. Either side is valid, but choosing the side that leaves a positive coefficient often makes the arithmetic easier.

Solve 7x+2=3x+187x+2=3x+18.

Subtract 3x3x from both sides:

7x+2=3x+184x+2=184x=16x=4.\begin{aligned} 7x+2&=3x+18\\ 4x+2&=18\\ 4x&=16\\ x&=4. \end{aligned}

Checking in the original equation gives

7(4)+2=30,3(4)+18=30.7(4)+2=30,\qquad 3(4)+18=30.

Worked example 4: decimals and a negative solution

Section titled “Worked example 4: decimals and a negative solution”

Solve 1.6x3=0.4x+61.6x-3=0.4x+6.

1.6x3=0.4x+61.2x3=61.2x=9x=7.5.\begin{aligned} 1.6x-3&=0.4x+6\\ 1.2x-3&=6\\ 1.2x&=9\\ x&=7.5. \end{aligned}

Decimals are permitted, but exact fractions are often safer when values recur or do not terminate.

Expand every bracket carefully, then collect like terms before isolating the unknown.

Solve 4(2x3)+5=254(2x-3)+5=25.

4(2x3)+5=258x12+5=258x7=258x=32x=4.\begin{aligned} 4(2x-3)+5&=25\\ 8x-12+5&=25\\ 8x-7&=25\\ 8x&=32\\ x&=4. \end{aligned}

The multiplier 44 applies to both terms inside the bracket.

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

First expand and simplify each side:

6x+34=22x+156x1=172x.\begin{aligned} 6x+3-4&=2-2x+15\\ 6x-1&=17-2x. \end{aligned}

Now collect the xx terms:

8x1=178x=18x=188=94.\begin{aligned} 8x-1&=17\\ 8x&=18\\ x&=\frac{18}{8}=\frac94. \end{aligned}

Keep the exact fraction unless a decimal is requested.

Misconception: a minus before a bracket changes one sign

Section titled “Misconception: a minus before a bracket changes one sign”

In

5x(2x7),5x-(2x-7),

the bracket is multiplied by 1-1, so both signs change:

5x2x+7=3x+7.5x-2x+7=3x+7.

It is not 5x2x75x-2x-7.

Solve:

  1. 5(x2)=3x+85(x-2)=3x+8;
  2. 2(3x+4)5=4(x1)2(3x+4)-5=4(x-1);
  3. 72(3x+1)=4(x5)7-2(3x+1)=4(x-5).
Answers
  1. 5x10=3x+85x-10=3x+8, so 2x=182x=18 and x=9x=9.
  2. 6x+3=4x46x+3=4x-4, so 2x=72x=-7 and x=72x=-\dfrac72.
  3. 56x=4x205-6x=4x-20, so 25=10x25=10x and x=52x=\dfrac52.

Fractions can be handled in two reliable ways:

  • isolate a single fraction, then multiply by its denominator;
  • multiply every term by the lowest common multiple of all denominators.

The second method clears several fractions at once.

Solve

3x54=7.\frac{3x-5}{4}=7.

Multiply both sides by 44:

3x5=283x=33x=11.\begin{aligned} 3x-5&=28\\ 3x&=33\\ x&=11. \end{aligned}

The fraction bar groups the entire numerator 3x53x-5.

Solve

x13+x+24=5.\frac{x-1}{3}+\frac{x+2}{4}=5.

The lowest common multiple of 33 and 44 is 1212. Multiply every term by 1212:

4(x1)+3(x+2)=604x4+3x+6=607x+2=607x=58x=587.\begin{aligned} 4(x-1)+3(x+2)&=60\\ 4x-4+3x+6&=60\\ 7x+2&=60\\ 7x&=58\\ x&=\frac{58}{7}. \end{aligned}

Check without converting to a rounded decimal:

58713+587+24=177+187=5.\frac{\frac{58}{7}-1}{3}+\frac{\frac{58}{7}+2}{4} =\frac{17}{7}+\frac{18}{7}=5.

Worked example 9: an unknown denominator is different

Section titled “Worked example 9: an unknown denominator is different”

The equation

5x=2\frac{5}{x}=2

is not linear because the unknown is in a denominator. However, it can still be solved here by noting x0x\ne0 and multiplying by xx:

5=2xx=52.5=2x\quad\Longrightarrow\quad x=\frac52.

Do not assume that every equation which eventually becomes ax=bax=b was linear in its original form. Equations with variable denominators require attention to excluded values. See algebraic fractions for the full method.

Solve:

  1. 2x+15=3\dfrac{2x+1}{5}=3;
  2. x2x13=4\dfrac{x}{2}-\dfrac{x-1}{3}=4;
  3. 2x34=x+56\dfrac{2x-3}{4}=\dfrac{x+5}{6}.
Answers
  1. 2x+1=152x+1=15, so x=7x=7.
  2. Multiply by 66: 3x2(x1)=243x-2(x-1)=24. Hence x+2=24x+2=24 and x=22x=22.
  3. Multiply by 1212: 3(2x3)=2(x+5)3(2x-3)=2(x+5). Hence 6x9=2x+106x-9=2x+10, so x=194x=\dfrac{19}{4}.

One solution, no solution or infinitely many solutions

Section titled “One solution, no solution or infinitely many solutions”

Most linear equations in one unknown have one solution, but cancellation can reveal two special cases.

Solve 4(x+2)=4x+34(x+2)=4x+3.

Expanding gives

4x+8=4x+3.4x+8=4x+3.

Subtracting 4x4x from both sides leaves

8=3,8=3,

which is false. No value of xx can make the original equation true, so there is no solution.

Worked example 11: infinitely many solutions

Section titled “Worked example 11: infinitely many solutions”

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

Expanding gives

6x3=6x3,6x-3=6x-3,

which is true for every real xx. The two sides are equivalent expressions, so there are infinitely many solutions.

Do not divide by the coefficient of xx after it has cancelled to zero. Statements such as 0x=50x=5 and 0x=00x=0 must be interpreted, not divided by zero.

Final statementMeaningSolution set
ax=bax=b, where a0a\ne0one value worksx=bax=\dfrac ba
0=c0=c, where c0c\ne0contradictionno solution
0=00=0identityevery real value

In a worded problem, define the unknown, translate each relationship, solve, then interpret the result in context.

Three consecutive integers have sum 9696. Find them.

Let the first integer be nn. The next two are n+1n+1 and n+2n+2.

n+(n+1)+(n+2)=963n+3=963n=93n=31.\begin{aligned} n+(n+1)+(n+2)&=96\\ 3n+3&=96\\ 3n&=93\\ n&=31. \end{aligned}

The integers are

31,32,33.\boxed{31,32,33}.

Their sum is 9696, so the answer satisfies the context.

A rectangle has length 2x+32x+3 cm and width x1x-1 cm. Its perimeter is 3434 cm. Find its dimensions.

Use P=2l+2wP=2l+2w:

2(2x+3)+2(x1)=344x+6+2x2=346x+4=34x=5.\begin{aligned} 2(2x+3)+2(x-1)&=34\\ 4x+6+2x-2&=34\\ 6x+4&=34\\ x&=5. \end{aligned}

Therefore the length is 2(5)+3=132(5)+3=13 cm and the width is 51=45-1=4 cm. The perimeter check is 2(13)+2(4)=342(13)+2(4)=34 cm.

A taxi fare is a fixed charge of £3.80 plus £1.60 per mile. A journey costs £15.80. Find the distance travelled.

Let the distance be dd miles:

3.80+1.60d=15.801.60d=12.00d=7.5.\begin{aligned} 3.80+1.60d&=15.80\\ 1.60d&=12.00\\ d&=7.5. \end{aligned}

The journey was 7.5 miles\boxed{7.5\text{ miles}}. The units belong in the final answer.

Substitute your proposed solution into the original equation. Simplifying the original left and right sides independently is stronger than checking only your rearranged final line.

For 2(3x1)=5x+72(3x-1)=5x+7 and proposed solution x=9x=9:

LHS=2(271)=52,\text{LHS}=2(27-1)=52,

RHS=45+7=52.\text{RHS}=45+7=52.

Since both sides agree, x=9x=9 is correct.

A check can also expose the type of error:

  • one side differs only by a sign, so inspect negative coefficients and brackets;
  • one side differs by a constant factor, so inspect multiplication or division of every term;
  • a decimal answer is close but not exact, so repeat the work with fractions;
  • the algebra ends in a false constant statement, so the equation may genuinely have no solution.
  1. Solve 94x=2x+219-4x=2x+21.
  2. Solve 5(2y3)+4=3(y+2)5(2y-3)+4=3(y+2).
  3. Solve p+23p12=1\dfrac{p+2}{3}-\dfrac{p-1}{2}=1.
  4. Classify the solutions of 2(3t+4)=6t+82(3t+4)=6t+8.
  5. Classify the solutions of 7q5=7(q+1)7q-5=7(q+1).
  6. The angles of a triangle are xx, 2x+102x+10^\circ and 3x43x-4^\circ. Find all three angles.
Answers
  1. 6x=12-6x=12, so x=2x=-2.
  2. 10y11=3y+610y-11=3y+6, so 7y=177y=17 and y=177y=\dfrac{17}{7}.
  3. Multiply by 66: 2(p+2)3(p1)=62(p+2)-3(p-1)=6. Thus 2p+43p+3=62p+4-3p+3=6, so p=1p=1.
  4. Both sides simplify to 6t+86t+8, so every real tt is a solution.
  5. Simplification gives 5=7-5=7, so there is no solution.
  6. Since angles in a triangle sum to 180180^\circ, x+(2x+10)+(3x4)=180.x+(2x+10)+(3x-4)=180. Hence 6x+6=1806x+6=180, so x=29x=29^\circ. The angles are 2929^\circ, 6868^\circ and 8383^\circ.

Linear equations provide the algebraic engine for several connected topics: