Loading…
Find bases of matrix subspaces by entry constraints and column stacking, and explain the dimensions of triangular, symmetric, and skew-symmetric spaces.
A matrix can itself be a vector in a vector space. The relevant operations are matrix addition and scalar multiplication, so all matrices under discussion must have the same size. Throughout this note, scalars and entries are real, and are positive integers. We write for the space of real matrices.
The main questions remain familiar: which matrices can a list generate, which generators are redundant, and how many matrices are needed in a basis? Entry constraints sometimes reveal the answer directly. For a less transparent generating list, we can stack the entries and use row reduction.
Definition 6.7.1
(Matrix span and matrix basis)
For , their span is
A list in a subspace is a basis of if it spans and is linearly independent: the equality forces every . The dimension of is the number of matrices in a basis. The zero subspace has the empty basis and dimension zero.
Matrix span is a subspace: the zero matrix is obtained with zero coefficients, and adding or scaling combinations gives another combination of the same matrices. A basis provides a unique coefficient list for every matrix in the subspace. Spanning gives existence; subtracting two representations and using independence gives uniqueness. Conversely, unique representations imply spanning and force the zero matrix's coefficients to be zero.
Concept lensAlgebraic
In , one vector has six entries arranged as a rectangle. Its shape does not make the dimension two or three. Dimension counts how many independent matrices are needed to generate the space, while matrix rank concerns the column space of one matrix. These are different questions. For example, the identity matrix of size two has matrix rank two, but the subspace spanned by that one nonzero matrix has dimension one: every element is a scalar multiple of the identity.
A matrix subspace only needs closure under addition and scalar multiplication. Closure under matrix multiplication is not part of its definition; rectangular matrices may not even be multipliable with each other. The zero vector here is the zero matrix of the fixed size, and coefficients remain real numbers.
For each position , let have entry one at that position and zero elsewhere. The ambient size is fixed when using this notation. For example, in ,
Theorem 6.7.2
(Basis and dimension of the full matrix space)
The matrices , where and , form a basis of . Consequently,
Proof
(Spanning and independence by comparing entries)
Every matrix satisfies
This proves spanning: the entry at position on the right is precisely . If a combination equals zero, its entry is , so every coefficient vanishes. This proves independence. There are basis matrices, giving the dimension.
Thus counting entry positions works here because we have proved that these entries can be prescribed independently. In a constrained subspace, counting all displayed entries may overcount the actual degrees of freedom.
Define by stacking the columns of , from left to right, into one column. For instance,
The order must be used consistently for every matrix. The result has entries and can be reshaped uniquely into the original matrix.
Theorem 6.7.3
(The coordinate dictionary for matrix bases)
For fixed-size matrices and real coefficients ,
In particular, a list of matrices is linearly independent exactly when its stacked columns are independent. For a subspace , write . A list in is a basis of exactly when its stacked columns form a basis of .
Proof
(No equation is lost when entries are rearranged)
At every position, the matrix equation asserts . Stacking simply places these same scalar equations in a fixed order, establishing both directions. Applying this equivalence to preserves all homogeneous coefficient relations and hence independence. Applying it to every preserves spanning. The same identity shows that is closed under linear combinations and contains zero, so it is a subspace. Together these facts prove the basis assertion.
To find a basis of a supplied matrix span, form
This matrix has rows and columns. Reduce , record its pivot-column indices, and select the original matrices with those indices. The original-column theorem from 6.6 Column space, row space, and rank then transfers through the dictionary. If every supplied matrix is zero, there are no pivot columns and the resulting basis is empty.
Worked example 6.7.4
(Extracting a basis from a dependent matrix family)
Let
Column stacking gives
Swap the first and third rows, negate the first, and subtract twice the first from the fourth. Then swap the second and third rows:
Subtract twice the second row from the first and three times the second from the fourth:
The pivot indices are one and two. Hence form a basis of the original matrix span, whose dimension is two. The third column records
Every combination can therefore be rewritten as
Independence of can also be checked directly: the top-left entry forces the coefficient of to vanish, and the top-right entry then forces the coefficient of to vanish.
Common mistake
(Reshaping the reduced columns changes the matrices)
The second pivot column of the RREF is . Reshaping it gives , which is outside the original span: every original generator has lower-left entry zero. Row reduction preserves relations among columns, but need not preserve their span. Use the pivot indices to return to , rather than reshaping the reduced columns.
Let consist of square matrices whose entries below the diagonal are zero. These zero constraints survive addition and scalar multiplication, and the zero matrix satisfies them, so this is a subspace. Its general expansion is
The allowed matrix units span, and entry comparison proves their independence exactly as before. Counting the allowed positions gives
For diagonal matrices, only remain, giving dimension . Lower triangular matrices have the same dimension as upper triangular matrices: transpose takes the basis units to .
Worked example 6.7.5
(Reading six coordinates in an upper triangular matrix)
A general element of is
Each of the six parameters is arbitrary and occupies a distinct allowed entry. A zero combination forces all six to vanish, so these six matrices are a basis. For the matrix with , the coordinate list in this displayed order is . The zero coefficient of in this particular matrix does not remove from a basis of the whole subspace.
Let be the matrices satisfying , and let be those satisfying . Both are subspaces: transpose distributes over addition and scalar multiplication, so each defining equation is preserved under linear combinations.
For symmetric matrices, entries below the diagonal repeat those above it. The diagonal entries remain arbitrary, giving
These matrices span . In a zero combination, the diagonal entries recover the first coefficients, and each upper-diagonal entry recovers exactly one remaining coefficient. All must be zero. Therefore this is a basis and
Worked example 6.7.6
(A basis of the symmetric matrices of size two)
Every symmetric matrix of size two has the form
The three displayed matrices span. If their combination with coefficients is zero, comparison of positions gives . They form a basis, so the dimension is three. Although appears twice in the original array, the symmetry constraint makes those two entries a single choice.
The following sequence separates the three parameters into their fixed basis matrices.
Follow the Sym2(R) worked example turn free parameters into fixed basis matrices, then compare the resulting dimensions with full, triangular, and skew-symmetric matrix spaces.
Matrices can be vectors
Inside a fixed-size matrix space such as M2,2(R), ordinary matrix addition and scalar multiplication keep every result in the same ambient space.
Matrix units isolate entries
The standard matrices E11, E12, E21, and E22 isolate the four independent entry directions of M2,2(R).
Constraints reduce freedom
In Sym2(R), the equation A^T=A ties the two off-diagonal entries together, leaving only a, b, and c free.
Split by parameters
The general symmetric matrix [a b; b c] splits as aB1+bB2+cB3, one fixed matrix for each free parameter.
Check basis
The decomposition gives spanning, and comparing entries in aB1+bB2+cB3=0 gives independence.
Count free choices
Dimension counts the basis matrices, so dim Sym2(R)=3 even though the matrices are still 2 by 2.
For a matrix subspace, write the general matrix, identify the free parameters, split by those parameters, and count the fixed matrices that form the basis.
For a real skew-symmetric matrix, gives and hence . Every entry below the diagonal is the negative of its partner above it. Thus
The same upper-entry comparison proves independence, so
In particular, every matrix in is
with basis and dimension three. When , the space is zero and this basis list is empty, consistently giving dimension zero.
Theorem 6.7.7
(Unique symmetric and skew-symmetric decomposition)
For every there is exactly one pair and with . It is
Proof
(Existence by formulas and uniqueness by zero intersection)
Transpose linearity and give and . Adding the formulas gives , proving existence. For uniqueness, if , then is both symmetric and skew-symmetric. Hence , so and . Both parts therefore agree. Division by two is valid over the real field used throughout this note.
This proves more than the numerical identity : every matrix can actually be assembled from the two subspaces, and their overlap contains only zero. Equal dimension counts alone would not establish either fact.
Worked example 6.7.8
(Computing both parts of a matrix)
For
the formulas give
For example, the entries three and one in positions contribute the average two to and the opposite pair one, minus one to . Checking all entries gives . The skew part has basis coefficients relative to , so its signs can also be checked through the earlier basis expansion.
Since stacking preserves bases, it also preserves dimension. In particular, a matrix subspace of has dimension at most . More than matrices of this fixed size must be dependent: their stacked coefficient matrix has more columns than rows, so its homogeneous system has a free variable and hence a nonzero solution. The same coefficients give a nontrivial zero combination of the original matrices.
More precisely, if has known dimension and a list consists of exactly matrices belonging to , then either independence or spanning suffices to establish that it is a basis. This follows by applying the corresponding basis theorem to the stacked subspace. The membership hypothesis matters: a list of independent matrices outside is not a basis of merely because its length matches the dimension.
These facts also clarify the meaning of “dimension counts parameters.” A complete parametrization proves spanning, but it can still assign several parameter lists to the same matrix. To identify the parameter count with dimension, uniqueness must be checked, for example by comparing entries or solving the homogeneous coefficient equations. The earlier symmetric and triangular expansions pass this check; the three-generator dependent family does not.
For a space defined by entry constraints, write its general matrix, separate its genuinely free parameters, and prove that the resulting fixed matrices span and are independent. For a supplied generating family, stack columns, reduce the coordinate matrix, and return to the original pivot-indexed matrices. These are two ways of answering the same basis question.
Common mistake
(Counting parameters before proving independence)
A parametrization can be redundant. The three matrices in the dependent-family example give three coefficients but a space of dimension two. Counting parameters determines dimension only after the associated matrices are shown to be independent. Conversely, a particular matrix with many zero coefficients does not lower the dimension of its ambient subspace.
Quick check
(What is the dimension of the real matrix space with two rows and three columns?)
Use the matrix units.
There are basis matrices , so .
Quick check
(Why must a real skew-symmetric matrix have zero diagonal?)
Apply its defining equation at a diagonal entry.
Transpose leaves in place, so . Thus and over the reals.
Quick check
(Find a basis and dimension for the diagonal matrices of size three.)
Write the general diagonal matrix.
Every diagonal matrix is . The three units span and are independent by comparison of diagonal entries. They form a basis and the dimension is three.
Quick check
(In the dependent-family example, express twice the first generator plus the third in the basis of the first two generators.)
Use the relation obtained from the third reduced column.
Since , we obtain . Its basis coordinates are , and the resulting matrix is .
Quick check
(If a real matrix is both symmetric and skew-symmetric, what is it? What is the dimension of the intersection of these subspaces?)
Compare the two transpose equations.
The equations give , hence . Their intersection is the zero subspace, with empty basis and dimension zero.
This note uses 6.5 Basis and dimension and 3.3 Transpose, symmetric, and skew-symmetric matrices. The coordinate computation uses the original-column rule of 6.6; the extra step here is translating back to matrices of the original size.