A * system of linear equations in two variables*
looks like this:

Such a system may have no solutions, one solution (that is, a single pair ), or infinitely many solutions.

There are various ways to solve such a system. For example, you can
solve the equation for one of the variables, then plug into the other
equation. If one of the equations * has* one of
the variables solved for, this is probably the best approach.

* Example.* Solve the system for x and y:

I notice that the second equation has y solved for in terms of x. So I'll plug into and solve for x:

To find y, plug into :

The solution is and .

If neither variable is solved for, you can add multiples of one equation to multiples of the other, or subtract multiples of one equation from multiples of the other. I will show how to do this in the examples. This approach often makes the computations easier.

- Note: You can only multiply an equation by a {\it nonzero} number. Multiplying an equation by 0 would give " ". While " " is true, you've destroyed all the information the original equation contained.

If you're using this approach, make sure the equations look like this before you begin solving:

That is, the x and y terms (or in general, the terms with the variables) should be on one side, and the number terms (the terms without variables) should be on the other. If the equations don't start out that way, move terms around to fix things.

* Example.* Solve the system for x and y:

The idea is to multiply one or both of the equations by numbers, so that the numbers on one of the variables match (different signs are okay). Then you add or subtract equations to cancel that variable.

To start, suppose I want to match the y-numbers. The first equation has and the second equation has y. I can get a match by multiplying the second equation by 2. Here's what I get:

In other words, I did

Now that the y-numbers match, I can cancel the y-terms by * subtracting the equations*. Then it is easy to
solve for x.

Now go back to the original equations:

I'll make the x-numbers match by multiplying the first equation by 2 and the second equation by 3:

Now that the x-numbers match, I can cancel the x-terms by subtracting the equations. Then it is easy to solve for y.

The solution is and .

Geometrically, the graphs of the equations and are lines, and is the point where the lines intersect:

* Example.* Solve the system for x and y:

To get the x-numbers to match, I'll multiply the first equation by 5 and the second by 3:

I *subtracted* the equations, because that causes the two
" " terms to cancel.

Now go back to the original system:

To get the y-numbers to match (without worrying about the sign), I can just multiply the first equation by 2:

To get the y-terms to cancel, I must *add* the equations,
because I have " " and " ".

The solution is and .

Let me review what happened in the last example. If you have two terms with the same coefficient (number), then:

(a) If they have the *same* sign, you *subtract*
equations to cancel them.

(b) If they have the *opposite* sign, you *add*
equations to cancel them.

* Example.* Solve the system for x and y:

I'll get a match on the x-numbers by multiplying the first equation by 0.04. Then subtracting will cause the x-terms to cancel:

I could go back to the original equations and get the y-numbers to match by multiplying the first equation by 0.03. But since I know , and since , it's easier to plug in and solve for x:

There are a couple of unusual cases that you should be aware of.

* Example.* (* A system with no
solutions*) Solve the system for x and y:

Multiply the first equation by 2 to get 4 and -4 as the
x-coefficients. Since they have *opposite* signs, I can cancel
them by *adding* equations:

The last equation is a contradiction: 0 is obviously not equal to 12! Since I arrived at a contradiction, the system has no solutions.

Geometrically, the graphs of the equations and are parallel lines. Since they are parallel, they don't intersect, and hence the system has no solutions.

* Example.* (* A system with
infinitely many solutions*) Solve the system for x and y:

I'll get the x-numbers to match by multiplying the first equation by
2 and the second equation by 3. Then *subtracting* the
equations will cause the x-terms to cancel:

An * identity* is an equation that is true for
all values of its variables. The last equation is an
*identity* (it has no variables). This means that the original
system has infinitely many solutions.

Any point which satisfies either of the given equations will satisfy both. For example, if I pick some values of x at random, plug them into , and solve for y, I get solutions to the system:

All of these solution points will also satisfy the second equation . I can get infinitely many solutions to the system this way.

How did this happen? Notice that when I multipled the first equation
by 2 and the second equation by 3, *I got the same equation*.
So the two equations I started with were really the same equation.
Geometrically, their graphs are the same line, and the intersection
of a line with itself is the line. A line contains infinitely many
points, so the system has infinitely solutions.

Send comments about this page to: Bruce.Ikenaga@millersville.edu.

Copyright 2012 by Bruce Ikenaga