Tutorials › Linear Algebra › Zero, Identity, Inclusion, and Projection Maps

Linear Maps Between Vector Spaces · Tutorial 399 of 1000

Zero, Identity, Inclusion, and Projection Maps

Learn to specify the domain and codomain of four basic maps and verify their linearity from the additivity-and-homogeneity test.

Intermediate 8 min read

What You'll Learn

  • Define the zero map and identity map with their correct domains and codomains.
  • Explain why a subspace inclusion uses the subspace as its domain.
  • Define coordinate projections on products of vector spaces.
  • Verify each map using additivity and homogeneity.
  • Distinguish a zero map from a zero vector and a coordinate projection from a map into the original space.

Maps Are Specified by Their Inputs and Outputs

Some of the simplest linear maps appear whenever vector spaces are studied: a map that sends every input to zero, a map that leaves every input unchanged, a map that regards a subspace vector as a vector in a larger space, and a map that selects one coordinate or component. These maps are useful not only because their formulas are simple. Each makes the role of a map’s domain and codomain explicit. A formula alone does not specify a map unless we also know what kinds of objects it accepts and what kinds of objects it returns.

Unless stated otherwise, let the vector spaces in this tutorial be over the same field \(\mathbb{F}\), which may be \(\mathbb{R}\) or \(\mathbb{C}\). A map \(T:V\to W\) is linear if, for every \(\mathbf{u},\mathbf{v}\in V\) and every scalar \(c\in\mathbb{F}\), it satisfies both additivity and homogeneity:

$$ T(\mathbf{u}+\mathbf{v})=T(\mathbf{u})+T(\mathbf{v}), \qquad T(c\mathbf{u})=cT(\mathbf{u}). $$

The zero vectors of \(V\) and \(W\) need not be the same object, so we write \(\mathbf{0}_V\) and \(\mathbf{0}_W\) when the distinction matters. Similarly, the domain tells us where inputs come from, while the codomain specifies the space in which outputs are declared to lie. In the examples below, the spaces are finite-dimensional familiar spaces, but the definitions and linearity proofs do not require finite dimension.

The Zero Map and the Identity Map

Definition: For vector spaces \(V\) and \(W\) over \(\mathbb{F}\), the zero map from \(V\) to \(W\) is the map \(Z:V\to W\) defined by \(Z(\mathbf{v})=\mathbf{0}_W\) for every \(\mathbf{v}\in V\). The identity map on \(V\) is the map \(\operatorname{id}_V:V\to V\) defined by \(\operatorname{id}_V(\mathbf{v})=\mathbf{v}\) for every \(\mathbf{v}\in V\).

The zero map’s domain and codomain can be different spaces. Its output must be the zero vector in the codomain. The identity map, by contrast, has the same space as both domain and codomain: it returns each input as an element of that space.

Proposition: For any vector spaces \(V\) and \(W\) over \(\mathbb{F}\), the zero map \(Z:V\to W\) is linear. For any vector space \(V\) over \(\mathbb{F}\), the identity map \(\operatorname{id}_V:V\to V\) is linear.

Proof. For the zero map, take any \(\mathbf{u},\mathbf{v}\in V\) and \(c\in\mathbb{F}\). By its definition, \(Z(\mathbf{u}+\mathbf{v})=\mathbf{0}_W\), while \(Z(\mathbf{u})+Z(\mathbf{v})=\mathbf{0}_W+\mathbf{0}_W=\mathbf{0}_W\). Also, \(Z(c\mathbf{u})=\mathbf{0}_W=c\mathbf{0}_W=cZ(\mathbf{u})\). Thus both conditions for linearity hold. For the identity map, \(\operatorname{id}_V(\mathbf{u}+\mathbf{v})=\mathbf{u}+\mathbf{v}=\operatorname{id}_V(\mathbf{u})+\operatorname{id}_V(\mathbf{v})\), and \(\operatorname{id}_V(c\mathbf{u})=c\mathbf{u}=c\operatorname{id}_V(\mathbf{u})\). Therefore it is linear as well. \(\square\)

Worked Example: A Zero Map from \(\mathbb{R}^2\) to \(\mathbb{R}^3\)

Define \(Z:\mathbb{R}^2\to\mathbb{R}^3\) by \(Z(x,y)=(0,0,0)\). Its input is a column with two entries, and its output is a column with three entries. For example,

$$ Z\begin{bmatrix}2\\-1\end{bmatrix} = \begin{bmatrix}0\\0\\0\end{bmatrix}. $$

To check the defining rules on particular inputs, let \(\mathbf{u}=(2,-1)\), \(\mathbf{v}=(-3,4)\), and \(c=-2\). Then \(\mathbf{u}+\mathbf{v}=(-1,3)\), so

$$ Z(\mathbf{u}+\mathbf{v})=Z(-1,3)=(0,0,0) =(0,0,0)+(0,0,0)=Z(\mathbf{u})+Z(\mathbf{v}). $$

Also, \(c\mathbf{u}=(-4,2)\), and

