Chalk−1

Math · College algebra · Concept

Systems of linear equations in two variables

A system of linear equations asks for the values that satisfy every equation at once. With two variables each equation is a line, and the solutions are where the lines meet: one point, no point (parallel lines) or infinitely many points (the same line). Substitution and elimination find them exactly, and a check in both original equations confirms them.

Try one — Chalk checks each line

A concrete case

Two phone plans, one crossing

One phone plan charges $20 a month plus $5 per gigabyte. Another charges $35 a month plus $2 per gigabyte. Which is cheaper depends on the gigabytes g. At 3 GB the first costs $35 and the second $41. At 7 GB the first costs $55 and the second $49. Somewhere between, they cost the same.

Try 5 GB. The first costs 20+5⋅5=$45 and the second costs 35+2⋅5=$45. The pair g=5 and cost c=45 makes both cost equations true at once. It is the solution of the system c=20+5⁢g and c=35+2⁢g.

20+5⁢g=35+2⁢gg=5
Monthly cost of the two plans
Gigabytes gPlan 1, 20+5⁢gPlan 2, 35+2⁢g
33541
44043
54545
65047
75549

The rule

A system and its solution

A system of equations is two or more equations about the same unknowns, to be satisfied together. A linear equation in x and y has the form a⁢x+by=c, with a and b not both 0, and its graph is a line. A solution of the system is an ordered pair (x,y) that makes every equation true.

For 2⁢x+3⁢y=12 and x−y=1, the pair (3,2) works, since 6+6=12 and 3−2=1. The pair (6,0) satisfies the first equation only, so it is not a solution.

