Tutorials › Linear Algebra › Definition and Linear-Combination Preservation

Linear Transformations of R^n · Tutorial 186 of 1000

Definition and Linear-Combination Preservation

Learn the defining rules for a linear transformation and use them to determine how it acts on linear combinations.

Intermediate 9 min read

What You'll Learn

  • State the definition of a linear transformation from real coordinate space to real coordinate space.
  • Derive the images of zero vectors, negatives and differences from the defining rules.
  • Prove that linear transformations preserve every finite linear combination.
  • Use known vector images and linear relations to determine other images.
  • Recognise why two representations of the same input must give consistent outputs.

What It Means to Preserve Linear Structure

A function between vector spaces can send vectors to quite different vectors, but a linear transformation respects two basic operations: adding vectors and multiplying them by scalars. These requirements let us calculate the image of a complicated combination from the images of its component vectors. They also impose consequences that are not separate assumptions, such as sending the zero vector to the zero vector.

Throughout this tutorial, scalars are real. Let \(n,m\in\mathbb{N}\), and let \(T:\mathbb{R}^n\to\mathbb{R}^m\) be a function. The inputs and outputs are column vectors. The addition on the input side takes place in \(\mathbb{R}^n\), while the addition on the output side takes place in \(\mathbb{R}^m\); the scalar multiplication in each space is the usual coordinatewise operation.

Definition: A function \(T:\mathbb{R}^n\to\mathbb{R}^m\) is a linear transformation if, for every \(\mathbf{u},\mathbf{v}\in\mathbb{R}^n\) and every \(c\in\mathbb{R}\), it satisfies both \(T(\mathbf{u}+\mathbf{v})=T(\mathbf{u})+T(\mathbf{v})\) and \(T(c\mathbf{u})=cT(\mathbf{u})\). The first property is preservation of addition; the second is preservation of scalar multiplication.

Both conditions matter. Preservation of addition concerns the image of a sum, and preservation of scalar multiplication concerns the image of a scaled vector. A linear transformation is required to satisfy them for every permitted input and scalar, not just for selected examples. The definition itself is the starting point; the rules below follow from it.

Consequences for Zero, Negatives and Differences

Write \(\mathbf{0}_n\) for the zero vector in the domain \(\mathbb{R}^n\), and \(\mathbf{0}_m\) for the zero vector in the codomain \(\mathbb{R}^m\). They may have different numbers of entries, so keeping track of which space contains a zero vector is useful.

Theorem: If \(T:\mathbb{R}^n\to\mathbb{R}^m\) is linear, then \(T(\mathbf{0}_n)=\mathbf{0}_m\), \(T(-\mathbf{u})=-T(\mathbf{u})\), and \(T(\mathbf{u}-\mathbf{v})=T(\mathbf{u})-T(\mathbf{v})\) for all \(\mathbf{u},\mathbf{v}\in\mathbb{R}^n\).

Proof. Since \(\mathbf{0}_n+\mathbf{0}_n=\mathbf{0}_n\), preservation of addition gives \(T(\mathbf{0}_n)=T(\mathbf{0}_n)+T(\mathbf{0}_n)\). Subtracting \(T(\mathbf{0}_n)\) from both sides in \(\mathbb{R}^m\) yields \(T(\mathbf{0}_n)=\mathbf{0}_m\). Next, \(\mathbf{u}+(-\mathbf{u})=\mathbf{0}_n\), so \(T(\mathbf{u})+T(-\mathbf{u})=T(\mathbf{0}_n)=\mathbf{0}_m\). Thus \(T(-\mathbf{u})=-T(\mathbf{u})\). Finally, \(\mathbf{u}-\mathbf{v}=\mathbf{u}+(-\mathbf{v})\), and preservation of addition together with the negative-vector identity gives \(T(\mathbf{u}-\mathbf{v})=T(\mathbf{u})+T(-\mathbf{v})=T(\mathbf{u})-T(\mathbf{v})\). \(\square\)

These identities are consequences, not extra conditions to add to the definition. In particular, the zero-vector result follows from preservation of addition; it is not necessary to assume separately that \(T\) fixes zero. The theorem also explains why subtraction can be handled by subtracting the corresponding images.

