Tutorials › Linear Algebra › Matrices of Sums and Scalar Multiples of Maps

Matrix Representations of Linear Maps · Tutorial 444 of 1000

Matrices of Sums and Scalar Multiples of Maps

Prove how matrix representations preserve addition and scalar multiplication, and see why using the same bases is essential.

Intermediate 9 min read

What You'll Learn

  • Define pointwise sums and scalar multiples of maps with a common domain and codomain.
  • Prove that coordinates preserve vector addition and scalar multiplication.
  • Show that a shared pair of bases makes the matrix of a sum the sum of the matrices.
  • Compute matrices of map combinations in standard and polynomial bases.
  • Identify why representations using different bases cannot be combined entry by entry.

From Operations on Maps to Operations on Matrices

Suppose two linear maps have the same domain and codomain. We can add their outputs for each input, or multiply the output of one map by a scalar. The resulting maps have matrix representations too. The key fact is that, when both maps are represented using the same domain basis and the same codomain basis, these operations are reflected directly in the matrices: addition of maps becomes matrix addition, and scalar multiplication of maps becomes scalar multiplication of matrices.

Throughout, let \(\mathbb{F}\) be either \(\mathbb{R}\) or \(\mathbb{C}\), and let \(V\) and \(W\) be finite-dimensional vector spaces over \(\mathbb{F}\). Fix ordered bases \(\mathcal{B}=(\mathbf{b}_1,\dots,\mathbf{b}_n)\) for \(V\) and \(\mathcal{C}=(\mathbf{c}_1,\dots,\mathbf{c}_m)\) for \(W\). The coordinate vector \([\mathbf{v}]_{\mathcal{B}}\) lists the coefficients of \(\mathbf{v}\) in the basis \(\mathcal{B}\). For a linear map \(T:V\to W\), its matrix \([T]_{\mathcal{C}\leftarrow\mathcal{B}}\) is the matrix satisfying \([T(\mathbf{v})]_{\mathcal{C}}=[T]_{\mathcal{C}\leftarrow\mathcal{B}}[\mathbf{v}]_{\mathcal{B}}\) for every \(\mathbf{v}\in V\).

Definition: For linear maps \(T,S:V\to W\), their pointwise sum \(T+S:V\to W\) is defined by \((T+S)(\mathbf{v})=T(\mathbf{v})+S(\mathbf{v})\). For \(a\in\mathbb{F}\), the scalar multiple \(aT:V\to W\) is defined by \((aT)(\mathbf{v})=aT(\mathbf{v})\). Both definitions use the same input \(\mathbf{v}\) for the maps being combined.

These operations are defined on outputs in \(W\), so the maps must share a codomain. To compare their matrices entry by entry, they must also be represented using the same bases \(\mathcal{B}\) and \(\mathcal{C}\). The theorem below states precisely what follows from that shared choice.

Why Coordinates Respect Addition and Scaling

First, coordinates in a fixed basis respect vector addition and scalar multiplication. This follows from the uniqueness of the coefficients in a basis expansion.

Proposition: If \(\mathbf{u},\mathbf{w}\in W\), \(a\in\mathbb{F}\), and \(\mathcal{C}\) is a basis of \(W\), then \([\mathbf{u}+\mathbf{w}]_{\mathcal{C}}=[\mathbf{u}]_{\mathcal{C}}+[\mathbf{w}]_{\mathcal{C}}\) and \([a\mathbf{u}]_{\mathcal{C}}=a[\mathbf{u}]_{\mathcal{C}}\).

Proof. Write \(\mathbf{u}=\sum_{j=1}^{m}\alpha_j\mathbf{c}_j\) and \(\mathbf{w}=\sum_{j=1}^{m}\beta_j\mathbf{c}_j\). Then \(\mathbf{u}+\mathbf{w}=\sum_{j=1}^{m}(\alpha_j+\beta_j)\mathbf{c}_j\), so the coordinate vector of the sum has entries \(\alpha_j+\beta_j\), exactly the entries of \([\mathbf{u}]_{\mathcal{C}}+[\mathbf{w}]_{\mathcal{C}}\). Also, \(a\mathbf{u}=\sum_{j=1}^{m}(a\alpha_j)\mathbf{c}_j\), so its coordinate vector is \(a[\mathbf{u}]_{\mathcal{C}}\). In each case, uniqueness of basis coordinates identifies the displayed coefficients with the coordinates of the vector. \(\square\)

