您的位置:首页 > 其它

Linear Algebra Lecture 7

2018-02-02 23:59 344 查看

Linear Algebra Lecture 7

1. Computing the nullspace

2. Pivot variables and free variables

3. Special solutions

4. rref(A) = R

Example 1

Compution the nullspace for a matrix A, find all the solutions to Ax=0Ax=0

A=⎡⎣⎢1232462682810⎤⎦⎥A=[1222246836810]

Eliminations

While doing elimination, will not changing the null space, solving Ax=0Ax=0 by elimination.

A=⎡⎣⎢1232462682810⎤⎦⎥→⎡⎣⎢100200222244⎤⎦⎥→⎡⎣⎢100200220240⎤⎦⎥A=[1222246836810]→[122200240024]→[122200240000]

Eliminate the matrix into echelon form, we can find two pivot.

The number of pivots is the rank of the matrix.

Pivot variables and free variables

The critical step is separating out the pivot variables(主变量). The columns with pivots are called pivot columns and the other columns are called free columns.

Pivot columns are column 1 and 3, free columns are column 2 and 4.

For these free columns can assign any number freely to those variables, x2x2 and x4x4. And then can solve the equations for x1x1 and x3x3.

{x1+2x2+2x3+2x4=02x3+4x4=0{x1+2x2+2x3+2x4=02x3+4x4=0

Special solutions

Choose 1 and 0 for free variables, get the special solutions.

x=c1⎡⎣⎢⎢⎢−2100⎤⎦⎥⎥⎥+c2⎡⎣⎢⎢⎢20−21⎤⎦⎥⎥⎥x=c1[−2100]+c2[20−21]

These are the two special solutions, the special numbers I gave to the free variables, the values 0 and 1 for the free variables.

Once have special solutions we could take any multiple of that and it’s in the null space.

The null space contains exactly all the combinations of the special solutions. There’s one special solutions for every free variable.

In this example, the rank equals the number of pivot numbers r=2r=2, number of free variables equals n−r=4−2n−r=4−2.

Reduced row echelon form

In reduced row echelon form, has zeros above and below the pivots.

⎡⎣⎢100200220240⎤⎦⎥→⎡⎣⎢100200020−240⎤⎦⎥[122200240000]→[120−200240000]

Make all the pivot to 1.

⎡⎣⎢100200020−240⎤⎦⎥→⎡⎣⎢100200010−220⎤⎦⎥[120−200240000]→[120−200120000]

R=rref(A)R=rref(A) reduced row echelon form in Matlab.

RREF got identity in pivot rows and columns.

⎡⎣⎢100010200−220⎤⎦⎥→R=[I0F0][102−201020000]→R=[IF00]

When we calculate Rx=0Rx=0

[IF][xpivotxfree]=0→xpivot=−Fxfree[IF][xpivotxfree]=0→xpivot=−Fxfree

We choose identity for free variables, so the pivot variables are −F−F.

Example 2

A=⎡⎣⎢⎢⎢1222246836810⎤⎦⎥⎥⎥→⎡⎣⎢⎢⎢100020243024⎤⎦⎥⎥⎥→⎡⎣⎢⎢⎢100022003200⎤⎦⎥⎥⎥→⎡⎣⎢⎢⎢100001001100⎤⎦⎥⎥⎥→RA=[1232462682810]→[123000022044]→[123022000000]→[101011000000]→R

x=c⎡⎣⎢−1−11⎤⎦⎥=[−FI]=N(A)x=c[−1−11]=[−FI]=N(A)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: