Algebra

Solving systems of linear equations

A system of equations is a set of two or more equations with the same variables that you solve simultaneously. The solution is the specific set of values for the variables that makes every equation in the system true at the same time.

Formula

\begin{cases} a_1x + b_1y = c_1 \\ a_2x + b_2y = c_2 \end{cases}

a1, b1, a2, and b2 are variable coefficients; c1 and c2 are constants; x and y are the unknown variables.

Calculator

How to Solve Using Elimination and Substitution

The substitution method works best when one variable is already isolated or has a coefficient of 1. Rearrange one equation to express a variable in terms of the other, such as x = 1 + y. Then replace that variable in the second equation to create a single-variable equation you can solve directly.

The elimination method is ideal when equations are written in standard form (ax + by = c). Multiply one or both equations by constants so that the coefficients of one variable are opposites, like 3y and -3y. Adding the two equations together eliminates that variable, allowing you to solve for the remaining one.

Once you find the value of the first variable, substitute it back into either original equation to find the value of the second variable. Write your final answer as an ordered pair (x, y).

Where Systems of Equations Are Used

In school, systems of equations are central to middle school algebra, GCSE maths, high school Algebra 1, and coordinate geometry. They are frequently used to find the exact point where two straight lines intersect on a graph.

In everyday life and business, systems help determine break-even points between production costs and sales revenue. They also model supply and demand curves in economics to find market equilibrium prices.

You also use them in mixture and rate problems, such as finding the separate speeds of an airplane and the wind, or calculating the exact quantities needed to blend two chemical solutions.

Common Mistakes to Avoid

A common error is forgetting to multiply every term when scaling an equation for elimination. If you multiply the left side by 2, you must also multiply the constant on the right side of the equals sign.

Sign errors during subtraction or distribution cause most wrong answers. When subtracting an entire equation, remember to distribute the minus sign to every single term inside, not just the first one.

Another mistake is stopping too early. Finding the value of x is only half the problem; you must always substitute it back to solve for y as well.

Quick Checks and Special Cases

To verify your answer, plug your values for x and y into both original equations. If the numbers satisfy only one equation but not the other, your solution is incorrect.

Watch out for special cases. If your variables cancel out completely and leave a true statement like 0 = 0, the lines are identical and there are infinitely many solutions.

If the variables cancel out and leave a false statement like 0 = 5, the lines are parallel and never meet, meaning the system has no solution.

Worked examples

Example 1Solve the system of equations: 2 x + 3 y = 12 and x - y = 1.

  1. Multiply the equations so that y disappears when you add them

    1 \cdot (2 x + 3 y = 12), \quad 3 \cdot (x - y = 1)
  2. Add the equations and solve for x

    5x = 15 \;\Rightarrow\; x = 3
  3. Substitute x into the first equation and solve for y

    3 y + 6 = 12 \;\Rightarrow\; y = 2
  4. Check by substituting the result into the equation

    1 \cdot 3 + (-1) \cdot 2 = 1
Answerx = 3, y = 2Verified by computation

Example 2Solve the system of equations: 3 x + 2 y = 16 and x - 2 y = 0.

  1. Multiply the equations so that y disappears when you add them

    1 \cdot (3 x + 2 y = 16), \quad 1 \cdot (x - 2 y = 0)
  2. Add the equations and solve for x

    4x = 16 \;\Rightarrow\; x = 4
  3. Substitute x into the first equation and solve for y

    2 y + 12 = 16 \;\Rightarrow\; y = 2
  4. Check by substituting the result into the equation

    1 \cdot 4 + (-2) \cdot 2 = 0
Answerx = 4, y = 2Verified by computation

Example 3Solve the system of equations: 5 x + 4 y = 6 and 2 x + 3 y = 1.

  1. Multiply the equations so that y disappears when you add them

    3 \cdot (5 x + 4 y = 6), \quad -4 \cdot (2 x + 3 y = 1)
  2. Add the equations and solve for x

    7x = 14 \;\Rightarrow\; x = 2
  3. Substitute x into the first equation and solve for y

    4 y + 10 = 6 \;\Rightarrow\; y = -1
  4. Check by substituting the result into the equation

    2 \cdot 2 + (3) \cdot -1 = 1
Answerx = 2, y = -1Verified by computation

Questions and answers

What is the difference between elimination and substitution?

Substitution isolates one variable and plugs it into the other equation, which is easiest when a variable has a coefficient of 1. Elimination adds or subtracts equations to cancel out a variable, which is faster when equations are in standard form.

Can a system of equations have no solution?

Yes. When two linear equations represent parallel lines with the same slope but different intercepts, they never intersect, resulting in zero solutions.

What does infinitely many solutions mean?

It means both equations represent the exact same line on a graph. Every single point on that line satisfies both equations simultaneously.

How do you solve a system of equations by graphing?

Graph both lines on the same coordinate plane. The point (x, y) where the two lines cross each other is the solution to the system.

Solve your own problem

Different numbers or a harder variant? Type it in and get the steps.

Enter solves, Shift+Enter adds a line