Worked Example: Using Images of Two Vectors

Suppose \(T:\mathbb{R}^n\to\mathbb{R}^2\) is linear, with \(T(\mathbf{u})=\begin{bmatrix}2\\-1\end{bmatrix}\) and \(T(\mathbf{v})=\begin{bmatrix}-3\\4\end{bmatrix}\). Find \(T(3\mathbf{u}-2\mathbf{v})\).

First express the input as a sum: \(3\mathbf{u}-2\mathbf{v}=3\mathbf{u}+(-2)\mathbf{v}\). By preservation of addition and scalar multiplication,

$$ \begin{aligned} T(3\mathbf{u}-2\mathbf{v}) &=T(3\mathbf{u})+T((-2)\mathbf{v})\\ &=3T(\mathbf{u})-2T(\mathbf{v})\\ &=3\begin{bmatrix}2\\-1\end{bmatrix} -2\begin{bmatrix}-3\\4\end{bmatrix}\\ &=\begin{bmatrix}6\\-3\end{bmatrix} -\begin{bmatrix}-6\\8\end{bmatrix} =\begin{bmatrix}12\\-11\end{bmatrix}. \end{aligned} $$

Check: the coefficient \(3\) multiplies both entries of \(T(\mathbf{u})\), giving \((6,-3)^\top\), and the coefficient \(-2\) multiplies both entries of \(T(\mathbf{v})\), giving \((6,-8)^\top\). Adding these outputs gives \((12,-11)^\top\), as calculated.

Preservation of Finite Linear Combinations

A linear combination of a list \(\mathbf{v}_1,\dots,\mathbf{v}_p\) in \(\mathbb{R}^n\) is a vector \(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p\), where each coefficient \(c_i\) is real. The two defining properties can be applied repeatedly, so the image of this whole combination is determined by the images of the individual vectors.

Theorem (Linear-combination preservation): Let \(T:\mathbb{R}^n\to\mathbb{R}^m\) be linear. For every positive integer \(p\), every \(\mathbf{v}_1,\dots,\mathbf{v}_p\in\mathbb{R}^n\), and every \(c_1,\dots,c_p\in\mathbb{R}\), \(T(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p)=c_1T(\mathbf{v}_1)+\cdots+c_pT(\mathbf{v}_p)\).

Proof. We prove the statement by induction on \(p\). For \(p=1\), the formula is precisely preservation of scalar multiplication: \(T(c_1\mathbf{v}_1)=c_1T(\mathbf{v}_1)\). Now suppose the formula holds for a positive integer \(p\), and consider \(p+1\) vectors. By preservation of addition, then the induction hypothesis, and then preservation of scalar multiplication,

$$ \begin{aligned} &T(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p+c_{p+1}\mathbf{v}_{p+1})\\ &=T(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p)+T(c_{p+1}\mathbf{v}_{p+1})\\ &=c_1T(\mathbf{v}_1)+\cdots+c_pT(\mathbf{v}_p)+c_{p+1}T(\mathbf{v}_{p+1}). \end{aligned} $$

Thus the formula holds for \(p+1\). By induction, it holds for every positive integer \(p\). \(\square\)

For a single term, the theorem is the scalar multiplication rule; for two terms, it uses both parts of the definition. The induction establishes that no matter how many terms appear, each coefficient can be taken outside \(T\), and the image of the sum is the sum of the images. The theorem is stated for \(p\geq 1\); the case of an empty sum, if needed, is exactly the already-proved fact \(T(\mathbf{0}_n)=\mathbf{0}_m\).

Worked Example: Finding an Image from a Linear Relation

Suppose \(T:\mathbb{R}^3\to\mathbb{R}^2\) is linear, \(2\mathbf{u}-3\mathbf{v}+\mathbf{w}=\mathbf{0}_3\), \(T(\mathbf{u})=\begin{bmatrix}1\\2\end{bmatrix}\), and \(T(\mathbf{v})=\begin{bmatrix}0\\-1\end{bmatrix}\). Find \(T(\mathbf{w})\).

