In this explainer, we will learn how to solve systems of linear equations using substitution.

When we are asked to solve a system of equations (sometimes called simultaneous equations), we are trying to find any points at which the equations are equal, that is, any points where they intersect. Before looking at how we can solve these questions algebraically, let us look at a graphical example.

If we consider the graphs of and and draw them on the same set of axes, we get the following graph.

We can see from this diagram that the graphs intersect at the point . This, in fact, is the solution to the system of equations and . We can check that this is correct by substituting in the value into both equations and checking that the corresponding -value in each case is 2: and as required.

Now, to find these solution points algebraically, we have a couple of methods. We can solve the system by trying to eliminate a variable, or we can use substitution. Here, we are going to look at the latter method. This relies on the fact that we are looking for the point where the two equations have equal value which means we can substitute one of our equations into the other. If we look again at the system of equations and , to find the value of where the two lines have an equal -value, we can substitute one into the other (or equate the two equations); that is If we then solve this equation, we can find the value of for which the -values are equal. First, we add to each side of the equation to get

Then, we add 1 to each side which gives and then we divide through by 5 to get

This means that the two equations have an equal value (that is, the -value) when . To find this value of , we can substitute into either one of the equations. Let us substitute into the first:

Our solutions are, therefore, and corresponding to the point , which is the same as we saw from the graph of the two lines.

A few points that are worth highlighting before we start looking at a series of examples are, firstly, that quite often we will need to rearrange one of the equations to get it to a point where we can perform the substitution; secondly, that you do not need to rearrange both equations to the point where you can equate them (although you can); and, thirdly, that you can substitute for either variable. We will address these points more clearly in a few examples.

### Example 1: Solving Systems of Linear Equations Using Substitution

Solve the simultaneous equations and .

### Answer

Here, we have a system of two equations. If we call the equation

and the equation

as (2) is already written in the form , we can substitute this directly into equation (1). That is,

If we then simplify the left-hand side by removing the parentheses and collecting like terms, we get

Subtracting 10 from each side gives us and dividing through by 9 gives an answer of

To find the value of , we need to substitute into either one of our equations. We will substitute into equation (2) as this is slightly easier:

Our solutions are therefore and , which corresponds to the point which is the intersection point of the two lines. A further check that is always worth doing is to substitute your value of into the other equation and check that you get the same -value. We will leave that as an exercise for you to do yourself.

### Example 2: Using Substitution to Solve Systems of Linear Equations

Solve the simultaneous equations and .

### Answer

Our first step in answering this question is to rearrange one of the two equations to make (or ) the subject. We will call the equation

and the equation

Here, it is easier to rearrange equation (3). If we add to each side, we get If we then subtract 8 from each side, we get If we then substitute this equation into the equation (4), we get

Expanding the parentheses on the left-hand side, we get and simplifying we get

Adding to each side and dividing through by 2, we find that

To find , we then need to substitute our value of into our original rearranged equation:

Our solutions are, therefore, and , which corresponds to the point .

Now, let us look at an example where we eliminate the variable instead of the variable . It is often easier to take this approach when solving systems of equations where one of the equations contains an -variable with a coefficient of 1 and the -variables do not.

### Example 3: Solving Systems of Linear Equations Using Substitution

Solve the simultaneous equations and .

### Answer

If we rearrange the first equation to make the subject, we get

We can then substitute this into the second equation to get

Expanding the parentheses, we get and collecting like terms, we get

If we then add and subtract 5 from each side, we get

Finally, we can substitute this into our rearranged equation to get :

Our solutions are then and , which corresponds to the point .

Sometimes, you will be faced with linear equations where you have to do a little more work to rearrange them to make one of the variables the subject. All of the previous examples have contained at least one variable with a coefficient of 1. When this is not the case, you can still use substitution to solve the system which we will demonstrate now, but please be aware that there is an alternate method called elimination which is sometimes easier to use.

### Example 4: Solving Systems of Equations Using Substitution

Solve the following system of equations:

### Answer

In this question, we need to choose one of the variables, in either one of the equations, that we want to make the subject. As 2 is the smallest coefficient in either of the two equations, let us make the subject of the second equation. To do this, we first need to subtract from both sides to get

Then, we need to divide the equation through by 2 which gives us We can now substitute this into the first equation to get

Expanding the parentheses gives us

At this point, we can subtract 21 from both sides to get

We now need to collect the like terms on the left-hand side; but before doing this, it is easier to multiply the equation through by 2 to remove the fraction: This simplifies to which means

Finally, we can substitute this into our equation for :

Our solutions are then and , which corresponds to the point .

### Example 5: Systems of Linear Equations

Solve the following system of equations:

### Answer

In this question, we need to choose one of the variables, in either one of the equations, that we want to make the subject. As 3 is the smallest positive coefficient in either of the two equations, let us make the subject of the second equation. To do this, we first need to subtract from both sides to get

Then, we need to divide the equation through by 3 which gives us

We can now substitute this into the first equation to get Expanding the parentheses gives us

At this point, it is helpful to multiply the equation through by 3 to remove the fraction, which gives us This simplifies to and adding 22 to each side gives

If we divide through by 23, we get Finally, we can substitute this into our equation for :

Our solutions are then and , which corresponds to the point .

Systems of equations are useful for solving many real-world problems. When presented with a real-world problem, the first thing we need to do is convert the scenario into equations we can solve. In the next example, we will demonstrate this process.

### Example 6: Real-World Problems Involving Simultaneous Equations

A movie theater sold 1,200 tickets. If a childβs ticket costs $5.95, an adultβs ticket costs $11.15, and the total revenue was $12,756, how many of each type of ticket did they sell?

### Answer

To solve a problem like this, we need to first translate the words into equations. We need to find how many of each type of ticket were sold. Therefore, we need to have a variable for each type of ticket. We will let be the number of child tickets that were sold and be the number of adult tickets that were sold. We know that a total of 1,200 tickets were sold. Therefore, our first equation is

We also know the cost of each ticket and the total revenue. Using these facts, we can form a second equation. The total revenue from the sale of child tickets will be given by the cost of a ticket multiplied by the number sold, which we can write mathematically as Similarly, the total revenue from the sale of adult tickets will be . Hence, the total revenue for both, which we know is $12,756, will be the sum of these. Hence, our second equation is

Using equation (5), we can get an expression for by subtracting from both sides of the equation:

We can now substitute this into equation (6) to get

Expanding the parentheses, we have

Gathering together our terms in and simplifying, we have

Adding to both sides of the equation yields

We can now subtract 12,756 from both sides to get

Finally, we can divide both sides of the equation by 5.2 to get

We can now substitute this value of into to find the value of as follows:

At this stage, it is good practice to substitute these values into the other equation to ensure we have correctly done our working; substituting and into the left-hand side of equation (6) gives

as expected. Hence, the number of child tickets sold was 120 and the number of adult tickets sold was 1,080.

### Key Points

- Systems of linear equations can be solved using different techniques.
- To solve a system of linear equations using substitution, we use the following method:
- Rearrange one of the equations to make one of the unknowns the subject.
- Substitute this into the other equation and solve for the unknown.
- Substitute the value of this unknown into one of the equations and solve for the remaining unknown.
- Check that the values of both unknowns satisfy the other equation.