Skip to main content
Mathovia

Algebra / Systems of Equations

Systems of Linear Equations

A system of equations is just two (or more) conditions that have to be true at the same time. Finding the values that satisfy all of them at once is one of the most useful skills in algebra, and it starts with understanding what a solution actually is.

Practice Problems
Written by
MPhil in Mathematics, Founder of Mathovia
Published

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication. How we check our work

Suppose a concert sells adult tickets and child tickets, and you know two facts: 200 tickets were sold, and the box office took in . Neither fact alone tells you how many of each were sold. Together they pin the answer down exactly. That is the idea behind a system of linear equations: several conditions that must all be true at once. This lesson covers what a system is, what counts as a solution, and how to tell whether a system has one solution, none, or infinitely many before you do any solving.

A system of two linear equations: a1 x + b1 y = c1 and a2 x + b2 y = c2
The general form of a system of two linear equations

What Is a System of Equations?

A system of equations is a group of equations that share the same variables and are meant to be solved together. When every equation is linear, it is a system of linear equations. In general form, a system of two equations in two variables looks like this:

The curly brace is a reminder that the equations belong together. Here is a concrete example:

You’ll also hear these called simultaneous equations, especially in British textbooks. The name is a good description: the equations must hold simultaneously, for the same and the same .

What Is the Solution to a System of Equations?

A solution of a system is an ordered pair that makes every equation true. Making one equation true is not enough. Plenty of pairs satisfy , such as , and , but only one of them also satisfies .

To check a pair, substitute it into each equation in turn:

The system x + y = 5 and 2x − y = 4 next to a check of the pair (3, 2): 3 + 2 = 5 is true and 2(3) − 2 = 4 is true, so (3, 2) is the solution
A pair is a solution only if it passes the check in every equation

Try as well. It passes the first check () but fails the second (, not ), so it is not a solution. When a question says “if is the solution of the system of equations, find…”, it means the single pair that passes every check.

What a Solution Looks Like on a Graph

Every linear equation in two variables graphs as a line, and every point on that line is a pair that satisfies the equation. A solution has to lie on both lines, so it is the point where they cross:

The lines x + y = 5 and 2x − y = 4 drawn on one coordinate plane, crossing at the point (3, 2)
The solution (3, 2) is the one point the two lines share

That picture explains everything else about how many solutions a system can have.

How Many Solutions Can a System Have?

Two lines in a plane can relate to each other in only three ways, so a linear system has only three possible outcomes:

Three small graphs: two lines crossing at one point for one solution, two parallel lines for no solution, and two identical lines on top of each other for infinitely many solutions
Cross once, never meet, or overlap completely: there is no fourth option
OutcomeLinesNameWhat the algebra does
exactly one solutioncross at one pointconsistent and independentgives values for and
no solutionparallelinconsistentends in a false statement such as
infinitely many solutionsthe same lineconsistent and dependentends in a true statement such as

A linear system can never have exactly two or three solutions. If two different lines share two points, they are the same line, and then they share every point. The no-solution case is the one covered in more depth in the parallel lines lesson.

How to Tell the Number of Solutions Without Solving

Method 1: Compare Slopes and Intercepts

Rewrite each equation in slope-intercept form, , and compare:

SlopesInterceptsNumber of solutions
differentanythingone
the samedifferentnone
the samethe sameinfinitely many

For example, and have the same slope but different intercepts, so they are parallel and the system has no solution.

Method 2: Compare Coefficient Ratios

When both equations are in standard form, and , compare the ratios of matching coefficients:

ConditionNumber of solutions
one
none
infinitely many

Take with . All three ratios are : the second equation is just the first one doubled, so the system has infinitely many solutions. Change the second equation to and the last ratio becomes , so now there is no solution.

Three Ways to Solve a System

Once you know a system has exactly one solution, there are three standard ways to find it. Each has its own lesson in this chapter:

MethodIdeaBest when
Graphingdraw both lines and read off where they crossyou want a picture, or the answer is a whole number
Substitutionsolve one equation for a variable and plug it into the otherone variable is already alone, as in
Eliminationadd or subtract the equations to cancel a variableboth equations are in standard form

Larger systems, with three or more variables, are usually handled with elimination or with matrices. To check your working with any of these methods, the system of equations calculator shows every step.

