Solving a system of linear equations means finding the values of variables that make all equations true at the same time. The most common methods are graphing, substitution, and elimination. For a step-by-step approach, start with two equations in two variables. Choose either substitution or elimination. Substitution involves solving one equation for one variable and plugging it into the other. Elimination involves adding or subtracting the equations to cancel one variable. Both methods lead to the same solution if it exists.
What is a linear system of equations?
A linear system is a set of two or more linear equations that share the same variables. For example, y = 2x + 1 and y = -x + 4 form a system. The solution is the point where the lines intersect. If the lines are parallel, there is no solution. If they are the same line, there are infinitely many solutions. In most real-world problems, you have two equations and two unknowns, but larger systems exist.
How to solve linear systems using substitution
Substitution is best when one variable is already isolated or easy to isolate. Follow these steps:
- Step 1: Solve one equation for one variable. For example, in y = 2x + 1, y is already solved.
- Step 2: Substitute that expression into the other equation. Replace y in the second equation with 2x + 1.
- Step 3: Solve the resulting equation for the remaining variable. This will give you a number.
- Step 4: Plug that number back into either original equation to find the other variable.
- Step 5: Check your answer in both original equations.
Here is an example. Solve: y = 2x + 1 and y = -x + 4. Substitute: 2x + 1 = -x + 4. Solve: 2x + x = 4 – 1 → 3x = 3 → x = 1. Then y = 2(1) + 1 = 3. The solution is (1, 3).
How to solve linear systems using elimination
Elimination works well when both equations are in standard form (Ax + By = C). Steps:
- Step 1: Write both equations in standard form if needed.
- Step 2: Multiply one or both equations by a constant so that the coefficients of one variable are opposites.
- Step 3: Add the two equations together. One variable will cancel out.
- Step 4: Solve the resulting one-variable equation.
- Step 5: Substitute that value back into either original equation to find the other variable.
- Step 6: Check your answer.
Example: Solve 2x + 3y = 7 and 4x – 3y = 5. Notice the y coefficients are +3 and -3. Adding gives 6x = 12, so x = 2. Then 2(2) + 3y = 7 → 4 + 3y = 7 → 3y = 3 → y = 1. Solution: (2, 1).
How to choose between substitution and elimination
There is no single right method. Substitution is usually faster when one variable has a coefficient of 1 or -1. Elimination is often easier when both equations have variables with matching or opposite coefficients. If a system has fractions or decimals, elimination may feel cleaner because you can multiply away denominators. Both methods are equally valid and give the same answer when done correctly.
What to do when there is no solution or infinite solutions
Not every linear system has one unique solution. If during solving you get a false statement like 0 = 5, the lines are parallel and there is no solution. If you get a true statement like 0 = 0, the equations represent the same line, and there are infinitely many solutions. In the infinite case, you can express the solution set in parametric form or simply state that every point on the line satisfies the system.
Solving systems with three variables
For three equations with three variables, the same principles apply, but you need more steps. Use elimination to reduce the system to two equations in two variables. Then solve that smaller system. Finally, back-substitute to find the third variable. This process is called Gaussian elimination when performed systematically. It works for any number of equations as long as the number of variables matches.
Checking your answer
Always verify by plugging the values into every original equation. If all equations hold true, the solution is correct. If you made an arithmetic mistake, your check will catch it. This step is simple and avoids wasted time on wrong answers.
Common mistakes to avoid
The most frequent errors are sign errors when subtracting, forgetting to distribute when substituting, and dropping minus signs. When using elimination, adding instead of subtracting when intended can also cause errors. Write each step clearly. Slow down. Double-check your work, especially when multiplying equations.
Frequently Asked Questions
What is the easiest method to solve a linear system?
For most people, elimination is straightforward once the equations are aligned, but substitution can be easier when one variable is already isolated. Choose based on the given equations.
Can you solve a linear system with a calculator?
Yes, many graphing calculators and online tools can solve systems quickly, but understanding the steps helps you catch errors and apply the concept to word problems.
How do you solve a system with fractions?
Multiply every term by the common denominator to clear fractions, then use substitution or elimination. This avoids messy arithmetic.
What does it mean if the system has no solution?
It means the lines are parallel and never intersect. There is no pair of x and y that satisfies both equations simultaneously.

