Section ILT Injective Linear Transformations
Some linear transformations possess one, or both, of two key properties, which go by the names injective and surjective. We will see that they are closely related to ideas like linear independence and spanning, and subspaces like the null space and the column space. In this section we will define an injective linear transformation and analyze the resulting consequences. The next section will do the same for the surjective property. In the final section of this chapter we will see what happens when we have the two properties simultaneously.
Subsection ILT Injective Linear Transformations
As usual, we lead with a definition.
Given an arbitrary function, it is possible for two different inputs to yield the same output (think about the function and the inputs and ). For an injective function, this never happens. If we have equal outputs ( ) then we must have achieved those equal outputs by employing equal inputs ( ). Some authors prefer the term one-to-one where we use injective, and we will sometimes refer to an injective linear transformation as an injection.
Subsection EILT Examples of Injective Linear Transformations
It is perhaps most instructive to examine a linear transformation that is not injective first.
Example NIAQ. Not injective, Archetype Q.
Archetype Q is the linear transformation
Notice that for
we have
So we have two vectors from the domain, yet in violation of Definition ILT. This is another example where you should not concern yourself with how and were selected, as this will be explained shortly. However, do understand why these two vectors provide enough evidence to conclude that is not injective.
Here is a cartoon of a non-injective linear transformation. Notice that the central feature of this cartoon is that Even though this happens again with some unnamed vectors, it only takes one occurrence to destroy the possibility of injectivity. Note also that the two vectors displayed in the bottom of have no bearing, either way, on the injectivity of
To show that a linear transformation is not injective, it is enough to find a single pair of inputs that get sent to the identical output, as in Example NIAQ. However, to show that a linear transformation is injective we must establish that this coincidence of outputs never occurs. Here is an example that shows how to establish this.
Example IAR. Injective, Archetype R.
Archetype R is the linear transformation
To establish that is injective we must begin with the assumption that and somehow arrive at the conclusion that Here we go,
Now we recognize that we have a homogeneous system of 5 equations in 5 variables (the terms are the variables), so we row-reduce the coefficient matrix to
So the only solution is the trivial solution
Here is the cartoon for an injective linear transformation. It is meant to suggest that we never have two inputs associated with a single output. Again, the two lonely vectors at the bottom of have no bearing either way on the injectivity of
Let us now examine an injective linear transformation between abstract vector spaces.
Example IAV. Injective, Archetype V.
Archetype V is defined by
To establish that the linear transformation is injective, begin by supposing that two polynomial inputs yield the same output matrix,
Then
This single matrix equality translates to the homogeneous system of equations in the variables
This system of equations can be rewritten as the matrix equation
Since the coefficient matrix is nonsingular (check this) the only solution is trivial, i.e.
so that
so the two inputs must be equal polynomials. By Definition ILT, is injective.
Subsection KLT Kernel of a Linear Transformation
For a linear transformation the kernel is a subset of the domain Informally, it is the set of all inputs that the transformation sends to the zero vector of the codomain. It will have some natural connections with the null space of a matrix, so we will keep the same notation, and if you think about your objects, then there should be little confusion. Here is the careful definition.
Definition KLT. Kernel of a Linear Transformation.
Example NKAO. Nontrivial kernel, Archetype O.
Archetype O is the linear transformation
To determine the elements of in find those vectors such that that is,
Vector equality (Definition CVE) leads us to a homogeneous system of 5 equations in the variables
Row-reducing the coefficient matrix gives
The kernel of is the set of solutions to this homogeneous system of equations, which by Theorem BNS can be expressed as
We know that the span of a set of vectors is always a subspace (Theorem SSS), so the kernel computed in Example NKAO is also a subspace. This is no accident, the kernel of a linear transformation is always a subspace.
Theorem KLTS. Kernel of a Linear Transformation is a Subspace.
Proof.
We can apply the three-part test of Theorem TSS. First by Theorem LTTZZ, so and we know that the kernel is nonempty.
Suppose we assume that Is We have
This qualifies for membership in So we have additive closure.
Suppose we assume that and Is We have
This qualifies for membership in So we have scalar closure and Theorem TSS tells us that is a subspace of
Let us compute another kernel, now that we know in advance that it will be a subspace.
Example TKAP. Trivial kernel, Archetype P.
Archetype P is the linear transformation
To determine the elements of in find those vectors such that that is,
Vector equality (Definition CVE) leads us to a homogeneous system of 5 equations in the variables
Row-reducing the coefficient matrix gives
The kernel of is the set of solutions to this homogeneous system of equations, which is simply the trivial solution so
Our next theorem says that if a preimage is a nonempty set then we can construct it by picking any one element and adding on elements of the kernel.
Theorem KPI. Kernel and Preimage.
Proof.
Let First, we show that Suppose that so has the form where Then
which qualifies for membership in the preimage of
For the opposite inclusion, suppose Then,
This qualifies for membership in the kernel of So there is a vector such that Rearranging this equation gives and so So and we see that as desired.
This theorem, and its proof, should remind you very much of Theorem PSPHS. Additionally, you might go back and review Example SPIAS. Can you tell now which is the only preimage to be a subspace?
Here is the cartoon which describes the “many-to-one” behavior of a typical linear transformation. Presume that for and as guaranteed by Theorem LTTZZ, Then four preimages are depicted, each labeled slightly different. is the most general, employing Theorem KPI to provide two equal descriptions of the set. The most unusual is which is equal to the kernel, and hence is a subspace (by Theorem KLTS). The subdivisions of the domain, are meant to suggest the partioning of the domain by the collection of preimages. It also suggests that each preimage is of similar size or structure, since each is a “shifted” copy of the kernel. Notice that we cannot speak of the dimension of a preimage, since it is almost never a subspace. Also notice that are elements of the codomain with empty preimages.
The next theorem is one we will cite frequently, as it characterizes injections by the size of the kernel.
Theorem KILT. Kernel of an Injective Linear Transformation.
Suppose that is a linear transformation. Then is injective if and only if the kernel of is trivial,
Proof.
(⇒)
We assume is injective and we need to establish that two sets are equal (Definition SE). Since the kernel is a subspace (Theorem KLTS), To establish the opposite inclusion, suppose We have
(⇐)
thus establishing that is injective by Definition ILT.
You might begin to think about how Figure KPI would change if the linear transformation is injective, which would make the kernel trivial by Theorem KILT.
Example NIAQR. Not injective, Archetype Q, revisited.
We are now in a position to revisit our first example in this section, Example NIAQ. In that example, we showed that Archetype Q is not injective by constructing two vectors, which when used to evaluate the linear transformation provided the same output, thus violating Definition ILT. Just where did those two vectors come from?
The key is the vector
which you can check is an element of for Archetype Q. Choose a vector at random, and then compute (verify this computation back in Example NIAQ). Then
Whenever the kernel of a linear transformation is nontrivial, we can employ this device and conclude that the linear transformation is not injective. This is another way of viewing Theorem KILT. For an injective linear transformation, the kernel is trivial and our only choice for is the zero vector, which will not help us create two different inputs for that yield identical outputs. For every one of the archetypes that is not injective, there is an example presented of exactly this form.
Example NIAO. Not injective, Archetype O.
In Example NKAO the kernel of Archetype O was determined to be
a subspace of with dimension 1. Since the kernel is not trivial, Theorem KILT tells us that is not injective.
Example IAP. Injective, Archetype P.
In Example TKAP it was shown that the linear transformation in Archetype P has a trivial kernel. So by Theorem KILT, is injective.
Sage ILT. Injective Linear Transformations.
By now, you have probably already figured out how to determine if a linear transformation is injective, and what its kernel is. You may also now begin to understand why Sage calls the null space of a matrix a kernel. Here are two examples, first a reprise of Example NKAO.
xxxxxxxxxx
U = QQ^3
V = QQ^5
x1, x2, x3 = var('x1, x2, x3')
outputs = [ -x1 + x2 - 3*x3,
-x1 + 2*x2 - 4*x3,
x1 + x2 + x3,
2*x1 + 3*x2 + x3,
x1 + 2*x3]
T_symbolic(x1, x2, x3) = outputs
T = linear_transformation(U, V, T_symbolic)
T.is_injective()
xxxxxxxxxx
T.kernel()
So we have a concrete demonstration of one half of Theorem KILT. Here is the second example, a do-over for Example TKAP, but renamed as S.
xxxxxxxxxx
U = QQ^3
V = QQ^5
x1, x2, x3 = var('x1, x2, x3')
outputs = [ -x1 + x2 + x3,
-x1 + 2*x2 + 2*x3,
x1 + x2 + 3*x3,
2*x1 + 3*x2 + x3,
-2*x1 + x2 + 3*x3]
S_symbolic(x1, x2, x3) = outputs
S = linear_transformation(U, V, S_symbolic)
S.is_injective()
xxxxxxxxxx
S.kernel()
xxxxxxxxxx
S.kernel() == U.subspace([])
And so we have a concrete demonstration of the other half of Theorem KILT.
Now that we have Theorem KPI, we can return to our discussion from Sage PI. The
.preimage_representative()
method of a linear transformation will give us a single element of the preimage, with no other guarantee about the nature of that element. That is fine, since this is all Theorem KPI requires (in addition to the kernel). Remember that not every element of the codomain may have a nonempty preimage (as indicated in the hypotheses of Theorem KPI). Here is an example using T
from above, with a choice of a codomain element that has a nonempty preimage.xxxxxxxxxx
TK = T.kernel()
v = vector(QQ, [2, 3, 0, 1, -1])
u = T.preimage_representative(v)
u
Now the following will create random elements of the preimage of
v
, which can be verified by the test always returning True
. Use the compute cell just below if you are curious what p
looks like.xxxxxxxxxx
p = u + TK.random_element()
T(p) == v
xxxxxxxxxx
p # random
As suggested, some choices of
v
can lead to empty preimages, in which case Theorem KPI does not even apply.xxxxxxxxxx
v = vector(QQ, [4, 6, 3, 1, -2])
u = T.preimage_representative(v)
The situation is less interesting for an injective linear transformation. Still, preimages may be empty, but when they are nonempty, they are just singletons (a single element) since the kernel is empty. So a repeat of the above example, with
S
rather than T
, would not be very informative.Subsection ILTLI Injective Linear Transformations and Linear Independence
There is a connection between injective linear transformations and linearly independent sets that we will make precise in the next two theorems. However, more informally, we can get a feel for this connection when we think about how each property is defined. A set of vectors is linearly independent if the only relation of linear dependence is the trivial one. A linear transformation is injective if the only way two input vectors can produce the same output is in the trivial way, when both input vectors are equal.
Theorem ILTLI. Injective Linear Transformations and Linear Independence.
Suppose that is an injective linear transformation and
is a linearly independent subset of Then
is a linearly independent subset of
Proof.
Since this is a relation of linear dependence on the linearly independent set we can conclude that
and this establishes that is a linearly independent set.
It is instructive to compare the proof of this theorem with the solution to Exercise MM.T80.
Theorem ILTB. Injective Linear Transformations and Bases.
Suppose that is a linear transformation and
is a linearly independent subset of
Proof.
(⇒)
Assume is injective. Since is a basis, we know is linearly independent (Definition B). Then Theorem ILTLI says that is a linearly independent subset of
(⇐)
Assume that is linearly independent. To establish that is injective, we will show that the kernel of is trivial (Theorem KILT). Suppose that As an element of we can write as a linear combination of the basis vectors in (uniquely). So there are are scalars, such that
Then,
This is a relation of linear dependence (Definition RLD) on the linearly independent set so the scalars are all zero: Then
Subsection ILTD Injective Linear Transformations and Dimension
Theorem ILTD. Injective Linear Transformations and Dimension.
Proof.
Suppose to the contrary that Let be a basis of which will then contain vectors. Apply to each element of to form a set that is a subset of By Theorem ILTB, is linearly independent and therefore must contain distinct vectors. So we have found a set of linearly independent vectors in a vector space of dimension with However, this contradicts Theorem G, so our assumption is false and
Example NIDAU. Not injective by dimension, Archetype U.
The linear transformation in Archetype U is
Notice that the previous example made no use of the actual formula defining the function. Merely a comparison of the dimensions of the domain and codomain is enough to conclude that the linear transformation is not injective. Archetype M and Archetype N are two more examples of linear transformations that have “big” domains and “small” codomains, resulting in “collisions” of outputs and thus are non-injective linear transformations.
Subsection CILT Composition of Injective Linear Transformations
In Subsection LT.NLTFO we saw how to combine linear transformations to build new linear transformations, specifically, how to build the composition of two linear transformations (Definition LTC). It will be useful later to know that the composition of injective linear transformations is again injective, so we prove that here.
Theorem CILTI. Composition of Injective Linear Transformations is Injective.
Proof.
That the composition is a linear transformation was established in Theorem CLTLT, so we need only establish that the composition is injective. Applying Definition ILT, choose from Then if
Sage CILT. Composition of Injective Linear Transformations.
One way to use Sage is to construct examples of theorems and verify the conclusions. Sometimes you will get this wrong: you might build an example that does not satisfy the hypotheses, or your example may not satisfy the conclusions. This may be because you are not using Sage properly, or because you do not understand a definition or a theorem, or in very limited cases you may have uncovered a bug in Sage (which is always the preferred explanation!). But in the process of trying to understand a discrepancy or unexpected result, you will learn much more, both about linear algebra and about Sage. And Sage is incredibly patient — it will stay up with you all night to help you through a rough patch.
Let us illustrate the above in the context of Theorem CILTI. The hypotheses indicate we need two injective linear transformations. Where will get two such linear transformations? Well, the contrapositive of Theorem ILTD tells us that if the dimension of the domain exceeds the dimension of the codomain, we will never be injective. So we should at a minimum avoid this scenario. We can build two linear transformations from matrices created randomly, and just hope that they lead to injective linear transformations. Here is an example of how we create examples like this. The random matrix has single-digit entries, and almost always will lead to an injective linear transformation, though we cannot be absolutely certain. Evaluate this cell repeatedly, to see how rarely the result is not injective.
xxxxxxxxxx
E = random_matrix(ZZ, 3, 2, x=-9, y=9)
T = linear_transformation(QQ^2, QQ^3, E, side='right')
T.is_injective() # random
Our concrete example below was created this way, so here we go.
xxxxxxxxxx
U = QQ^2
V = QQ^3
W = QQ^4
A = matrix(QQ, 3, 2, [[-4, -1],
[-3, 3],
[ 7, -6]])
B = matrix(QQ, 4, 3, [[ 7, 0, -1],
[ 6, 2, 7],
[ 3, -1, 2],
[-6, -1, 1]])
T = linear_transformation(U, V, A, side='right')
T.is_injective()
xxxxxxxxxx
S = linear_transformation(V, W, B, side='right')
S.is_injective()
xxxxxxxxxx
C = S*T
C.is_injective()
Reading Questions ILT Reading Questions
1. Why Not Injective?
2. Kernel of an Injective Linear Transformation.
Describe the kernel of an injective linear transformation.
3. Relate Theorem KPI to Theorem PSPHS.
Exercises ILT Exercises
C10.
Each archetype below is a linear transformation. Compute the kernel for each.
C20.
Solution.
A linear transformation that is not injective will have a nontrivial kernel (Theorem KILT), and this is the key to finding the desired inputs. We need one nontrivial element of the kernel, so suppose that is an element of the kernel,
Vector equality Definition CVE leads to the homogeneous system of three equations in four variables,
The coefficient matrix of this system row-reduces as
From this we can find a solution (we only need one), that is an element of
Now, we choose a vector at random and set
and you can check that
A quicker solution is to take two elements of the kernel (in this case, scalar multiples of ) which both get sent to by Quicker yet, take and as and which also both get sent to by
C25.
Solution.
To find the kernel, we require all such that This condition is
This leads to a homogeneous system of two linear equations in three variables, whose coefficient matrix row-reduces to
With two free variables Theorem BNS yields the basis for the null space
C26.
Solution.
By Theorem ILTD, if a linear transformation is injective, then In this case, and Thus, cannot possibly be injective.
C27.
Solution.
If then Thus, we have the system
Thus, we are looking for the null space of the matrix
Since row-reduces to
the kernel of is all vectors where and Thus,
Since the kernel is not trivial, Theorem KILT tells us that is not injective.
C28.
Solution.
Since is given by matrix multiplication, We have
The null space of is so the kernel of is also trivial:
C29.
Solution.
Since is given by matrix multiplication, We have
Thus, a basis for the null space of is and the kernel is Since the kernel is nontrivial, this linear transformation is not injective.
C30.
Solution.
We can see without computing that is not injective, since the dimension of is larger than the dimension of However, that does not address the question of the kernel of We need to find all matrices so that This means and or equivalently, Thus, the kernel is a one-dimensional subspace of spanned by Symbolically, we have
C31.
is a linearly independent set.
Solution.
We have
Let us put these vectors into a matrix and row reduce to test their linear independence.
so the set of vectors is linearly independent.
C32.
is a linearly independent set.
Solution.
We have and Putting these into a matrix as columns and row-reducing, we have
Thus, the set of vectors is linearly independent.
C33.
Given that the linear transformation
is injective, show directly that
is a linearly independent set.
Solution.
We have
Apply Theorem LIVRN to test the linear independence of
so since the set of vectors is linearly independent.
C40.
Show that the linear transformation is not injective by finding two different elements of the domain, and such that ( is the vector space of symmetric matrices.)
Solution.
We choose to be any vector we like. A particularly cocky choice would be to choose but we will instead choose
Then Now compute the kernel of which by Theorem KILT we expect to be nontrivial. Setting equal to the zero vector, and equating coefficients leads to a homogeneous system of equations. Row-reducing the coefficient matrix of this system will allow us to determine the values of and that create elements of the null space of
We only need a single element of the null space of this coefficient matrix, so we will not compute a precise description of the whole null space. Instead, choose the free variable Then
is the corresponding element of the kernel. We compute the desired as
Then check that
M60.
Suppose and are vector spaces. Define the function by for every Then by Exercise LT.M60, is a linear transformation. Formulate a condition on that is equivalent to being an injective linear transformation. In other words, fill in the blank to complete the following statement (and then give a proof): is injective if and only if is . (See Exercise SLT.M60, Exercise IVLT.M60.)
T10.
Solution.
Suppose that is a subspace of Then by Property Z, which we can rearrange to say We know from Theorem LTTZZ that Putting these together we have
So our hypothesis that the preimage is a subspace has led to the conclusion that could only be one vector, the zero vector. We still need to verify that is indeed a subspace, but since this is just Theorem KLTS.
T15.
Solution.
This qualifies for membership in
T20.
Solution.
This is an equality of sets, so we want to establish two subset conditions (Definition SE).
You have attempted 1 of 4 activities on this page.