Tutorials › Linear Algebra › Inclusion and Projection Maps for Direct Sums

Matrix Representations of Linear Maps · Tutorial 439 of 1000

Inclusion and Projection Maps for Direct Sums

Learn to build and use the inclusion and projection matrices for a direct sum by keeping the basis order and coordinate blocks explicit.

Intermediate 8 min read

What You'll Learn

  • Define the direct sum of two real vector spaces using ordered pairs.
  • Form the concatenated basis for the direct sum from bases of its component spaces.
  • Derive the coordinate matrices for both inclusions and both projections.
  • Verify how the block matrices act on pairs of coordinates.
  • Avoid basis-order errors when extracting a component from a direct-sum coordinate vector.

Pairs, Coordinates, and the Direct Sum

When two vector spaces are combined as a direct sum, each vector records one component from each space. The inclusion maps place a vector into one component while setting the other to zero; the projection maps extract one component and discard the other. Their coordinate matrices are simple block matrices, but the blocks make sense only when the basis order is fixed and used consistently.

Throughout, the spaces are finite-dimensional vector spaces over \(\mathbb{R}\). For spaces \(V\) and \(W\), their direct sum \(V\oplus W\) is the vector space of ordered pairs \((\mathbf{v},\mathbf{w})\), where \(\mathbf{v}\in V\) and \(\mathbf{w}\in W\). Addition and scalar multiplication are defined componentwise: \((\mathbf{v},\mathbf{w})+(\mathbf{v}',\mathbf{w}')=(\mathbf{v}+\mathbf{v}',\mathbf{w}+\mathbf{w}')\) and \(a(\mathbf{v},\mathbf{w})=(a\mathbf{v},a\mathbf{w})\).

Definition: The inclusion maps for \(V\oplus W\) are \(i_V:V\to V\oplus W\), defined by \(i_V(\mathbf{v})=(\mathbf{v},\mathbf{0})\), and \(i_W:W\to V\oplus W\), defined by \(i_W(\mathbf{w})=(\mathbf{0},\mathbf{w})\). The projection maps are \(\pi_V:V\oplus W\to V\), defined by \(\pi_V(\mathbf{v},\mathbf{w})=\mathbf{v}\), and \(\pi_W:V\oplus W\to W\), defined by \(\pi_W(\mathbf{v},\mathbf{w})=\mathbf{w}\).

