Solving Systems of Linear Equations with Two Variables

Graphing Solutions of Linear Systems
A system of linear equations (also called simultaneous equations) contains two or more linear equations with the same variables. Each equation represents a line on a coordinate plane, and the solution to the system is the point (or points) where those lines intersect.
Graphing both equations on the same coordinate plane lets you visually identify the solution. Three things can happen:
- Lines intersect at a single point โ one unique solution (consistent and independent system)
- Lines are parallel and never intersect โ no solution (inconsistent system)
- Lines are coincident (the same line) โ infinitely many solutions (consistent and dependent system)
The coordinates of the intersection point satisfy both equations simultaneously. For example, if two lines cross at , then plugging and into both equations will produce true statements.
Substitution and Elimination Methods
These are the two main algebraic approaches for solving a system. Graphing works well for visualizing, but substitution and elimination give you exact answers without needing a perfect graph.
Substitution method: Isolate one variable in one equation, then plug that expression into the other equation.
-
Solve one equation for one variable. For example, given , rewrite as .
-
Substitute that expression into the other equation: .
-
Solve for the remaining variable: .
-
Plug that value back into the expression from step 1: .
Substitution works best when one variable already has a coefficient of 1 or -1, making it easy to isolate.
Elimination method: Manipulate the equations so that adding (or subtracting) them cancels out one variable.
-
Multiply one or both equations by constants so that one variable's coefficients are equal in magnitude but opposite in sign. For example, given and , multiply the second equation by 3: .
-
Add the equations to eliminate that variable: , which simplifies to .
-
Solve for the remaining variable: .
-
Substitute back into either original equation to find the other variable: , so .
Elimination is often faster when both equations are in standard form () and neither variable is easy to isolate.

Consistency of Linear Systems
A system of linear equations falls into one of three categories:
- Consistent and independent: One unique solution (the lines intersect at exactly one point)
- Inconsistent: No solution (the lines are parallel)
- Consistent and dependent: Infinitely many solutions (the lines are identical)
You can classify a system by graphing, but you can also figure it out algebraically during the solving process:
- If you arrive at a unique value for each variable (e.g., ), the system is consistent and independent.
- If you reach a contradiction like , the system is inconsistent. No solution exists.
- If you reach an identity like , the system is consistent and dependent. The equations describe the same line.
Parametric Form for Dependent Systems
When a system is consistent and dependent, it has infinitely many solutions. You can't list them all, so you express the solution set using a parameter, typically .
-
Solve one equation for one variable in terms of the other. For example, if the system reduces to , that single relationship describes every solution.
-
Let the free variable equal . Set .
-
Express the other variable in terms of : .
-
Write the solution set as , where is any real number.
Every real number you substitute for gives a valid solution point on the line.

Real-World Applications of Linear Systems
Many real-world problems translate naturally into systems of two linear equations: ticket pricing, mixture problems, cost analysis, supply and demand, and more.
-
Identify unknowns and assign variables. For example, let = number of adult tickets and = number of child tickets.
-
Write equations from the given information. If 100 total tickets were sold and revenue was $750 with adults at $10 and children at $5: and .
-
Solve the system. Using elimination, multiply the first equation by : . Add to the second equation: , so and .
-
Interpret the solution in context. There were 50 adult tickets and 50 child tickets sold. Always check that your answer makes sense given any constraints (e.g., you can't sell a negative number of tickets).
Advanced Solution Methods
These methods preview techniques you'll use more in later units and in linear algebra:
- Augmented matrix: Represents a linear system in matrix form by combining the coefficient matrix with the constants column. For the system , , the augmented matrix is .
- Gaussian elimination: A systematic process of using row operations to transform the augmented matrix into row echelon form, then back-substituting to find the solution.
- Cramer's rule: Uses determinants to solve a system directly. For a 2ร2 system , each variable equals the ratio of two determinants. This method only works when the system has a unique solution (i.e., the determinant of the coefficient matrix is nonzero).