Mathematics

How to Solve Systems of Equations: Substitution, Elimination & Graphing

What Is a System of Equations?

A system of equations is a set of two or more equations with the same variables. The solution to the system is the set of values that satisfies ALL the equations simultaneously. For a system of two linear equations in two variables (x and y), the solution is the point (x, y) where the two lines intersect on a graph.

For example, the system x + y = 10 and x - y = 4 has the solution x = 7, y = 3, because 7 + 3 = 10 and 7 - 3 = 4. Both equations are satisfied by the same pair of values. Systems of equations arise constantly in real-world problems: mixing solutions in chemistry, finding break-even points in business, balancing forces in physics, and optimizing resources in engineering.

A system of two linear equations can have exactly one solution (the lines intersect at one point), no solution (the lines are parallel — they have the same slope but different y-intercepts), or infinitely many solutions (the lines are identical — the equations are multiples of each other). Knowing which case you are dealing with helps you choose the right approach and interpret your results.

Method 1: Solving by Graphing

The graphing method involves plotting both equations on the same coordinate plane and identifying the point of intersection. To graph each equation, convert it to slope-intercept form (y = mx + b), plot the y-intercept, use the slope to find additional points, and draw the line.

Example: Solve y = 2x + 1 and y = -x + 7 by graphing. The first line has slope 2 and y-intercept 1. The second has slope -1 and y-intercept 7. Plotting both, they intersect at (2, 5). Check: 5 = 2(2) + 1 = 5 ✓, and 5 = -(2) + 7 = 5 ✓.

The graphing method is excellent for visualizing the problem and understanding what a solution means geometrically. However, it has a major limitation: if the solution involves non-integer values (like x = 1/3, y = 2/7), reading exact coordinates from a graph is difficult. For precise answers, the algebraic methods (substitution and elimination) are more reliable. In practice, graphing is best used as a check or when a problem explicitly asks for it.

Method 2: Substitution

The substitution method works by solving one equation for one variable, then substituting that expression into the other equation. This reduces the system to a single equation with one variable, which you can solve directly.

Step-by-step example: Solve the system 2x + y = 8 and 3x - 2y = 1. Step 1: Solve the first equation for y: y = 8 - 2x. Step 2: Substitute into the second equation: 3x - 2(8 - 2x) = 1. Step 3: Simplify and solve: 3x - 16 + 4x = 1, so 7x = 17, and x = 17/7. Step 4: Substitute back to find y: y = 8 - 2(17/7) = 56/7 - 34/7 = 22/7. Solution: (17/7, 22/7).

Substitution works best when one equation is already solved for a variable (like y = 3x + 2) or when a variable has a coefficient of 1 or -1, making it easy to isolate. If both equations have variables with coefficients other than 1, substitution can lead to messy fractions. In that case, elimination is often cleaner.

Method 3: Elimination (Addition/Subtraction)

The elimination method works by adding or subtracting the equations to eliminate one variable. If the coefficients of one variable are opposites (like 3y and -3y), simply add the equations. If not, multiply one or both equations by constants to create opposite coefficients.

Example: Solve 3x + 2y = 16 and 5x - 2y = 8. Notice that the y-coefficients are already opposites (2y and -2y). Add the equations: (3x + 2y) + (5x - 2y) = 16 + 8, giving 8x = 24, so x = 3. Substitute back: 3(3) + 2y = 16, so 2y = 7, and y = 3.5. Solution: (3, 3.5).

When coefficients are not conveniently opposite, multiply to make them so. Solve 2x + 3y = 12 and 5x + 4y = 23. Multiply the first equation by 5 and the second by -2: 10x + 15y = 60 and -10x - 8y = -46. Add: 7y = 14, so y = 2. Substitute: 2x + 6 = 12, so x = 3. Solution: (3, 2).

Elimination is generally the fastest method for systems where both equations are in standard form (Ax + By = C) and the coefficients are integers. It avoids the fractions that often appear in substitution. Many experienced students develop an instinct for which method will be cleanest for a given system.

Special Cases: No Solution and Infinite Solutions

If the elimination process eliminates both variables and produces a false statement like 0 = 5, the system has no solution. This means the lines are parallel. Example: x + y = 3 and 2x + 2y = 10. Multiply the first by -2: -2x - 2y = -6. Add to the second: 0 = 4. This is false, so there is no solution. You can verify: both equations have slope -1, but different y-intercepts (3 and 5), confirming they are parallel.

If the process produces a true statement like 0 = 0, the system has infinitely many solutions. The two equations represent the same line. Example: x + y = 3 and 2x + 2y = 6. Multiply the first by -2: -2x - 2y = -6. Add to the second: 0 = 0. The second equation is just double the first, so every point on the line x + y = 3 is a solution.

On exams, always interpret your result. If you get a unique solution (x, y), verify it in BOTH original equations. If you get a contradiction, state 'no solution' and explain the lines are parallel. If you get an identity, state 'infinitely many solutions' and express one variable in terms of the other (e.g., 'all points (x, 3-x)').

Systems of Three Equations

Systems with three variables (x, y, z) require three equations and involve the same methods applied in stages. The strategy is to use elimination or substitution to reduce the system from three equations in three variables to two equations in two variables, then solve that two-variable system using the methods above.

Example: Solve x + y + z = 6, 2x - y + z = 3, and x + 2y - z = 5. Add the first and third equations to eliminate z: 2x + 3y = 11. Add the first and second equations: 3x + 2z = 9 — wait, this still has z. Instead, add the second and third: 3x + y = 8. Now solve the two-variable system: 2x + 3y = 11 and 3x + y = 8. From the second: y = 8 - 3x. Substitute: 2x + 3(8 - 3x) = 11, so 2x + 24 - 9x = 11, giving -7x = -13, x = 13/7. Then y = 8 - 39/7 = 17/7. Finally z = 6 - 13/7 - 17/7 = 12/7.

For larger systems, Gaussian elimination (using augmented matrices and row operations) provides a systematic approach. Many calculators and software tools can solve these systems instantly, but understanding the manual methods is essential for exams and for understanding what the tools are doing behind the scenes. If you are stuck on a system of equations, ScanSolve can solve it with complete step-by-step work.

Need Help With Your Homework?

Snap a photo of any homework problem and get a step-by-step solution instantly. ScanSolve handles math, science, history, and more.

Try ScanSolve Free