Solving a system of equations
A system of equations is a set of two or more algebraic equations that are meant to be solved together. The equations are connected because they share the same variables. A common example is a system with two equations and two variables, and . That’s what this chapter focuses on.
Identifying a system of equations
Solving a system of equations takes a specific method, so it helps to confirm that the problem really is a system before you start.
There are two main clues:
- The problem includes two different equations.
- Both equations use the same two variables.
Examples of problems involving systems of equations are as follows:
Solve the following system of equations for and .
Here’s another example:
What is the sum of the solutions to the following system of equations? (The solutions refer to the values of and .)
Solving a system of equations - substitution method
One way to solve a system is to use one equation to rewrite one variable in terms of the other, and then substitute that expression into the second equation. This is called the substitution method.
In the steps below, we will reference the following example system of equations:
Step 1: Solve the first equation for one of the variables
Start with one equation (here, the first one) and solve for one variable. In this example, solve for :
Step 2: Substitute new expression for in second equation
Now replace in the second equation with the expression you found. This creates an equation with only one variable.
Step 3: Solve for in the second equation
Solve the new equation for . This gives you one of the two solution values.
Step 4: Solve for in either equation
Now substitute into either original equation to find . Both equations should give the same value for .
First equation:
Second equation:
Our final solutions to the system of equations are:
Solving a system of equations - elimination method
The elimination method combines the two equations to eliminate one variable. To do this, you adjust the equations so that one variable has the same coefficient in both equations but opposite signs. Then, when you add the equations, that variable cancels out.
Step 1: Pick the variable to eliminate
Choose a variable that will be easy to eliminate. In this example, is a good choice because both equations contain .
Let’s rewrite the second equation so both equations are in a similar form.
Original equations:
Rearranged equations:
Looking at our equations this way, you can see that both equations contain .
Step 2: Multiply by a factor (if necessary)
To eliminate by addition, one equation needs and the other needs . In this example, multiply the entire second equation by .
Rearranged equations:
Modified equations:
Now the terms will cancel when you add the equations.
Step 3: Add equations
Add the two equations and combine like terms. This leaves you with one equation in one variable.
Now you have the exact value of .
Step 4: Solve for in an original equation
Substitute into either original equation to find .
So, our final solutions to the system equations are:
Other solutions to a system of equations
Sometimes a system of equations does not have exactly one solution. A system can have:
- infinitely many solutions, or
- no real solutions.
You can recognize both situations by what happens when you simplify.
Infinite solutions
A system has infinitely many solutions when the two equations represent the same relationship. This happens when:
- the equations are identical, or
- one equation is a constant multiple of the other.
Below are a few examples of systems with infinite solutions:
Example:
Another example:
You can often predict infinite solutions before fully solving, but you can also confirm it during solving. When you solve these special systems, you end up with a true statement.
Let’s solve the first example using substitution by solving for :
The statement is always true, no matter what values and take. That’s why the system has infinitely many solutions.
No real solutions
A system has no real solutions when simplifying leads to a false statement, such as . Sometimes you only discover this at the end of solving. Other times, elimination removes both variables at once and reveals the contradiction.
The following is an example of a system with no real solutions:
Using elimination, multiply the top equation by . Then add the equations. The simplification becomes:
The statement is always false, regardless of the values of and . Therefore, this system has no real solutions.