Apply \(T\) to the given relation. Linear-combination preservation and the zero-vector identity give

$$ 2T(\mathbf{u})-3T(\mathbf{v})+T(\mathbf{w}) =T(\mathbf{0}_3)=\mathbf{0}_2. $$

Rearrange to isolate the unknown image, then substitute the known images:

$$ \begin{aligned} T(\mathbf{w}) &=-2T(\mathbf{u})+3T(\mathbf{v})\\ &=-2\begin{bmatrix}1\\2\end{bmatrix} +3\begin{bmatrix}0\\-1\end{bmatrix}\\ &=\begin{bmatrix}-2\\-4\end{bmatrix} +\begin{bmatrix}0\\-3\end{bmatrix} =\begin{bmatrix}-2\\-7\end{bmatrix}. \end{aligned} $$

Check: substituting all three images into the original relation gives \(2(1,2)^\top-3(0,-1)^\top+(-2,-7)^\top=(2,4)^\top+(0,3)^\top+(-2,-7)^\top=(0,0)^\top\). The relation is preserved as required.

Relations and Consistent Representations

The linear-combination theorem has a useful consequence for any relation that equals the zero vector. It also ensures that if one input has two different expressions as a linear combination, those expressions cannot lead to different outputs under a linear transformation.

Corollary: If \(T:\mathbb{R}^n\to\mathbb{R}^m\) is linear and \(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p=\mathbf{0}_n\), then \(c_1T(\mathbf{v}_1)+\cdots+c_pT(\mathbf{v}_p)=\mathbf{0}_m\). Consequently, if \(\sum_{i=1}^p c_i\mathbf{v}_i=\sum_{j=1}^q d_j\mathbf{w}_j\), then \(\sum_{i=1}^p c_iT(\mathbf{v}_i)=\sum_{j=1}^q d_jT(\mathbf{w}_j)\).

Proof. For the first assertion, apply linear-combination preservation to the left side of the assumed relation: \(c_1T(\mathbf{v}_1)+\cdots+c_pT(\mathbf{v}_p)=T(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p)=T(\mathbf{0}_n)=\mathbf{0}_m\). For the second assertion, subtract the right-hand input combination from the left-hand input combination. The result is zero by the assumed equality. The first assertion applied to the combined list \(\mathbf{v}_1,\dots,\mathbf{v}_p,\mathbf{w}_1,\dots,\mathbf{w}_q\), with coefficients \(c_1,\dots,c_p,-d_1,\dots,-d_q\), gives \(\sum_{i=1}^p c_iT(\mathbf{v}_i)-\sum_{j=1}^q d_jT(\mathbf{w}_j)=\mathbf{0}_m\). Rearranging proves the claimed equality of outputs. \(\square\)

Worked Example: Checking Two Expressions for the Same Input

Suppose \(T:\mathbb{R}^2\to\mathbb{R}^2\) is linear, \(\mathbf{u}=\begin{bmatrix}1\\0\end{bmatrix}\), \(\mathbf{v}=\begin{bmatrix}0\\1\end{bmatrix}\), \(T(\mathbf{u})=\begin{bmatrix}1\\2\end{bmatrix}\), and \(T(\mathbf{v})=\begin{bmatrix}-2\\1\end{bmatrix}\). Evaluate \(T(\mathbf{x})\) for \(\mathbf{x}=2\mathbf{u}+\mathbf{v}=2(\mathbf{u}-\mathbf{v})+3\mathbf{v}\), using both expressions.

First verify the input equality: \(2(\mathbf{u}-\mathbf{v})+3\mathbf{v}=2\mathbf{u}-2\mathbf{v}+3\mathbf{v}=2\mathbf{u}+\mathbf{v}\). The vector itself is \(2(1,0)^\top+(0,1)^\top=(2,1)^\top\). Using the first expression gives

$$ \begin{aligned} T(\mathbf{x}) &=2T(\mathbf{u})+T(\mathbf{v})\\ &=2\begin{bmatrix}1\\2\end{bmatrix} +\begin{bmatrix}-2\\1\end{bmatrix} =\begin{bmatrix}2\\4\end{bmatrix} +\begin{bmatrix}-2\\1\end{bmatrix} =\begin{bmatrix}0\\5\end{bmatrix}. \end{aligned} $$

