Section IVLT Invertible Linear Transformations
In this section we will conclude our introduction to linear transformations by bringing together the twin properties of injectivity and surjectivity and consider linear transformations with both of these properties.
Subsection IVLT Invertible Linear Transformations
One preliminary definition, and then we will have our main definition for this section.
Definition IDLT. Identity Linear Transformation.
The identity linear transformation on the vector space \(W\) is defined as
Informally, \(I_W\) is the “do-nothing” function. You should check that \(I_W\) is really a linear transformation, as claimed, and then compute its kernel and range to see that it is both injective and surjective. All of these facts should be straightforward to verify (Exercise IVLT.T05). With this in hand we can make our main definition.
Definition IVLT. Invertible Linear Transformations.
Suppose that \(\ltdefn{T}{U}{V}\) is a linear transformation. If there is a function \(\ltdefn{S}{V}{U}\) such that
then \(T\) is invertible. In this case, we call \(S\) the inverse of \(T\) and write \(S=\ltinverse{T}\text{.}\)
Informally, a linear transformation \(T\) is invertible if there is a companion linear transformation, \(S\text{,}\) which “undoes” the action of \(T\text{.}\) When the two linear transformations are applied consecutively (composition), in either order, the result is to have no real effect. It is entirely analogous to squaring a positive number and then taking its (positive) square root.
Here is an example of a linear transformation that is invertible. As usual at the beginning of a section, do not be concerned with where \(S\) came from, just understand how it illustrates Definition IVLT.
Example AIVLT. An invertible linear transformation.
Archetype V is the linear transformation
Define the function \(\ltdefn{S}{M_{22}}{P_3}\) defined by
Then
and
\begin{align*} &\lteval{\left(\compose{S}{T}\right)}{a+bx+cx^2+dx^3}\\ &\quad\quad=\lteval{S}{\lteval{T}{a+bx+cx^2+dx^3}}\\ &\quad\quad=\lteval{S}{\begin{bmatrix} a+b&a-2c\\d&b-d \end{bmatrix}}\\ &\quad\quad=((a+b)-d-(b-d))+ (d+(b-d))x\\ &\quad\quad+\left(\frac{1}{2}((a+b)-(a-2c)-d-(b-d))\right)x^2+ (d)x^3\\ &\quad\quad=a+bx+cx^2+dx^3\\ &\quad\quad=\lteval{I_{P_3}}{a+bx+cx^2+dx^3}\text{.} \end{align*}For now, understand why these computations show that \(T\) is invertible, and that \(S=T^{-1}\text{.}\) Maybe even be amazed by how \(S\) works so perfectly in concert with \(T\text{!}\) We will see later just how to arrive at the correct form of \(S\) (when it is possible).
It can be as instructive to study a linear transformation that is not invertible.
Example ANILT. A non-invertible linear transformation.
Consider the linear transformation \(\ltdefn{T}{\complex{3}}{M_{22}}\) defined by
Suppose we were to search for an inverse function \(\ltdefn{S}{M_{22}}{\complex{3}}\text{.}\)
First verify that the \(2\times 2\) matrix
is not in the range of \(T\text{.}\) This will amount to finding an input to \(T\text{,}\) \(\colvector{a\\b\\c}\text{,}\) such that
As this system of equations is inconsistent, there is no input column vector, and \(A\not\in\rng{T}\text{.}\) How should we define \(\lteval{S}{A}\text{?}\) Note that
So any definition we would provide for \(\lteval{S}{A}\) must then be a column vector that \(T\) sends to \(A\) and we would have \(A\in\rng{T}\text{,}\) contrary to the definition of \(T\text{.}\) This is enough to see that there is no function \(S\) that will allow us to conclude that \(T\) is invertible, since we cannot provide a consistent definition for \(\lteval{S}{A}\) if we assume \(T\) is invertible.
Even though we now know that \(T\) is not invertible, let us not leave this example just yet. Check that
How would we define \(\lteval{S}{B}\text{?}\) We have
or
\begin{align*} \lteval{S}{B}&=\lteval{S}{\lteval{T}{\colvector{0\\-3\\8}}} =\lteval{\left(\compose{S}{T}\right)}{\colvector{0\\-3\\8}} =\lteval{I_{\complex{3}}}{\colvector{0\\-3\\8}}=\colvector{0\\-3\\8}\text{.} \end{align*}Which definition should we provide for \(\lteval{S}{B}\text{?}\) Both are necessary. But then \(S\) is not a function. So we have a second reason to know that there is no function \(S\) that will allow us to conclude that \(T\) is invertible. It happens that there are infinitely many column vectors that \(S\) would have to take to \(B\text{.}\) Construct the kernel of \(T\text{,}\)
Now choose either of the two inputs used above for \(T\) and add to it a scalar multiple of the basis vector for the kernel of \(T\text{.}\) For example,
then verify that \(\lteval{T}{\vect{x}}=B\text{.}\) Practice creating a few more inputs for \(T\) that would be sent to \(B\text{,}\) and see why it is hopeless to think that we could ever provide a reasonable definition for \(\lteval{S}{B}\text{!}\) There is a “whole subspace's worth” of values that \(\lteval{S}{B}\) would have to take on.
In Example ANILT you may have noticed that \(T\) is not surjective, since the matrix \(A\) was not in the range of \(T\text{.}\) And \(T\) is not injective since there are two different input column vectors that \(T\) sends to the matrix \(B\text{.}\) Linear transformations \(T\) that are not surjective lead to putative inverse functions \(S\) that are undefined on inputs outside of the range of \(T\text{.}\) Linear transformations \(T\) that are not injective lead to putative inverse functions \(S\) that are multiply-defined on each of their inputs. We will formalize these ideas in Theorem ILTIS.
But first notice in Definition IVLT that we only require the inverse (when it exists) to be a function. When it does exist, it too is a linear transformation.
Theorem ILTLT. Inverse of a Linear Transformation is a Linear Transformation.
Suppose that \(\ltdefn{T}{U}{V}\) is an invertible linear transformation. Then the function \(\ltdefn{\ltinverse{T}}{V}{U}\) is a linear transformation.
Proof.
We work through verifying Definition LT for \(\ltinverse{T}\text{,}\) using the fact that \(T\) is a linear transformation to obtain the second equality in each half of the proof. To this end, suppose \(\vect{x},\,\vect{y}\in V\) and \(\alpha\in\complexes\text{.}\) We have
Now check the second defining property of a linear transformation for \(\ltinverse{T}\text{,}\)
So \(\ltinverse{T}\) fulfills the requirements of Definition LT and is therefore a linear transformation.
So when \(T\) has an inverse, \(\ltinverse{T}\) is also a linear transformation. Furthermore, \(\ltinverse{T}\) is an invertible linear transformation and its inverse is what you might expect.
Theorem IILT. Inverse of an Invertible Linear Transformation.
Suppose that \(\ltdefn{T}{U}{V}\) is an invertible linear transformation. Then \(\ltinverse{T}\) is an invertible linear transformation and \(\ltinverse{\left(\ltinverse{T}\right)}=T\text{.}\)
Proof.
Because \(T\) is invertible, Definition IVLT tells us there is a function \(\ltdefn{\ltinverse{T}}{V}{U}\) such that
Additionally, Theorem ILTLT tells us that \(\ltinverse{T}\) is more than just a function, it is a linear transformation. Now view these two statements as properties of the linear transformation \(\ltinverse{T}\text{.}\) In light of Definition IVLT, they together say that \(\ltinverse{T}\) is invertible (let \(T\) play the role of \(S\) in the statement of the definition). Furthermore, the inverse of \(\ltinverse{T}\) is then \(T\text{,}\) i.e. \(\ltinverse{\left(\ltinverse{T}\right)}=T\text{.}\)
Sage IVLT. Invertible Linear Transformations.
Of course, Sage can compute the inverse of a linear transformation. However, not every linear transformation has an inverse, and we will see shortly how to determine this. For now, take this example as just an illustration of the basics (both mathematically and for Sage).
We can build the composition of T
and its inverse, S
, in both orders. We will optimistically name these as identity linear transformations, as predicted by Definition IVLT. Run the cells to define the compositions, then run the compute cells with the random vectors repeatedly — they should always return True
.
We can also check that the compositions are the same as the identity linear transformation itself. We will do one, you can try the other.
Subsection IV Invertibility
We now know what an inverse linear transformation is, but just which linear transformations have inverses? Here is a theorem we have been preparing for all chapter long.
Theorem ILTIS. Invertible Linear Transformations are Injective and Surjective.
Suppose \(\ltdefn{T}{U}{V}\) is a linear transformation. Then \(T\) is invertible if and only if \(T\) is injective and surjective.
Proof.
(⇒)
Since \(T\) is presumed invertible, we can employ its inverse, \(\ltinverse{T}\) (Definition IVLT). To see that \(T\) is injective, suppose \(\vect{x},\,\vect{y}\in U\) and assume that \(\lteval{T}{\vect{x}}=\lteval{T}{\vect{y}}\text{,}\)
So by Definition ILT \(T\) is injective.
To check that \(T\) is surjective, suppose \(\vect{v}\in V\text{.}\) Then \(\lteval{\ltinverse{T}}{\vect{v}}\) is a vector in \(U\text{.}\) Compute
So there is an element from \(U\text{,}\) when used as an input to \(T\) (namely \(\lteval{\ltinverse{T}}{\vect{v}}\)) that produces the desired output, \(\vect{v}\text{,}\) and hence \(T\) is surjective by Definition SLT.
(⇐)
Now assume that \(T\) is both injective and surjective. We will build a function \(\ltdefn{S}{V}{U}\) that will establish that \(T\) is invertible. To this end, choose any \(\vect{v}\in V\text{.}\) Since \(T\) is surjective, Theorem RSLT says \(\rng{T}=V\text{,}\) so we have \(\vect{v}\in\rng{T}\text{.}\) Theorem RPI says that the preimage of \(\vect{v}\text{,}\) \(\preimage{T}{\vect{v}}\text{,}\) is nonempty. So we can choose a vector from the preimage of \(\vect{v}\text{,}\) say \(\vect{u}\text{.}\) In other words, there exists \(\vect{u}\in\preimage{T}{\vect{v}}\text{.}\)
Since \(\preimage{T}{\vect{v}}\) is nonempty, Theorem KPI then says that
However, because \(T\) is injective, by Theorem KILT the kernel is trivial, \(\krn{T}=\set{\zerovector}\text{.}\) So the preimage is a set with just one element, \(\preimage{T}{\vect{v}}=\set{\vect{u}}\text{.}\) Now we can define \(S\) by \(\lteval{S}{\vect{v}}=\vect{u}\text{.}\) This is the key to this half of this proof. Normally the preimage of a vector from the codomain might be an empty set, or an infinite set. But surjectivity requires that the preimage not be empty, and then injectivity limits the preimage to a singleton. Since our choice of \(\vect{v}\) was arbitrary, we know that every preimage for \(T\) is a set with a single element. This allows us to construct \(S\) as a function. Now that it is defined, verifying that it is the inverse of \(T\) will be easy. Here we go.
Choose \(\vect{u}\in U\text{.}\) Define \(\vect{v}=\lteval{T}{\vect{u}}\text{.}\) Then \(\preimage{T}{\vect{v}}=\set{\vect{u}}\text{,}\) so that \(\lteval{S}{\vect{v}}=\vect{u}\) and,
and since our choice of \(\vect{u}\) was arbitrary we have function equality, \(\compose{S}{T}=I_U\text{.}\)
Now choose \(\vect{v}\in V\text{.}\) Define \(\vect{u}\) to be the single vector in the set \(\preimage{T}{\vect{v}}\text{,}\) in other words, \(\vect{u}=\lteval{S}{\vect{v}}\text{.}\) Then \(\lteval{T}{\vect{u}}=\vect{v}\text{,}\) so
and since our choice of \(\vect{v}\) was arbitrary we have function equality, \(\compose{T}{S}=I_V\text{.}\)
When a linear transformation is both injective and surjective, the preimage of any element of the codomain is a set of size one (a “singleton”). This fact allowed us to construct the inverse linear transformation in one half of the proof of Theorem ILTIS (see Proof Technique C) and is illustrated in the following cartoon. This should remind you of the very general Figure KPI which was used to illustrate Theorem KPI about preimages, only now we have an invertible linear transformation which is therefore surjective and injective (Theorem ILTIS). As a surjective linear transformation, there are no vectors depicted in the codomain, \(V\text{,}\) that have empty preimages. More importantly, as an injective linear transformation, the kernel is trivial (Theorem KILT), so each preimage is a single vector. This makes it possible to “turn around” all the arrows to create the inverse linear transformation \(\ltinverse{T}\text{.}\)
Many will call an injective and surjective function a bijective function or just a bijection. Theorem ILTIS tells us that this is just a synonym for the term invertible (which we will use exclusively).
We can follow the constructive approach of the proof of Theorem ILTIS to construct the inverse of a specific linear transformation, as the next example shows.
Example CIVLT. Computing the Inverse of a Linear Transformations.
Consider the linear transformation \(\ltdefn{T}{S_{22}}{P_2}\) defined by
\(T\) is invertible, which you are able to verify, perhaps by determining that the kernel of \(T\) is trivial and the range of \(T\) is all of \(P_2\text{.}\) This will be easier once we have Theorem RPNDD, which appears later in this section.
By Theorem ILTIS we know \(\ltinverse{T}\) exists, and it will be critical shortly to realize that \(\ltinverse{T}\) is automatically known to be a linear transformation as well (Theorem ILTLT). To determine the complete behavior of \(\ltdefn{\ltinverse{T}}{P_2}{S_{22}}\) we can simply determine its action on a basis for the domain, \(P_2\text{.}\) This is the substance of Theorem LTDB, and an excellent example of its application. Choose any basis of \(P_2\text{,}\) the simpler the better, such as \(B=\set{1,\,x,\,x^2}\text{.}\) Values of \(\ltinverse{T}\) for these three basis elements will be the single elements of their preimages. In turn, we have
Theorem LTDB says, informally, “it is enough to know what a linear transformation does to a basis.” Formally, we have the outputs of \(\ltinverse{T}\) for a basis, so by Theorem LTDB there is a unique linear transformation with these outputs. So we put this information to work. The key step here is that we can convert any element of \(P_2\) into a linear combination of the elements of the basis \(B\) (Theorem VRRB). We are after a “formula” for the value of \(\ltinverse{T}\) on a generic element of \(P_2\text{,}\) say \(p+qx+rx^2\text{.}\) We have
Notice how a linear combination in the domain of \(\ltinverse{T}\) has been translated into a linear combination in the codomain of \(\ltinverse{T}\) since we know \(\ltinverse{T}\) is a linear transformation by Theorem ILTLT.
Also, notice how the augmented matrices used to determine the three preimages could be combined into one calculation of a matrix in extended echelon form, reminiscent of a procedure we know for computing the inverse of a matrix (see Example CMI). Hmmmm.
We will make frequent use of the characterization of invertible linear transformations provided by Theorem ILTIS. The next theorem is a good example of this, and we will use it often, too.
Theorem CIVLT. Composition of Invertible Linear Transformations.
Suppose that \(\ltdefn{T}{U}{V}\) and \(\ltdefn{S}{V}{W}\) are invertible linear transformations. Then the composition, \(\ltdefn{\left(\compose{S}{T}\right)}{U}{W}\) is an invertible linear transformation.
Proof.
Since \(S\) and \(T\) are both linear transformations, \(\compose{S}{T}\) is also a linear transformation by Theorem CLTLT. Since \(S\) and \(T\) are both invertible, Theorem ILTIS says that \(S\) and \(T\) are both injective and surjective. Then Theorem CILTI says \(\compose{S}{T}\) is injective, and Theorem CSLTS says \(\compose{S}{T}\) is surjective. Now apply the “other half” of Theorem ILTIS and conclude that \(\compose{S}{T}\) is invertible.
When a composition is invertible, the inverse is easy to construct.
Theorem ICLT. Inverse of a Composition of Linear Transformations.
Suppose that \(\ltdefn{T}{U}{V}\) and \(\ltdefn{S}{V}{W}\) are invertible linear transformations. Then \(\compose{S}{T}\) is invertible and \(\ltinverse{\left(\compose{S}{T}\right)}=\compose{\ltinverse{T}}{\ltinverse{S}}\text{.}\)
Proof.
Compute, for all \(\vect{w}\in W\text{,}\)
So \(\compose{\left(\compose{S}{T}\right)}{\left(\compose{\ltinverse{T}}{\ltinverse{S}}\right)}=I_W\text{,}\) and also
so \(\compose{\left(\compose{\ltinverse{T}}{\ltinverse{S}}\right)}{\left(\compose{S}{T}\right)}=I_U\text{.}\)
By Definition IVLT, \(\compose{S}{T}\) is invertible and \(\ltinverse{\left(\compose{S}{T}\right)}=\compose{\ltinverse{T}}{\ltinverse{S}}\text{.}\)
Notice that this theorem not only establishes what the inverse of \(\compose{S}{T}\) is, it also duplicates the conclusion of Theorem CIVLT and also establishes the invertibility of \(\compose{S}{T}\text{.}\) But somehow, the proof of Theorem CIVLT is a nicer way to get this property.
Does Theorem ICLT remind you of the flavor of any theorem we have seen about matrices? (Hint: Think about getting dressed.) Hmmmm.
Sage CIVLT. Computing the Inverse of a Linear Transformations.
Theorem ILTIS gives us a straightforward condition equivalence for an invertible linear transformation, but of course, it is even easier in Sage.
As easy as that is, it is still instructive to walk through an example similar to Example CIVLT using Sage, as a further illustration of the second half of the proof of Theorem ILTIS. Since T is surjective, every element of the codomain has a nonempty preimage, and since T is injective, the preimage of each element is a single element. Keep these facts in mind and convince yourself that the procedure below would never raise an error, and always has a unique result.
We first compute the preimage of each element of a basis of the codomain.
Then we define a new linear transformation, from V
to U
, which turns it around and uses the preimages as a set of images defining the new linear transformation. Explain to yourself how we know that preimages
is a basis for U
, and why this will create an invertible linear transformation.
While this is a simple two-step procedure (form preimages, construct linear transformation), realize that this is not the process that Sage uses internally.
Notice that the essence of this construction is that when we work with an invertible linear transformation, the method .preimage_representative()
behaves as a function (we mean the precise mathematical definition here) — it is always defined and always produces just one well-defined output. Here the linear_transformation()
constructor is extending it to a linear function based on its action on a (finite) basis of the domain.
Subsection SI Structure and Isomorphism
A vector space is defined (Definition VS) as a set of objects (“vectors”) endowed with a definition of vector addition (\(+\)) and a definition of scalar multiplication (written with juxtaposition). Many of our definitions about vector spaces involve linear combinations (Definition LC), such as the span of a set (Definition SS) and linear independence (Definition LI). Other definitions are built up from these ideas, such as bases (Definition B) and dimension (Definition D). The defining properties of a linear transformation require that a function “respect” the operations of the two vector spaces that are the domain and the codomain (Definition LT). Finally, an invertible linear transformation is one that can be “undone” — it has a companion that reverses its effect. In this subsection we are going to begin to roll all these ideas into one.
A vector space has “structure” derived from definitions of the two operations and the requirement that these operations interact in ways that satisfy the ten properties of Definition VS. When two different vector spaces have an invertible linear transformation defined between them, then we can translate questions about linear combinations (spans, linear independence, bases, dimension) from the first vector space to the second. The answers obtained in the second vector space can then be translated back, via the inverse linear transformation, and interpreted in the setting of the first vector space. We say that these invertible linear transformations “preserve structure.” And we say that the two vector spaces are “structurally the same.” The precise term is “isomorphic,” from Greek meaning “of the same form.” Let us begin to try to understand this important concept.
Definition IVS. Isomorphic Vector Spaces.
Two vector spaces \(U\) and \(V\) are isomorphic if there exists an invertible linear transformation \(T\) with domain \(U\) and codomain \(V\text{,}\) \(\ltdefn{T}{U}{V}\text{.}\) In this case, we write \(U\isomorphic V\text{,}\) and the linear transformation \(T\) is known as an isomorphism between \(U\) and \(V\text{.}\)
A few comments on this definition. First, be careful with your language (Proof Technique L). Two vector spaces are isomorphic, or not. It is a yes/no situation and the term only applies to a pair of vector spaces. Any invertible linear transformation can be called an isomorphism, it is a term that applies to functions. Second, given a pair of vector spaces there might be several different isomorphisms between the two vector spaces. But it only takes the existence of one to call the pair isomorphic. Third, \(U\) isomorphic to \(V\text{,}\) or \(V\) isomorphic to \(U\text{?}\) It does not matter, since the inverse linear transformation will provide the needed isomorphism in the “opposite” direction. Being “isomorphic to” is an equivalence relation on the set of all vector spaces (see Theorem SER for a reminder about equivalence relations).
Example IVSAV. Isomorphic vector spaces, Archetype V.
Archetype V is a linear transformation from \(P_3\) to \(M_{22}\text{,}\)
Since it is injective and surjective, Theorem ILTIS tells us that it is an invertible linear transformation. By Definition IVS we say \(P_3\) and \(M_{22}\) are isomorphic.
At a basic level, the term “isomorphic” is nothing more than a codeword for the presence of an invertible linear transformation. However, it is also a description of a powerful idea, and this power only becomes apparent in the course of studying examples and related theorems. In this example, we are led to believe that there is nothing “structurally” different about \(P_3\) and \(M_{22}\text{.}\) In a certain sense they are the same. Not equal, but the same. One is as good as the other. One is just as interesting as the other.
Here is an extremely basic application of this idea. Suppose we want to compute the following linear combination of polynomials in \(P_3\text{,}\)
Rather than doing it straight-away (which is very easy), we will apply the transformation \(T\) to convert into a linear combination of matrices, and then compute in \(M_{22}\) according to the definitions of the vector space operations there (Example VSM),
Now we will translate our answer back to \(P_3\) by applying \(\ltinverse{T}\text{,}\) which we demonstrated in Example AIVLT,
We compute,
which is, as expected, exactly what we would have computed for the original linear combination had we just used the definitions of the operations in \(P_3\) (Example VSP). Notice this is meant only as an illustration and not a suggested route for doing this particular computation.
In Example IVSAV we avoided a computation in \(P_3\) by a conversion of the computation to a new vector space, \(M_{22}\text{,}\) via an invertible linear transformation (also known as an isomorphism). Here is a diagram meant to illustrate the more general situation of two vector spaces, \(U\) and \(V\text{,}\) and an invertible linear transformation, \(T\text{.}\) The diagram is simply about a sum of two vectors from \(U\text{,}\) rather than a more involved linear combination. It should remind you of Figure DLTA.
To understand this diagram, begin in the upper-left corner, and by going straight down we can compute the sum of the two vectors using the addition for the vector space \(U\text{.}\) The more circuitous alternative, in the spirit of Example IVSAV, is to begin in the upper-left corner and then proceed clockwise around the other three sides of the rectangle. Notice that the vector addition is accomplished using the addition in the vector space \(V\text{.}\) Then, because \(T\) is a linear transformation, we can say that the result of \(\lteval{T}{\vect{u}_1}+\lteval{T}{\vect{u}_2}\) is equal to \(\lteval{T}{\vect{u}_1+\vect{u}_2}\text{.}\) Then the key feature is to recognize that applying \(\ltinverse{T}\) obviously converts the second version of this result into the sum in the lower-left corner. So there are two routes to the sum \(\vect{u}_1+\vect{u}_2\text{,}\) each employing an addition from a different vector space, but one is “direct” and the other is “roundabout”. You might try designing a similar diagram for the case of scalar multiplication (see Figure DLTM) or for a full linear combination.
Checking the dimensions of two vector spaces can be a quick way to establish that they are not isomorphic. Here is the theorem.
Theorem IVSED. Isomorphic Vector Spaces have Equal Dimension.
Suppose \(U\) and \(V\) are isomorphic vector spaces. Then \(\dimension{U}=\dimension{V}\text{.}\)
Proof.
If \(U\) and \(V\) are isomorphic, there is an invertible linear transformation \(\ltdefn{T}{U}{V}\) (Definition IVS). \(T\) is injective by Theorem ILTIS and so by Theorem ILTD, \(\dimension{U}\leq\dimension{V}\text{.}\) Similarly, \(T\) is surjective by Theorem ILTIS and so by Theorem SLTD, \(\dimension{U}\geq\dimension{V}\text{.}\) The net effect of these two inequalities is that \(\dimension{U}=\dimension{V}\text{.}\)
The contrapositive of Theorem IVSED says that if \(U\) and \(V\) have different dimensions, then they are not isomorphic. Dimension is the simplest “structural” characteristic that will allow you to distinguish non-isomorphic vector spaces. For example \(P_6\) is not isomorphic to \(M_{34}\) since their dimensions (7 and 12, respectively) are not equal. With tools developed in Section VR we will be able to establish that the converse of Theorem IVSED is true. Think about that one for a moment.
Subsection RNLT Rank and Nullity of a Linear Transformation
Just as a matrix has a rank and a nullity, so too do linear transformations. And just like the rank and nullity of a matrix are related (they sum to the number of columns, Theorem RPNC) the rank and nullity of a linear transformation are related. Here are the definitions and theorems, see the Archetypes (Appendix A) for loads of examples.
Definition ROLT. Rank Of a Linear Transformation.
Suppose that \(\ltdefn{T}{U}{V}\) is a linear transformation. Then the rank of \(T\text{,}\) \(\rank{T}\text{,}\) is the dimension of the range of \(T\text{,}\)
Definition NOLT. Nullity Of a Linear Transformation.
Suppose that \(\ltdefn{T}{U}{V}\) is a linear transformation. Then the nullity of \(T\text{,}\) \(\nullity{T}\text{,}\) is the dimension of the kernel of \(T\text{,}\)
Here are two quick theorems.
Theorem ROSLT. Rank Of a Surjective Linear Transformation.
Suppose that \(\ltdefn{T}{U}{V}\) is a linear transformation. Then the rank of \(T\) is the dimension of \(V\text{,}\) \(\rank{T}=\dimension{V}\text{,}\) if and only if \(T\) is surjective.
Proof.
By Theorem RSLT, \(T\) is surjective if and only if \(\rng{T}=V\text{.}\) Applying Definition ROLT, \(\rng{T}=V\) if and only if \(\rank{T}=\dimension{\rng{T}}=\dimension{V}\text{.}\)
Theorem NOILT. Nullity Of an Injective Linear Transformation.
Suppose that \(\ltdefn{T}{U}{V}\) is a linear transformation. Then the nullity of \(T\) is zero, \(\nullity{T}=0\text{,}\) if and only if \(T\) is injective.
Proof.
By Theorem KILT, \(T\) is injective if and only if \(\krn{T}=\set{\zerovector}\text{.}\) Applying Definition NOLT, \(\krn{T}=\set{\zerovector}\) if and only if \(\nullity{T}=0\text{.}\)
Just as injectivity and surjectivity come together in invertible linear transformations, there is a clear relationship between rank and nullity of a linear transformation. If one is big, the other is small.
Theorem RPNDD. Rank Plus Nullity is Domain Dimension.
Suppose that \(\ltdefn{T}{U}{V}\) is a linear transformation. Then
Proof.
Let \(r=\rank{T}\) and \(s=\nullity{T}\text{.}\) Suppose that \(R=\set{\vectorlist{v}{r}}\subseteq V\) is a basis of the range of \(T\text{,}\) \(\rng{T}\text{,}\) and \(S=\set{\vectorlist{u}{s}}\subseteq U\) is a basis of the kernel of \(T\text{,}\) \(\krn{T}\text{.}\) Note that \(R\) and \(S\) are possibly empty, which means that some of the sums in this proof are “empty” and are equal to the zero vector.
Because the elements of \(R\) are all in the range of \(T\text{,}\) each must have a nonempty preimage by Theorem RPI. Choose vectors \(\vect{w}_i\in U\text{,}\) \(1\leq i\leq r\) such that \(\vect{w}_i\in\preimage{T}{\vect{v}_i}\text{.}\) So \(\lteval{T}{\vect{w}_i}=\vect{v}_i\text{,}\) \(1\leq i\leq r\text{.}\) Consider the set
We claim that \(B\) is a basis for \(U\text{.}\)
To establish linear independence for \(B\text{,}\) begin with a relation of linear dependence on \(B\text{.}\) So suppose there are scalars \(\scalarlist{a}{s}\) and \(\scalarlist{b}{r}\)
Then
This is a relation of linear dependence on \(R\) (Definition RLD), and since \(R\) is a linearly independent set (Definition LI), we see that \(b_1=b_2=b_3=\ldots=b_r=0\text{.}\) Then the original relation of linear dependence on \(B\) becomes
But this is again a relation of linear independence (Definition RLD), now on the set \(S\text{.}\) Since \(S\) is linearly independent (Definition LI), we have \(a_1=a_2=a_3=\ldots=a_r=0\text{.}\) Since we now know that all the scalars in the relation of linear dependence on \(B\) must be zero, we have established the linear independence of \(S\) through Definition LI.
To now establish that \(B\) spans \(U\text{,}\) choose an arbitrary vector \(\vect{u}\in U\text{.}\) Then \(\lteval{T}{\vect{u}}\in R(T)\text{,}\) so there are scalars \(\scalarlist{c}{r}\) such that
Use the scalars \(\scalarlist{c}{r}\) to define a vector \(\vect{y}\in U\text{,}\)
Then
So the vector \(\vect{u}-\vect{y}\) is sent to the zero vector by \(T\) and hence is an element of the kernel of \(T\text{.}\) As such it can be written as a linear combination of the basis vectors for \(\krn{T}\text{,}\) the elements of the set \(S\text{.}\) So there are scalars \(\scalarlist{d}{s}\) such that
Then
This says that for any vector, \(\vect{u}\text{,}\) from \(U\text{,}\) there exist scalars (\(\scalarlist{d}{s}\text{,}\) \(\scalarlist{c}{r}\)) that form \(\vect{u}\) as a linear combination of the vectors in the set \(B\text{.}\) In other words, \(B\) spans \(U\) (Definition SS).
So \(B\) is a basis (Definition B) of \(U\) with \(s+r\) vectors, and thus
as desired.
Theorem RPNC said that the rank and nullity of a matrix sum to the number of columns of the matrix. This result is now an easy consequence of Theorem RPNDD when we consider the linear transformation \(\ltdefn{T}{\complex{n}}{\complex{m}}\) defined with the \(m\times n\) matrix \(A\) by \(\lteval{T}{\vect{x}}=A\vect{x}\text{.}\) The range and kernel of \(T\) are identical to the column space and null space of the matrix \(A\) (Exercise ILT.T20, Exercise SLT.T20), so the rank and nullity of the matrix \(A\) are identical to the rank and nullity of the linear transformation \(T\text{.}\) The dimension of the domain of \(T\) is the dimension of \(\complex{n}\text{,}\) exactly the number of columns for the matrix \(A\text{.}\)
This theorem can be especially useful in determining basic properties of linear transformations. For example, suppose that \(\ltdefn{T}{\complex{6}}{\complex{6}}\) is a linear transformation and you are able to quickly establish that the kernel is trivial. Then \(\nullity{T}=0\text{.}\) First this means that \(T\) is injective by Theorem NOILT. Also, Theorem RPNDD becomes
So the rank of \(T\) is equal to the dimension of the codomain, and by Theorem ROSLT we know \(T\) is surjective. Finally, we know \(T\) is invertible by Theorem ILTIS. So from the determination that the kernel is trivial, and consideration of various dimensions, the theorems of this section allow us to conclude the existence of an inverse linear transformation for \(T\text{.}\)
Similarly, Theorem RPNDD can be used to provide alternative proofs for Theorem ILTD, Theorem SLTD and Theorem IVSED. It would be an interesting exercise to construct these proofs.
It would be instructive to study the archetypes that are linear transformations and see how many of their properties can be deduced just from considering only the dimensions of the domain and codomain. Then add in just knowledge of either the nullity or rank, and see how much more you can learn about the linear transformation. The table preceding all of the archetypes (Appendix A) could be a good place to start this analysis.
Sage LTOE. Linear Transformation Odds and Ends.
We should mention that the notation T^-1
will yield an inverse of a linear transformation in Sage.
Also, the rank and nullity are what you might expect. Recall that for a matrix Sage provides a left nullity and a right nullity. There is no such distinction for linear transformations. We verify Theorem RPNDD as an example.
Subsection SLELT Systems of Linear Equations and Linear Transformations
This subsection does not really belong in this section, or any other section, for that matter. It is just the right time to have a discussion about the connections between the central topic of linear algebra, linear transformations, and our motivating topic from Chapter SLE, systems of linear equations. We will discuss several theorems we have seen already, but we will also make some forward-looking statements that will be justified in Chapter R.
Archetype D and Archetype E are ideal examples to illustrate connections with linear transformations. Both have the same coefficient matrix,
To apply the theory of linear transformations to these two archetypes, employ the matrix-vector product (Definition MVP) and define the linear transformation,
Theorem MBLT tells us that \(T\) is indeed a linear transformation. Archetype D asks for solutions to \(\linearsystem{D}{\vect{b}}\text{,}\) where \(\vect{b}=\colvector{8\\-12\\-4}\text{.}\) In the language of linear transformations this is equivalent to asking for \(\preimage{T}{\vect{b}}\text{.}\) In the language of vectors and matrices it asks for a linear combination of the four columns of \(D\) that will equal \(\vect{b}\text{.}\) One solution listed is \(\vect{w}=\colvector{7\\8\\1\\3}\text{.}\) With a nonempty preimage, Theorem KPI tells us that the complete solution set of the linear system is the preimage of \(\vect{b}\text{,}\)
The kernel of the linear transformation \(T\) is exactly the null space of the matrix \(D\) (see Exercise ILT.T20), so this approach to the solution set should be reminiscent of Theorem PSPHS. The kernel of the linear transformation is the preimage of the zero vector, exactly equal to the solution set of the homogeneous system \(\homosystem{D}\text{.}\) Since \(D\) has a null space of dimension two, every preimage (and in particular the preimage of \(\vect{b}\)) is as “big” as a subspace of dimension two (but is not a subspace).
Archetype E is identical to Archetype D but with a different vector of constants, \(\vect{d}=\colvector{2\\3\\2}\text{.}\) We can use the same linear transformation \(T\) to discuss this system of equations since the coefficient matrix is identical. Now the set of solutions to \(\linearsystem{D}{\vect{d}}\) is the preimage of \(\vect{d}\text{,}\) \(\preimage{T}{\vect{d}}\text{.}\) However, the vector \(\vect{d}\) is not in the range of the linear transformation (nor is it in the column space of the matrix, since these two sets are equal by Exercise SLT.T20). So the empty preimage is equivalent to the inconsistency of the linear system.
These two archetypes each have three equations in four variables, so either the resulting linear systems are inconsistent, or they are consistent and application of Theorem CMVEI tells us that the system has infinitely many solutions. Considering these same parameters for the linear transformation, the dimension of the domain, \(\complex{4}\text{,}\) is four, while the codomain, \(\complex{3}\text{,}\) has dimension three. Then
So the kernel of \(T\) is nontrivial simply by considering the dimensions of the domain (number of variables) and the codomain (number of equations). Preimages of elements of the codomain that are not in the range of \(T\) are empty (inconsistent systems). For elements of the codomain that are in the range of \(T\) (consistent systems), Theorem KPI tells us that the preimages are built from the kernel, and with a nontrivial kernel, these preimages are infinite (infinitely many solutions).
When do systems of equations have unique solutions? Consider the system of linear equations \(\linearsystem{C}{\vect{f}}\) and the linear transformation \(\lteval{S}{\vect{x}}=C\vect{x}\text{.}\) If \(S\) has a trivial kernel, then preimages will either be empty or be finite sets with single elements. Correspondingly, the coefficient matrix \(C\) will have a trivial null space and solution sets will either be empty (inconsistent) or contain a single solution (unique solution). Should the matrix be square and have a trivial null space then we recognize the matrix as being nonsingular. A square matrix means that the corresponding linear transformation, \(T\text{,}\) has equal-sized domain and codomain. With a nullity of zero, \(T\) is injective, and also Theorem RPNDD tells us that rank of \(T\) is equal to the dimension of the domain, which in turn is equal to the dimension of the codomain. In other words, \(T\) is surjective. Injective and surjective, and Theorem ILTIS tells us that \(T\) is invertible. Just as we can use the inverse of the coefficient matrix to find the unique solution of any linear system with a nonsingular coefficient matrix (Theorem SNCM), we can use the inverse of the linear transformation to construct the unique element of any preimage (proof of Theorem ILTIS).
The executive summary of this discussion is that to every coefficient matrix of a system of linear equations we can associate a natural linear transformation. Solution sets for systems with this coefficient matrix are preimages of elements of the codomain of the linear transformation. For every theorem about systems of linear equations there is an analogue about linear transformations. The theory of linear transformations provides all the tools to recreate the theory of solutions to linear systems of equations.
We will continue this adventure in Chapter R.
Sage SUTH1. Sage Under The Hood, Round 1.
We can parallel the above discussion about systems of linear equations and linear transformations using Sage. We begin with a matrix that we will use as a coefficient matrix for systems of equations, and then use the same matrix to define the associated linear transformation (acting on vectors placed to the right of the matrix).
We solve a linear system using the coefficient matrix, and compute an element of the preimage of the linear transformation.
We compute a null space of the coefficient matrix and a kernel of the linear transformation, so as to understand the full solution set or the full preimage set.
We compute a column space of the coefficient matrix and an image (range) of the linear transformation to help us build an inconsistent system.
A vector that creates a system with no solution is a vector that has an empty preimage.
Note that we could redo the above, replacing uses of “right” by “left” and uses of “column” by “row.” The output would not change.
We suggest in the text that one could develop the theory of linear transformations from scratch, and then obtain many of our initial results about systems of equations and matrices as a consequence. In Sage it is the reverse. Sage implements many advanced concepts from various areas of mathematics by translating fundamental computations into the language of linear algebra. In turn, many of Sage's linear algebra routines ultimately depend on very fast algorithms for basic operations on matrices, such as computing an echelon form, a null space, or a span.
Reading Questions IVLT Reading Questions
1.
What conditions allow us to easily determine if a linear transformation is invertible?
2.
What does it mean to say two vector spaces are isomorphic? Both technically, and informally?
3.
How do linear transformations relate to systems of linear equations?
Exercises IVLT Exercises
C10.
The archetypes below are linear transformations of the form \(\ltdefn{T}{U}{V}\) that are invertible. For each, the inverse linear transformation is given explicitly as part of the archetype's description. Verify for each linear transformation that
C20.
Determine if the linear transformation \(\ltdefn{T}{P_2}{M_{22}}\) is (a) injective, (b) surjective, (c) invertible.
(a) We will compute the kernel of \(T\text{.}\) Suppose that \(a+bx+cx^2\in\krn{T}\text{.}\) Then
and matrix equality (Theorem ME) yields the homogeneous system of four equations in three variables,
The coefficient matrix of this system row-reduces as
From the existence of nontrivial solutions to this system, we can infer nonzero polynomials in \(\krn{T}\text{.}\) By Theorem KILT we then know that \(T\) is not injective.
(b) Since \(3=\dimension{P_2}\lt\dimension{M_{22}}=4\text{,}\) by Theorem SLTD \(T\) is not surjective.
(c) Since \(T\) is not surjective, it is not invertible by Theorem ILTIS.
C21.
Determine if the linear transformation \(\ltdefn{S}{P_3}{M_{22}}\) is (a) injective, (b) surjective, (c) invertible.
(a) To check injectivity, we compute the kernel of \(S\text{.}\) To this end, suppose that \(a+bx+cx^2+dx^3\in\krn{S}\text{,}\) so
this creates the homogeneous system of four equations in four variables,
The coefficient matrix of this system row-reduces as,
We recognize the coefficient matrix as being nonsingular, so the only solution to the system is \(a=b=c=d=0\text{,}\) and the kernel of \(S\) is trivial, \(\krn{S}=\set{0+0x+0x^2+0x^3}\text{.}\) By Theorem KILT, we see that \(S\) is injective.
(b) We can establish that \(S\) is surjective by considering the rank and nullity of \(S\text{.}\) We have
So, \(\rng{S}\) is a subspace of \(M_{22}\) (Theorem RLTS) whose dimension equals that of \(M_{22}\text{.}\) By Theorem EDYES, we gain the set equality \(\rng{S}=M_{22}\text{.}\) Theorem RSLT then implies that \(S\) is surjective.
(c) Since \(S\) is both injective and surjective, Theorem ILTIS says \(S\) is invertible.
C25.
For each linear transformation below: (a) Find the matrix representation of \(T\text{,}\) (b) Calculate \(n(T)\text{,}\) (c) Calculate \(r(T)\text{,}\) (d) Graph the image in either \(\real{2}\) or \(\real{3}\) as appropriate, (e) How many dimensions are lost?, and (f) How many dimensions are preserved?
- \(\ltdefn{T}{\complex{3}}{\complex{3}}\) given by \(\lteval{T}{\colvector{x\\y\\z}} = \colvector{x\\x\\x}\)
- \(\ltdefn{T}{\complex{3}}{\complex{3}}\) given by \(\lteval{T}{\colvector{x\\y\\z}} = \colvector{x\\y\\0}\)
- \(\ltdefn{T}{\complex{3}}{\complex{2}}\) given by \(\lteval{T}{\colvector{x\\y\\z}} = \colvector{x\\x}\)
- \(\ltdefn{T}{\complex{3}}{\complex{2}}\) given by \(\lteval{T}{\colvector{x\\y\\z}} = \colvector{x\\y}\)
- \(\ltdefn{T}{\complex{2}}{\complex{3}}\) given by \(\lteval{T}{\colvector{x\\y}} = \colvector{x\\y\\0}\)
- \(\ltdefn{T}{\complex{2}}{\complex{3}}\) given by \(\lteval{T}{\colvector{x\\y}} = \colvector{x\\y\\x+y}\)
C50.
Consider the linear transformation \(\ltdefn{S}{M_{12}}{P_1}\) from the set of \(1\times 2\) matrices to the set of polynomials of degree at most 1, defined by
Prove that \(S\) is invertible. Then show that the linear transformation
is the inverse of \(S\text{,}\) that is \(\ltinverse{S}=R\text{.}\)
Determine the kernel of \(S\) first. The condition that \(\lteval{S}{\begin{bmatrix}a & b\end{bmatrix}}=\zerovector\) becomes \((3a+b)+(5a+2b)x=0+0x\text{.}\) Equating coefficients of these polynomials yields the system
This homogeneous system has a nonsingular coefficient matrix, so the only solution is \(a=0\text{,}\) \(b=0\) and thus
By Theorem KILT, we know \(S\) is injective. With \(\nullity{S}=0\) we employ Theorem RPNDD to find
Since \(\rng{S}\subseteq P_1\) and \(\dimension{\rng{S}}=\dimension{P_1}\text{,}\) we can apply Theorem EDYES to obtain the set equality \(\rng{S}=P_1\) and therefore \(S\) is surjective.
One of the two defining conditions of an invertible linear transformation is (Definition IVLT)
That \(\lteval{\left(\compose{R}{S}\right)}{\begin{bmatrix}a & b\end{bmatrix}}= \lteval{I_{M_{12}}}{\begin{bmatrix}a & b\end{bmatrix}}\) is similar.
M30.
The linear transformation \(S\) below is invertible. Find a formula for the inverse linear transformation, \(\ltinverse{S}\text{.}\)
(Another approach to this solution would follow Example CIVLT.)
Suppose that \(\ltdefn{\ltinverse{S}}{M_{12}}{P_1}\) has a form given by
where \(r,\,s,\,p,\,q\) are unknown scalars. Then
Equating coefficients of these two polynomials, and then equating coefficients on \(a\) and \(b\text{,}\) gives rise to 4 equations in 4 variables,
This system has a unique solution: \(r=1\text{,}\) \(s=-1\text{,}\) \(p=-2\text{,}\) \(q=3\text{.}\) So the desired inverse linear transformation is
Notice that the system of 4 equations in 4 variables could be split into two systems, each with two equations in two variables (and identical coefficient matrices). After making this split, the solution might feel like computing the inverse of a matrix (Theorem CINM). Hmmmm.
M31.
The linear transformation \(\ltdefn{R}{M_{12}}{M_{21}}\) is invertible. Determine a formula for the inverse linear transformation \(\ltdefn{\ltinverse{R}}{M_{21}}{M_{12}}\text{.}\)
(Another approach to this solution would follow Example CIVLT.)
We are given that \(R\) is invertible. The inverse linear transformation can be formulated by considering the preimage of a generic element of the codomain. With injectivity and surjectivity, we know that the preimage of any element will be a set of size one — it is this lone element that will be the output of the inverse linear transformation.
Suppose that we set \(\vect{v}=\begin{bmatrix}x\\y\end{bmatrix}\) as a generic element of the codomain, \(M_{21}\text{.}\) Then if \(\begin{bmatrix}r & s\end{bmatrix}=\vect{w}\in\preimage{R}{\vect{v}}\text{,}\)
So we obtain the system of two equations in the two variables \(r\) and \(s\text{,}\)
With a nonsingular coefficient matrix, we can solve the system using the inverse of the coefficient matrix,
So we define,
M50.
Rework Example CIVLT, only in place of the basis \(B\) for \(P_2\text{,}\) choose instead to use the basis \(C=\set{1,\,1+x,\,1+x+x^2}\text{.}\) This will complicate writing a generic element of the domain of \(\ltinverse{T}\) as a linear combination of the basis elements, and the algebra will be a bit messier, but in the end you should obtain the same formula for \(\ltinverse{T}\text{.}\) The inverse linear transformation is what it is, and the choice of a particular basis should not influence the outcome.
M60.
Suppose \(U\) and \(V\) are vector spaces. Define the function \(\ltdefn{Z}{U}{V}\) by \(\lteval{Z}{\vect{u}}=\zerovector_{V}\) for every \(\vect{u}\in U\text{.}\) Then by Exercise LT.M60, \(Z\) is a linear transformation. Formulate a condition on \(U\) and \(V\) that is equivalent to \(Z\) being an invertible linear transformation. In other words, fill in the blank to complete the following statement (and then give a proof): \(Z\) is invertible if and only if \(U\) and \(V\) are . (See Exercise ILT.M60, Exercise SLT.M60, Exercise MR.M60.)
T05.
Prove that the identity linear transformation (Definition IDLT) is both injective and surjective, and hence invertible.
T15.
Suppose that \(\ltdefn{T}{U}{V}\) is a surjective linear transformation and \(\dimension{U}=\dimension{V}\text{.}\) Prove that \(T\) is injective.
Consider that
With a null space of zero dimension, \(\krn{T}=\set{\zerovector}\text{,}\) and by Theorem KILT we see that \(T\) is injective. Thus \(T\) is both injective and surjective, so by Theorem ILTIS, \(T\) is invertible.
T16.
Suppose that \(\ltdefn{T}{U}{V}\) is an injective linear transformation and \(\dimension{U}=\dimension{V}\text{.}\) Prove that \(T\) is surjective.
T30.
Suppose that \(U\) and \(V\) are isomorphic vector spaces, not of dimension zero. Prove that there are infinitely many isomorphisms between \(U\) and \(V\text{.}\)
Since \(U\) and \(V\) are isomorphic, there is at least one isomorphism between them (Definition IVS), say \(\ltdefn{T}{U}{V}\text{.}\) As such, \(T\) is an invertible linear transformation.
For \(\alpha\in\complexes\) define the linear transformation \(\ltdefn{S}{V}{V}\) by \(\lteval{S}{\vect{v}}=\alpha\vect{v}\text{.}\) Convince yourself that when \(\alpha\neq 0\text{,}\) \(S\) is an invertible linear transformation (Definition IVLT). Then the composition, \(\ltdefn{\compose{S}{T}}{U}{V}\text{,}\) is an invertible linear transformation by Theorem CIVLT. Convince yourself that each nonzero value of \(\alpha\) gives rise to a different function for \(\compose{S}{T}\text{,}\) which will require the selection of a nonzero vector from \(U\text{.}\) Then we have constructed infinitely many isomorphisms from \(U\) to \(V\text{.}\)
T40.
Suppose \(\ltdefn{T}{U}{V}\) and \(\ltdefn{S}{V}{W}\) are linear transformations and \(\dimension{U}=\dimension{V}=\dimension{W}\text{.}\) Suppose that \(\compose{S}{T}\) is invertible. Prove that \(S\) and \(T\) are individually invertible (this could be construed as a converse of Theorem CIVLT).
Since \(\compose{S}{T}\) is invertible, by Theorem ILTIS \(\compose{S}{T}\) is injective and therefore has a trivial kernel by Theorem KILT. Then
Since \(T\) has a trivial kernel, by Theorem KILT, \(T\) is injective. Also,
Since \(\rng{T}\subseteq V\text{,}\) Theorem EDYES gives \(\rng{T}=V\text{,}\) so by Theorem RSLT, \(T\) is surjective. Finally, by Theorem ILTIS, \(T\) is invertible.
Since \(\compose{S}{T}\) is invertible, by Theorem ILTIS \(\compose{S}{T}\) is surjective and therefore has a full range by Theorem RSLT. In other words, \(\rng{\compose{S}{T}}=W\text{.}\) Then
Since it is always the case that \(\rng{S}\subseteq W\text{,}\) we have \(\rng{S}=W\) by Definition SE. Thus, by Theorem RSLT, \(S\) is surjective. By an application of Theorem RPNDD similar to the first part of this solution, we see that \(S\) has a trivial kernel, so is therefore injective (Theorem KILT), and thus is invertible (Theorem ILTIS).