Skip to main content

Lecture 1: The Geometry of Linear Equations

讲座摘要(lecture summary)

The geometry of linear equations

The fundamental problem of linear algebra is to solve nn linear equations in nn unknowns; for example:

2xy=0x+2y=3\begin{array}{rcl} 2x -y &=& 0 \\ -x + 2y &=& 3 \end{array}

In this first lecture on linear algebra we view this problem in three ways.

The system above is two dimensional (n=2)(n = 2). By adding a third variable zz we could expand it to three dimensions.

Row Picture

Plot the points that satisfy each equation. The intersection of the plots (if they do intersect) represents the solution to the system of equations. Looking at Figure 1 we see that the solution to this system of equations is x=1x = 1, y=2y = 2.

We plug this solution in to the original system of equations to check our work:

212=01+22=3\begin{array}{rcl} 2\sdot 1 -2 &=& 0 \\ -1 + 2\sdot 2 &=& 3 \end{array}

The solution to a three dimensional system of equations is the common point of intersection of three planes (if there is one).

Column Picture

In the column picture we rewrite the system of linear equations as a single equation by turning the coefficients in the columns of the system into vectors:

x[21]+y[12]=[03]x \begin{bmatrix} 2 \\ -1 \end{bmatrix} + y \begin{bmatrix} -1 \\ 2 \end{bmatrix} = \begin{bmatrix} 0 \\ 3 \end{bmatrix}

Given two vectors c\bm{c} and d\bm{d} and scalars xx and yy, the sum xc+ydx\bm{c} + y\bm{d} is called a linear combination of c\bm{c} and d\bm{d}. Linear combinations are important throughout this course.

Geometrically, we want to find numbers x and y so that x copies of vector [21]\begin{bmatrix} 2 \\ -1 \end{bmatrix} added to y copies of vector [12]\begin{bmatrix} -1 \\ 2 \end{bmatrix} equals the vector [03]\begin{bmatrix} 0 \\ 3 \end{bmatrix}. As we see from Figure 2, x=1x = 1 and y=2y = 2, agreeing with the row picture in Figure 2.

In three dimensions, the column picture requires us to find a linear combination of three 3-dimensional vectors that equals the vector b\bm{b}.

Matrix Picture

We write the system of equations

2xy=0x+2y=3\begin{array}{rcl} 2x -y &=& 0 \\ -x + 2y &=& 3 \end{array}

as a single equation by using matrices and vectors:

[2112][xy]=[03]\begin{bmatrix} 2 & -1\\ -1 & 2 \end{bmatrix} \begin{bmatrix} x\\ y \end{bmatrix} = \begin{bmatrix} 0\\ 3 \end{bmatrix}

The matrix A=[2112]A = \begin{bmatrix} 2 & -1\\ -1 & 2 \end{bmatrix} is called the coefficient matrix. The vector x=[xy] x = \begin{bmatrix} x\\ y \end{bmatrix} is the vector of unknowns. The values on the right hand side of the equations form the vector b\bm{b}:

Ax=bA\bm{x}=\bm{b}

The three dimensional matrix picture is very like the two dimensional one, except that the vectors and matrices increase in size.

Matrix Multiplication

How do we multiply a matrix AA by a vector x\bm{x}?

[2513][12]=?\begin{bmatrix} 2 & 5\\ 1 & 3 \end{bmatrix} \begin{bmatrix} 1\\ 2 \end{bmatrix} = ?

One method is to think of the entries of x\bm{x} as the coefficients of a linear combination of the column vectors of the matrix:

[2513][12]=1[21]+2[53]=[2+101+6]=[127]\begin{bmatrix} 2 & 5\\ 1 & 3 \end{bmatrix} \begin{bmatrix} 1\\ 2 \end{bmatrix} = 1 \begin{bmatrix} 2\\ 1 \end{bmatrix} + 2 \begin{bmatrix} 5\\ 3 \end{bmatrix} = \begin{bmatrix} 2+10\\ 1+6 \end{bmatrix} = \begin{bmatrix} 12\\ 7 \end{bmatrix}

This technique shows that AxA\bm{x} is a linear combination of the columns of AA.

You may also calculate the product AxA\bm{x} by taking the dot product of each row of A with the vector x\bm{x}:

[2513][12]=[21+5211+32]=[127]\begin{bmatrix} 2 & 5\\ 1 & 3 \end{bmatrix} \begin{bmatrix} 1\\ 2 \end{bmatrix} = \begin{bmatrix} 2 \sdot 1 + 5 \sdot 2\\ 1 \sdot 1 + 3 \sdot 2 \end{bmatrix} = \begin{bmatrix} 12\\ 7 \end{bmatrix}

Linear Independence

In the column and matrix pictures, the right hand side of the equation is a vector b\bm{b}. Given a matrix AA, can we solve:

Ax=bA\bm{x}=\bm{b}

for every possible vector b\bm{b}? In other words, do the linear combinations of the column vectors fill the xy-plane (or space, in the three dimensional case)?

