Search Knowledge

© 2026 LIBREUNI PROJECT

Linear Algebra / Overview

Subspaces and Quotients

Subspaces and Quotients

A vector space can contain smaller vector spaces called subspaces. We can also “divide” a space by a subspace to create a quotient space.

Subspaces

A subset WW of a vector space VV is a subspace if:

  1. The zero vector 0W\mathbf{0} \in W.
  2. WW is closed under addition: u,vW    u+vW\mathbf{u}, \mathbf{v} \in W \implies \mathbf{u} + \mathbf{v} \in W.
  3. WW is closed under scalar multiplication: cF,vW    cvWc \in F, \mathbf{v} \in W \implies c\mathbf{v} \in W.
python
1import numpy as np
2 
3def is_in_subspace(vector, basis):
4 """Check if a vector is in the subspace spanned by a basis."""
5 # Solve basis * c = vector
6 A = np.array(basis).T
7 try:
8 x, residuals, rank, s = np.linalg.lstsq(A, vector, rcond=None)
9 # If residuals are near zero, it's in the subspace
10 return np.allclose(np.dot(A, x), vector)
11 except:
12 return False
13 
14subspace_basis = [[1, 0, 0], [0, 1, 0]]
15v1 = [0.5, 2.0, 0.0]
16v2 = [0.5, 2.0, 1.0]
17 
18print(f"Vector {v1} in subspace: {is_in_subspace(v1, subspace_basis)}")
19print(f"Vector {v2} in subspace: {is_in_subspace(v2, subspace_basis)}")

Quotient Spaces

Given a subspace WVW \subseteq V, the quotient space V/WV/W is the set of all cosets v+W\mathbf{v} + W. Intuitively, the quotient space “ignores” all differences that lie within WW.

The dimension of a quotient space is: dim(V/W)=dim(V)dim(W)\dim(V/W) = \dim(V) - \dim(W)

If V = R3 and W is a line through the origin, what is the dimension of V/W?

Kernels and Images

For a linear map T:VWT: V \to W:

  • The Kernel ker(T)={vVT(v)=0}\ker(T) = \{ \mathbf{v} \in V \mid T(\mathbf{v}) = \mathbf{0} \} is a subspace of VV.
  • The Image im(T)={T(v)vV}im(T) = \{ T(\mathbf{v}) \mid \mathbf{v} \in V \} is a subspace of WW.
python
1import numpy as np
2from scipy.linalg import null_space
3 
4A = np.array([[1, 2, 3], [2, 4, 6], [1, 1, 1]])
5 
6# Find basis for kernel
7ns = null_space(A)
8print(f"Basis for Kernel (Null Space):\n{ns}")
9 
10# Find rank (dimension of image)
11rank = np.linalg.matrix_rank(A)
12print(f"Rank (dim of Image): {rank}")

According to the First Isomorphism Theorem for vector spaces, V/ker(T) is isomorphic to what?

Previous Module Representation Theory