Using the second expression gives

$$ \begin{aligned} T(\mathbf{x}) &=2\bigl(T(\mathbf{u})-T(\mathbf{v})\bigr)+3T(\mathbf{v})\\ &=2\left(\begin{bmatrix}1\\2\end{bmatrix} -\begin{bmatrix}-2\\1\end{bmatrix}\right) +3\begin{bmatrix}-2\\1\end{bmatrix}\\ &=2\begin{bmatrix}3\\1\end{bmatrix} +\begin{bmatrix}-6\\3\end{bmatrix} =\begin{bmatrix}6\\2\end{bmatrix} +\begin{bmatrix}-6\\3\end{bmatrix} =\begin{bmatrix}0\\5\end{bmatrix}. \end{aligned} $$

Check: both expressions represent \(\mathbf{x}=(2,1)^\top\), and both calculations give \((0,5)^\top\). Their agreement illustrates the corollary: equal input combinations must have equal output combinations.

Common Pitfall: Applying a Coefficient to the Wrong Vector

When evaluating \(T(c\mathbf{u})\), the coefficient \(c\) multiplies \(T(\mathbf{u})\), not the original input \(\mathbf{u}\) in place of its image. For a concrete illustration, suppose \(T:\mathbb{R}^2\to\mathbb{R}^2\) is linear, \(\mathbf{u}=(1,0)^\top\), \(\mathbf{v}=(0,1)^\top\), \(T(\mathbf{u})=(2,1)^\top\), and \(T(\mathbf{v})=(-1,3)^\top\). A wrong calculation is \(T(2\mathbf{u}-\mathbf{v})=2T(\mathbf{u})-\mathbf{v}=(4,2)^\top-(0,1)^\top=(4,1)^\top\). The term being subtracted is not \(\mathbf{v}\); it is \(T(\mathbf{v})\). The correct calculation is

$$ \begin{aligned} T(2\mathbf{u}-\mathbf{v}) &=2T(\mathbf{u})-T(\mathbf{v})\\ &=2\begin{bmatrix}2\\1\end{bmatrix} -\begin{bmatrix}-1\\3\end{bmatrix}\\ &=\begin{bmatrix}4\\2\end{bmatrix} -\begin{bmatrix}-1\\3\end{bmatrix} =\begin{bmatrix}5\\-1\end{bmatrix}. \end{aligned} $$

The distinction is especially important when domain and codomain differ: \(\mathbf{v}\) belongs to the input space, while \(T(\mathbf{v})\) belongs to the output space. Even when both spaces are \(\mathbb{R}^2\), as in this example, those are still different vectors in general.

Why These Rules Are Useful

Once the images of some vectors are known, linear-combination preservation turns many other image calculations into ordinary arithmetic with vectors. Relations among inputs also impose relations among their outputs. This gives a reliable way to simplify calculations, check whether proposed image values are consistent with a known relation, and compare two expressions for the same input. The key discipline is to apply \(T\) to the entire input expression first, then use the defining rules to expand it.

Check Your Understanding

Use only the definition of linearity and the consequences proved above.

  1. If \(T:\mathbb{R}^n\to\mathbb{R}^m\) is linear, explain why \(T(\mathbf{0}_n)=\mathbf{0}_m\).
  2. Suppose \(T\) is linear, \(T(\mathbf{a})=(2,1)^\top\), and \(T(\mathbf{b})=(0,-3)^\top\). Find \(T(-2\mathbf{a}+4\mathbf{b})\).
  3. If \(\mathbf{a}+2\mathbf{b}-\mathbf{c}=\mathbf{0}_n\), what relation must hold among \(T(\mathbf{a}),T(\mathbf{b}),T(\mathbf{c})\)?
  4. State the two conditions in the definition of a linear transformation, including their quantifiers.
  5. Why must two linear-combination expressions for the same input give the same output under a linear transformation?

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