$$ Z(c\mathbf{u})=Z(-4,2)=(0,0,0) =-2(0,0,0)=cZ(\mathbf{u}). $$

Check: both outputs are in \(\mathbb{R}^3\), as required by the codomain, and the two computed equalities verify additivity and homogeneity for these inputs.

Worked Example: The Identity Map on \(2\times2\) Matrices

Let \(V=\mathbb{R}^{2\times2}\), the vector space of real \(2\times2\) matrices, and consider \(\operatorname{id}_V:V\to V\). For

$$ \mathbf{A}=\begin{bmatrix}1&-2\\3&0\end{bmatrix}, \qquad \mathbf{B}=\begin{bmatrix}4&1\\-1&5\end{bmatrix}, $$

the identity map returns \(\mathbf{A}\) unchanged. For additivity, first compute

$$ \mathbf{A}+\mathbf{B} = \begin{bmatrix}5&-1\\2&5\end{bmatrix} = \operatorname{id}_V(\mathbf{A})+\operatorname{id}_V(\mathbf{B}) = \operatorname{id}_V(\mathbf{A}+\mathbf{B}). $$

For homogeneity, taking \(c=2\) gives

$$ 2\mathbf{A} = \begin{bmatrix}2&-4\\6&0\end{bmatrix} = 2\operatorname{id}_V(\mathbf{A}) = \operatorname{id}_V(2\mathbf{A}). $$

Check: each result is still a \(2\times2\) real matrix, so both the inputs and outputs belong to \(V\), the domain and codomain.

Inclusion of a Subspace

A subset \(U\) of a vector space \(V\) is a subspace if it is itself a vector space using the addition and scalar multiplication inherited from \(V\). In particular, if \(\mathbf{u},\mathbf{v}\in U\) and \(c\in\mathbb{F}\), then \(\mathbf{u}+\mathbf{v}\in U\) and \(c\mathbf{u}\in U\). These closure properties allow a map to take an element of \(U\) and regard it as an element of \(V\).

Definition: If \(U\) is a subspace of \(V\), the inclusion map is \(i:U\to V\), defined by \(i(\mathbf{u})=\mathbf{u}\). The same vector is viewed as an element of the larger space \(V\); the domain is \(U\), and the codomain is \(V\).
Proposition: If \(U\) is a subspace of a vector space \(V\), then the inclusion map \(i:U\to V\) is linear.

Proof. Take \(\mathbf{u},\mathbf{v}\in U\) and \(c\in\mathbb{F}\). Since \(U\) is a subspace, \(\mathbf{u}+\mathbf{v}\in U\) and \(c\mathbf{u}\in U\), so both sides below are defined. By the inclusion formula and the inherited operations, \(i(\mathbf{u}+\mathbf{v})=\mathbf{u}+\mathbf{v}=i(\mathbf{u})+i(\mathbf{v})\), and \(i(c\mathbf{u})=c\mathbf{u}=ci(\mathbf{u})\). Thus the map is additive and homogeneous. \(\square\)

Worked Example: Including a Plane in \(\mathbb{R}^3\)

Let \(U=\{(x,y,0):x,y\in\mathbb{R}\}\), a subspace of \(\mathbb{R}^3\). The inclusion \(i:U\to\mathbb{R}^3\) sends each vector to the same vector, with no coordinate added or removed. Take \(\mathbf{u}=(1,-2,0)\) and \(\mathbf{v}=(3,1,0)\), both in \(U\). Then \(\mathbf{u}+\mathbf{v}=(4,-1,0)\), and

$$ i(\mathbf{u}+\mathbf{v})=(4,-1,0) =(1,-2,0)+(3,1,0)=i(\mathbf{u})+i(\mathbf{v}). $$

For \(c=-2\), \(c\mathbf{u}=(-2,4,0)\), so

$$ i(c\mathbf{u})=(-2,4,0) =-2(1,-2,0)=ci(\mathbf{u}). $$

Check: the output vectors retain third coordinate \(0\), hence lie in \(U\), and they are also elements of the codomain \(\mathbb{R}^3\). The inclusion does not change the coordinates; it records that a vector in \(U\) is being considered in \(V\).

Coordinate Projections

For vector spaces \(V_1,\dots,V_k\) over the same field, their product \(V_1\times\cdots\times V_k\) consists of ordered tuples \((\mathbf{v}_1,\dots,\mathbf{v}_k)\) with \(\mathbf{v}_j\in V_j\). Addition and scalar multiplication are performed component by component. For an index \(j\) with \(1\le j\le k\), a coordinate projection selects the \(j\)-th component.

Definition: The \(j\)-th coordinate projection is \(\pi_j:V_1\times\cdots\times V_k\to V_j\), defined by \(\pi_j(\mathbf{v}_1,\dots,\mathbf{v}_k)=\mathbf{v}_j\). Its domain is the product space and its codomain is the selected factor \(V_j\).
Proposition: For any \(V_1,\dots,V_k\) over \(\mathbb{F}\) and any \(j\in\{1,\dots,k\}\), the coordinate projection \(\pi_j:V_1\times\cdots\times V_k\to V_j\) is linear.