Each map is linear. For example, \(i_V(a\mathbf{v}+b\mathbf{v}')=(a\mathbf{v}+b\mathbf{v}',\mathbf{0})=a(\mathbf{v},\mathbf{0})+b(\mathbf{v}',\mathbf{0})\). For the projections, \(\pi_V(a(\mathbf{v},\mathbf{w})+b(\mathbf{v}',\mathbf{w}'))=a\mathbf{v}+b\mathbf{v}'=a\pi_V(\mathbf{v},\mathbf{w})+b\pi_V(\mathbf{v}',\mathbf{w}')\); the same componentwise calculation applies to \(i_W\) and \(\pi_W\).

Choose ordered bases \(\mathcal{B}=(\mathbf{b}_1,\ldots,\mathbf{b}_n)\) for \(V\) and \(\mathcal{C}=(\mathbf{c}_1,\ldots,\mathbf{c}_m)\) for \(W\). The basis order for the direct sum will be the concatenation \(\mathcal{D}=((\mathbf{b}_1,\mathbf{0}),\ldots,(\mathbf{b}_n,\mathbf{0}),(\mathbf{0},\mathbf{c}_1),\ldots,(\mathbf{0},\mathbf{c}_m))\). Thus all \(V\)-coordinates come first, followed by all \(W\)-coordinates.

Theorem: With these bases, the coordinate matrices of the inclusions and projections are \([i_V]_{\mathcal{D}\leftarrow\mathcal{B}}=\begin{bmatrix}\mathbf{I}_n\\\mathbf{O}_{m\times n}\end{bmatrix}\), \([i_W]_{\mathcal{D}\leftarrow\mathcal{C}}=\begin{bmatrix}\mathbf{O}_{n\times m}\\\mathbf{I}_m\end{bmatrix}\), \([\pi_V]_{\mathcal{B}\leftarrow\mathcal{D}}=\begin{bmatrix}\mathbf{I}_n&\mathbf{O}_{n\times m}\end{bmatrix}\), and \([\pi_W]_{\mathcal{C}\leftarrow\mathcal{D}}=\begin{bmatrix}\mathbf{O}_{m\times n}&\mathbf{I}_m\end{bmatrix}\).

Proof. The matrix of a linear map has, as its \(j\)th column, the coordinate vector of the image of the \(j\)th domain basis vector in the codomain basis. For \(i_V\), the \(j\)th domain basis vector is \(\mathbf{b}_j\), and its image is \((\mathbf{b}_j,\mathbf{0})\), which is the \(j\)th basis vector of \(\mathcal{D}\). Its coordinate column therefore has a \(1\) in position \(j\) and zeros elsewhere. These \(n\) columns form the block matrix with \(\mathbf{I}_n\) above \(\mathbf{O}_{m\times n}\). For \(i_W\), each \(\mathbf{c}_j\) maps to the \((n+j)\)th vector of \(\mathcal{D}\); its coordinate column has its \(1\) in position \(n+j\), giving the stated lower identity block. For \(\pi_V\), the first \(n\) basis vectors of \(\mathcal{D}\) map to \(\mathbf{b}_1,\ldots,\mathbf{b}_n\), and the last \(m\) map to \(\mathbf{0}\). The resulting columns are those of \(\mathbf{I}_n\) followed by \(m\) zero columns. For \(\pi_W\), the first \(n\) basis vectors map to \(\mathbf{0}\), and the last \(m\) map to \(\mathbf{c}_1,\ldots,\mathbf{c}_m\), giving \(n\) zero columns followed by \(\mathbf{I}_m\). These are exactly the four displayed matrices. \(\square\)

How the Blocks Act

The theorem gives a direct coordinate rule. If \(\mathbf{v}\) has coordinate column \(\mathbf{x}\in\mathbb{R}^n\) in \(\mathcal{B}\), and \(\mathbf{w}\) has coordinate column \(\mathbf{y}\in\mathbb{R}^m\) in \(\mathcal{C}\), then the pair \((\mathbf{v},\mathbf{w})\) has coordinate column \(\begin{bmatrix}\mathbf{x}\\\mathbf{y}\end{bmatrix}\) in \(\mathcal{D}\). The inclusions insert a zero block; the projections select one of the two blocks.

Coordinate rule: For \(\mathbf{x}\in\mathbb{R}^n\) and \(\mathbf{y}\in\mathbb{R}^m\), \[ \begin{bmatrix}\mathbf{I}_n\\\mathbf{O}_{m\times n}\end{bmatrix}\mathbf{x} =\begin{bmatrix}\mathbf{x}\\\mathbf{0}\end{bmatrix}, \qquad \begin{bmatrix}\mathbf{O}_{n\times m}\\\mathbf{I}_m\end{bmatrix}\mathbf{y} =\begin{bmatrix}\mathbf{0}\\\mathbf{y}\end{bmatrix}, \] \[ \begin{bmatrix}\mathbf{I}_n&\mathbf{O}_{n\times m}\end{bmatrix} \begin{bmatrix}\mathbf{x}\\\mathbf{y}\end{bmatrix} =\mathbf{x}, \qquad \begin{bmatrix}\mathbf{O}_{m\times n}&\mathbf{I}_m\end{bmatrix} \begin{bmatrix}\mathbf{x}\\\mathbf{y}\end{bmatrix} =\mathbf{y}. \]

These rules also show why the direct-sum basis is a basis. Every pair has the displayed coordinate column, so the concatenated list spans \(V\oplus W\). If a linear combination of that list is zero, its \(V\)-component is a zero combination of \(\mathcal{B}\) and its \(W\)-component is a zero combination of \(\mathcal{C}\); independence of each basis forces all coefficients to vanish.

Proposition: Each pair in \(V\oplus W\) has a unique decomposition \((\mathbf{v},\mathbf{w})=i_V(\mathbf{v})+i_W(\mathbf{w})\).

Proof. By the definitions and componentwise addition, \(i_V(\mathbf{v})+i_W(\mathbf{w})=(\mathbf{v},\mathbf{0})+(\mathbf{0},\mathbf{w})=(\mathbf{v},\mathbf{w})\), so a decomposition exists. Suppose also that \((\mathbf{v},\mathbf{w})=i_V(\mathbf{v}')+i_W(\mathbf{w}')\). The right-hand side is \((\mathbf{v}',\mathbf{w}')\). Equality of ordered pairs gives \(\mathbf{v}=\mathbf{v}'\) and \(\mathbf{w}=\mathbf{w}'\). Thus the decomposition is unique. \(\square\)

Worked Coordinate Calculations

Worked Example: Standard Bases in \(\mathbb{R}^2\oplus\mathbb{R}^3\)

Use the standard bases for \(V=\mathbb{R}^2\) and \(W=\mathbb{R}^3\). For \(\mathbf{x}=\begin{bmatrix}2\\-1\end{bmatrix}\) and \(\mathbf{y}=\begin{bmatrix}1\\0\\4\end{bmatrix}\), calculate both inclusions and both projections using the block matrices.

The concatenated basis has the two \(V\)-basis vectors first, then the three \(W\)-basis vectors. The inclusion matrices and their actions are

$$ [i_V]=\begin{bmatrix}1&0\\0&1\\0&0\\0&0\\0&0\end{bmatrix}, \qquad [i_V]\mathbf{x} =\begin{bmatrix}1&0\\0&1\\0&0\\0&0\\0&0\end{bmatrix} \begin{bmatrix}2\\-1\end{bmatrix} =\begin{bmatrix}2\\-1\\0\\0\\0\end{bmatrix}, $$

and

$$ [i_W]=\begin{bmatrix}0&0&0\\0&0&0\\1&0&0\\0&1&0\\0&0&1\end{bmatrix}, \qquad [i_W]\mathbf{y} =\begin{bmatrix}0&0&0\\0&0&0\\1&0&0\\0&1&0\\0&0&1\end{bmatrix} \begin{bmatrix}1\\0\\4\end{bmatrix} =\begin{bmatrix}0\\0\\1\\0\\4\end{bmatrix}. $$

The projection matrices act on the pair coordinate column \(\begin{bmatrix}2&-1&1&0&4\end{bmatrix}^{\top}\):

$$ [\pi_V]\begin{bmatrix}2\\-1\\1\\0\\4\end{bmatrix} = \begin{bmatrix}1&0&0&0&0\\0&1&0&0&0\end{bmatrix} \begin{bmatrix}2\\-1\\1\\0\\4\end{bmatrix} =\begin{bmatrix}2\\-1\end{bmatrix}, \qquad [\pi_W]\begin{bmatrix}2\\-1\\1\\0\\4\end{bmatrix} = \begin{bmatrix}0&0&1&0&0\\0&0&0&1&0\\0&0&0&0&1\end{bmatrix} \begin{bmatrix}2\\-1\\1\\0\\4\end{bmatrix} =\begin{bmatrix}1\\0\\4\end{bmatrix}. $$

Check: The first inclusion gives the coordinates of \((\mathbf{x},\mathbf{0})\), and the second gives those of \((\mathbf{0},\mathbf{y})\). The pair coordinates split as \(\begin{bmatrix}2\\-1\end{bmatrix}\) followed by \(\begin{bmatrix}1\\0\\4\end{bmatrix}\), which the two projections recover exactly.

Worked Example: Nonstandard Component Bases

Let \(V=W=\mathbb{R}^2\), with \(\mathcal{B}=(\mathbf{b}_1,\mathbf{b}_2)\), where \(\mathbf{b}_1=(1,1)\), \(\mathbf{b}_2=(1,-1)\), and \(\mathcal{C}=(\mathbf{c}_1,\mathbf{c}_2)\), where \(\mathbf{c}_1=(1,0)\), \(\mathbf{c}_2=(1,2)\). Apply the inclusions and projections to component coordinates \(\mathbf{x}=\begin{bmatrix}2\\-1\end{bmatrix}\) and \(\mathbf{y}=\begin{bmatrix}3\\-1\end{bmatrix}\).

Relative to the concatenated basis \(\mathcal{D}\), the matrices are

$$ [i_V]=\begin{bmatrix}1&0\\0&1\\0&0\\0&0\end{bmatrix}, \quad [i_W]=\begin{bmatrix}0&0\\0&0\\1&0\\0&1\end{bmatrix}, \quad [\pi_V]=\begin{bmatrix}1&0&0&0\\0&1&0&0\end{bmatrix}, \quad [\pi_W]=\begin{bmatrix}0&0&1&0\\0&0&0&1\end{bmatrix}. $$

Multiplying the inclusion matrices gives

$$ [i_V]\mathbf{x} =\begin{bmatrix}2\\-1\\0\\0\end{bmatrix}, \qquad [i_W]\mathbf{y} =\begin{bmatrix}0\\0\\3\\-1\end{bmatrix}. $$

The pair has concatenated coordinates \(\begin{bmatrix}2&-1&3&-1\end{bmatrix}^{\top}\), so multiplication by the projection matrices gives

$$ [\pi_V]\begin{bmatrix}2\\-1\\3\\-1\end{bmatrix} =\begin{bmatrix}2\\-1\end{bmatrix}, \qquad [\pi_W]\begin{bmatrix}2\\-1\\3\\-1\end{bmatrix} =\begin{bmatrix}3\\-1\end{bmatrix}. $$

Check: The actual vectors represented are \(\mathbf{v}=2\mathbf{b}_1-\mathbf{b}_2=(2,2)-(1,-1)=(1,3)\) and \(\mathbf{w}=3\mathbf{c}_1-\mathbf{c}_2=(3,0)-(1,2)=(2,-2)\). Thus the pair is \(((1,3),(2,-2))\), and its two component coordinate columns are indeed \(\mathbf{x}\) and \(\mathbf{y}\).

Worked Example: Polynomial Components

Let \(V=P_1(\mathbb{R})\) with basis \(\mathcal{B}=(1+x,x)\), and let \(W=P_0(\mathbb{R})\) with basis \(\mathcal{C}=(1)\). For \(p(x)=3+2x\) and \(q(x)=-4\), find the pair coordinates and verify both projections.

Write \(p(x)=a(1+x)+bx=a+(a+b)x\). Matching coefficients gives \(a=3\) and \(a+b=2\), hence \(b=-1\). The coordinate column for \(p\) is \(\begin{bmatrix}3\\-1\end{bmatrix}\), while that for \(q\) is \(\begin{bmatrix}-4\end{bmatrix}\). The direct-sum coordinate column is therefore \(\begin{bmatrix}3&-1&-4\end{bmatrix}^{\top}\). The projection matrices give

$$ [\pi_V]\begin{bmatrix}3\\-1\\-4\end{bmatrix} =\begin{bmatrix}1&0&0\\0&1&0\end{bmatrix} \begin{bmatrix}3\\-1\\-4\end{bmatrix} =\begin{bmatrix}3\\-1\end{bmatrix}, \qquad [\pi_W]\begin{bmatrix}3\\-1\\-4\end{bmatrix} =\begin{bmatrix}0&0&1\end{bmatrix} \begin{bmatrix}3\\-1\\-4\end{bmatrix} =\begin{bmatrix}-4\end{bmatrix}. $$

For a further check, the inclusion of \(p\) gives \(\begin{bmatrix}3&-1&0\end{bmatrix}^{\top}\), representing \((3+2x,0)\), and the inclusion of \(q\) gives \(\begin{bmatrix}0&0&-4\end{bmatrix}^{\top}\), representing \((0,-4)\). Adding these coordinate columns gives \(\begin{bmatrix}3&-1&-4\end{bmatrix}^{\top}\), the coordinates of the original pair.

Common Pitfall: Changing the Basis Order

The block formulas depend on the concatenated order \(\mathcal{D}\). A frequent error is to use a matrix built for one order while reading coordinates in another. For example, with \(\dim V=2\) and \(\dim W=1\), suppose someone orders the basis as \(((\mathbf{b}_1,\mathbf{0}),(\mathbf{0},\mathbf{c}_1),(\mathbf{b}_2,\mathbf{0}))\), interleaving the components. A pair whose component coordinates are \((2,3)\) in \(V\) and \((-4)\) in \(W\) then has coordinate column \(\begin{bmatrix}2&-4&3\end{bmatrix}^{\top}\). Using the concatenated-order projection matrix \(\begin{bmatrix}1&0&0\\0&1&0\end{bmatrix}\) would give \(\begin{bmatrix}2&-4\end{bmatrix}^{\top}\), which incorrectly treats the \(W\)-coordinate as the second \(V\)-coordinate.

For the interleaved order, the correct matrix for the \(V\)-projection is \(\begin{bmatrix}1&0&0\\0&0&1\end{bmatrix}\), and it gives \(\begin{bmatrix}2&3\end{bmatrix}^{\top}\). The correction is not to memorize a different block formula, but to match each matrix column to the ordered basis vector it represents. With the stated concatenated order, the block formulas in the theorem apply without alteration.

Check Your Understanding

Use the concatenated basis order throughout unless a question explicitly gives a different order.

  1. Write the matrices of \(i_V\) and \(\pi_W\) when \(\dim V=1\) and \(\dim W=2\).
  2. For component coordinate columns \(\begin{bmatrix}4\\-2\end{bmatrix}\) and \(\begin{bmatrix}5\end{bmatrix}\), write the coordinate column of their pair in the concatenated basis.
  3. Explain why the columns of the matrix for \(i_W\) have their identity block below the zero block.
  4. If the pair coordinate column is \(\begin{bmatrix}1&3&-2&4\end{bmatrix}^{\top}\), with \(\dim V=2\) and \(\dim W=2\), find the coordinate columns returned by \(\pi_V\) and \(\pi_W\).
  5. In one sentence, describe how to correct a projection matrix if the ordered basis for the direct sum is changed.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon