Linear subspace
One-dimensional subspaces in the two-dimensional vector space over the finite field F_{5}. The origin (0, 0), marked with green circles, belongs to any of six 1-subspaces, while each of 24 remaining points belongs to exactly one; a property which holds for 1-subspaces over any field and in all dimensions. All F_{5}^{2} (i.e. a 5 × 5 square) is pictured four times for a better visualization |
In linear algebra and related fields of mathematics, a linear subspace (or vector subspace) is a vector space that is a subset of some other (higher-dimension) vector space. A linear subspace is usually called simply a subspace when the context serves to distinguish it from other kinds of subspaces.
Contents
Definition and useful characterization of subspace
Let K be a field (such as the field of real numbers), and let V be a vector space over K. As usual, we call elements of V vectors and call elements of K scalars. Ignoring the full extent of mathematical generalization, scalars can be understood simply as numbers. Suppose that W is a subset of V. If W is a vector space itself (which means that it is closed under operations of addition and scalar multiplication), with the same vector space operations as V has, then W is a subspace of V.
To use this definition, we don't have to prove that all the properties of a vector space hold for W. Instead, we can prove a theorem that gives us an easier way to show that a subset of a vector space is a subspace.
Theorem: Let V be a vector space over the field K, and let W be a subset of V. Then W is a subspace if and only if W satisfies the following three conditions:
- The zero vector, 0, is in W.
- If u and v are elements of W, then the sum u + v is an element of W;
- If u is an element of W and c is a scalar from K, then the product cu is an element of W;
Proof: Firstly, property 1 ensures W is nonempty. Looking at the definition of a vector space, we see that properties 2 and 3 above assure closure of W under addition and scalar multiplication, so the vector space operations are well defined. Since elements of W are necessarily elements of V, axioms 1, 2 and 5–8 of a vector space are satisfied. By the closure of W under scalar multiplication (specifically by 0 and -1), vector space's definitional axiom identity element of addition and axiom inverse element of addition are satisfied.
Conversely, if W is subspace of V, then W is itself a vector space under the operations induced by V, so properties 2 and 3 are satisfied. By property 3, −w is in W whenever w is, and it follows that W is closed under subtraction as well. Since W is nonempty, there is an element x in W, and is in W, so property 1 is satisfied. One can also argue that since W is nonempty, there is an element x in W, and 0 is in the field K so and therefore property 1 is satisfied.
Examples
Example I: Let the field K be the set R of real numbers, and let the vector space V be the real coordinate space R^{3}. Take W to be the set of all vectors in V whose last component is 0. Then W is a subspace of V.
Proof:
- Given u and v in W, then they can be expressed as u = (u_{1}, u_{2}, 0) and v = (v_{1}, v_{2}, 0). Then u + v = (u_{1}+v_{1}, u_{2}+v_{2}, 0+0) = (u_{1}+v_{1}, u_{2}+v_{2}, 0). Thus, u + v is an element of W, too.
- Given u in W and a scalar c in R, if u = (u_{1}, u_{2}, 0) again, then cu = (cu_{1}, cu_{2}, c0) = (cu_{1}, cu_{2},0). Thus, cu is an element of W too.
Example II: Let the field be R again, but now let the vector space be the Cartesian plane R^{2}. Take W to be the set of points (x, y) of R^{2} such that x = y. Then W is a subspace of R^{2}.
Proof:
- Let p = (p_{1}, p_{2}) and q = (q_{1}, q_{2}) be elements of W, that is, points in the plane such that p_{1} = p_{2} and q_{1} = q_{2}. Then p + q = (p_{1}+q_{1}, p_{2}+q_{2}); since p_{1} = p_{2} and q_{1} = q_{2}, then p_{1} + q_{1} = p_{2} + q_{2}, so p + q is an element of W.
- Let p = (p_{1}, p_{2}) be an element of W, that is, a point in the plane such that p_{1} = p_{2}, and let c be a scalar in R. Then cp = (cp_{1}, cp_{2}); since p_{1} = p_{2}, then cp_{1} = cp_{2}, so cp is an element of W.
In general, any subset of the real coordinate space R^{n} that is defined by a system of homogeneous linear equations will yield a subspace. (The equation in example I was z = 0, and the equation in example II was x = y.) Geometrically, these subspaces are points, lines, planes, and so on, that pass through the point 0.
Example III: Again take the field to be R, but now let the vector space V be the set R^{R} of all functions from R to R. Let C(R) be the subset consisting of continuous functions. Then C(R) is a subspace of R^{R}.
Proof:
- We know from calculus that 0 ∈ C(R) ⊂ R^{R}.
- We know from calculus the sum of continuous functions is continuous.
- Again, we know from calculus that the product of a continuous function and a number is continuous.
Example IV: Keep the same field and vector space as before, but now consider the set Diff(R) of all differentiable functions. The same sort of argument as before shows that this is a subspace too.
Examples that extend these themes are common in functional analysis.
Properties of subspaces
A way to characterize subspaces is that they are closed under linear combinations. That is, a nonempty set W is a subspace if and only if every linear combination of (finitely many) elements of W also belongs to W. Conditions 2 and 3 for a subspace are simply the most basic kinds of linear combinations.
In a topological vector space X, a subspace W need not be closed in general, but a finite-dimensional subspace is always closed.^{[1]} The same is true for subspaces of finite codimension, i.e. determined by a finite number of continuous linear functionals.
Descriptions
Descriptions of subspaces include the solution set to a homogeneous system of linear equations, the subset of Euclidean space described by a system of homogeneous linear parametric equations, the span of a collection of vectors, and the null space, column space, and row space of a matrix. Geometrically (especially, over the field of real numbers and its subfields), a subspace is a flat in an n-space that passes through the origin.
A natural description of an 1-subspace is the scalar multiplication of one non-zero vector v to all possible scalar values. 1-subspaces specified by two vectors are equal if and only if one vector can be obtained from another with scalar multiplication:
This idea is generalized for higher dimensions with linear span, but criteria for equality of k-spaces specified by sets of k vectors are not so simple.
A dual description is provided with linear functionals (usually implemented as linear equations). One non-zero linear functional F specifies its kernel subspace F = 0 of codimension 1. Subspaces of codimension 1 specified by two linear functionals are equal if and only if one functional can be obtained from another with scalar multiplication (in the dual space):
It is generalized for higher codimensions with a system of equations. The following two subsections will present this latter description in details, and the remaining four subsections further describe the idea of liner span.
Systems of linear equations
The solution set to any homogeneous system of linear equations with n variables is a subspace in the coordinate space K^{n}:
For example (over real or rational numbers), the set of all vectors (x, y, z) satisfying the equations
is a one-dimensional subspace. More generally, that is to say that given a set of n independent functions, the dimension of the subspace in K^{k} will be the dimension of the null set of A, the composite matrix of the n functions.
Null space of a matrix
{{#invoke:main|main}} In a finite-dimensional space, a homogeneous system of linear equations can be written as a single matrix equation:
The set of solutions to this equation is known as the null space of the matrix. For example, the subspace described above is the null space of the matrix
Every subspace of K^{n} can be described as the null space of some matrix (see algorithms, below).
Linear parametric equations
The subset of K^{n} described by a system of homogeneous linear parametric equations is a subspace:
For example, the set of all vectors (x, y, z) parameterized by the equations
is a two-dimensional subspace of K^{3}, if K is a number field (such as real or rational numbers).^{[2]}
Span of vectors
{{#invoke:main|main}} In linear algebra, the system of parametric equations can be written as a single vector equation:
The expression on the right is called a linear combination of the vectors (2, 5, −1) and (3, −4, 2). These two vectors are said to span the resulting subspace.
In general, a linear combination of vectors v_{1}, v_{2}, ... , v_{k} is any vector of the form
The set of all possible linear combinations is called the span:
If the vectors v_{1}, ... , v_{k} have n components, then their span is a subspace of K^{n}. Geometrically, the span is the flat through the origin in n-dimensional space determined by the points v_{1}, ... , v_{k}.
- As a subspace, the xz-plane is spanned by the vectors (1, 0, 0) and (0, 0, 1). Every vector in the xz-plane can be written as a linear combination of these two:
- Geometrically, this corresponds to the fact that every point on the xz-plane can be reached from the origin by first moving some distance in the direction of (1, 0, 0) and then moving some distance in the direction of (0, 0, 1).
Column space and row space
{{#invoke:main|main}} A system of linear parametric equations in a finite-dimensional space can also be written as a single matrix equation:
In this case, the subspace consists of all possible values of the vector x. In linear algebra, this subspace is known as the column space (or image) of the matrix A. It is precisely the subspace of K^{n} spanned by the column vectors of A.
The row space of a matrix is the subspace spanned by its row vectors. The row space is interesting because it is the orthogonal complement of the null space (see below).
Independence, basis, and dimension
{{#invoke:main|main}}
In general, a subspace of K^{n} determined by k parameters (or spanned by k vectors) has dimension k. However, there are exceptions to this rule. For example, the subspace of K^{3} spanned by the three vectors (1, 0, 0), (0, 0, 1), and (2, 0, 3) is just the xz-plane, with each point on the plane described by infinitely many different values of t_{1}, t_{2}, t_{3}.
In general, vectors v_{1}, ... , v_{k} are called linearly independent if
for (t_{1}, t_{2}, ... , t_{k}) ≠ (u_{1}, u_{2}, ... , u_{k}).^{[3]} If v_{1}, ..., v_{k} are linearly independent, then the coordinates t_{1}, ..., t_{k} for a vector in the span are uniquely determined.
A basis for a subspace S is a set of linearly independent vectors whose span is S. The number of elements in a basis is always equal to the geometric dimension of the subspace. Any spanning set for a subspace can be changed into a basis by removing redundant vectors (see algorithms, below).
- Example
- Let S be the subspace of R^{4} defined by the equations
- Then the vectors (2, 1, 0, 0) and (0, 0, 5, 1) are a basis for S. In particular, every vector that satisfies the above equations can be written uniquely as a linear combination of the two basis vectors:
- The subspace S is two-dimensional. Geometrically, it is the plane in R^{4} passing through the points (0, 0, 0, 0), (2, 1, 0, 0), and (0, 0, 5, 1).
Operations and relations on subspaces
Inclusion
The set-theoretical inclusion binary relation specified a partial order on the set of all subspaces (of any dimension).
A subspace cannot lie in any subspace of lesser dimension. If dim U = k, a finite number, and U ⊂ W, then dim W = k if and only if U = W.
Intersection
Given subspaces U and W of a vector space V, then their intersection U ∩ W := {v ∈ V : v is an element of both U and W} is also a subspace of V.
Proof:
- Let v and w be elements of U ∩ W. Then v and w belong to both U and W. Because U is a subspace, then v + w belongs to U. Similarly, since W is a subspace, then v + w belongs to W. Thus, v + w belongs to U ∩ W.
- Let v belong to U ∩ W, and let c be a scalar. Then v belongs to both U and W. Since U and W are subspaces, cv belongs to both U and W.
- Since U and W are vector spaces, then 0 belongs to both sets. Thus, 0 belongs to U ∩ W.
For every vector space V, the set {0} and V itself are subspaces of V.
Sum
If U and W are subspaces, their sum is the subspace
For example, the sum of two lines is the plane that contains them both. The dimension of the sum satisfies the inequality
Here the minimum only occurs if one subspace is contained in the other, while the maximum is the most general case. The dimension of the intersection and the sum are related:
Lattice of subspaces
Aforementioned two operations make the set of all subspaces a bounded distributive lattice, where the {0} subspace, the least element, is an identity element of the sum operation, and the identical subspace V, the greatest element, is an identity element of the intersection operation.
Other
{{ safesubst:#invoke:Unsubst||$N=Unreferenced section |date=__DATE__ |$B= {{ safesubst:#invoke:Unsubst||$N=Unreferenced |date=__DATE__ |$B= {{#invoke:Message box|ambox}} }} }} If V is an inner product space, then the orthogonal complement ⊥ of any subspace of V is again a subspace. This operation, understood as negation (¬), makes the lattice of subspaces a (possibly infinite) Boolean algebra.
In a pseudo-Euclidean space there are orthogonal complements too, but such operation does not form a Boolean algebra (nor a Heyting algebra) because of null subspaces, for which N ∩ N^{⊥} = N ≠ {0}. The same case presents the ^{⊥} operation in symplectic vector spaces.
Algorithms
Most algorithms for dealing with subspaces involve row reduction. This is the process of applying elementary row operations to a matrix until it reaches either row echelon form or reduced row echelon form. Row reduction has the following important properties:
- The reduced matrix has the same null space as the original.
- Row reduction does not change the span of the row vectors, i.e. the reduced matrix has the same row space as the original.
- Row reduction does not affect the linear dependence of the column vectors.
Basis for a row space
- Input An m × n matrix A.
- Output A basis for the row space of A.
- Use elementary row operations to put A into row echelon form.
- The nonzero rows of the echelon form are a basis for the row space of A.
See the article on row space for an example.
If we instead put the matrix A into reduced row echelon form, then the resulting basis for the row space is uniquely determined. This provides an algorithm for checking whether two row spaces are equal and, by extension, whether two subspaces of K^{n} are equal.
Subspace membership
- Input A basis {b_{1}, b_{2}, ..., b_{k}} for a subspace S of K^{n}, and a vector v with n components.
- Output Determines whether v is an element of S
- Create a (k + 1) × n matrix A whose rows are the vectors b_{1}, ... , b_{k} and v.
- Use elementary row operations to put A into row echelon form.
- If the echelon form has a row of zeroes, then the vectors {b_{1}, ..., b_{k}, v} are linearly dependent, and therefore v ∈ S .
Basis for a column space
- Input An m × n matrix A
- Output A basis for the column space of A
- Use elementary row operations to put A into row echelon form.
- Determine which columns of the echelon form have pivots. The corresponding columns of the original matrix are a basis for the column space.
See the article on column space for an example.
This produces a basis for the column space that is a subset of the original column vectors. It works because the columns with pivots are a basis for the column space of the echelon form, and row reduction does not change the linear dependence relationships between the columns.
Coordinates for a vector
- Input A basis {b_{1}, b_{2}, ..., b_{k}} for a subspace S of K^{n}, and a vector v ∈ S
- Output Numbers t_{1}, t_{2}, ..., t_{k} such that v = t_{1}b_{1} + ··· + t_{k}b_{k}
- Create an augmented matrix A whose columns are b_{1},...,b_{k} , with the last column being v.
- Use elementary row operations to put A into reduced row echelon form.
- Express the final column of the reduced echelon form as a linear combination of the first k columns. The coefficients used are the desired numbers t_{1}, t_{2}, ..., t_{k}. (These should be precisely the first k entries in the final column of the reduced echelon form.)
If the final column of the reduced row echelon form contains a pivot, then the input vector v does not lie in S.
Basis for a null space
- Input An m × n matrix A.
- Output A basis for the null space of A
- Use elementary row operations to put A in reduced row echelon form.
- Using the reduced row echelon form, determine which of the variables x_{1}, x_{2}, ..., x_{n} are free. Write equations for the dependent variables in terms of the free variables.
- For each free variable x_{i}, choose a vector in the null space for which x_{i} = 1 and the remaining free variables are zero. The resulting collection of vectors is a basis for the null space of A.
See the article on null space for an example.
Equations for a subspace
- Input A basis {b_{1}, b_{2}, ..., b_{k}} for a subspace S of K^{n}
- Output An (n − k) × n matrix whose null space is S.
- Create a matrix A whose rows are b_{1}, b_{2}, ..., b_{k}.
- Use elementary row operations to put A into reduced row echelon form.
- Let c_{1}, c_{2}, ..., c_{n} be the columns of the reduced row echelon form. For each column without a pivot, write an equation expressing the column as a linear combination of the columns with pivots.
- This results in a homogeneous system of n − k linear equations involving the variables c_{1},...,c_{n}. The (n − k) × n matrix corresponding to this system is the desired matrix with nullspace S.
- Example
- If the reduced row echelon form of A is
- then the column vectors c_{1}, ..., c_{6} satisfy the equations
- It follows that the row vectors of A satisfy the equations
- In particular, the row vectors of A are a basis for the null space of the corresponding matrix.
See also
Textbooks
- {{#invoke:citation/CS1|citation
|CitationClass=citation }}
- {{#invoke:citation/CS1|citation
|CitationClass=citation }}
- {{#invoke:citation/CS1|citation
|CitationClass=citation }}
- {{#invoke:citation/CS1|citation
|CitationClass=citation }}
- {{#invoke:citation/CS1|citation
|CitationClass=citation }}
- {{#invoke:citation/CS1|citation
|CitationClass=citation }}
External links
- Template:Planetmath reference.
- Template:Aut, MIT Linear Algebra Lecture on the Four Fundamental Subspaces at Google Video, from MIT OpenCourseWare
References
- ↑ See Template:Cite web for Hilbert spaces
- ↑ Generally, K can be any field of such characteristic that the given integer matrix has the appropriate rank in it. All fields include integers, but some integers may equal to zero in some fields.
- ↑ This definition is often stated differently: vectors v_{1}, ..., v_{k} are linearly independent if t_{1}v_{1} + ··· + t_{k}v_{k} ≠ 0 for (t_{1}, t_{2}, ..., t_{k}) ≠ (0, 0, ..., 0). The two definitions are equivalent.