Docsity

Example for Applied Linear Algebra | MATH 310, Study notes of Linear Algebra

Toggle sidebar
bg1
Example from October 8, 2007
This note explains how to find the dimension and a basis for the nullspace
and the span of a given matrix A∈Rm×n.
Let v1, v2, v3, v4∈R4be the column vectors of the matrix A.
A=
1−2−2−1
3−6−5−1
2−4−2 2
Gauss-Jordan
−−−−−−−→ C=
1−202
0 0 1 2
0 0 0 0
RREF
Hence the solutions to the system Ax =¯
0 are given by
x= (2α−2β, α, −2β , β)T
for every α, β ∈R. Let
B=
2−2
1 0
0−2
0 1
.
Then N(A) = span(B). The columns of Bare linearly independent because
if By =¯
0, then y=¯
0 (look at rows 2 and 4). Therefore dim N(A) = 2 and
the columns of Bform a basis for N(A) as a vector space.
We will show that {v1, v3}is a basis for span(A), i.e. we take the vectors
which correspond to the column of Cwith exactly one 1 in them.
Putting α= 1 and β= 0 we get that (2,1,0,0)Tis a solution to Ax =¯
0.
Hence 2v1+v2=¯
0 and so v2=−2v1, i.e. v2∈span(v1). Similarly putting
α= 0 and β= 1 we get the solution (−2,0,−2,1)Tand so v4= 2v1+ 2v3,
i.e. v4∈span(v1, v3). Thus span(A) = span(v1, v2, v3, v4) = span(v1, v3). v1
and v3are linearly independent because the RREF of the matrix [v1v3] is the
matrix formed by the 1st and 3rd columns of C. The refore dim span(A) = 2
and {v1, v3}is a basis for span(A) as a vector space.
1
pf2

Partial preview of the text

Download Example for Applied Linear Algebra | MATH 310 and more Study notes Linear Algebra in PDF only on Docsity!

Example from October 8, 2007

This note explains how to find the dimension and a basis for the nullspace and the span of a given matrix A ∈ Rm×n. Let v 1 , v 2 , v 3 , v 4 ∈ R^4 be the column vectors of the matrix A.

A =

 −Gauss-Jordan−−−−−−→ C =

RREF

Hence the solutions to the system Ax = ¯0 are given by

x = (2α − 2 β, α, − 2 β, β)T

for every α, β ∈ R. Let

B =

Then N (A) = span(B). The columns of B are linearly independent because if By = ¯0, then y = ¯0 (look at rows 2 and 4). Therefore dim N (A) = 2 and the columns of B form a basis for N (A) as a vector space. We will show that {v 1 , v 3 } is a basis for span(A), i.e. we take the vectors which correspond to the column of C with exactly one 1 in them. Putting α = 1 and β = 0 we get that (2, 1 , 0 , 0)T^ is a solution to Ax = ¯0. Hence 2v 1 + v 2 = ¯0 and so v 2 = − 2 v 1 , i.e. v 2 ∈ span(v 1 ). Similarly putting α = 0 and β = 1 we get the solution (− 2 , 0 , − 2 , 1)T^ and so v 4 = 2v 1 + 2v 3 , i.e. v 4 ∈ span(v 1 , v 3 ). Thus span(A) = span(v 1 , v 2 , v 3 , v 4 ) = span(v 1 , v 3 ). v 1 and v 3 are linearly independent because the RREF of the matrix [v 1 v 3 ] is the matrix formed by the 1st and 3rd columns of C. Therefore dim span(A) = 2 and {v 1 , v 3 } is a basis for span(A) as a vector space.

1

Notice that dim N (A) + dim span(A) = 2 + 2 = 4. To sum up. Given A ∈ Rm×n

  1. Find the RREF C of A with Gauss-Jordan reduction. Let’s say that we have r non-zero rows.
  2. dim N (A) = n − r and a basis for N (A) is found by looking at the columns of C corresponding to free variables.
  3. dim span(A) = r and a basis for span(A) is found by taking the columns of A corresponding to the lead variables.

Hence dim N (A) + dim span(A) = (n − r) + r = n.