Writing a System With a Given Solution

Teachers often turn the question around: write a system of equations whose solution is . The trick is to choose the left-hand sides freely, then let the point decide the right-hand sides.

Step 1 — pick any two left-hand sides that are not multiples of each other:

Step 2 — substitute , to find each right-hand side:

Step 3 — write the system:

Because the two left-hand sides have different slopes, the lines cross exactly once, at . Had you picked and , the lines would be parallel or identical, and would not be the only solution.

Worked Example

Gym A charges a joining fee plus a month. Gym B charges to join plus a month. After how many months do the two gyms cost the same, and which is cheaper after that?

Step 1 — define the variables: let be the number of months and the total cost in dollars.

Step 2 — write one equation per gym:

Step 3 — check the number of solutions: the slopes and are different, so there is exactly one solution.

Step 4 — both expressions equal , so set them equal to each other:

Step 5 — find from either equation:

Step 6 — check in the other equation:

After 6 months both gyms have cost . Gym B is cheaper before that point, and Gym A is cheaper after it, because its monthly fee is lower.

Total cost lines for two gyms: Gym A y = 25x + 40 and Gym B y = 30x + 10 cross at (6, 190), and after six months Gym A's line stays lower
The crossing point is the break-even month; after it, the line with the smaller slope wins

Step 4 is a small preview of the substitution method. When both equations are already solved for , you can always set them equal.

Common Mistakes to Avoid

  • Checking only one equation. A pair that satisfies one equation is a point on one line. It must satisfy every equation to be a solution.
  • Swapping and . The pair means , . The pair is a different point and fails the second equation above.
  • Thinking “no solution” means you made a mistake. If the algebra ends in a false statement like , the lines are parallel and the correct answer is “no solution”.
  • Answering ”” with ””. A true statement with no variable left means infinitely many solutions, not a solution of zero.
  • Comparing slopes before rearranging. In the slope is , not . Solve for first.

Practice Problems

Try each one before opening the answer.

Problem 1. Is a solution of the system and ?

Show answer

Step 1 — check the first equation:

Step 2 — check the second equation:

Answer: yes, it satisfies both equations

Problem 2. Is a solution of the system and ?

Show answer

Step 1 — check the first equation:

Step 2 — check the second equation:

Answer: no, it fails the second equation

Problem 3. How many solutions does the system and have?

Show answer

Step 1 — compare slopes and intercepts: both slopes are , and the intercepts and are different.

Step 2 — same slope, different intercept means parallel lines.

Answer: no solution

Problem 4. How many solutions does the system and have?

Show answer

Step 1 — compare the ratios:

Step 2 — all three ratios are equal, so the first equation is the second one doubled. They describe the same line.

Answer: infinitely many solutions

Problem 5. Solve the system and .

Show answer

Step 1 — both equal , so set them equal:

Step 2 — substitute back:

Answer:

Problem 6. Write a system of two linear equations whose only solution is , different from the one in the lesson.

Show answer

Step 1 — choose two left-hand sides with different slopes, for example and .

Step 2 — evaluate them at :

Answer: and (many other answers are possible)

You now know what a solution is and how many to expect. The next step is finding it reliably, and the first method most people learn is solving by substitution, which builds directly on Problem 5.

Frequently Asked Questions

What is a system of linear equations?+

It is a set of two or more linear equations that share the same variables, such as and . A solution is an ordered pair that makes every equation in the set true at the same time. In the UK the same idea is often called simultaneous equations.

How do you know if an ordered pair is a solution of a system?+

Substitute the -value and -value into every equation. If each one becomes a true statement, the pair is a solution. If even one equation fails, it is not. For and , the pair works because and .

How many solutions can a system of two linear equations have?+

Exactly one, none, or infinitely many. Two different lines either cross once, are parallel and never meet, or are the same line and share every point. A linear system can never have exactly two or three solutions.

How can you tell the number of solutions without solving?+

Write both equations in slope-intercept form. Different slopes give one solution. The same slope with different -intercepts gives no solution. The same slope and the same intercept give infinitely many solutions.

What do consistent, inconsistent and dependent mean?+

A consistent system has at least one solution. An inconsistent system has none. A dependent system has infinitely many solutions because its equations describe the same line. A system with exactly one solution is called consistent and independent.

Related lessons

Calculators for this topic