{2⁢x+3⁢y=12x−y=1(x,y)=(3,2)

One solution, none or infinitely many

Two lines in a plane meet once, never or everywhere. A system of two linear equations therefore has exactly one solution, no solution or infinitely many. A system with no solution is called inconsistent. One whose equations describe the same line is called dependent, and its solutions are all the points of that line.

What elimination leaves in each case
Elimination leavesThe linesSolutions
A value for each variableCross onceExactly one
A false statement, such as 0=3ParallelNone, an inconsistent system
A true statement, such as 0=0The same lineInfinitely many, a dependent system

Why it works

Why elimination is allowed

Elimination rests on two moves that never change the solutions. Multiplying both sides of an equation by a nonzero number keeps exactly the same solutions, since dividing undoes it. Adding two true equations gives a true equation. If 2⁢x+3⁢y=12 and 3⁢x−3⁢y=3 both hold at a point, then their sum, 5⁢x=15, holds there too.

Keep one original equation and put the sum in place of the other. The new system has the same solutions as the old, because subtracting undoes the addition, so no solution is gained or lost. Choosing the multiple so that a variable cancels leaves one equation in one unknown.

The three cases show up in that equation. If a variable survives, there is one value. If both cancel, what is left is a statement about numbers, such as 0=3 or 0=0. It is false at every point or true at every point.

The method

Elimination, step by step

Write both equations in the form a⁢x+by=c, one under the other, with the x-terms, y-terms and constants lined up. The table works through the first worked example below.

The steps on 2⁢x +3⁢y =12 and x −y =1
StepWhat to doFor this system
1Line up the terms in a⁢x+by=c form2⁢x+3⁢y =12 above x−y =1
2Multiply so one variable’s coefficients are opposites3×(x−y=1) gives 3⁢x−3⁢y =3
3Add the equations5⁢x=15
4Solve for the remaining variablex=3
5Substitute it into an original equation3−y =1, so y=2
6Check the pair in both original equations2⁢(3)+3⁢(2) =12 and 3−2 =1

Substitution, and choosing a method

Solve one equation for one variable, put that expression into the other equation, and solve the one-variable equation that results. Put the expression in parentheses when you substitute. For y=2⁢x−1 and 3⁢x+2⁢y=12, that gives 3⁢x+2⁢(2⁢x−1)=12, so the 2 multiplies both terms.

Use substitution when a variable already stands alone or has coefficient 1 or −1. Use elimination when both equations are in a⁢x+by=c form. Graph the lines first when you want to see which case you are in.

3⁢x+2⁢(2⁢x−1)=12⟹7⁢x=14

Where it breaks

Where it breaks

A graph shows the case but rarely the exact answer. The lines y=x⁢/3 and y=1−x cross at (3⁢/4,1⁢/4), which no graph read by eye gives exactly.

Elimination needs the whole equation multiplied. Tripling only part of x−y=1 gives 3⁢x−3⁢y=1, a different line, and the answer that follows is wrong.

A false statement means no solution, and a true one means infinitely many. x+2⁢y=4 and 2⁢x+4⁢y=8 reduce to 0=0, and every point of the line is a solution, such as (4,0) and (0,2).

These methods are for linear equations. A system with x2 in it, such as y=x2 and y=x+2, has two solutions, (2,4) and (−1,1), which two lines never can. Substitution still works there.

Check your answer

Check your answer

A solution is a pair that must work in every equation at once.

Put the pair into both original equations, not the ones you rearranged. A slip made while rearranging cannot show up in the rearranged equation.

Graph both lines. They should cross where you said, be parallel for no solution, or lie on top of each other for infinitely many.

Compare slopes before you solve. Equal slopes with different intercepts mean no solution, and equal slopes and equal intercepts mean infinitely many.

To have Chalk check the work, write each equation of the system on its own row of a Math box, then each step below. The second equation reads • with “Another equation of the system.” Each step after that is checked against both, and a slip reads ✗ with “Doesn’t follow from the equations above.”

A system with no solution is followed the same way. Its second equation reads •, and the elimination rows, such as 2⁢x+4⁢y=8 and then 0=3, read ✓. Write “no solution” on its own row after them, and check the slopes too. In a box of its own, put each equation over its slope form, such as x+2⁢y=4 over y=−(1⁢/2)⁢x+2. That row reads ✓.

Each pair of the lines x+y=7, x−y=3 and x+3⁢y=10 crosses at one point. Does the system of all three have a solution?

No. The first two meet only at (5,2), and there the third gives 5+6=11, not 10. A solution must make every equation true at once, so all three lines would have to pass through one point. Here each pair crosses somewhere different, and the lines form a triangle. One crossing per pair is not one crossing for all.

More unknowns, and matrices

Three linear equations in three unknowns, such as x+y+z=6, describe planes in space. Three planes can meet in one point, along a line, or not at all, so the same three cases appear. Elimination still works. Remove the same variable from two pairs of equations, which leaves two equations in two unknowns.

Written with only its numbers, the system 2⁢x+3⁢y=12, x−y=1 is the augmented matrix with rows 2, 3, 12 and 1, −1, 1. Row reduction is elimination done on those rows, and it is how computers solve systems with thousands of unknowns. The number 2⋅(−1)−3⋅1=−5, the determinant of the coefficients, is not zero, which is the test for exactly one solution.

Common mistakes

  • Stopping after one variable. x=3 alone is half an answer, because a solution of a two-variable system is a pair. Substitute back to get y=2 and report (3,2).
  • Multiplying only some terms before adding. Tripling x−y=1 gives 3⁢x−3⁢y=3, not 3⁢x−3⁢y=1, because every term on both sides is multiplied.
  • Checking in only one equation. (6,0) satisfies 2⁢x+3⁢y=12 but gives 6−0=6 in x−y=1, so it is not a solution. Check every original equation.
  • Reading 0=0 as no solution. 0=0 is true at every point, so the equations describe the same line and there are infinitely many solutions. 0=3 is the false statement that means none.
  • Dropping parentheses when substituting. Putting y=2⁢x−1 into 3⁢x+2⁢y=12 gives 3⁢x+2⁢(2⁢x−1)=12, so 7⁢x−2=12. Without them, 3⁢x+2⋅2⁢x−1 multiplies only the 2⁢x.
  • Losing a sign when subtracting equations. 2⁢x+3⁢y=12 minus x−y=1 is x+4⁢y=11, because subtracting −y adds y. Writing x+2⁢y=11 loses that sign.

Key terms

Linear system
Two or more linear equations in the same unknowns, such as 2⁢x+y=5 and x−y=1. A solution has to satisfy every equation at once.
Substitution method
A way to solve a system of equations: solve one equation for one variable, substitute that expression into the other equation, and solve the one-variable equation that results.
Elimination method
A way to solve a system of equations: multiply the equations by constants so that one variable has opposite coefficients, then add them to eliminate that variable.
Inconsistent system
A system with no solution because its equations contradict each other. Two such equations in two variables describe parallel lines that never meet. In row reduction, a row [0⁢…0⁢∣⁢c] with c≠0 says 0=c.
Dependent system
A consistent system with infinitely many solutions, because its equations do not carry enough independent information to fix every unknown. With two equations in two variables, both describe the same line.
Augmented matrix
A matrix holding a system’s coefficients, with the constants from the right-hand sides added as a last column. That column holds the equations’ values, not another unknown.

Work through an example

Solve the system 2⁢x+3⁢y=12 and x−y=1.

Solve a system of equations by elimination →

Solve a system of equations by substitution →

Recognize a system with no solution →

Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

See both lines in Graph Solve it in Matrices & linear systems Check each step in Math Study the 6 key terms Open worked example on a board Equation rules in Math Reference

Your existing work stays on this device. Examples open as editable copies.