Lecture 1

A. Agarwal
December 7, 2012

System of Linear Equations

A system of linear equations is a set of equations, all of which are linear (powers of x and y are at most 1).

{3x=1x+2y=3

There are two ways of interpreting such as system:

  1. 1.

    Geometric way

  2. 2.

    Algebraic way

As an example, consider what does x=1 represent? Some may say a point, others may say a line.

It is important to consider the ambient space in which the equation(s) are to be considered.

(-1,2) ; Point

(-1,0) to (3,0) (1,0) x=1 Point

(-1,2) 2 (-1,0) to (3,0) (0,-1) to (0,3) (1,-1) to (1,3) at (1,1) x=1 Line

at (-1,2) 3 (0,0) to (2,0) (0,0) to (0,3) (0,0) to (-1,-1) (0,3) x (2,0) y (-1,-1) z (0,2) to (3,2) to (2,1) to (-1,1) to (0,2) at (.5,1.5) x=1 Plane Examples of the object x=1 in the ambient spaces ,2, and 3.

Consider again the system

{3x=1x+2y=3 (1)

Since there are two variables, we know that the system is in at least two dimensions (maybe more). For now, let us consider the system in two dimensions. What will be the solution?

The equation 3x=1 represents a line, as does x+2y=3. Figure System of Linear Equations shows these lines:

Line 3x=1 Line x+2y=3

(sol) at (13,43) at (1,53) (?,?)

Visual depiction of two intersecting lines from system (1).

Once we have this geometric picture of the system, a solution to the system will be a point common to both lines.

This is a geometric picture of the system. We still need some sort of algebraic way of finding the exact solution. In this case, the first equation gives us that x=1/3, and the second equation gives us that

y=3-x2=3-132=86=43

We now have the coordinates of the solution to the equations: (1/3,4/3). Formally, we can now claim that we have found the solution (1/3,4/3) to the system (1) considered in 2.

In the above example, there is only one solution. We may ask ourselves, given any system, will there always be one solution, can there be more than one solution, or may there not be any solution? It turns out that examining these possibilities through a geometric perspective holds the answer and will allow us to generalize the answer to this question.

Two lines may either intersect at one point (Figure 3a), yielding a unique solution; never intersect (Figure 3b), which results in no solutions existing; or be on top of one another (Figure 3c), which results in infinitely many solutions.

Figure 1: One unique solution.
Figure 2: No solution.
Figure 3: Infinitely many solutions. The ways in which two lines may or may not intersect.

A natural question is whether it is possible for there to be finitely many solutions, and more than one solution? Geometrically, we can see that since two points define a line, two lines cannot intersect at more than one point without being the same line. The situation in 2 seems to be then that we can have either one solution, no solutions, or infinitely many solutions.

It is natural to ask whether we can generalize this to higher dimensions. Let us consider 3.

x-y+z=12x-3y+7z=2}

In 3, these equations represent planes. If we are given two planes, they may intersect, and if they do, they must intersect in a line, similar to how pages in a book intersect at the spine of the book. In this case, there are infinitely many solutions. Alternatively the planes may not intersect at all, in which case there are no solutions. The planes may also be on top of one another; that is, they are the same plane, in which case there are also infinitely many solutions.

Figure 4: Parallel and intersecting planes.

Can it be that two planes may have a unique solution? It seems to be that the answer is no. But if we are given a third plane, we may have a unique solution. Consider for instance the corner of a room. Here the floor and two walls are meeting at a unique point.

3x-y+z=7x-y+z=12x-3y+7z=2}  A system consisting of three planes

This tells us that in 2 or 3, there seem to be always either one solution, no solutions, or infinitely many solutions. In fact, we will find that it is always that case that:

The number of solutions in n of a system of linear equations will be only one of

  1. 1.

    One solution

  2. 2.

    Zero solutions

  3. 3.

    Infinitely many solutions

Right now we cannot conclude this. Later we will, but that proof comes from understanding these systems in more algebraic terms.

Solve system of linear equations

Before we move on to solving systems of linear equations, it is important to note that the variables used in these equations are not the focus of the problem. Consider the following two systems:

x-2y=32x+3y=7} a-2b=32a+3b=7}

The equations in the two systems are identical except for the variables, so in fact they represent the same system.

The important part of these systems are the coefficients of the variables. What we will do is put the coefficients in a matrix:

[1-23237]

In order to preserve the fact that the 3 and 7 are on the right-hand-side of the equations, we will put a vertical bar within the matrix:

[1-23237]

This is referred to as an augmented matrix.

[Ab] =[1-23237]

In general, we say the left part A of the augmented matrix is the coefficient matrix, and the right part b is the right-hand-side vector, or the constant vector.

Every system of linear equations can be translated into an augmented matrix, and every augmented matrix can be translated back into a system of linear equations.

This notation saves time and we will be using it a lot.

Row Picture

x-2y=32x+3y=7}Rows

Row Picture: Intersection of two lines

Column Picture

x[12]+y[-23]=x[37]

Column Picture: Can [37] be written as a linear combination of [12] and [-23]?

The advantages of the column picture may not be apparent now, but looking at things in the language in linear combinations will be very useful later.

It is important to note that in the above case, the row and column picture are in the same number of dimensions. Consider instead

x-y+z=213x+y-3z=0} x[13]+y[-11]+z[1-3]=[210]

Here the row picture is the intersection of two planes in 3. The column picture is a linear combination of vectors in 2.

These perspectives will be useful, and in particular pay attention to the idea of linear combinations.

Solving a system

Consider the system in 2,

x=1y=3}    x+0y=10x+y=3}

We can easily convert the system to and from an augmented matrix:

[101013]

This is in a sense our ‘Dream augmented matrix’, in that from it we can directly determine the solution to the system. The technical term for this sort of matrix is a row-reduced echelon form matrix.

In some sense then, the row-reduced echelon form matrix is our goal when solving systems of linear equations. The question is, how will we go from a general matrix to a row-reduced echelon form matrix? To do so, we will learn row operations