Tutorial 5. Linear dependence, bases in Fn, and matrix operations
Linear Algebra for Biomedical Engineering · Chen Gadi
Sections and exercises
- 5.1 Dependence and bases in Fᵐ
- 5.2 Linear dependence and independence
- 5.3 Matrix arithmetic
- 5.4 Diagonal matrices
- 5.5 Transpose
- 5.6 Symmetry and skew-symmetry
- 5.7 Further exercises on matrix multiplication
Exercises
5.1 · 5.2 · 5.3 · 5.4 · 5.5 · 5.6 · 5.7 · 5.8 · 5.9 · 5.10 · 5.11 · 5.12 · 5.13 · 5.14 · 5.15 · 5.16 · 5.17 · 5.18 · 5.19 · 5.20 · 5.21
5.1 Dependence and bases in
Definition 5.1
The list is linearly independent if
A list is dependent if some relation has coefficients not all zero. A basis of is an independent spanning list. The column has entry 1 in position and zero elsewhere. The list is the standard basis.
Each component determines its coefficient.
Proposition 5.1
A list is a basis if and only if every vector has a unique representation as a linear combination of its entries. Spanning gives existence. Subtracting any two representations and using independence gives uniqueness. Conversely, existence gives spanning, and uniqueness for the zero vector gives independence.
Notation and conventions
In a collection of columns or matrices closed under addition and scalar multiplication, a basis is an independent spanning list. Its dimension is the number of elements in a basis. In particular and . The abstract definition of a vector space appears in Tutorial 8.
For a field , the set consists of matrices with rows, columns and entries in . We write for square matrices of order . Entry is in row , column . The column is the standard column defined above. The trace of a square matrix is . The identity matrix has diagonal entries 1 and zeros elsewhere. Every entry in the zero matrix is zero.
5.2 Linear dependence and independence
Example 5.1
Over , the family with columns is dependent.
Rearranging gives .
How do we test dependence?
Set a linear combination equal to zero. Its coefficients are the unknowns of a homogeneous system. Form the coefficient matrix and row-reduce. If the only solution is zero, the list is independent. A nonzero solution gives dependence and, over an infinite field, infinitely many solutions. The zero solution always exists, so an inconsistent row cannot appear.
Exercise 5.1
Work over . Let , , . Determine dependence, find all dependence relations, and express one vector using the others.
Worked solution
The equation gives , , . Thus , ; the remaining equation is .
In particular , so gives dependence. In the first and third coordinates force , so those two vectors are independent.
And we’re done. Victory!
5.2.1 Useful criteria for dependence
Any list containing the zero vector is dependent.
A singleton consisting of a nonzero vector is independent.
Place the vectors in columns and solve the homogeneous system as above. Alternatively, place the vectors in rows and reduce to echelon form. The original rows are dependent exactly when the echelon form has a zero row.
5.2.2 Spanning sets
Figure 5.1. Geometric span. On the left, , are independent: and imply . The vectors span the plane. On the right, , span only the line through the origin.
Exercise 5.2 · Foundation
Let , over . Describe by an equation. Decide whether and belong to , finding coefficients where possible. Are independent?
Worked solution
For , . Every such vector satisfies . Conversely, if that equation holds, . Hence
Since , the first vector is . Since , the second is outside the span. If , the first and third coordinates give . The vectors are independent and the coefficients are unique.
Give me a V! Give me an I! Give me a C! Victory!
Exercise 5.3
Determine whether the following vectors form a basis of . If they do not, give a dependence relation.
Worked solution
In the second coordinate gives and the first then gives . The first two are independent.
Thus is a nontrivial relation, the rank is 2, and the triple is not a basis.
Another one down. Victory!
Exercise 5.4
Do the following vectors form a basis of ? If not, give a dependence relation.
Worked solution
In the second and first coordinates give and . But
The first pair is independent and is a nontrivial relation. The rank is 2 and these vectors are not a basis.
The trophy is ours. Victory!
Exercise 5.5
Let be a basis of . Determine which of the following are bases.
.
.
.
Worked solution
Each family has three vectors in dimension 3, so it suffices to check independence.
No. is a nontrivial relation.
Yes. If , the original basis gives , so .
No. is a nontrivial relation.
That does it. Victory!
5.3 Matrix arithmetic
Throughout this section take
5.3.1 Scalar multiplication
Multiply every entry by the scalar: . This works for any matrix.
Example 5.2
5.3.2 Matrix addition and subtraction
The matrices must have identical shapes. Add or subtract matching entries: .
Example 5.3
5.3.3 Matrix multiplication
The number of columns in the left matrix must equal the number of rows in the right matrix. If is and is , then is and
Pair the entries of row of with the corresponding entries of column of , multiply and add. Even when exists, exists only if .
Exercise 5.6
Compute and for the matrices above.
Worked solution
Each entry is the sum of matching row-column products. Reversing the order changes the answer: . Matrix multiplication need not commute, even if both products exist.
Linear algebra wins again!
Exercise 5.7
Let be with a zero row, and be . Prove that has a zero row.
Worked solution
Let be the index of the zero row, . Then for every . For every ,
The entire row of is zero. A zero matrix can have any specified shape.
All wrapped up. Victory!
5.4 Diagonal matrices
A diagonal matrix is square, with all off-diagonal entries zero: , where and for . A scalar matrix has a common diagonal entry , so it is . The identity is a scalar matrix with diagonal entries 1. For every matrix , .
Example 5.4
Exercise 5.8
Let be diagonal matrices of order . Prove:
is diagonal.
is diagonal and for every .
.
Worked solution
For , . On the diagonal .
, because the only possibly nonzero entry in row of is . When , ; when , the product entry is .
Likewise is diagonal with entries because field multiplication commutes. All entries agree, so .
The crowd goes wild. Victory!
Always check dimensions: has rows and columns. Equal matrices must agree both in shape and in each corresponding entry.
Figure 5.2. A negative shear takes a straight grid to a straight grid and the unit square to a parallelogram. For , the columns are and .
5.5 Transpose
Transposition interchanges rows and columns, and is defined for every matrix: . If then .
Example 5.5
The rows of are the columns of .
5.6 Symmetry and skew-symmetry
A square matrix is symmetric if , and skew-symmetric if . All diagonal matrices, including scalar matrices and the identity, are symmetric. The square condition is necessary: a matrix of shape and its transpose of shape have equal dimensions only if . Symmetry reflects entries across the main diagonal; skew-symmetry also changes their signs.
Exercise 5.9
Over , classify each matrix as symmetric, skew-symmetric, or neither.
Worked solution
Thus is symmetric, is skew-symmetric, and is neither.
Think. Prove. Win!
Exercise 5.10
Over , prove or disprove each statement.
If are symmetric, then is symmetric.
If both are nonsymmetric, then is nonsymmetric.
Worked solution
- False. , which need not equal . Both factors below are symmetric and their product is not.
- False. Take . Neither is symmetric, but their product is symmetric:
Another one in the bag. Victory!
Exercise 5.11
Let with . Prove that is symmetric, that is skew-symmetric, and that can be written as a sum of one matrix of each type.
Worked solution
.
.
Adding gives . Since 2 is invertible in ,
The first term is symmetric and the second is skew-symmetric.
V-I-C-T-O-R-Y!
Exercise 5.12
Over , take , . Compute entry by entry. Compare their action on and find all such that .
Worked solution
Thus , whereas . For ,
They agree exactly when , on .
Came to prove. Left with a win!
Figure 5.3. Order of operations. For , first , then . For , the ring marks the fixed point ; then . The difference on is .
5.7 Further exercises on matrix multiplication
Exercise 5.13
Let be a field. For a row and a column , define
- Compute using for the matrices below. For , compute and .
For the remaining parts let and . Denote row of by and column of by .
Prove .
Prove for all by expanding the finite sums.
Prove that column of equals a linear combination of the columns of , with the entries of column of as coefficients.
Write for the columns of and for the rows of . Prove . A column times a row has entry .
Worked solution
- The four row-column sums are
By definition . The entries of are and the entries of are , so this is . The row times the column is a matrix whose only entry is that scalar.
Fix . Distributivity and rearranging two finite sums give
The two columns have entries and agree in each one.
The th entry of column of is . It is also entry of . Hence the columns agree.
Each has shape and entry equal to . Thus
This gives the product by entries, by linear combinations of columns, and by a sum of column-row products. The factor order also determines the dimensions.
Give yourselves a hand. Victory!
Exercise 5.14
Let have nonnegative entries and each row of each matrix sum to 1. Prove that has the same properties. If and every entry of is positive, prove that is impossible.
Worked solution
- Each is a sum of nonnegative terms. Interchange the finite sums and use the row sums first of , then of :
- Suppose . For each column , pick (possible since ). Then . All terms are nonnegative, so each vanishes. Each , hence for all . This holds in every column, forcing , contrary to its row sums being 1.
Yesss! Victory!
Associativity
For any matrix of compatible dimensions, write for its columns. Exercise 5.13 gives . These are the corresponding columns, so .
Exercise 5.15
Let , satisfy . Put . Prove , , . For , find an example where and compute .
Worked solution
- All dimensions agree. Associativity gives . Therefore
- Take and . Then
Direct multiplication gives , and .
Victory!
Additional practice
Exercise 5.16 · Foundation
Determine the dimensions of and compute both. Verify for . Can ?
Worked solution
The shapes are and , respectively.
We have and , the first column of , hence also . The two products cannot be equal since their dimensions differ.
We came, we saw, we conquered!
Exercise 5.17 · Challenge
Let , over any field. Prove the following equivalences. You may use , the matrix with 1 at and 0 elsewhere.
commutes with every diagonal matrix if and only if is diagonal.
commutes with every matrix in if and only if for some .
Worked solution
Take . At entry with , the left side is and the right side is zero. Thus all off-diagonal entries of vanish. Conversely, any two diagonal matrices commute because each diagonal entry of their product is a product of commuting scalars.
By part 1, . For , and . Comparing entry gives , so . Conversely, for every . The proof uses 0, 1 and field multiplication and applies to finite fields too.
And we’re done. Victory!
Matrix units
For , , the matrix unit has 1 at and zeros elsewhere. A matrix has the unique representation
Addition and scalar multiplication act entry by entry, as for columns in .
Exercise 5.18
Over , is in the span of ?
Worked solution
Equality with would require both and , giving . This contradiction excludes membership in the span. Choosing matches only the second row.
Give me a V! Give me an I! Give me a C! Victory!
Exercise 5.19
Over , let . Characterize all matrices with and prove they are exactly the linear combinations of and .
Worked solution
The entries agree exactly when and . Thus
Conversely, substitution in both products verifies that each such commutes with .
Another one down. Victory!
Exercise 5.20
Work in . The matrix unit has a single 1 at . Define
Prove that is a basis of the symmetric matrices, is a basis of the skew-symmetric matrices, and their union is a basis of . Find the three dimensions.
Worked solution
We have , and . Every symmetric has the representation
The diagonal and upper-diagonal entries uniquely determine the coefficients. Thus the family spans and is independent, and contains matrices. For skew-symmetric the diagonal is zero and , giving
The entries above the diagonal uniquely determine these coefficients, so is a basis of size 3. Any can be written as
The summands are symmetric and skew-symmetric, respectively. Thus the union spans the full space. Its two subspaces meet only at zero: implies , hence . A zero combination of the union splits into a zero combination in each basis, so every coefficient vanishes. The union is therefore a basis, and
The trophy is ours. Victory!
Exercise 5.21 · Challenge
For take . For a nonempty index set , define its associated convex hull by
Prove that the indices can be partitioned into two nonempty sets whose convex hulls intersect.
Worked solution
Consider real coefficients satisfying
This homogeneous system has equations in unknowns, so there is a nonzero solution. The coefficients sum to zero; at least one must be positive and one negative. Define
The sets are nonempty and partition all indices. The vector equation gives
On each side the coefficients are nonnegative and sum to 1, so the common point lies in both convex hulls.
That does it. Victory!