Linear Algebra Lecture 2

Linear Algebra Lecture 2

1. Elimination
2. Back-substitution
3. Elimination matrices
4. Multiply matrices

Example 1 :

To solve :

x+2y+z=23x+8y+z=124y+z=2

Here is a system of equations, three equations and three unknowns. Ax = b
Change the equations into matrix form:
A=130284111

Elimination steps :
1.Accept the first equation is okay, multiply that equation by the right number, and going to subtract it from the second equation. With the purpose to knock out the x part of equation two, to eliminate x.

2.Find the first pivot(主元), won’t change the first row, because it’s the pivot row. Then find the multiplier, 3 times first equation will knock out that 3 in the second equation.

130284111100224121

3.We have eliminated x, we are down to two equations in y and z, find the second pivot 2, then eliminate y.

100224121100220125

4.Then the matrix is an upper triangular matrix(上三角矩阵), call U. The whole purpose of elimination was to get from A to U.


How could the elimination have failed?

If the first number was 0, there were no x in first equation. Then need switch rows, if there is a zero in the pivot position, need to exchange rows.

How we identify failure?
There’s temporary failure when we can do a row exchange and get out of it or there’s complete failure when we get a 0 and below.
There wouldn’t have been all pivots. The matrix would have not been invertible(矩阵不可逆).


Back substitution

Now bring the right-hand side as an extra column.

1302841112122

This is called augmented matrix(增广矩阵). And we should do the same step to the right-hand side column.

13028411121221002241212621002201252610

Then we need to do back substitution.

x+2y+z=22y2z=65z=10

Then easy to solve the equations. Here is the back substitution(回代).

x=2y=1z=2

Back substitution is the simple step solving the equations in reverse order because the system is triangular now.


Elimination matrices

Row operations
Matrix times a columns is a column.
A row times a matrix is a row.
When as we do matrix multiplication, we got a linear combination of rows.

Elimination matrices(消元矩阵)
What’s the matrix that does the first step, subtracts 3 of equation one from equation two and leave the other rows the same?
[]130284111=100224121

We are just doing this step changes row two, so actually, row one is not changing.
The first row of the matrix will be [100] , because that’s just the right thing that takes one of the first row and none of the other rows. And the last row is [001] , takes one of the third row and none of the other rows.
The second row is a matrix [310] , means that takes minus 3 of row one plus the row two.
130010001130284111=100224121

What matrix does nothing?
100010001
The identity matrix(单位矩阵), it just multiplies everything and leaves it where it is, like the number 1.

Elementary matrix(初等矩阵)
E21 is the matrix we needed to fix the (2,1) position to be 0.

Step 2 is subtract 2 times row 2 from row 3
E32100012001100224121=100220125

The elimination matrices that take each step.Put those together into a matrix that does it all.

E32(E21A)=U(E32E21)A=U

What matrix takes me from A to U? E


Permutation

There’s another type of elementary matrix, the matrix that exchanges two rows, it’s called a permutation matrix(置换矩阵).
Permutation = Exchange rows 1 and 2
P[0110][acbd]=[cadb]

If need to do column exchanges,
[acbd][0110]=[bdac]

In short, to do column operations, the permutation matrix multiplies on the right, to do row operations , it multiplies on the left.


Inverse Matrix

Inverses

130010001130010001=100010001

E1E=I

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值