School math

Systems of linear equations

A system of two equations in two unknowns is solved with one idea: reduce the two unknowns to one. There are two ways to do it — solve for one variable and substitute, or add the equations so that one variable disappears.

Updated
In this article

What "solve the system" means#

A solution of a system is a pair of numbers that makes both equations true at the same time. Both, not one: a pair that fits only the first equation is not a solution. That is why the answer is always written as a pair, for example (5,3)(5, 3), and checked by substituting into both lines.

The two standard methods differ only in how they get rid of the second variable. Substitution is handy when one of the equations already has a variable on its own, or it is easy to isolate. Elimination is handy when the coefficients of one variable are opposites, or are easy to make opposites.

Elimination: a simple case#

The system: x+y=10x + y = 10 and x−y=4x - y = 4.

Step 1. Look at the coefficients of yy: +1+1 in the first equation, −1-1 in the second. They are opposites, so yy will drop out when you add.

Step 2. Add the left sides and the right sides separately: (x+y)+(x−y)=10+4(x + y) + (x - y) = 10 + 4, that is 2x=142x = 14.

Step 3. Divide by 2: x=7x = 7.

Step 4. Go back to either original equation — the first is simpler: 7+y=107 + y = 10, so y=3y = 3.

Step 5. Check in the second equation: 7−3=47 - 3 = 4. Correct. The answer is (7,3)(7, 3).

Step 4 is the one people skip most: having found xx, they think they are done. But the answer to a system is a pair; a single number is not an answer.

The substitution method#

The system: x+2y=11x + 2y = 11 and 3x−y=123x - y = 12.

Step 1. Choose what to isolate. xx from the first equation is easiest: its coefficient is one, so no fractions appear.

Step 2. Isolate it: x=11−2yx = 11 - 2y.

Step 3. Substitute this expression for xx in the second equation — always in brackets: 3(11−2y)−y=123(11 - 2y) - y = 12.

Step 4. Expand: 33−6y−y=1233 - 6y - y = 12. The 3 multiplies both terms, and this is where a minus sign gets lost.

Step 5. Combine like terms and move the number: −7y=12−33-7y = 12 - 33, that is −7y=−21-7y = -21.

Step 6. Divide by −7-7: y=3y = 3.

Step 7. Put it into the expression from step 2: x=11−2⋅3=5x = 11 - 2 \cdot 3 = 5.

Step 8. Check in the second equation: 3⋅5−3=123 \cdot 5 - 3 = 12. The answer is (5,3)(5, 3).

Elimination: a harder example#

The system: 2x+3y=162x + 3y = 16 and 5x−3y=195x - 3y = 19.

Step 1. The coefficients of yy are +3+3 and −3-3 — opposites, so you can add the equations straight away without multiplying anything.

Step 2. Add: 7x=357x = 35.

Step 3. So x=5x = 5.

Step 4. Substitute into the first equation: 2⋅5+3y=162 \cdot 5 + 3y = 16, so 3y=63y = 6 and y=2y = 2.

Step 5. Check in the second: 25−6=1925 - 6 = 19. The answer is (5,2)(5, 2).

If there were no opposite coefficients — say 2x2x and 3x3x — you would first multiply the equations term by term: the first by 3, the second by −2-2, which gives 6x6x and −6x-6x. Multiply the whole line, including the right side.

Where systems come from in word problems#

A typical problem: a rectangle has a perimeter of 20 cm, and one side is 2 cm longer than the other. Call the sides aa and bb. The first equation is about the perimeter: 2(a+b)=202(a + b) = 20, that is a+b=10a + b = 10. The second is about the difference: a=b+2a = b + 2. Substitute: b+2+b=10b + 2 + b = 10, so 2b=82b = 8, b=4b = 4 and a=6a = 6. Check: the perimeter is 2⋅(6+4)=202 \cdot (6+4) = 20 and the difference is 2 cm — it fits. The formulas behind the first equation are covered in area and perimeter.

In problems like this the mistake is usually not in solving the system but in setting it up: the variables are never described in words. Write the meaning next to them — "aa is the length in centimetres" — and check that each equation reads as a sentence from the problem.

Special cases and mistakes#

If eliminating a variable leaves you with 0=50 = 5, there is no solution: the lines are parallel. If you get 0=00 = 0, there are infinitely many solutions: both equations describe the same line. This is not an arithmetic error but a legitimate answer.

Adding the left sides and forgetting the right sides. You have to add both sides, or the equation breaks.

Substituting the value in the wrong place: after substituting into the second equation, people get an identity and start solving it all over again. Go back to the original equation, or to the expression you got when you isolated the variable.

Skipping the check. Substituting the pair into both lines takes one line and gives full confidence in the answer. The moves inside each line are the same as in how to solve linear equations.

Step-by-step plan

  1. Step 1 — isolating a variableFrom equations like x + 2y = 11, isolate x and then y; aim for forms without fractions.
  2. Step 2 — substitutionFive systems by substitution, always putting the substituted expression in brackets.
  3. Step 3 — eliminationFive systems with ready-made opposite coefficients, no multiplying needed.
  4. Step 4 — multiplying linesSystems where you must match the coefficients first: multiply the whole line, right side included.
  5. Step 5 — word problemsSet up systems about perimeters, ages and purchases; describe the variables in words and check the answer against the problem.

Start learning this in your own space

The plan goes into your repository: tick off stages, keep notes — the change history shows how far you have come.

Start the plan

Check yourself

1.System: x + y = 10 and x − y = 4. What is x?

2.System: x + 2y = 11 and 3x − y = 12. What is y?

3.System: 2x + 3y = 16 and 5x − 3y = 19. What is x + y?

Sources

Was this helpful?

More articles

School math How to solve linear equations A linear equation is one where the variable appears only to the first power — no squares, no variable in a denominator. You solve it with a single idea, the balance: whatever you do to the left side, you do to the right side, and the equation stays true. School math Decimals A decimal is an ordinary fraction whose denominator is always 10, 100 or 1000 — only the denominator is not written, the decimal point stands in for it. Every rule follows from that: where the point goes when you add, how many digits to count off when you multiply, and what to do with the point in the divisor. School math Dividing fractions Dividing by a fraction means multiplying by that fraction turned upside down. The rule is short, but it only works under three conditions: you flip the second fraction, mixed numbers are first turned into improper fractions, and a whole number is written as a fraction over one. School math Laws of exponents An exponent is shorthand for multiplying the same factor by itself. All five laws of exponents follow from that shorthand in one line, so a forgotten rule can always be rebuilt rather than guessed. School math Fractions with unlike denominators You can only add pieces of the same size — sixths to sixths, twenty-fourths to twenty-fourths. That is why any operation on fractions with different denominators starts with a common denominator, and only then do you add the numerators. School math Percentage word problems A percent is one hundredth: 1% = 0.01. Almost every school percentage problem comes down to one of three types, and each one takes a single operation — once you have worked out what the problem treats as the whole.

More solutions