How to Write a College Essay: Steps, Prompts, Format and Examples
How to write a college essay: the 2026-27 Common App prompts and 650-word limit, a 7-step process, format rules and an annotated sample essay.
Read MoreIf you are learning how to solve systems of linear equations, there are five standard methods: graphing, substitution, elimination, Cramer's rule and Gaussian elimination with a matrix. All five give the same answer. They differ in how much arithmetic they take and how well they scale past two variables.
This guide works one example with each method, then covers the special cases with no solution or infinitely many solutions, a three-variable system, a word problem and practice problems with answers. Every answer below has been checked by substituting it back into the original equations, which is also the last step of how to solve systems of linear equations by any method.
A system of linear equations is two or more linear equations that share the same variables. A solution is a set of values, one for each variable, that makes every equation true at the same time. With two variables, each equation is a straight line, and the solution is the point where the lines cross.
Two lines can meet in only three ways, so every two-variable system has one of three outcomes:
| Lines | Number of solutions | Name |
|---|---|---|
| Cross at one point | Exactly one | Consistent and independent |
| Parallel, never meet | None | Inconsistent |
| Same line | Infinitely many | Consistent and dependent |
The same three outcomes apply to larger systems, where each equation is a plane or a higher-dimensional flat surface. OpenStax College Algebra 2e uses these same labels in its chapter on systems.
Graphing shows what a solution means, so it is the usual first method in algebra courses. Use it when both equations are easy to put in slope-intercept form and the answer is likely to be whole numbers.
Example. Solve y = 2x − 1 and y = −x + 5.
The solution is x = 2, y = 3. The weakness of graphing is precision: if the lines cross at (1.4, 2.7), you can only estimate it from a sketch. Use an algebraic method whenever exact values matter.
Substitution works best when one equation already has a variable with a coefficient of 1 or −1, so you can isolate it without fractions.
Example. Solve 2x + y = 7 and x − 3y = −7.
The most common error is dropping the parentheses in step 2. Writing x − 3 · 7 − 2x instead of distributing the −3 across both terms gives a wrong value for every variable after it.
Elimination, also called the addition method, adds or subtracts the equations so one variable cancels. It is usually the fastest by hand when no coefficient is 1.
Example. Solve 3x + 2y = 16 and 5x − 4y = 12.
When you multiply an equation, multiply every term, including the constant on the right. Forgetting the constant is the elimination version of the dropped-parentheses mistake.
Cramer's rule solves a square system with determinants. For a two-variable system ax + by = e and cx + dy = f, compute three determinants:
Then x = Dx / D and y = Dy / D, as long as D is not zero.
Example. Solve 2x + 3y = 13 and 4x − y = 5.
Cramer's rule is tidy for 2 by 2 and 3 by 3 systems and gives a formula you can apply without thinking about which variable to eliminate. It becomes slow for larger systems, and if D = 0 it cannot be used: the system has no solution or infinitely many, and you need another method to tell which.
With three unknowns, you need three equations. The plan is to eliminate the same variable twice, which leaves a two-variable system you already know how to solve.
Example. Solve this system of equations:
The solution is the ordered triple (1, 2, 3). Geometrically, it is the single point where three planes meet.
Gaussian elimination is elimination written in matrix form. You drop the variable names, keep only the coefficients and constants, and apply three row operations until the matrix is in row echelon form (a staircase of zeros below the diagonal). It is the method computers use and the one that scales to any number of variables.
The three allowed row operations are: swap two rows, multiply a row by a nonzero number, and add a multiple of one row to another. None of them changes the solution.
Example. The same three-variable system as an augmented matrix, with each row written as [x, y, z | constant]:
| Step | Operation | Row 1 | Row 2 | Row 3 |
|---|---|---|---|---|
| Start | — | [1, 1, 1 | 6] | [2, −1, 1 | 3] | [1, 2, −1 | 2] |
| 1 | R2 → R2 − 2R1; R3 → R3 − R1 | [1, 1, 1 | 6] | [0, −3, −1 | −9] | [0, 1, −2 | −4] |
| 2 | Swap R2 and R3 | [1, 1, 1 | 6] | [0, 1, −2 | −4] | [0, −3, −1 | −9] |
| 3 | R3 → R3 + 3R2 | [1, 1, 1 | 6] | [0, 1, −2 | −4] | [0, 0, −7 | −21] |
Now read from the bottom up, which is called back substitution. Row 3 says −7z = −21, so z = 3. Row 2 says y − 2z = −4, so y = 2. Row 1 says x + y + z = 6, so x = 1. The answer matches the elimination result above.
Carrying on until every leading entry is 1 with zeros above and below gives reduced row echelon form, which is Gauss-Jordan elimination. A third matrix route writes the system as AX = B and computes X = A⁻¹B; it works whenever A is invertible, but computing the inverse by hand takes longer than row reduction. In software such as MATLAB, the backslash operator A\b solves the system directly, which is useful in the engineering labs covered by our MATLAB assignment help.
Every method signals the special cases in its own way. Learn the signs so you do not mistake them for arithmetic errors.
Solve 2x + 4y = 8 and x + 2y = 3. Multiply the second equation by 2: 2x + 4y = 6. Subtract it from the first: 0 = 2. Both variables vanished and left a false statement, so there is no solution. The lines have the same slope, −1/2, and different intercepts, so they are parallel.
Solve x + 2y = 4 and 3x + 6y = 12. The second equation is exactly 3 times the first. Eliminating gives 0 = 0, which is always true. Every point on the line x + 2y = 4 works, so there are infinitely many solutions. You write them as (4 − 2t, t), where t is any real number.
| Method | No solution looks like | Infinitely many looks like |
|---|---|---|
| Graphing | Parallel lines | The same line drawn twice |
| Substitution or elimination | A false statement such as 0 = 2 | A true statement such as 0 = 0 |
| Cramer's rule | D = 0 and at least one of Dx, Dy is not zero | D, Dx and Dy all equal 0 (confirm with elimination) |
| Gaussian elimination | A row [0, 0, 0 | c] with c not zero | A row of all zeros and fewer pivots than variables |
Word problems are where students most often know how to solve a system of equations but not how to build one. Name the unknowns, write one equation per fact, then solve.
Problem. A school play sold 200 tickets. Adult tickets cost 12 dollars and student tickets cost 7 dollars. Ticket sales brought in 2,050 dollars. How many of each type were sold?
The school sold 130 adult tickets and 70 student tickets. The same two-equation pattern, one for quantity and one for value, fits mixture, investment and coin problems.
| Method | Best when | Drawback |
|---|---|---|
| Graphing | You need a picture or an estimate | Imprecise for fractional answers |
| Substitution | A variable has a coefficient of 1 or −1 | Fractions pile up otherwise |
| Elimination | Coefficients are integers with an easy common multiple | Gets long beyond three variables |
| Cramer's rule | A 2 by 2 or 3 by 3 system and you want a formula | Fails when D = 0; slow for large systems |
| Gaussian elimination | Three or more variables, or any system solved by software | More bookkeeping by hand |
On a timed test, scan the coefficients before you start. A lone x or y points to substitution; matching or opposite coefficients point to elimination. Our tips on how to prepare for a math test cover building that habit.
Instructors who grade a system of equations see the same handful of slips again and again. Most of them are bookkeeping, not misunderstanding.
If you remember one thing about how to solve systems of linear equations, make it this: the method is a choice, but the check is not. Any of the five methods above is correct; the answer is right only when it satisfies every equation.
Answers.
Once these feel routine, the same ideas return in quadratic systems and in calculus; see our guides to solving quadratic equations and calculus concepts. If a problem set still stalls, a tutor from our math homework help service can work through it with you step by step.
Most algebra courses teach three methods first: graphing, substitution and elimination. Graphing finds where the lines cross, substitution replaces one variable with an expression from the other equation, and elimination adds or subtracts equations to cancel a variable. Later courses add matrix methods such as Cramer's rule and Gaussian elimination for larger systems.
When you solve it algebraically, both variables cancel and you are left with a false statement such as 0 = 5. On a graph, the lines are parallel: they have the same slope but different y-intercepts. In matrix form, a row reduces to all zeros on the left and a nonzero number on the right.
Both variables cancel and you are left with a true statement such as 0 = 0. That happens when one equation is a multiple of the other, so both describe the same line. Write the answer in terms of a parameter, for example (4 minus 2t, t), instead of a single point.
It depends on the coefficients. If a variable already has a coefficient of 1, substitution is usually quickest. If the coefficients of one variable match or are opposites, elimination is faster. For three or more variables, Gaussian elimination on an augmented matrix is the most organized. Graphing is the slowest when you need exact answers.
No. Two different straight lines can cross at most once, so a linear system has exactly one solution, none, or infinitely many. If two solutions exist, every point on the line through them is also a solution. Systems that include a curve, such as a line and a parabola, can have two solutions, but those are not linear systems.
Cramer's rule needs a square system, meaning the same number of equations as unknowns, and a coefficient determinant that is not zero. If the determinant is zero, the system has no solution or infinitely many, and Cramer's rule cannot tell you which. Switch to elimination or row reduction to find out.
Substitute your values into every original equation, not the rearranged versions you made along the way. If each equation comes out true, the answer is correct. Checking only one equation is a common mistake, because an arithmetic slip can produce values that satisfy one equation but not the other.
Fast, secure, and handled by vetted experts.
How to write a college essay: the 2026-27 Common App prompts and 650-word limit, a 7-step process, format rules and an annotated sample essay.
Read More
Learn how to solve quadratic equations with this comprehensive guide. Master factoring, the quadratic formula, and graphing with real-world examples and tips.
Read More
Learn how to balance chemical equations with the inspection method, an ordered strategy, the algebraic method and 8 worked examples with atom counts.
Read More