Theorem (Matrices of sums and scalar multiples): Let \(T,S:V\to W\) be linear maps between finite-dimensional vector spaces over \(\mathbb{F}\). For fixed bases \(\mathcal{B}\) of \(V\) and \(\mathcal{C}\) of \(W\), and any \(a\in\mathbb{F}\), \[ [T+S]_{\mathcal{C}\leftarrow\mathcal{B}}=[T]_{\mathcal{C}\leftarrow\mathcal{B}}+[S]_{\mathcal{C}\leftarrow\mathcal{B}}, \qquad [aT]_{\mathcal{C}\leftarrow\mathcal{B}}=a[T]_{\mathcal{C}\leftarrow\mathcal{B}}. \]

Proof. Set \(\mathbf{A}=[T]_{\mathcal{C}\leftarrow\mathcal{B}}\) and \(\mathbf{D}=[S]_{\mathcal{C}\leftarrow\mathcal{B}}\). For any \(\mathbf{v}\in V\), the definition of the matrix representation and the coordinate proposition give \([ (T+S)(\mathbf{v})]_{\mathcal{C}}=[T(\mathbf{v})+S(\mathbf{v})]_{\mathcal{C}}=[T(\mathbf{v})]_{\mathcal{C}}+[S(\mathbf{v})]_{\mathcal{C}}=(\mathbf{A}+\mathbf{D})[\mathbf{v}]_{\mathcal{B}}\). Thus \(\mathbf{A}+\mathbf{D}\) gives the correct output coordinates for \(T+S\). For scalar multiplication, \([(aT)(\mathbf{v})]_{\mathcal{C}}=[aT(\mathbf{v})]_{\mathcal{C}}=a[T(\mathbf{v})]_{\mathcal{C}}=a\mathbf{A}[\mathbf{v}]_{\mathcal{B}}\), so \(a\mathbf{A}\) gives the correct output coordinates for \(aT\). To see that these actions determine the matrices, each column of a representing matrix is its action on one standard coordinate vector: choosing \(\mathbf{v}=\mathbf{b}_j\) gives \([\mathbf{v}]_{\mathcal{B}}=\mathbf{e}_j\). Therefore the matrices with these actions have the required columns and are the representing matrices. This argument also covers \(a=0\), when every output coordinate is zero. \(\square\)

Computing with the Shared Bases

Worked Example: Two Maps from R² to R³

Use the standard bases, and define \(T,S:\mathbb{R}^2\to\mathbb{R}^3\) by \(T(x_1,x_2)=(x_1+2x_2,-x_1,3x_1+x_2)\) and \(S(x_1,x_2)=(2x_1-x_2,4x_1+2x_2,5x_2)\). Find the matrices of \(T+S\) and \(2T-S\), then check the second result at \(\mathbf{x}=(1,-2)\).

Reading the coefficients of \(x_1,x_2\) gives the representing matrices:

$$ [T]=\begin{bmatrix}1&2\\-1&0\\3&1\end{bmatrix}, \qquad [S]=\begin{bmatrix}2&-1\\4&2\\0&5\end{bmatrix}. $$

Add corresponding entries for the sum, and double the first matrix before subtracting the second for \(2T-S\):

$$ [T+S]= \begin{bmatrix}1+2&2+(-1)\\-1+4&0+2\\3+0&1+5\end{bmatrix} =\begin{bmatrix}3&1\\3&2\\3&6\end{bmatrix}, $$
$$ [2T-S]= \begin{bmatrix}2&4\\-2&0\\6&2\end{bmatrix} -\begin{bmatrix}2&-1\\4&2\\0&5\end{bmatrix} =\begin{bmatrix}0&5\\-6&-2\\6&-3\end{bmatrix}. $$

