Professional Documents
Culture Documents
Week 2 Linear Independent and Bases
Week 2 Linear Independent and Bases
4.3
LINEARLY INDEPENDENT
SETS; BASES
x – 4y + 3z = 5
System: – x – 3y – z = –3
2x – 4z = 6
Augmented Matrix:
5
Matrices
Coefficient Matrix:
Constant Matrix:
6
Matrices
Note the use of 0 for the missing coefficient of the
y-variable in the third equation, and also note the fourth
column (of constant terms) in the augmented matrix.
7
Example 2 – Writing an Augmented Matrix
8
Example 2 – Solution
Begin by writing the linear system and aligning the
variables.
x + 3y = 9
– y + 4z = –2
x – 5z = 0
9
Example 2 – Solution cont’d
10
Elementary Row Operations
11
Elementary Row Operations
In matrix terminology, these three operations correspond to
elementary row operations.
12
Example 3 – Elementary Row Operations
13
Example 3 – Elementary Row Operations cont’d
14
Gaussian Elimination with Back-Substitution
15
Example 4 – Comparing Linear Systems and Matrix Operations
x – 2y + 3z = 9
–x + 3y + z = – 2
2x – 5y + 5z = 17
Add the first equation to the Add the first row to the
second equation. second row: R1 + R2.
x – 2y + 3z = 9
y+ 4z = 7
2x – 5y + 5z = 17
16
Example 4 – Comparing Linear Systems and Matrix Operations
cont’d
Add –2 times the first Add –2 times the first row to the
equation to the third third row: –2R1+R3
equation.
x – 2y + 3z = 9
y + 4z = 7
–y– z=–1
x – 2y + 3z = 9
–x + 3y + z = –2
2x – 5y + 5z = 17
17
Example 4 – Comparing Linear Systems and Matrix Operations
cont’d
x – 2y + 3z = 9
y + 4z = 7
z=2
x = 1, y = –1, and z = 2.
18
Gaussian Elimination with Back-Substitution
19
Gaussian Elimination with Back-Substitution
20
Example 5 – Row-Echelon Form
Determine whether each matrix is in row-echelon form. If it
is, determine whether the matrix is in reduced row-echelon
form.
a. b.
c. d.
21
Example 5 – Row-Echelon Form cont’d
e. f.
Solution:
The matrices in (a), (c), (d), and (f) are in row-echelon form.
22
Example 5 – Solution cont’d
23
Gaussian Elimination with Back-Substitution
24
Example 6 – Gaussian Elimination with Back-Substitution
Solution:
25
Example 6 – Solution cont’d
Interchange R1 and R2
so first column has
leading 1 in upper left
corner.
Perform operations
on R3 and R4 so first
column has zeros below
its leading 1.
26
Example 6 – Solution cont’d
Perform operations on
R4 so second column
has zeros below its
leading 1.
Perform operations
on R3 and R4 so third
and fourth columns
have leading 1’s.
27
Example 6 – Solution cont’d
x + 2y – z = 2
y + z – 2w = – 3
z– w=–2
w= 3
29
Gauss–Jordan Elimination
With Gaussian elimination, elementary row operations are
applied to a matrix to obtain a (row-equivalent) row-echelon
form of the matrix.
30
Example 8 – Gauss–Jordan Elimination
Use Gauss-Jordan elimination to solve the system.
x – 2y + 3z = 9
– x + 3y + z = – 2
2x – 5y + 5z = 17
Solution:
In Example 4, Gaussian elimination was used to obtain the
row-echelon form
31
Example 8 – Solution cont’d
Perform operations on R3 so
second column has a zero
above its leading 1.
32
Example 8 – Solution cont’d
x= 1
y = –1
z= 2
33
Example 8 – Solution cont’d
Figure 7.23
34
▪ Ex 9: Testing for linear independence
Determine whether the following set of vectors in R3 is L.I. or L.D.
S = v1 , v 2 , v 3 = (1, 2, 3) , ( 0, 1, 2 ) , ( −2, 0, 1)
Sol: c1 − 2c3 = 0
c1 v1 + c2 v 2 + c3 v 3 = 0 2c1 + c2 + =0
3c1 + 2c2 + c3 = 0
1 0 − 2 0 1 0 0 0
2 1 0 0 ⎯⎯⎯ G.-J. E.
→ 0 1 0 0
3 2 1 0 0 0 1 0
c1 = c2 = c3 = 0 (only the trivial solution )
(or det(A) = −1 0, so there is only the trivial solution)
S is (or v1, v2 , v3 are) linearly independent 4.35
◼ Ex 10 Testing for linear independence
Determine whether the following set of vectors in P2 is L.I. or L.D.
S = v1 , v 2 , v 3 = 1 + x − 2 x 2 ,2 + 5 x − x 2 ,x + x 2
Sol:
c1v1+c2v2+c3v3 = 0
i.e., c1(1+x – 2x2) + c2(2+5x – x2) + c3(x+x2) = 0+0x+0x2
c1+2c2 =0 1 2 0 0 1 2 0 0
1 5 1 0 ⎯⎯⎯
c1+5c2+c3 = 0
G. E.
→ 0 1 1
3
0
–2c1– c2+c3 = 0 −2 −1 1 0
0 0 0 0
This system has infinitely many solutions
(i.e., this system has nontrivial solutions, e.g., c1=2, c2= – 1, c3=3)
S is (or v1, v2, v3 are) linearly dependent
4.36
◼ Ex 11: Testing for linear independence
Determine whether the following set of vectors in the
2×2 matrix space is L.I. or L.D.
2 1 3 0 1 0
S = v1 , v 2 , v 3 = , ,
0 1 2 1 2 0
Sol:
c1v1+c2v2+c3v3 = 0
2 1 3 0 1 0 0 0
c1 + c2 + c3 =
0 1 2 1 2 0 0 0
4.37
2c1+3c2+ c3 = 0
c1 =0
2c2+2c3 = 0
c1 + c2 =0
2 3 1 0 1 0 0 0
1 0 0 0 G.-J. E. 0 1 0 0
⎯⎯⎯→
0 2 2 0 0 0 1 0
1 1 0 0 0 0 0 0
S is linearly independent
4.38
STANDARD BASIS
▪ Let e1, …, en be the columns of the n n matrix, In.
▪ That is, 1 0 0
0 1
e1 = ,e 2 = ,...,e n =
0
0 0 1
▪ The set {e1, …, en} is called the standard basis for R n .
See the following figure.