Chapter 8 ยท Systems of linear equations
Solving Systems by Inspection and Substitution
Learn to spot how many solutions a system has by looking at its structure, then find exact solutions by substituting one equation into the other.
You have already solved systems by graphing: draw both lines and find where they cross. But a point read from a graph is only an estimate until you check it in both equations. In this lesson you will use algebra, which gives exact answers.
Here, a system of equations is a pair of linear equations (equations whose graphs are lines) in the same two variables, and . Each variable stands for a real number. A solution of the system is an ordered pair that makes both equations true at the same time.
You will learn two tools. Inspection means looking closely at how the two equations are built before you calculate anything. Substitution means replacing a variable with a number or an expression that equals it.
Start with inspection. Sometimes the way a system is built tells you how many solutions it has before you do any solving steps. Look at this system:
Pick any pair of numbers for and . The expression then has exactly one value. That one value cannot be both and . So no pair makes both equations true, and the system has no solution. You found that out without a single solving step.
This matches what you know from graphing: a system with no solution is a pair of parallel lines, which never cross. The table shows this pattern and two more that you can spot the same way.
| What you notice | Example | Why | Number of solutions |
|---|---|---|---|
The same expression is set equal to two different numbers | and | For any one pair , the expression has only one value. | None |
One equation is the other with both sides multiplied by the same nonzero number | and | Both equations have exactly the same solutions: every point on one line. | Infinitely many |
Both equations have the form , and the slopes are different | and | Two lines with different slopes cross at exactly one point. | Exactly one |
Worked example
Inspection: find a hidden match
Decide by inspection how many solutions this system has: and .
Compare the left sides. The first left side is exactly twice the second left side.
Multiply both sides of the second equation by 2. Multiplying both sides by the same nonzero number gives an equation with exactly the same solutions.
Now the same expression is set equal to two different numbers. For any one pair of values for x and y, the expression has only one value, so it cannot equal both 10 and 6.
Answer
The system has no solution, because cannot equal both and for the same pair .
Inspection can also hand you a solution. Look at the system and . The first equation says is , so put in place of in the second equation: . Subtract from both sides, which keeps the same solutions, to get . Check: and are both true, so the solution is .
Putting in place of is a substitution. It is allowed because any solution must make the first equation true, and then and are the same number.
The same idea works when a variable equals an expression. If one equation says , then for any solution, and are the same number. So you may replace with in the other equation.
Key concept
Use one equation inside the other
A solution of a system must make both equations true at once. So what one equation tells you about and must also hold in the other.
- Inspection: compare the two equations and ask whether both can be true for the same pair .
- Substitution: when one equation says a variable equals an expression, replace that variable in the other equation with that expression. This leaves one equation with one variable. Solve it by doing the same valid operation to both sides, never dividing by zero.
Always check your pair in both original equations.
Worked example
Substitution when a variable is already alone
Solve the system and .
The first equation says that, for any solution, y and 2x + 1 are the same number. So replace y in the second equation with that expression, written in parentheses.
The parentheses follow a plus sign, so you can remove them without changing any signs. Then combine the like terms 3x and 2x. The new left side equals the old one for every real number x, so the solutions stay the same.
Subtract 1 from both sides. Subtracting the same number from both sides keeps the same solutions.
Divide both sides by 5. Dividing both sides by the same nonzero number keeps the same solutions, and 5 is not zero.
A solution needs both numbers. The first equation must be true for the solution, so put 2 in place of x there to find y.
Check the pair in both original equations, because a solution must make both true. Both statements are true.
Answer
The solution is , because and make both equations true.
Worked example
Substitution when no variable is alone yet
Solve the system and .
First isolate a variable, which means get it alone on one side. Subtract x from both sides of the first equation. Subtracting the same quantity from both sides keeps the same solutions.
Replace y in the other equation with this expression. Keep the parentheses, because the whole expression is being subtracted.
Subtracting the group means subtracting 5 and subtracting negative x, and subtracting negative x is the same as adding x. Then combine like terms. Each new left side equals the old one for every real number x, so the solutions stay the same.
Add 5 to both sides, then divide both sides by 3. Adding the same number to both sides keeps the same solutions, and so does dividing by 3, because 3 is not zero.
Put this value in place of x in the equation from the first step to find y. Write 5 as fifteen thirds so the two fractions have the same denominator.
Check the pair in both original equations. Both statements are true.
Answer
The solution is . These values are exact; a graph would only show the lines crossing near .
Sometimes the variable disappears after you substitute into the other equation. What is left still tells you the answer.
Take and . Subtract from both sides of the first equation: . Substitute into the second: . Distribute to get , which simplifies to .
The equation is an identity: an equation that is true for every permitted value of its variable, which here is every real number . So every gives a solution, with . The system has infinitely many solutions: all the points on the line . For example, gives , and makes both equations true: and .
Now take and . Substitute the first into the second: . Subtract from both sides: , which is false.
The equation is a contradiction: an equation that is true for no value of its variable. So the system has no solution.
Inspection agrees with both results. The first system matches the second row of the table. In this second system, the lines have the same slope but different -intercepts, so they are parallel and never cross.
Takeaway: A solution must make both equations true, so you can use one equation inside the other. Inspect first: the way the system is built may show that it has no solution, exactly one, or infinitely many. Then substitute to find the exact pair: get one variable alone, replace it in the other equation, and solve by doing the same valid operation to both sides, never dividing by zero. Find the second variable, then check the pair in both original equations. If the variable disappears after you substitute into the other equation, an identity means infinitely many solutions and a contradiction means none.
Next, you will learn another algebraic method for solving systems, called elimination.