Proof. Let \(\mathbf{x}=(\mathbf{v}_1,\dots,\mathbf{v}_k)\) and \(\mathbf{y}=(\mathbf{w}_1,\dots,\mathbf{w}_k)\) be in the product, and let \(c\in\mathbb{F}\). The \(j\)-th component of \(\mathbf{x}+\mathbf{y}\) is \(\mathbf{v}_j+\mathbf{w}_j\). Therefore \(\pi_j(\mathbf{x}+\mathbf{y})=\mathbf{v}_j+\mathbf{w}_j=\pi_j(\mathbf{x})+\pi_j(\mathbf{y})\). The \(j\)-th component of \(c\mathbf{x}\) is \(c\mathbf{v}_j\), so \(\pi_j(c\mathbf{x})=c\mathbf{v}_j=c\pi_j(\mathbf{x})\). Both linearity conditions hold. \(\square\)

Worked Example: Selecting Two Coordinates from \(\mathbb{R}^4\)

Define \(\pi_{2,4}:\mathbb{R}^4\to\mathbb{R}^2\) by \(\pi_{2,4}(x_1,x_2,x_3,x_4)=(x_2,x_4)\). This selects the second and fourth coordinates. For \(\mathbf{x}=(1,-2,3,4)\) and \(\mathbf{y}=(5,6,-1,2)\), we have \(\mathbf{x}+\mathbf{y}=(6,4,2,6)\). Thus

$$ \pi_{2,4}(\mathbf{x}+\mathbf{y})=(4,6) =(-2,4)+(6,2) =\pi_{2,4}(\mathbf{x})+\pi_{2,4}(\mathbf{y}). $$

With \(c=-2\), \(c\mathbf{x}=(-2,4,-6,-8)\), and

$$ \pi_{2,4}(c\mathbf{x})=(4,-8) =-2(-2,4)=c\pi_{2,4}(\mathbf{x}). $$

In standard coordinates, this particular map can also be written as matrix multiplication:

$$ \pi_{2,4}(\mathbf{x}) = \begin{bmatrix}0&1&0&0\\0&0&0&1\end{bmatrix} \begin{bmatrix}x_1\\x_2\\x_3\\x_4\end{bmatrix} = \begin{bmatrix}x_2\\x_4\end{bmatrix}. $$

Check: applying the matrix to \(\mathbf{x}=(1,-2,3,4)\) gives \((-2,4)\), and applying it to \(\mathbf{y}=(5,6,-1,2)\) gives \((6,2)\), matching the component-selection formula. Both outputs lie in \(\mathbb{R}^2\), the stated codomain.

Common Mistakes About These Maps

Confusing the zero vector with the zero map. The zero vector is an element of a vector space. The zero map is a function between two spaces that returns the codomain’s zero vector for every input. For instance, \(Z:\mathbb{R}^2\to\mathbb{R}^3\) is not itself the vector \((0,0,0)\); it is the rule \((x,y)\mapsto(0,0,0)\).

Leaving the codomain unchanged after projecting. A common incorrect type declaration is to write \(\pi_{2,4}:\mathbb{R}^4\to\mathbb{R}^4\) while defining \(\pi_{2,4}(x_1,x_2,x_3,x_4)=(x_2,x_4)\). The output has two entries, so it belongs to \(\mathbb{R}^2\), not \(\mathbb{R}^4\). The corrected declaration is \(\pi_{2,4}:\mathbb{R}^4\to\mathbb{R}^2\). The domain and codomain are part of the map’s specification, not optional labels.

Treating an inclusion as a change to the vector. For the subspace \(U=\{(x,y,0)\}\subseteq\mathbb{R}^3\), the inclusion sends \((2,5,0)\) to \((2,5,0)\), not to \((2,5)\). Its codomain is \(\mathbb{R}^3\). A map that discards the third coordinate would instead be a coordinate projection with codomain \(\mathbb{R}^2\).

These maps provide basic examples against which other maps can be compared. When checking a proposed map, first identify its domain and codomain, then confirm that the operations used in the additivity and homogeneity equations are defined in the correct spaces. A correct formula with a mismatched output space is not a correctly specified map.

Check Your Understanding

For each question, name the domain and codomain before checking the map or writing a formula.

  1. Define the zero map from \(\mathbb{R}^3\) to \(\mathbb{R}\). What is its value at \((1,-2,4)\)?
  2. Why does the identity map on a vector space \(V\) have codomain \(V\), rather than an arbitrary space \(W\)?
  3. Let \(U=\{(x,0,z):x,z\in\mathbb{R}\}\subseteq\mathbb{R}^3\). Write the inclusion map and evaluate it at \((2,0,-1)\).
  4. Define the projection from \(\mathbb{R}^3\) that selects the first and third coordinates, including its domain and codomain.
  5. For a coordinate projection \(\pi_j\) on a product, state which component of an input tuple determines the output.

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