If the answer is “no”, we say that AA is a singular matrix. In this singular case its column vectors are linearly dependent; all linear combinations of those vectors lie on a point or line (in two dimensions) or on a point, line or plane (in three dimensions). The combinations don’t fill the whole space.

习题(Problems)

Exercises on the geometry of linear equations

Problem 1.1: (1.3 #4. Introduction to Linear Algebra: Strang) Find a combination x1w1+x2w2+x3w3x_1\bm{w}_1 + x_2\bm{w}_2 + x_3\bm{w}_3 that gives the zero vector:

w1=[123]w2=[456]w3=[789]\bm{w}_1 = \begin{bmatrix} 1\\ 2\\ 3 \end{bmatrix} \quad \bm{w}_2 = \begin{bmatrix} 4\\ 5\\ 6 \end{bmatrix} \quad \bm{w}_3 = \begin{bmatrix} 7\\ 8\\ 9 \end{bmatrix}

Those vectors are (independent)(dependent).

The three vectors lie in a \underline{\qquad\qquad}. The matrix WW with those columns is not invertible.

Problem 1.2: Multiply: [120203411][321]\begin{bmatrix} 1 & 2 & 0\\ 2 & 0 & 3\\ 4 & 1 & 1 \end{bmatrix} \begin{bmatrix} 3\\ -2\\ 1 \end{bmatrix}

Problem 1.3: True or false: AA 3 by 2 matrix AA times a 2 by 3 matrix BB equals a 3 by 3 matrix ABAB. If this is false, write a similar sentence which is correct.

习题解答(Solutions)

Problem 1.1: (1.3 #4. Introduction to Linear Algebra: Strang) Find a combination x1w1+x2w2+x3w3x_1\bm{w}_1 + x_2\bm{w}_2 + x_3\bm{w}_3 that gives the zero vector:

w1=[123]w2=[456]w3=[789]\bm{w}_1 = \begin{bmatrix} 1\\ 2\\ 3 \end{bmatrix} \quad \bm{w}_2 = \begin{bmatrix} 4\\ 5\\ 6 \end{bmatrix} \quad \bm{w}_3 = \begin{bmatrix} 7\\ 8\\ 9 \end{bmatrix}

Those vectors are (independent)(dependent).

The three vectors lie in a \underline{\qquad\qquad}. The matrix WW with those columns is not invertible.

Solution

We might observe that w1+w22w3=0\bm{w}_1 + \bm{w}_2 - 2\bm{w}_3 = 0, or we might simultaneously solve the system of equations:

1x1+4x2+7x3=02x1+5x2+8x3=03x1+6x2+9x3=0\begin{array}{rcl} 1x_1 + 4x_2 + 7x_3 &=& 0 \\ 2x_1 + 5x_2 + 8x_3 &=& 0 \\ 3x_1 + 6x_2 + 9x_3 &=& 0 \\ \end{array}

Subtracting twice equation 1 from equation 2 gives us 3x26x3=0−3x_2 − 6x_3 = 0. Subtracting thrice equation 1 from equation 3 gives us 6x212x3=0−6x_2 − 12x_3 = 0, which is equivalent to the previous equation and so leads us to suspect that the vectors are dependent. At this point we might guess x2=2x_2 = −2 and x3=1x_3 = 1 which would lead us to the answer we observed above:

x1=1,x2=2,x3=1andw12w2+w3=0.x_1=1,x_2=-2,x_3=1 \quad \text{and} \quad \bm{w}_1 -2\bm{w}_2+\bm{w}_3=0.

Those vectors are dependent because there is a combination of the vectors that gives the zero vector.

The three vectors lie in a plane.

Problem 1.2: Multiply: [120203411][321]\begin{bmatrix} 1 & 2 & 0\\ 2 & 0 & 3\\ 4 & 1 & 1 \end{bmatrix} \begin{bmatrix} 3\\ -2\\ 1 \end{bmatrix}

Solution

[13+2(2)+016+0+3122+1]=[1911]\begin{bmatrix} 1 \sdot 3 + 2 \sdot (-2) + 0 \sdot 1\\ 6 + 0 +3\\ 12 - 2 + 1 \end{bmatrix} = \begin{bmatrix} -1\\ 9\\ 11 \end{bmatrix}

Problem 1.3: True or false: AA 3 by 2 matrix AA times a 2 by 3 matrix BB equals a 3 by 3 matrix ABAB. If this is false, write a similar sentence which is correct.

Solution

The statement is true. In order to multiply two matrices, the number of columns of AA must equal the number of rows of BB. The product ABAB will have the same number of rows as the first matrix and the same number of columns as the second:

A(mbyn)timesB(nbyp)equalsAB(mbyp)A (m \> \text{by} \> n) \> \text{times} \> B(n \> \text{by} \> p) \> \text{equals} \> AB(m \> \text{by} \> p)

官方课程资料获取地址

讲座资料

习题讲解视频