For the check, \(T(1,-2)=(-3,-1,1)\) and \(S(1,-2)=(4,0,-10)\), so \(2T(1,-2)-S(1,-2)=2(-3,-1,1)-(4,0,-10)=(-10,-2,12)\). The matrix gives the same answer:

$$ \begin{bmatrix}0&5\\-6&-2\\6&-3\end{bmatrix} \begin{bmatrix}1\\-2\end{bmatrix} = \begin{bmatrix}-10\\-2\\12\end{bmatrix}. $$

The matrices in that example are rectangular, but the rule is unchanged: both maps send the same two-dimensional domain to the same three-dimensional codomain, and both matrices use the same coordinate bases. The common dimensions ensure that matrix addition and subtraction are defined.

Worked Example: A Combination of Maps on Polynomials

Let \(V=P_2(\mathbb{R})\), the space of real polynomials of degree at most two, with basis \(\mathcal{B}=(1,x,x^2)\). Define \(T(p)=p'\) and \(S(p)=p(1)\), where \(S(p)\) is regarded as a constant polynomial. Find the matrix of \(2T-S\), then check it on \(p(x)=2-x+3x^2\).

The basis images for differentiation are \(T(1)=0\), \(T(x)=1\), and \(T(x^2)=2x\). Their coordinate vectors form the columns of \([T]\). For \(S\), each basis polynomial evaluates to \(1\), so each image is the constant polynomial \(1\):

$$ [T]=\begin{bmatrix}0&1&0\\0&0&2\\0&0&0\end{bmatrix}, \qquad [S]=\begin{bmatrix}1&1&1\\0&0&0\\0&0&0\end{bmatrix}. $$

Thus the matrix of \(2T-S\) is

$$ [2T-S]= 2\begin{bmatrix}0&1&0\\0&0&2\\0&0&0\end{bmatrix} -\begin{bmatrix}1&1&1\\0&0&0\\0&0&0\end{bmatrix} =\begin{bmatrix}-1&1&-1\\0&0&4\\0&0&0\end{bmatrix}. $$

For \(p(x)=2-x+3x^2\), the coordinate vector is \((2,-1,3)^{\top}\). Directly, \(p'(x)=-1+6x\), \(p(1)=4\), and \(2p'(x)-p(1)=-6+12x\). The matrix calculation agrees:

$$ \begin{bmatrix}-1&1&-1\\0&0&4\\0&0&0\end{bmatrix} \begin{bmatrix}2\\-1\\3\end{bmatrix} = \begin{bmatrix}-2-1-3\\12\\0\end{bmatrix} = \begin{bmatrix}-6\\12\\0\end{bmatrix}. $$

The output coordinates \((-6,12,0)^{\top}\) represent \(-6+12x\), as required.

The Same Rule in Nonstandard Bases

The theorem does not require standard coordinates. It does require that the chosen bases be shared by the maps being combined. The next example uses a nonstandard basis for both the domain and the codomain, so the coordinate arithmetic remains consistent.

Worked Example: Combining Maps in Nonstandard Coordinates

Let \(V=W=\mathbb{R}^2\), with domain basis \(\mathcal{B}=((1,1),(1,-1))\) and codomain basis \(\mathcal{C}=((1,0),(1,1))\). Suppose \(T,S:V\to W\) have matrices \([T]_{\mathcal{C}\leftarrow\mathcal{B}}=\begin{bmatrix}1&-1\\2&1\end{bmatrix}\) and \([S]_{\mathcal{C}\leftarrow\mathcal{B}}=\begin{bmatrix}2&1\\0&-1\end{bmatrix}\). Find the matrix of \(3T-2S\), and check its action on \(\mathbf{v}=(2,0)\).

Apply the theorem to the two matrices, which use the same \(\mathcal{B}\) and \(\mathcal{C}\):

$$ [3T-2S]_{\mathcal{C}\leftarrow\mathcal{B}} = 3\begin{bmatrix}1&-1\\2&1\end{bmatrix} -2\begin{bmatrix}2&1\\0&-1\end{bmatrix} = \begin{bmatrix}3&-3\\6&3\end{bmatrix} -\begin{bmatrix}4&2\\0&-2\end{bmatrix} = \begin{bmatrix}-1&-5\\6&5\end{bmatrix}. $$

To check, first find the domain coordinates of \(\mathbf{v}\). Since \((2,0)=(1,1)+(1,-1)\), its \(\mathcal{B}\)-coordinate vector is \((1,1)^{\top}\). The resulting output coordinates are

$$ \begin{bmatrix}-1&-5\\6&5\end{bmatrix} \begin{bmatrix}1\\1\end{bmatrix} = \begin{bmatrix}-6\\11\end{bmatrix}. $$

In the codomain basis, these coordinates represent \(-6(1,0)+11(1,1)=(5,11)\). Separately, \(T(\mathbf{v})\) has \(\mathcal{C}\)-coordinates \(\begin{bmatrix}1&-1\\2&1\end{bmatrix}\begin{bmatrix}1\\1\end{bmatrix}=(0,3)^{\top}\), so \(T(\mathbf{v})=3(1,1)=(3,3)\). Also, \(S(\mathbf{v})\) has coordinates \((3,-1)^{\top}\), so \(S(\mathbf{v})=3(1,0)-(1,1)=(2,-1)\). Therefore \(3T(\mathbf{v})-2S(\mathbf{v})=3(3,3)-2(2,-1)=(5,11)\), matching the matrix result.

Common Pitfall: Combining Matrices from Different Bases

Matrix addition requires matrices of the same shape, but matching shapes alone do not justify adding representation matrices. Their entries must describe maps using the same domain and codomain coordinate conventions. For example, take the identity map on \(\mathbb{R}^2\). With the standard basis for both domain and codomain, its matrix is \(\mathbf{I}_2\). If its domain basis is instead \(\mathcal{B}=((1,1),(0,1))\) and its codomain basis remains standard, its matrix has columns \((1,1)^{\top}\) and \((0,1)^{\top}\):

$$ [\operatorname{id}_{\mathbb{R}^2}]_{\text{standard}\leftarrow\mathcal{B}} = \begin{bmatrix}1&0\\1&1\end{bmatrix}. $$

A tempting but incorrect calculation is to add this matrix to \(\mathbf{I}_2\) and claim that the result represents twice the identity. The sum would be \(\begin{bmatrix}2&0\\1&2\end{bmatrix}\). But if both copies of the identity use standard bases, twice the identity has matrix \(\begin{bmatrix}2&0\\0&2\end{bmatrix}\). If both copies use domain basis \(\mathcal{B}\) and standard codomain basis, its matrix is instead \(2\begin{bmatrix}1&0\\1&1\end{bmatrix}=\begin{bmatrix}2&0\\2&2\end{bmatrix}\). The incorrect sum mixes two different domain bases. Use the theorem only after confirming that both representation matrices use the same domain basis and the same codomain basis.

The practical consequence is a reliable calculation rule: determine the common domain and codomain bases first, form both representation matrices in those bases, and only then add or scale their entries. The matrix operation mirrors the operation on maps because the output coordinates of a sum or scalar multiple are obtained by the same operation on the individual output coordinates.

Check Your Understanding

Use the defining coordinate relation to justify each matrix calculation.

  1. If \(T,S:\mathbb{R}^2\to\mathbb{R}^2\) have matrices \(\begin{bmatrix}1&2\\0&-1\end{bmatrix}\) and \(\begin{bmatrix}3&0\\2&1\end{bmatrix}\) in the same bases, find the matrix of \(T+S\).
  2. For the matrices in question 1, find the matrix of \(-2T\).
  3. Explain why maps \(T:V\to W\) and \(S:X\to W\) cannot be added pointwise by the definition used here unless their domains agree.
  4. For the polynomial example, multiply the matrix of \(2T-S\) by the coordinate vector of \(1+2x\), then verify the resulting polynomial directly.
  5. State why equal matrix dimensions alone do not guarantee that two matrices can be added as representations of maps.

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