Original English by Jim Hefferon — 34 validated sections. The original mathematics and supplied answers below are preserved. This is a partial-book reading edition, not the complete book or an Everyday-English rewrite.

Source, reuse and conversion details

Source revision df2262e089a02651c127f1dd12649c4622ee1383; CC BY-SA 2.5 option, with original component credits retained. This is not an Everyday-English rewrite. The complete original source section is included. Cross-section references use the bound earlier local readers; retain those sibling files for offline use. Source-bound context links are available for modular extraction; this does not claim complete prerequisite closure.

Notes about the original source and its answers

The 45 original answer containers are preserved; the last is only a pointer to the following section, not a worked solution. These fifteen source findings are separate from the unchanged text and formulas. Opening them can reveal answers. The source has been read through, but this is not an exhaustive mathematical correctness audit or a human review.

  1. Source note 1: The introductory prose says the map is applied to the matrix. In the displayed computation the map is applied to a domain vector; the matrix represents the map.
  2. Source note 2: The supplied proof initially uses a row of H and n codomain basis vectors. The definition requires column i: h(beta_i)=sum over j=1..m of h_(j,i) delta_j.
  3. Source note 3: The supplied linearity calculation omits h on its final basis vector. The final term must be c_n h(beta_n), as in the immediately following expanded line.
  4. Source note 4: The proposed chain in the triangularization answer does not necessarily end at W as the question requires. The question also indexes its chain to m while asking for every domain basis index i up to n; unequal dimensions require an explicit index convention.
  5. Source note 5: One supplied coordinate vector has an unmatched opening parenthesis before its first 1/2 entry.
  6. Source note 6: The displayed kernel generator (-1/2,1) is incorrect for G=(1,2;3,6). The source equations x+2y=0 and 3x+6y=0 give (-2,1), and kernel coordinates belong to the domain basis B, not the codomain basis D.
  7. Source note 7: The nullity explanation invokes the codomain representation Rep_D on W. To transfer the dimension of the kernel coordinates back to the kernel in V it needs the domain representation Rep_B on V.
  8. Source note 8: The source labels a vector representation with the pair B,D. For a domain vector the representation is with respect to B alone; the pair B,D is used for a map representation.
  9. Source note 9: The source formula (x,y) maps to (x+3y,y), but the geometric description names the y-axis. This is a horizontal shear: the displacement is parallel to the x-axis, with magnitude three times the distance from the x-axis.
  10. Source note 10: The supplied linear-functional proof calls an n-by-1 column the matrix for a map R^n to R. That matrix must instead be the 1-by-n transpose row, whose product with a coordinate column is the stated dot product.
  11. Source note 11: For the displayed ordered basis D of the two-by-two matrix space, the coordinates are a four-by-one column, not the two-by-two matrix itself. The following coordinate calculation uses the correct four entries.
  12. Source note 12: The left side of the image calculation omits the transformation t. The right side computes t(1,-1)=(-4,0), not the coordinates of (1,-1).
  13. Source note 13: The last entry in the displayed bottom matrix row is indexed h_(1,n), whereas that row is row m and requires h_(m,n).
  14. Source note 14: An equality sign is missing between the representation of t and its displayed matrix.
  15. Source note 15: The compressed projection display changes the map/matrix labels to h and H, although this example uses the projection pi. These generic names are not defined for this projection display.

Wide formulas and diagrams scroll horizontally. Focus a mathematical region and use the arrow keys.

Source-preserving rebuild, navigation, source packaging and current deterministic checks: OpenAI Codex — GPT-6 Astra, Ultra effort. Jim Hefferon remains the author of the mathematics. Earlier intermediate-conversion runtime identity is not established by its retained receipts and is not reassigned to this rebuild. No human review or exhaustive proof certification is claimed.

Computing Linear Maps

The prior section shows that a linear map is determined by its action on a basis. The equation

h ( v → ) = h ( c 1 ⋅ β → 1 + ⋯ + c n ⋅ β → n ) = c 1 ⋅ h ( β → 1 ) + ⋯ + c n ⋅ h ( β → n )

describes how we get the value of the map on any vector v → by starting from the value of the map on the vectors β → i in a basis and extending linearly.

This section gives a convenient scheme based on matrices to use the representations of h ( β → 1 ) , …, h ( β → n ) to compute, from the representation of a vector in the domain Rep B ( v → ) , the representation of that vector’s image in the codomain Rep D ( h ( v → ) ) .

Representing Linear Maps with Matrices

Example 1.1 For the spaces ℝ 2 and ℝ 3 fix these bases.

B = ⟨ ( 2 0 ) , ( 1 4 ) ⟩ D = ⟨ ( 1 0 0 ) , ( 0 − 2 0 ) , ( 1 0 1 ) ⟩

Consider the map h : ℝ 2 → ℝ 3 that is determined by this association.

( 2 0 ) ⟼ h ( 1 1 1 ) ( 1 4 ) ⟼ h ( 1 2 0 )

To compute the action of this map on any vector at all from the domain we first represent the vector h ( β → 1 )

( 1 1 1 ) = 0 ( 1 0 0 ) − 1 2 ( 0 − 2 0 ) + 1 ( 1 0 1 ) Rep D ( h ( β → 1 ) ) = ( 0 − 1 / 2 1 ) D

and h ( β → 2 ) .

( 1 2 0 ) = 1 ( 1 0 0 ) − 1 ( 0 − 2 0 ) + 0 ( 1 0 1 ) Rep D ( h ( β → 2 ) ) = ( 1 − 1 0 ) D

With these, for any member v → of the domain we can compute h ( v → ) .

h ( v → ) = h ( c 1 ⋅ ( 2 0 ) + c 2 ⋅ ( 1 4 ) ) = c 1 ⋅ h ( ( 2 0 ) ) + c 2 ⋅ h ( ( 1 4 ) ) = c 1 ⋅ ( 0 ( 1 0 0 ) − 1 2 ( 0 − 2 0 ) + 1 ( 1 0 1 ) ) + c 2 ⋅ ( 1 ( 1 0 0 ) − 1 ( 0 − 2 0 ) + 0 ( 1 0 1 ) ) = ( 0 c 1 + 1 c 2 ) ⋅ ( 1 0 0 ) + ( − 1 2 c 1 − 1 c 2 ) ⋅ ( 0 − 2 0 ) + ( 1 c 1 + 0 c 2 ) ⋅ ( 1 0 1 )

Thus,

if Rep B ( v → ) = ( c 1 c 2 ) then Rep D ( h ( v → ) ) = ( 0 c 1 + 1 c 2 − ( 1 / 2 ) c 1 − 1 c 2 1 c 1 + 0 c 2 ) .

For instance,

since Rep B ( ( 4 8 ) ) = ( 1 2 ) B we have Rep D ( h ( ( 4 8 ) ) ) = ( 2 − 5 / 2 1 ) .

We express computations like the one above with a matrix notation.

( 0 1 − 1 / 2 − 1 1 0 ) B , D ( c 1 c 2 ) B = ( 0 c 1 + 1 c 2 ( − 1 / 2 ) c 1 − 1 c 2 1 c 1 + 0 c 2 ) D

In the middle is the argument v → to the map, represented with respect to the domain’s basis B by the column vector with components c 1 and c 2 . On the right is the value of the map on that argument h ( v → ) , represented with respect to the codomain’s basis D . The matrix on the left is the new thing. We will use it to represent the map and we will think of the above equation as representing an application of the map to the matrix.

That matrix consists of the coefficients from the vector on the right, 0 and 1 from the first row, − 1 / 2 and − 1 from the second row, and 1 and 0 from the third row. That is, we make it by adjoining the vectors representing the h ( β → i ) ’s.

( ⋮ ⋮ Rep D ( h ( β → 1 ) ) Rep D ( h ( β → 2 ) ) ⋮ ⋮ )

Definition 1.2 Suppose that V and W are vector spaces of dimensions n and m with bases B and D , and that h : V → W is a linear map. If

Rep D ( h ( β → 1 ) ) = ( h 1 , 1 h 2 , 1 ⋮ h m , 1 ) D … Rep D ( h ( β → n ) ) = ( h 1 , n h 2 , n ⋮ h m , n ) D

then

Rep B , D ( h ) = ( h 1 , 1 h 1 , 2 … h 1 , n h 2 , 1 h 2 , 2 … h 2 , n ⋮ h m , 1 h m , 2 … h m , n ) B , D

is the matrix representation of h with respect to B , D .

In that matrix the number of columns  n is the dimension of the map’s domain while the number of rows  m is the dimension of the codomain.

Remark 1.3 As with the notation for represenation of a vector, the Rep B , D notation here is not standard. The most common alternative is [ h ] B , D .

We use lower case letters for a map, upper case for the matrix, and lower case again for the entries of the matrix. Thus for the map h , the matrix representing it is H , with entries h i , j .

Example 1.4 If h : ℝ 3 → 𝒫 1 is

( a 1 a 2 a 3 ) ⟼ h ( 2 a 1 + a 2 ) + ( − a 3 ) x

then where

B = ⟨ ( 0 0 1 ) , ( 0 2 0 ) , ( 2 0 0 ) ⟩ D = ⟨ 1 + x , − 1 + x ⟩

the action of h on B is this.

( 0 0 1 ) ⟼ h − x ( 0 2 0 ) ⟼ h 2 ( 2 0 0 ) ⟼ h 4

A simple calculation

Rep D ( − x ) = ( − 1 / 2 − 1 / 2 ) D Rep D ( 2 ) = ( 1 − 1 ) D Rep D ( 4 ) = ( 2 − 2 ) D

shows that this is the matrix representing h with respect to the bases.

Rep B , D ( h ) = ( − 1 / 2 1 2 − 1 / 2 − 1 − 2 ) B , D

Theorem 1.5 Assume that V and W are vector spaces of dimensions n and m with bases B and D , and that h : V → W is a linear map. If h is represented by

Rep B , D ( h ) = ( h 1 , 1 h 1 , 2 … h 1 , n h 2 , 1 h 2 , 2 … h 2 , n ⋮ h m , 1 h m , 2 … h m , n ) B , D

and v → ∈ V is represented by

Rep B ( v → ) = ( c 1 c 2 ⋮ c n ) B

then the representation of the image of v → is this.

Rep D ( h ( v → ) ) = ( h 1 , 1 c 1 + h 1 , 2 c 2 + ⋯ + h 1 , n c n h 2 , 1 c 1 + h 2 , 2 c 2 + ⋯ + h 2 , n c n ⋮ h m , 1 c 1 + h m , 2 c 2 + ⋯ + h m , n c n ) D

Proof This formalizes Example 1.1. See Exercise 1.33.

QED

Definition 1.6 The matrix-vector product of a m × n matrix and a n × 1 vector is this.

( a 1 , 1 a 1 , 2 … a 1 , n a 2 , 1 a 2 , 2 … a 2 , n ⋮ a m , 1 a m , 2 … a m , n ) ( c 1 ⋮ c n ) = ( a 1 , 1 c 1 + ⋯ + a 1 , n c n a 2 , 1 c 1 + ⋯ + a 2 , n c n ⋮ a m , 1 c 1 + ⋯ + a m , n c n )

Briefly, application of a linear map is represented by the matrix-vector product of the map’s representative and the vector’s representative.

Remark 1.7 Theorem 1.5 is not surprising, because we chose the matrix representative in Definition 1.2 precisely to make the theorem true— if the theorem were not true then we would adjust the definition to make it so. Nonetheless, we need the verification.

Example 1.8 For the matrix from Example 1.4 we can calculate where that map sends this vector.

v → = ( 4 1 0 )

With respect to the domain basis B the representation of this vector is

Rep B ( v → ) = ( 0 1 / 2 2 ) B

and so the matrix-vector product gives the representation of the value h ( v → ) with respect to the codomain basis D .

Rep D ( h ( v → ) ) = ( − 1 / 2 1 2 − 1 / 2 − 1 − 2 ) B , D ( 0 1 / 2 2 ) B = ( ( − 1 / 2 ) ⋅ 0 + 1 ⋅ ( 1 / 2 ) + 2 ⋅ 2 ( − 1 / 2 ) ⋅ 0 − 1 ⋅ ( 1 / 2 ) − 2 ⋅ 2 ) D = ( 9 / 2 − 9 / 2 ) D

To find h ( v → ) itself, not its representation, take ( 9 / 2 ) ( 1 + x ) − ( 9 / 2 ) ( − 1 + x ) = 9 .

Example 1.9 Let π : ℝ 3 → ℝ 2 be projection onto the x y -plane. To give a matrix representing this map, we first fix some bases.

B = ⟨ ( 1 0 0 ) , ( 1 1 0 ) , ( − 1 0 1 ) ⟩ D = ⟨ ( 2 1 ) , ( 1 1 ) ⟩

For each vector in the domain’s basis, find its image under the map.

( 1 0 0 ) ⟼ π ( 1 0 ) ( 1 1 0 ) ⟼ π ( 1 1 ) ( − 1 0 1 ) ⟼ π ( − 1 0 )

Then find the representation of each image with respect to the codomain’s basis.

Rep D ( ( 1 0 ) ) = ( 1 − 1 ) Rep D ( ( 1 1 ) ) = ( 0 1 ) Rep D ( ( − 1 0 ) ) = ( − 1 1 )

Finally, adjoining these representations gives the matrix representing π with respect to B , D .

Rep B , D ( π ) = ( 1 0 − 1 − 1 1 1 ) B , D

We can illustrate Theorem 1.5 by computing the matrix-vector product representing this action by the projection map.

π ( ( 2 2 1 ) ) = ( 2 2 )

Represent the domain vector with respect to the domain’s basis

Rep B ( ( 2 2 1 ) ) = ( 1 2 1 ) B

to get this matrix-vector product.

Rep D ( π ( ( 2 2 1 ) ) ) = ( 1 0 − 1 − 1 1 1 ) B , D ( 1 2 1 ) B = ( 0 2 ) D

Expanding this into a linear combination of vectors from D

0 ⋅ ( 2 1 ) + 2 ⋅ ( 1 1 ) = ( 2 2 )

checks that the map’s action is indeed reflected in the operation of the matrix. We will sometimes compress these three displayed equations into one.

( 2 2 1 ) = ( 1 2 1 ) B ⟼ H h ( 0 2 ) D = ( 2 2 )

We now have two ways to compute the effect of projection, the straightforward formula that drops each three-tall vector’s third component to make a two-tall vector, and the above formula that uses representations and matrix-vector multiplication. The second way may seem complicated compared to the first, but it has advantages. The next example shows that for some maps this new scheme simplifies the formula.

Example 1.10 To represent a rotation map t θ : ℝ 2 → ℝ 2 that turns all vectors in the plane counterclockwise through an angle θ

Counterclockwise rotation through pi/6: the vector u=(3,1) on the left becomes ((3 square root of 3 minus 1)/2, (3 plus square root of 3)/2) on the right. Both the map arrow and the image vector are labelled t subscript pi/6.

we start by fixing the standard bases ℰ 2 for both the domain and codomain basis, Now find the image under the map of each vector in the domain’s basis.

( 1 0 ) ⟼ t θ ( cos ⁡ θ sin ⁡ θ ) ( 0 1 ) ⟼ t θ ( − sin ⁡ θ cos ⁡ θ ) ( ∗ )

Represent these images with respect to the codomain’s basis. Because this basis is ℰ 2 , vectors represent themselves. Adjoin the representations to get the matrix representing the map.

Rep ℰ 2 , ℰ 2 ( t θ ) = ( cos ⁡ θ − sin ⁡ θ sin ⁡ θ cos ⁡ θ )

The advantage of this scheme is that we get a formula for the image of any vector at all just by knowing in ( ∗ ) how to represent the image of the two basis vectors. For instance, here we rotate a vector by θ = π / 6 .

( 3 − 2 ) = ( 3 − 2 ) ℰ 2 ⟼ t π / 6 ( 3 / 2 − 1 / 2 1 / 2 3 / 2 ) ( 3 − 2 ) ≈ ( 3.598 − 0.232 ) ℰ 2 = ( 3.598 − 0.232 )

More generally, we have a formula for rotation by θ = π / 6 .

( x y ) ⟼ t π / 6 ( 3 / 2 − 1 / 2 1 / 2 3 / 2 ) ( x y ) = ( ( 3 / 2 ) x − ( 1 / 2 ) y ( 1 / 2 ) x + ( 3 / 2 ) y )

Example 1.11 In the definition of matrix-vector product the width of the matrix equals the height of the vector. Hence, this product is not defined.

( 1 0 0 4 3 1 ) ( 1 0 )

It is undefined for a reason: the three-wide matrix represents a map with a three-dimensional domain while the two-tall vector represents a member of a two-dimensional space. So the vector cannot be in the domain of the map.

Nothing in Definition 1.6 forces us to view matrix-vector product in terms of representations. We can get some insights by focusing on how the entries combine.

A good way to view matrix-vector product is that it is formed from the dot products of the rows of the matrix with the column vector.

( ⋮ a i , 1 a i , 2 … a i , n ⋮ ) ( c 1 c 2 ⋮ c n ) = ( ⋮ a i , 1 c 1 + a i , 2 c 2 + ⋯ + a i , n c n ⋮ )

Looked at in this row-by-row way, this new operation generalizes dot product.

We can also view the operation column-by-column.

( h 1 , 1 h 1 , 2 … h 1 , n h 2 , 1 h 2 , 2 … h 2 , n ⋮ h m , 1 h m , 2 … h m , n ) ( c 1 c 2 ⋮ c n ) = ( h 1 , 1 c 1 + h 1 , 2 c 2 + ⋯ + h 1 , n c n h 2 , 1 c 1 + h 2 , 2 c 2 + ⋯ + h 2 , n c n ⋮ h m , 1 c 1 + h m , 2 c 2 + ⋯ + h m , n c n ) = c 1 ( h 1 , 1 h 2 , 1 ⋮ h m , 1 ) + ⋯ + c n ( h 1 , n h 2 , n ⋮ h m , n )

The result is the columns of the matrix weighted by the entries of the vector.

Example 1.12 ( 1 0 − 1 2 0 3 ) ( 2 − 1 1 ) = 2 ( 1 2 ) − 1 ( 0 0 ) + 1 ( − 1 3 ) = ( 1 7 )

This way of looking at matrix-vector product brings us back to the objective stated at the start of this section, to compute h ( c 1 β → 1 + ⋯ + c n β → n ) as c 1 h ( β → 1 ) + ⋯ + c n h ( β → n ) .

We began this section by noting that the equality of these two enables us to compute the action of h on any argument knowing only h ( β → 1 ) , …, h ( β → n ) . We have developed this into a scheme to compute the action of the map by taking the matrix-vector product of the matrix representing the map with the vector representing the argument. In this way, with respect to any bases, for any linear map there is a matrix representation. The next subsection will show the converse, that if we fix bases then for any matrix there is an associated linear map.

Exercises

  1. Exercise 1.13 Worked answer

    Recommended. Multiply the matrix

    ( 1 3 1 0 − 1 2 1 1 0 )

    by each vector, or state “not defined.”

    1. ( 2 1 0 )

    2. ( − 2 − 2 )

    3. ( 0 0 0 )

    Back to Exercise 1.13

    Answer.

    1. ( 1 ⋅ 2 + 3 ⋅ 1 + 1 ⋅ 0 0 ⋅ 2 + ( − 1 ) ⋅ 1 + 2 ⋅ 0 1 ⋅ 2 + 1 ⋅ 1 + 0 ⋅ 0 ) = ( 5 − 1 3 )

    2. Not defined.

    3. ( 0 0 0 )

  2. Exercise 1.14 Worked answer

    Multiply this matrix by each vector or state “not defined.”

    ( 3 1 2 4 )

    1. ( 1 2 1 )

    2. ( 0 − 1 )

    3. ( 0 0 0 )

    Back to Exercise 1.14

    Answer.

    1. This is not defined.

    2. This is defined.

      ( 3 1 2 4 ) ( 0 − 1 ) = ( − 1 − 4 )

    3. Not defined.

  3. Exercise 1.15 Worked answer

    Perform, if possible, each matrix-vector multiplication.

    1. ( 2 1 3 − 1 / 2 ) ( 4 2 )

    2. ( 1 1 0 − 2 1 0 ) ( 1 3 1 )

    3. ( 1 1 − 2 1 ) ( 1 3 1 )

    Back to Exercise 1.15

    Answer.

    1. ( 2 ⋅ 4 + 1 ⋅ 2 3 ⋅ 4 − ( 1 / 2 ) ⋅ 2 ) = ( 10 11 )

    2. ( 4 1 )

    3. Not defined.

  4. Exercise 1.16 Worked answer

    This matrix equation expresses a linear system. Solve it.

    ( 2 1 1 0 1 3 1 − 1 2 ) ( x y z ) = ( 8 4 4 )

    Back to Exercise 1.16

    Answer. Matrix-vector multiplication gives rise to a linear system.

    2 x + y + z = 8 y + 3 z = 4 x − y + 2 z = 4

    Gaussian reduction shows that z = 1 , y = 1 , and x = 3 .

  5. Exercise 1.17 Worked answer

    Recommended. For a homomorphism from 𝒫 2 to 𝒫 3 that sends

    1 ↦ 1 + x , x ↦ 1 + 2 x , and x 2 ↦ x − x 3

    where does 1 − 3 x + 2 x 2 go?

    Back to Exercise 1.17

    Answer. Here are two ways to get the answer.

    First, obviously 1 − 3 x + 2 x 2 = 1 ⋅ 1 − 3 ⋅ x + 2 ⋅ x 2 , and so we can apply the general property of preservation of combinations to get h ( 1 − 3 x + 2 x 2 ) = h ( 1 ⋅ 1 − 3 ⋅ x + 2 ⋅ x 2 ) = 1 ⋅ h ( 1 ) − 3 ⋅ h ( x ) + 2 ⋅ h ( x 2 ) = 1 ⋅ ( 1 + x ) − 3 ⋅ ( 1 + 2 x ) + 2 ⋅ ( x − x 3 ) = − 2 − 3 x − 2 x 3 .

    The other way uses the computation scheme developed in this subsection. Because we know where these elements of the space go, we consider this basis B = ⟨ 1 , x , x 2 ⟩ for the domain. Arbitrarily, we can take D = ⟨ 1 , x , x 2 , x 3 ⟩ as a basis for the codomain. With those choices, we have that

    Rep B , D ( h ) = ( 1 1 0 1 2 1 0 0 0 0 0 − 1 ) B , D

    and, as

    Rep B ( 1 − 3 x + 2 x 2 ) = ( 1 − 3 2 ) B

    the matrix-vector multiplication calculation gives this.

    Rep D ( h ( 1 − 3 x + 2 x 2 ) ) = ( 1 1 0 1 2 1 0 0 0 0 0 − 1 ) B , D ( 1 − 3 2 ) B = ( − 2 − 3 0 − 2 ) D

    Thus, h ( 1 − 3 x + 2 x 2 ) = − 2 ⋅ 1 − 3 ⋅ x + 0 ⋅ x 2 − 2 ⋅ x 3 = − 2 − 3 x − 2 x 3 , as above.

  6. Exercise 1.18 Worked answer

    Let h : ℝ 2 → ℳ 2 × 2 be the linear transformation with this action.

    ( 1 0 ) ↦ ( 1 2 0 1 ) ( 0 1 ) ↦ ( 0 − 1 1 0 )

    What is its effect on the general vector with entries x and  y ?

    Back to Exercise 1.18

    Answer. Fix this natural basis for ℳ 2 × 2 .

    D = ⟨ ( 1 0 0 0 ) , ( 0 1 0 0 ) , ( 0 0 1 0 ) , ( 0 0 0 1 ) ⟩

    The representation of the map  h with respect to ℰ 2 , D is this.

    Rep ℰ 2 , D ( h ) = ( 1 0 2 − 1 0 1 1 0 )

    Since the general vector is represented with respect to  ℰ 2 by itself, and similarly every matrix is represented with respect to  D by itself, we have this for the effect of the map.

    Rep D ( h ( ( x y ) ) ) = ( 1 0 2 − 1 0 1 1 0 ) ( x y ) = ( x 2 x − y y x )

  7. Exercise 1.19 Worked answer

    Recommended. Assume that h : ℝ 2 → ℝ 3 is determined by this action.

    ( 1 0 ) ↦ ( 2 2 0 ) ( 0 1 ) ↦ ( 0 1 − 1 )

    Using the standard bases, find

    1. the matrix representing this map;

    2. a general formula for h ( v → ) .

    Back to Exercise 1.19

    Answer. Again, as recalled in the subsection, with respect to ℰ i , a column vector represents itself.

    1. To represent h with respect to ℰ 2 , ℰ 3 take the images of the basis vectors from the domain, and represent them with respect to the basis for the codomain. The first is this

      Rep ℰ 3 ( h ( e → 1 ) ) = Rep ℰ 3 ( ( 2 2 0 ) ) = ( 2 2 0 )

      while the second is this.

      Rep ℰ 3 ( h ( e → 2 ) ) = Rep ℰ 3 ( ( 0 1 − 1 ) ) = ( 0 1 − 1 )

      Adjoin these to make the matrix.

      Rep ℰ 2 , ℰ 3 ( h ) = ( 2 0 2 1 0 − 1 )

    2. For any v → in the domain ℝ 2 ,

      Rep ℰ 2 ( v → ) = Rep ℰ 2 ( ( v 1 v 2 ) ) = ( v 1 v 2 )

      and so

      Rep ℰ 3 ( h ( v → ) ) = ( 2 0 2 1 0 − 1 ) ( v 1 v 2 ) = ( 2 v 1 2 v 1 + v 2 − v 2 )

      is the desired representation.

  8. Exercise 1.20 Worked answer

    Represent the homomorphism h : ℝ 3 → ℝ 2 given by this formula and with respect to these bases.

    ( x y z ) ↦ ( x + y x + z ) B = ⟨ ( 1 1 1 ) , ( 1 1 0 ) , ( 1 0 0 ) ⟩ D = ⟨ ( 1 0 ) , ( 0 2 ) ⟩

    Back to Exercise 1.20

    Answer. The action of the map on the domain’s basis vectors is this.

    ( 1 1 1 ) ↦ ( 2 2 ) ( 1 1 0 ) ↦ ( 2 1 ) ( 1 0 0 ) ↦ ( 1 1 )

    Represent those with respect to the codomain’s basis.

    Rep D ( ( 2 2 ) ) = ( 2 1 ) D Rep D ( ( 2 1 ) ) = ( 2 1 / 2 ) D Rep D ( ( 1 1 ) ) = ( 1 1 / 2 ) D

    Concatenate them together into a matrix.

    Rep B , D ( h ) = ( 2 2 1 1 1 / 2 1 / 2 )

  9. Exercise 1.21 Worked answer

    Recommended. Let d / d x : 𝒫 3 → 𝒫 3 be the derivative transformation.

    1. Represent d / d x with respect to B , B where B = ⟨ 1 , x , x 2 , x 3 ⟩ .

    2. Represent d / d x with respect to B , D where D = ⟨ 1 , 2 x , 3 x 2 , 4 x 3 ⟩ .

    Back to Exercise 1.21

    Answer.

    1. We must first find the image of each vector from the domain’s basis, and then represent that image with respect to the codomain’s basis.

      Rep B ( d 1 d x ) = ( 0 0 0 0 ) Rep B ( d x d x ) = ( 1 0 0 0 ) Rep B ( d x 2 d x ) = ( 0 2 0 0 ) Rep B ( d x 3 d x ) = ( 0 0 3 0 )

      Those representations are then adjoined to make the matrix representing the map.

      Rep B , B ( d d x ) = ( 0 1 0 0 0 0 2 0 0 0 0 3 0 0 0 0 )

    2. Proceeding as in the prior item, we represent the images of the domain’s basis vectors

      Rep D ( d 1 d x ) = ( 0 0 0 0 ) Rep D ( d x d x ) = ( 1 0 0 0 ) Rep D ( d x 2 d x ) = ( 0 1 0 0 ) Rep D ( d x 3 d x ) = ( 0 0 1 0 )

      and adjoin to make the matrix.

      Rep B , D ( d d x ) = ( 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 )

  10. Exercise 1.22 Worked answer

    Recommended. Represent each linear map with respect to each pair of bases.

    1. d / d x : 𝒫 n → 𝒫 n with respect to B , B where B = ⟨ 1 , x , … , x n ⟩ , given by

      a 0 + a 1 x + a 2 x 2 + ⋯ + a n x n ↦ a 1 + 2 a 2 x + ⋯ + n a n x n − 1

    2. ∫ : 𝒫 n → 𝒫 n + 1 with respect to B n , B n + 1 where B i = ⟨ 1 , x , … , x i ⟩ , given by

      a 0 + a 1 x + a 2 x 2 + ⋯ + a n x n ↦ a 0 x + a 1 2 x 2 + ⋯ + a n n + 1 x n + 1

    3. ∫ 0 1 : 𝒫 n → ℝ with respect to B , ℰ 1 where B = ⟨ 1 , x , … , x n ⟩ and ℰ 1 = ⟨ 1 ⟩ , given by

      a 0 + a 1 x + a 2 x 2 + ⋯ + a n x n ↦ a 0 + a 1 2 + ⋯ + a n n + 1

    4. eval 3 : 𝒫 n → ℝ with respect to B , ℰ 1 where B = ⟨ 1 , x , … , x n ⟩ and ℰ 1 = ⟨ 1 ⟩ , given by

      a 0 + a 1 x + a 2 x 2 + ⋯ + a n x n ↦ a 0 + a 1 ⋅ 3 + a 2 ⋅ 3 2 + ⋯ + a n ⋅ 3 n

    5. slide − 1 : 𝒫 n → 𝒫 n with respect to B , B where B = ⟨ 1 , x , … , x n ⟩ , given by

      a 0 + a 1 x + a 2 x 2 + ⋯ + a n x n ↦ a 0 + a 1 ⋅ ( x + 1 ) + ⋯ + a n ⋅ ( x + 1 ) n

    Back to Exercise 1.22

    Answer. For each, we must find the image of each of the domain’s basis vectors, represent each image with respect to the codomain’s basis, and then adjoin those representations to get the matrix.

    1. The basis vectors from the domain have these images

      1 ↦ 0 x ↦ 1 x 2 ↦ 2 x …

      and these images are represented with respect to the codomain’s basis in this way.

      Rep B ( 0 ) = ( 0 0 0 ⋮     ) Rep B ( 1 ) = ( 1 0 0 ⋮     ) Rep B ( 2 x ) = ( 0 2 0 ⋮     ) … Rep B ( n x n − 1 ) = ( 0 0 0 ⋮ n 0 )

      The matrix

      Rep B , B ( d d x ) = ( 0 1 0 … 0 0 0 2 … 0 ⋮ 0 0 0 … n 0 0 0 … 0 )

      has n + 1 rows and columns.

    2. Once the images under this map of the domain’s basis vectors are determined

      1 ↦ x x ↦ x 2 / 2 x 2 ↦ x 3 / 3 …

      then they can be represented with respect to the codomain’s basis

      Rep B n + 1 ( x ) = ( 0 1 0 ⋮   ) Rep B n + 1 ( x 2 / 2 ) = ( 0 0 1 / 2 ⋮   ) … Rep B n + 1 ( x n + 1 / ( n + 1 ) ) = ( 0 0 0 ⋮ 1 / ( n + 1 ) )

      and put together to make the matrix.

      Rep B n , B n + 1 ( ∫ ) = ( 0 0 … 0 0 1 0 … 0 0 0 1 / 2 … 0 0 ⋮ 0 0 … 0 1 / ( n + 1 ) )

    3. The images of the basis vectors of the domain are

      1 ↦ 1 x ↦ 1 / 2 x 2 ↦ 1 / 3 …

      and they are represented with respect to the codomain’s basis as

      Rep ℰ 1 ( 1 ) = 1 Rep ℰ 1 ( 1 / 2 ) = 1 / 2 …

      so the matrix is

      Rep B , ℰ 1 ( ∫ ) = ( 1 1 / 2 ⋯ 1 / n 1 / ( n + 1 ) )

      (this is an 1 × ( n + 1 ) matrix).

    4. The images of the domain’s basis vectors are

      1 ↦ 1 x ↦ 3 x 2 ↦ 9 …

      and they are represented in the codomain as

      Rep ℰ 1 ( 1 ) = 1 Rep ℰ 1 ( 3 ) = 3 Rep ℰ 1 ( 9 ) = 9 …

      and so the matrix is this.

      Rep B , ℰ 1 ( eval 3 ) = ( 1 3 9 ⋯ 3 n )

    5. The images of the basis vectors from the domain are 1 ↦ 1 , and x ↦ x + 1 = 1 + x , and x 2 ↦ ( x + 1 ) 2 = 1 + 2 x + x 2 , and x 3 ↦ ( x + 1 ) 3 = 1 + 3 x + 3 x 2 + x 3 , etc. The representations are here.

      Rep B ( 1 ) = ( 1 0 0 0 ⋮ 0 0 ) Rep B ( 1 + x ) = ( 1 1 0 0 ⋮ 0 0 ) Rep B ( 1 + 2 x + x 2 ) = ( 1 2 1 0 ⋮ 0 0 ) …

      The resulting matrix

      Rep B , B ( slide − 1 ) = ( 1 1 1 1 … 1 0 1 2 3 … ( n 1 ) 0 0 1 3 … ( n 2 ) ⋮ 0 0 0 … 1 )

      is Pascal’s triangle (recall that ( n r ) is the number of ways to choose r things, without order and without repetition, from a set of size n ).

  11. Exercise 1.23 Worked answer

    Represent the identity map on any nontrivial space with respect to B , B , where B is any basis.

    Back to Exercise 1.23

    Answer. Where the space is n -dimensional,

    Rep B , B ( id ) = ( 1 0 … 0 0 1 … 0 ⋮ 0 0 … 1 ) B , B

    is the n × n identity matrix.

  12. Exercise 1.24 Worked answer

    Represent, with respect to the natural basis, the transpose transformation on the space ℳ 2 × 2 of 2 × 2 matrices.

    Back to Exercise 1.24

    Answer. Taking this as the natural basis

    B = ⟨ β → 1 , β → 2 , β → 3 , β → 4 ⟩ = ⟨ ( 1 0 0 0 ) , ( 0 1 0 0 ) , ( 0 0 1 0 ) , ( 0 0 0 1 ) ⟩

    the transpose map acts in this way

    β → 1 ↦ β → 1 β → 2 ↦ β → 3 β → 3 ↦ β → 2 β → 4 ↦ β → 4

    so that representing the images with respect to the codomain’s basis and adjoining those column vectors together gives this.

    Rep B , B ( trans ) = ( 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 ) B , B

  13. Exercise 1.25 Worked answer

    Assume that B = ⟨ β → 1 , β → 2 , β → 3 , β → 4 ⟩ is a basis for a vector space. Represent with respect to B , B the transformation that is determined by each.

    1. β → 1 ↦ β → 2 , β → 2 ↦ β → 3 , β → 3 ↦ β → 4 , β → 4 ↦ 0 →

    2. β → 1 ↦ β → 2 , β → 2 ↦ 0 → , β → 3 ↦ β → 4 , β → 4 ↦ 0 →

    3. β → 1 ↦ β → 2 , β → 2 ↦ β → 3 , β → 3 ↦ 0 → , β → 4 ↦ 0 →

    Back to Exercise 1.25

    Answer.

    1. With respect to the basis of the codomain, the images of the members of the basis of the domain are represented as

      Rep B ( β → 2 ) = ( 0 1 0 0 ) Rep B ( β → 3 ) = ( 0 0 1 0 ) Rep B ( β → 4 ) = ( 0 0 0 1 ) Rep B ( 0 → ) = ( 0 0 0 0 )

      and consequently, the matrix representing the transformation is this.

      ( 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 )

    2. ( 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 )

    3. ( 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 )

  14. Exercise 1.26 Worked answer

    Example 1.10 shows how to represent the rotation transformation of the plane with respect to the standard basis. Express these other transformations also with respect to the standard basis.

    1. the dilation map d s , which multiplies all vectors by the same scalar s

    2. the reflection map f ℓ , which reflects all all vectors across a line ℓ through the origin

    Back to Exercise 1.26

    Answer.

    1. The picture of d s : ℝ 2 → ℝ 2 is this.

      Supplied-answer dilation diagram. Two vectors u and v on the left are drawn 1.5 times longer on the right and labelled d_s(u) and d_s(v); the map is labelled d_s. The adjacent answer gives the general scale parameter s.

      This map’s effect on the vectors in the standard basis for the domain is

      ( 1 0 ) ⟼ d s ( s 0 ) ( 0 1 ) ⟼ d s ( 0 s )

      and those images are represented with respect to the codomain’s basis (again, the standard basis) by themselves.

      Rep ℰ 2 ( ( s 0 ) ) = ( s 0 ) Rep ℰ 2 ( ( 0 s ) ) = ( 0 s )

      Thus the representation of the dilation map is this.

      Rep ℰ 2 , ℰ 2 ( d s ) = ( s 0 0 s )

    2. The picture of f ℓ : ℝ 2 → ℝ 2 is this.

      Supplied-answer reflection diagram. A vector on the left is reflected across the same sloping line on the right; a light-gray copy of the input vector is retained for comparison. The mapping arrow is labelled f subscript ell.

      Some calculation (see Exercise I.1.33) shows that when the line has slope k

      ( 1 0 ) ⟼ f ℓ ( ( 1 − k 2 ) / ( 1 + k 2 ) 2 k / ( 1 + k 2 ) ) ( 0 1 ) ⟼ f ℓ ( 2 k / ( 1 + k 2 ) − ( 1 − k 2 ) / ( 1 + k 2 ) )

      (the case of a line with undefined slope is separate but easy) and so the matrix representing reflection is this.

      Rep ℰ 2 , ℰ 2 ( f ℓ ) = 1 1 + k 2 ⋅ ( 1 − k 2 2 k 2 k − ( 1 − k 2 ) )

  15. Exercise 1.27 Worked answer

    Recommended. Consider a linear transformation of ℝ 2 determined by these two.

    ( 1 1 ) ↦ ( 2 0 ) ( 1 0 ) ↦ ( − 1 0 )

    1. Represent this transformation with respect to the standard bases.

    2. Where does the transformation send this vector?

      ( 0 5 )

    3. Represent this transformation with respect to these bases.

      B = ⟨ ( 1 − 1 ) , ( 1 1 ) ⟩ D = ⟨ ( 2 2 ) , ( − 1 1 ) ⟩

    4. Using B from the prior item, represent the transformation with respect to B , B .

    Back to Exercise 1.27

    Answer. Call the map t : ℝ 2 → ℝ 2 .

    1. To represent this map with respect to the standard bases, we must find, and then represent, the images of the vectors e → 1 and e → 2 from the domain’s basis. The image of e → 1 is given.

      One way to find the image of e → 2 is by eye—we can see this.

      ( 1 1 ) − ( 1 0 ) = ( 0 1 ) ⟼ t ( 2 0 ) − ( − 1 0 ) = ( 3 0 )

      A more systematic way to find the image of e → 2 is to use the given information to represent the transformation, and then use that representation to determine the image. Taking this for a basis,

      C = ⟨ ( 1 1 ) , ( 1 0 ) ⟩

      the given information says this.

      Rep C , ℰ 2 ( t ) ( 2 − 1 0 0 )

      As

      Rep C ( e → 2 ) = ( 1 − 1 ) C

      we have that

      Rep ℰ 2 ( t ( e → 2 ) ) = ( 2 − 1 0 0 ) C , ℰ 2 ( 1 − 1 ) C = ( 3 0 ) ℰ 2

      and consequently we know that t ( e → 2 ) = 3 ⋅ e → 1 (since, with respect to the standard basis, this vector is represented by itself). Therefore, this is the representation of t with respect to ℰ 2 , ℰ 2 .

      Rep ℰ 2 , ℰ 2 ( t ) = ( − 1 3 0 0 ) ℰ 2 , ℰ 2

    2. To use the matrix developed in the prior item, note that

      Rep ℰ 2 ( ( 0 5 ) ) = ( 0 5 ) ℰ 2

      and so we have this is the representation, with respect to the codomain’s basis, of the image of the given vector.

      Rep ℰ 2 ( t ( ( 0 5 ) ) ) = ( − 1 3 0 0 ) ℰ 2 , ℰ 2 ( 0 5 ) ℰ 2 = ( 15 0 ) ℰ 2

      Because the codomain’s basis is the standard one, and so vectors in the codomain are represented by themselves, we have this.

      t ( ( 0 5 ) ) = ( 15 0 )

    3. We first find the image of each member of B , and then represent those images with respect to D . For the first step, we can use the matrix developed earlier.

      Rep ℰ 2 ( ( 1 − 1 ) ) = ( − 1 3 0 0 ) ℰ 2 , ℰ 2 ( 1 − 1 ) ℰ 2 = ( − 4 0 ) ℰ 2 so t ( ( 1 − 1 ) ) = ( − 4 0 )

      Actually, for the second member of B there is no need to apply the matrix because the problem statement gives its image.

      t ( ( 1 1 ) ) = ( 2 0 )

      Now representing those images with respect to D is routine.

      Rep D ( ( − 4 0 ) ) = ( − 1 2 ) D and Rep D ( ( 2 0 ) ) = ( 1 / 2 − 1 ) D

      Thus, the matrix is this.

      Rep B , D ( t ) = ( − 1 1 / 2 2 − 1 ) B , D

    4. We know the images of the members of the domain’s basis from the prior item.

      t ( ( 1 − 1 ) ) = ( − 4 0 ) t ( ( 1 1 ) ) = ( 2 0 )

      We can compute the representation of those images with respect to the codomain’s basis.

      Rep B ( ( − 4 0 ) ) = ( − 2 − 2 ) B and Rep B ( ( 2 0 ) ) = ( 1 1 ) B

      Thus this is the matrix.

      Rep B , B ( t ) = ( − 2 1 − 2 1 ) B , B

  16. Exercise 1.28 Worked answer

    Suppose that h : V → W is one-to-one so that by Theorem 2.20, for any basis B = ⟨ β → 1 , … , β → n ⟩ ⊂ V the image h ( B ) = ⟨ h ( β → 1 ) , … , h ( β → n ) ⟩ is a basis for h ( V ) . (If h is onto then h ( V ) = W .)

    1. Represent the map h with respect to ⟨ B , h ( B ) ⟩ .

    2. For a member v → of the domain, where the representation of v → has components c 1 , …, c n , represent the image vector h ( v → ) with respect to the image basis h ( B ) .

    Back to Exercise 1.28

    Answer.

    1. The images of the members of the domain’s basis are

      β → 1 ↦ h ( β → 1 ) β → 2 ↦ h ( β → 2 ) … β → n ↦ h ( β → n )

      and those images are represented with respect to the codomain’s basis in this way.

      Rep h ( B ) ( h ( β → 1 ) ) = ( 1 0 ⋮ 0 0 ) Rep h ( B ) ( h ( β → 2 ) ) = ( 0 1 ⋮ 0 0 ) … Rep h ( B ) ( h ( β → n ) ) = ( 0 0 ⋮ 0 1 )

      Hence, the matrix is the identity.

      Rep B , h ( B ) ( h ) = ( 1 0 … 0 0 1 0 ⋱ 0 0 1 )

    2. Using the matrix in the prior item, the representation is this.

      Rep h ( B ) ( h ( v → ) ) = ( c 1 ⋮ c n ) h ( B )

  17. Exercise 1.29 Worked answer

    Give a formula for the product of a matrix and e → i , the column vector that is all zeroes except for a single one in the i -th position.

    Back to Exercise 1.29

    Answer. The product

    ( h 1 , 1 … h 1 , i … h 1 , n h 2 , 1 … h 2 , i … h 2 , n ⋮ h m , 1 … h m , i … h 1 , n ) ( 0 ⋮ 1 ⋮ 0 ) = ( h 1 , i h 2 , i ⋮ h m , i )

    gives the i -th column of the matrix.

  18. Exercise 1.30 Worked answer

    Recommended. For each vector space of functions of one real variable, represent the derivative transformation with respect to B , B .

    1. { a cos ⁡ x + b sin ⁡ x ∣ a , b ∈ ℝ } , B = ⟨ cos ⁡ x , sin ⁡ x ⟩

    2. { a e x + b e 2 x ∣ a , b ∈ ℝ } , B = ⟨ e x , e 2 x ⟩

    3. { a + b x + c e x + d x e x ∣ a , b , c , d ∈ ℝ } , B = ⟨ 1 , x , e x , x e x ⟩

    Back to Exercise 1.30

    Answer.

    1. The images of the basis vectors for the domain are cos ⁡ x ⟼ d / d x − sin ⁡ x and sin ⁡ x ⟼ d / d x cos ⁡ x . Representing those with respect to the codomain’s basis (again, B ) and adjoining the representations gives this matrix.

      Rep B , B ( d d x ) = ( 0 1 − 1 0 ) B , B

    2. The images of the vectors in the domain’s basis are e x ⟼ d / d x e x and e 2 x ⟼ d / d x 2 e 2 x . Representing with respect to the codomain’s basis and adjoining gives this matrix.

      Rep B , B ( d d x ) = ( 1 0 0 2 ) B , B

    3. The images of the members of the domain’s basis are 1 ⟼ d / d x 0 , x ⟼ d / d x 1 , e x ⟼ d / d x e x , and x e x ⟼ d / d x e x + x e x . Representing these images with respect to B and adjoining gives this matrix.

      Rep B , B ( d d x ) = ( 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 1 ) B , B

  19. Exercise 1.31 Worked answer

    Find the range of the linear transformation of ℝ 2 represented with respect to the standard bases by each matrix.

    1. ( 1 0 0 0 )

    2. ( 0 0 3 2 )

    3. a matrix of the form ( a b 2 a 2 b )

    Back to Exercise 1.31

    Answer.

    1. It is the set of vectors of the codomain represented with respect to the codomain’s basis in this way.

      { ( 1 0 0 0 ) ( x y ) ∣ x , y ∈ ℝ } = { ( x 0 ) ∣ x , y ∈ ℝ }

      As the codomain’s basis is ℰ 2 , and so each vector is represented by itself, the range of this transformation is the x -axis.

    2. It is the set of vectors of the codomain represented in this way.

      { ( 0 0 3 2 ) ( x y ) ∣ x , y ∈ ℝ } = { ( 0 3 x + 2 y ) ∣ x , y ∈ ℝ }

      With respect to ℰ 2 vectors represent themselves so this range is the y  axis.

    3. The set of vectors represented with respect to ℰ 2 as

      { ( a b 2 a 2 b ) ( x y ) ∣ x , y ∈ ℝ } = { ( a x + b y 2 a x + 2 b y ) ∣ x , y ∈ ℝ } = { ( a x + b y ) ⋅ ( 1 2 ) ∣ x , y ∈ ℝ }

      is the line y = 2 x , provided either a or b is not zero, and is the set consisting of just the origin if both are zero.

  20. Exercise 1.32 Worked answer

    Recommended. Can one matrix represent two different linear maps? That is, can Rep B , D ( h ) = Rep B ^ , D ^ ( h ^ ) ?

    Back to Exercise 1.32

    Answer. Yes, for two reasons.

    First, the two maps h and h ^ need not have the same domain and codomain. For instance,

    ( 1 2 3 4 )

    represents a map h : ℝ 2 → ℝ 2 with respect to the standard bases that sends

    ( 1 0 ) ↦ ( 1 3 ) and ( 0 1 ) ↦ ( 2 4 )

    and also represents a h ^ : 𝒫 1 → ℝ 2 with respect to ⟨ 1 , x ⟩ and ℰ 2 that acts in this way.

    1 ↦ ( 1 3 ) and x ↦ ( 2 4 )

    The second reason is that, even if the domain and codomain of h and h ^ coincide, different bases produce different maps. An example is the 2 × 2 identity matrix

    I = ( 1 0 0 1 )

    which represents the identity map on ℝ 2 with respect to ℰ 2 , ℰ 2 . However, with respect to ℰ 2 for the domain but the basis D = ⟨ e → 2 , e → 1 ⟩ for the codomain, the same matrix I represents the map that swaps the first and second components

    ( x y ) ↦ ( y x )

    (that is, reflection about the line y = x ).

  21. Exercise 1.33 Worked answer

    Prove Theorem 1.5.

    Back to Exercise 1.33

    Answer. We mimic Example 1.1, just replacing the numbers with letters.

    Write B as ⟨ β → 1 , … , β → n ⟩ and D as ⟨ δ → 1 , … , δ → m ⟩ . By definition of representation of a map with respect to bases, the assumption that

    Rep B , D ( h ) = ( h 1 , 1 … h 1 , n ⋮ ⋮ h m , 1 … h m , n )

    means that h ( β → i ) = h i , 1 δ → 1 + ⋯ + h i , n δ → n . And, by the definition of the representation of a vector with respect to a basis, the assumption that

    Rep B ( v → ) = ( c 1 ⋮ c n )

    means that v → = c 1 β → 1 + ⋯ + c n β → n . Substituting gives

    h ( v → ) = h ( c 1 ⋅ β → 1 + ⋯ + c n ⋅ β → n ) = c 1 ⋅ h ( β → 1 ) + ⋯ + c n ⋅ β → n = c 1 ⋅ ( h 1 , 1 δ → 1 + ⋯ + h m , 1 δ → m ) + ⋯ + c n ⋅ ( h 1 , n δ → 1 + ⋯ + h m , n δ → m ) = ( h 1 , 1 c 1 + ⋯ + h 1 , n c n ) ⋅ δ → 1 + ⋯ + ( h m , 1 c 1 + ⋯ + h m , n c n ) ⋅ δ → m

    and so h ( v → ) is represented as required.

  22. Exercise 1.34 Worked answer

    Recommended. Example 1.10 shows how to represent rotation of all vectors in the plane through an angle θ about the origin, with respect to the standard bases.

    1. Rotation of all vectors in three-space through an angle θ about the x -axis is a transformation of ℝ 3 . Represent it with respect to the standard bases. Arrange the rotation so that to someone whose feet are at the origin and whose head is at ( 1 , 0 , 0 ) , the movement appears clockwise.

    2. Repeat the prior item, only rotate about the y -axis instead. (Put the person’s head at e → 2 .)

    3. Repeat, about the z -axis.

    4. Extend the prior item to ℝ 4 . (Hint: we can restate ‘rotate about the z -axis’ as ‘rotate parallel to the x y -plane’.)

    Back to Exercise 1.34

    Answer.

    1. The picture is this.

      Supplied-answer three-dimensional rotation diagram. A stick figure has feet at the origin and head along the positive x-axis. An oriented arc in the yz-plane shows the rotation direction specified in the exercise.

      The images of the vectors from the domain’s basis

      ( 1 0 0 ) ↦ ( 1 0 0 ) ( 0 1 0 ) ↦ ( 0 cos ⁡ θ − sin ⁡ θ ) ( 0 0 1 ) ↦ ( 0 sin ⁡ θ cos ⁡ θ )

      are represented with respect to the codomain’s basis (again, ℰ 3 ) by themselves, so adjoining the representations to make the matrix gives this.

      Rep ℰ 3 , ℰ 3 ( r θ ) = ( 1 0 0 0 cos ⁡ θ sin ⁡ θ 0 − sin ⁡ θ cos ⁡ θ )

    2. The picture is similar to the one in the prior answer. The images of the vectors from the domain’s basis

      ( 1 0 0 ) ↦ ( cos ⁡ θ 0 sin ⁡ θ ) ( 0 1 0 ) ↦ ( 0 1 0 ) ( 0 0 1 ) ↦ ( − sin ⁡ θ 0 cos ⁡ θ )

      are represented with respect to the codomain’s basis ℰ 3 by themselves, so this is the matrix.

      ( cos ⁡ θ 0 − sin ⁡ θ 0 1 0 sin ⁡ θ 0 cos ⁡ θ )

    3. To a person standing up, with the vertical z -axis, a rotation of the x y -plane that is clockwise proceeds from the positive y -axis to the positive x -axis. That is, it rotates opposite to the direction in Example 1.10. The images of the vectors from the domain’s basis

      ( 1 0 0 ) ↦ ( cos ⁡ θ − sin ⁡ θ 0 ) ( 0 1 0 ) ↦ ( sin ⁡ θ cos ⁡ θ 0 ) ( 0 0 1 ) ↦ ( 0 0 1 )

      are represented with respect to ℰ 3 by themselves, so the matrix is this.

      ( cos ⁡ θ sin ⁡ θ 0 − sin ⁡ θ cos ⁡ θ 0 0 0 1 )

    4. ( cos ⁡ θ sin ⁡ θ 0 0 − sin ⁡ θ cos ⁡ θ 0 0 0 0 1 0 0 0 0 1 )

  23. Exercise 1.35 Worked answer

    (Schur’s Triangularization Lemma)

    1. Let U be a subspace of V and fix bases B U ⊆ B V . What is the relationship between the representation of a vector from U with respect to B U and the representation of that vector (viewed as a member of V ) with respect to B V ?

    2. What about maps?

    3. Fix a basis B = ⟨ β → 1 , … , β → n ⟩ for V and observe that the spans

      [ ∅ ] = { 0 → } ⊂ [ { β → 1 } ] ⊂ [ { β → 1 , β → 2 } ] ⊂ ⋯ ⊂ [ B ] = V

      form a strictly increasing chain of subspaces. Show that for any linear map h : V → W there is a chain W 0 = { 0 → } ⊆ W 1 ⊆ ⋯ ⊆ W m = W of subspaces of W such that

      h ( [ { β → 1 , … , β → i } ] ) ⊆ W i

      for each i .

    4. Conclude that for every linear map h : V → W there are bases B , D so the matrix representing h with respect to B , D is upper-triangular (that is, each entry h i , j with i > j is zero).

    5. Is an upper-triangular representation unique?

    Back to Exercise 1.35

    Answer.

    1. Write the basis B U as ⟨ β → 1 , … , β → k ⟩ and then write B V as the extension ⟨ β → 1 , … , β → k , β → k + 1 , … , β → n ⟩ . If

      Rep B U ( v → ) = ( c 1 ⋮ c k )

      so that v → = c 1 ⋅ β → 1 + ⋯ + c k ⋅ β → k then

      Rep B V ( v → ) = ( c 1 ⋮ c k 0 ⋮ 0 )

      because v → = c 1 ⋅ β → 1 + ⋯ + c k ⋅ β → k + 0 ⋅ β → k + 1 + ⋯ + 0 ⋅ β → n .

    2. We must first decide what the question means. Compare h : V → W with its restriction to the subspace h ↾ U : U → W . The range space of the restriction is a subspace of W , so fix a basis D h ( U ) for this range space and extend it to a basis D V for W . We want the relationship between these two.

      Rep B V , D V ( h ) and Rep B U , D h ( U ) ( h ↾ U )

      The answer falls right out of the prior item: if

      Rep B U , D h ( U ) ( h ↾ U ) = ( h 1 , 1 … h 1 , k ⋮ ⋮ h p , 1 … h p , k )

      then the extension is represented in this way.

      Rep B V , D V ( h ) = ( h 1 , 1 … h 1 , k h 1 , k + 1 … h 1 , n ⋮ ⋮ h p , 1 … h p , k h p , k + 1 … h p , n 0 … 0 h p + 1 , k + 1 … h p + 1 , n ⋮ ⋮ 0 … 0 h m , k + 1 … h m , n )

    3. Take W i to be the span of { h ( β → 1 ) , … , h ( β → i ) } .

    4. Apply the answer from the second item to the third item.

    5. No. For instance π x : ℝ 2 → ℝ 2 , projection onto the x  axis, is represented by these two upper-triangular matrices

      Rep ℰ 2 , ℰ 2 ( π x ) = ( 1 0 0 0 ) and Rep C , ℰ 2 ( π x ) = ( 0 1 0 0 )

      where C = ⟨ e → 2 , e → 1 ⟩ .

Any Matrix Represents a Linear Map

The prior subsection shows that the action of a linear map h is described by a matrix H , with respect to appropriate bases, in this way.

v → = ( v 1 ⋮ v n ) B ⟼ H h h ( v → ) = ( h 1 , 1 v 1 + ⋯ + h 1 , n v n ⋮ h m , 1 v 1 + ⋯ + h m , n v n ) D ( ∗ )

Here we will show the converse, that each matrix represents a linear map.

So we start with a matrix

H = ( h 1 , 1 h 1 , 2 … h 1 , n h 2 , 1 h 2 , 2 … h 2 , n ⋮ h m , 1 h m , 2 … h m , n )

and we will describe how it defines a map  h . We require that the map be represented by the matrix so first note that in ( ∗ ) the dimension of the map’s domain is the number of columns  n of the matrix and the dimension of the codomain is the number of rows  m . Thus, for h ’s domain fix an n -dimensional vector space V and for the codomain fix an m -dimensional space W . Also fix bases B = ⟨ β → 1 , … , β → n ⟩ and D = ⟨ δ → 1 , … , δ → m ⟩ for those spaces.

Now let h : V → W be: where v → in the domain has the representation

Rep B ( v → ) = ( v 1 ⋮ v n ) B

then its image h ( v → ) is the member of the codomain with this representation.

Rep D ( h ( v → ) ) = ( h 1 , 1 v 1 + ⋯ + h 1 , n v n ⋮ h m , 1 v 1 + ⋯ + h m , n v n ) D

That is, to compute the action of h on any v → ∈ V , first express v → with respect to the basis v → = v 1 β → 1 + ⋯ + v n β → n and then h ( v → ) = ( h 1 , 1 v 1 + ⋯ + h 1 , n v n ) ⋅ δ → 1 + ⋯ + ( h m , 1 v 1 + ⋯ + h m , n v n ) ⋅ δ → m .

Above we have made some choices; for instance V can be any n -dimensional space and B could be any basis for V , so H does not define a unique function. However, note once we have fixed V , B , W , and D then h is well-defined since v → has a unique representation with respect to the basis B and the calculation of w → from its representation is also uniquely determined.

Example 2.1 Consider this matrix.

H = ( 1 2 3 4 5 6 )

It is 3 × 2 so any map that it defines must carry a dimension  2 domain to a dimension  3 codomain. We can choose the domain and codomain to be ℝ 2 and 𝒫 2 , with these bases.

B = ⟨ ( 1 1 ) , ( 1 − 1 ) ⟩ D = ⟨ x 2 , x 2 + x , x 2 + x + 1 ⟩

Then let h : ℝ 2 → 𝒫 2 be the function defined by  H . We will compute the image under h of this member of the domain.

v → = ( − 3 2 )

The computation is straightforward.

Rep D ( h ( v → ) ) = H ⋅ Rep B ( v → ) = ( 1 2 3 4 5 6 ) ( − 1 / 2 − 5 / 2 ) = ( − 11 / 2 − 23 / 2 − 35 / 2 )

From its representation, computation of h ( v → ) is routine ( − 11 / 2 ) ( x 2 ) − ( 23 / 2 ) ( x 2 + x ) − ( 35 / 2 ) ( x 2 + x + 1 ) = ( − 69 / 2 ) x 2 − ( 58 / 2 ) x − ( 35 / 2 ) .

Theorem 2.2 Any matrix represents a homomorphism between vector spaces of appropriate dimensions, with respect to any pair of bases.

Proof We must check that for any matrix H and any domain and codomain bases B , D , the defined map h is linear. If v → , u → ∈ V are such that

Rep B ( v → ) = ( v 1 ⋮ v n ) Rep B ( u → ) = ( u 1 ⋮ u n )

and c , d ∈ ℝ then the calculation

h ( c v → + d u → ) = ( h 1 , 1 ( c v 1 + d u 1 ) + ⋯ + h 1 , n ( c v n + d u n ) ) ⋅ δ → 1 + ⋯ + ( h m , 1 ( c v 1 + d u 1 ) + ⋯ + h m , n ( c v n + d u n ) ) ⋅ δ → m = c ⋅ h ( v → ) + d ⋅ h ( u → )

supplies that check.

QED

Example 2.3 Even if the domain and codomain are the same, the map that the matrix represents depends on the bases that we choose. If

H = ( 1 0 0 0 ) , B 1 = D 1 = ⟨ ( 1 0 ) , ( 0 1 ) ⟩ , and B 2 = D 2 = ⟨ ( 0 1 ) , ( 1 0 ) ⟩ ,

then h 1 : ℝ 2 → ℝ 2 represented by H with respect to B 1 , D 1 maps

( c 1 c 2 ) = ( c 1 c 2 ) B 1 ↦ ( c 1 0 ) D 1 = ( c 1 0 )

while h 2 : ℝ 2 → ℝ 2 represented by H with respect to B 2 , D 2 is this map.

( c 1 c 2 ) = ( c 2 c 1 ) B 2 ↦ ( c 2 0 ) D 2 = ( 0 c 2 )

These are different functions. The first is projection onto the x -axis while the second is projection onto the y -axis.

This result means that when convenient we can work solely with matrices, just doing the computations without having to worry whether a matrix of interest represents a linear map on some pair of spaces.

When we are working with a matrix but we do not have particular spaces or bases in mind then we can take the domain and codomain to be ℝ n and ℝ m , with the standard bases. This is convenient because with the standard bases vector representation is transparent— the representation of v → is v → . (In this case the column space of the matrix equals the range of the map and consequently the column space of H is often denoted by ℛ ( H ) .)

Given a matrix, to come up with an associated map we can choose among many domain and codomain spaces, and many bases for those. So a matrix can represent many maps. We finish this section by illustrating how the matrix can give us information about the associated maps.

Theorem 2.4 The rank of a matrix equals the rank of any map that it represents.

Proof Suppose that the matrix H is m × n . Fix domain and codomain spaces V and W of dimension n and  m with bases B = ⟨ β → 1 , … , β → n ⟩ and D . Then H represents some linear map h between those spaces with respect to these bases whose range space

{ h ( v → ) ∣ v → ∈ V } = { h ( c 1 β → 1 + ⋯ + c n β → n ) ∣ c 1 , … , c n ∈ ℝ } = { c 1 h ( β → 1 ) + ⋯ + c n h ( β → n ) ∣ c 1 , … , c n ∈ ℝ }

is the span [ { h ( β → 1 ) , … , h ( β → n ) } ] . The rank of the map h is the dimension of this range space.

The rank of the matrix is the dimension of its column space, the span of the set of its columns [ { Rep D ( h ( β → 1 ) ) , … , Rep D ( h ( β → n ) ) } ] .

To see that the two spans have the same dimension, recall from the proof of Lemma I.2.5 that if we fix a basis then representation with respect to that basis gives an isomorphism Rep D : W → ℝ m . Under this isomorphism there is a linear relationship among members of the range space if and only if the same relationship holds in the column space, e.g, 0 → = c 1 ⋅ h ( β → 1 ) + ⋯ + c n ⋅ h ( β → n ) if and only if 0 → = c 1 ⋅ Rep D ( h ( β → 1 ) ) + ⋯ + c n ⋅ Rep D ( h ( β → n ) ) . Hence, a subset of the range space is linearly independent if and only if the corresponding subset of the column space is linearly independent. Therefore the size of the largest linearly independent subset of the range space equals the size of the largest linearly independent subset of the column space, and so the two spaces have the same dimension.

QED

That settles the apparent ambiguity in our use of the same word ‘rank’ to apply both to matrices and to maps.

Example 2.5 Any map represented by

( 1 2 2 1 2 1 0 0 3 0 0 2 )

must have three-dimensional domain and a four-dimensional codomain. In addition, because the rank of this matrix is two (we can spot this by eye or get it with Gauss’s Method), any map represented by this matrix has a two-dimensional range space.

Corollary 2.6 Let h be a linear map represented by a matrix H . Then h is onto if and only if the rank of H equals the number of its rows, and h is one-to-one if and only if the rank of H equals the number of its columns.

Proof For the onto half, the dimension of the range space of h is the rank of h , which equals the rank of H by the theorem. Since the dimension of the codomain of h equals the number of rows in H , if the rank of H equals the number of rows then the dimension of the range space equals the dimension of the codomain. But a subspace with the same dimension as its superspace must equal that superspace (because any basis for the range space is a linearly independent subset of the codomain whose size is equal to the dimension of the codomain, and thus this basis for the range space must also be a basis for the codomain).

For the other half, a linear map is one-to-one if and only if it is an isomorphism between its domain and its range, that is, if and only if its domain has the same dimension as its range. The number of columns in H is the dimension of h ’s domain and by the theorem the rank of H equals the dimension of h ’s range.

QED

Definition 2.7 A linear map that is one-to-one and onto is nonsingular , otherwise it is singular . That is, a linear map is nonsingular if and only if it is an isomorphism.

Remark 2.8 Some authors use ‘nonsingular’ as a synonym for one-to-one while others use it the way that we have here. The difference is slight because any map is onto its range space, so a one-to-one map is an isomorphism with its range.

In the first chapter we defined a matrix to be nonsingular if it is square and is the matrix of coefficients of a linear system with a unique solution. The next result justifies our dual use of the term.

Lemma 2.9 A nonsingular linear map is represented by a square matrix. A square matrix represents nonsingular maps if and only if it is a nonsingular matrix. Thus, a matrix represents isomorphisms if and only if it is square and nonsingular.

Proof Assume that the map h : V → W is nonsingular. Corollary 2.6 says that for any matrix H representing that map, because h is onto the number of rows of H equals the rank of H , and because h is one-to-one the number of columns of  H is also equal to the rank of  H . Hence H is square.

Next assume that H is square, n × n . The matrix  H is nonsingular if and only if its row rank is  n , which is true if and only if H ’s rank is  n by Theorem Two.III.3.11, which is true if and only if h ’s rank is  n by Theorem 2.4, which is true if and only if h is an isomorphism by Theorem I.2.3. (This last holds because the domain of h is n -dimensional as it is the number of columns in H .)

QED

Example 2.10 Any map from ℝ 2 to 𝒫 1 represented with respect to any pair of bases by

( 1 2 0 3 )

is nonsingular because this matrix has rank two.

Example 2.11 Any map g : V → W represented by

( 1 2 3 6 )

is singular because this matrix is singular.

We’ve now seen that the relationship between maps and matrices goes both ways: for a particular pair of bases, any linear map is represented by a matrix and any matrix describes a linear map. That is, by fixing spaces and bases we get a correspondence between maps and matrices. In the rest of this chapter we will explore this correspondence. For instance, we’ve defined for linear maps the operations of addition and scalar multiplication and we shall see what the corresponding matrix operations are. We shall also see the matrix operation that represent the map operation of composition. And, we shall see how to find the matrix that represents a map’s inverse.

Exercises

  1. Exercise 2.12 Worked answer

    For each matrix, state the dimension of the domain and codomain of any map that the matrix represents.

    1. ( 2 1 3 4 )

    2. ( 1 1 − 3 2 5 0 )

    3. ( 1 3 1 4 1 − 1 )

    4. ( 0 0 0 0 0 0 )

    5. ( 1 − 1 4 5 0 0 0 0 )

    Back to Exercise 2.12

    Answer.

    1. domain: 2 , codomain: 2

    2. domain: 3 , codomain: 2

    3. domain: 2 , codomain: 3

    4. domain: 3 , codomain: 2

    5. domain: 4 , codomain: 2

  2. Exercise 2.13 Worked answer

    Consider a linear map f : V → W represented with respect to some bases B , D by the matrix. Decide if that map is nonsingular.

    1. ( 2 1 3 4 )

    2. ( 1 1 − 3 − 3 )

    3. ( 3 0 0 2 1 0 4 4 4 )

    4. ( 2 0 − 2 1 1 0 4 1 − 4 )

    Back to Exercise 2.13

    Answer. For each we just have to decide if the matrix is nonsingular, perhaps by doing Gauss’s Method. (In truth, we can do each of these by eye.)

    1. This matrix is nonsingular, since the second row is not a multiple of the first, so the map is nonsingular.

    2. The matrix is singular so the map is singular.

    3. Nonsingular.

    4. Nonsingular.

  3. Exercise 2.14 Worked answer

    Recommended. Let h be the linear map defined by this matrix on the domain  𝒫 1 and codomain  ℝ 2 with respect to the given bases.

    H = ( 2 1 4 2 ) B = ⟨ 1 + x , x ⟩ , D = ⟨ ( 1 1 ) , ( 1 0 ) ⟩

    What is the image under h of the vector v → = 2 x − 1 ?

    Back to Exercise 2.14

    Answer. With respect to B the vector’s representation is this.

    Rep B ( 2 x − 1 ) = ( − 1 3 )

    Using the matrix-vector product we can compute Rep D ( h ( v → ) )

    Rep D ( h ( 2 x − 1 ) ) = ( 2 1 4 2 ) ( − 1 3 ) B = ( 1 2 ) D

    From that representation we can compute h ( v → ) .

    h ( 2 x − 1 ) = 1 ⋅ ( 1 1 ) + 2 ⋅ ( 1 0 ) = ( 3 1 )

  4. Exercise 2.15 Worked answer

    Recommended. Decide if each vector lies in the range of the map from ℝ 3 to ℝ 2 represented with respect to the standard bases by the matrix.

    1. ( 1 1 3 0 1 4 ) ,  ( 1 3 )

    2. ( 2 0 3 4 0 6 ) ,  ( 1 1 )

    Back to Exercise 2.15

    Answer. As described in the subsection, with respect to the standard bases, representations are transparent, and so, for instance, the first matrix describes this map.

    ( 1 0 0 ) = ( 1 0 0 ) ℰ 3 ↦ ( 1 0 ) ℰ 2 = ( 1 0 ) ( 0 1 0 ) ↦ ( 1 1 ) ( 0 0 1 ) ↦ ( 3 4 )

    So, for this first one, we are asking whether there are scalars such that

    c 1 ( 1 0 ) + c 2 ( 1 1 ) + c 3 ( 3 4 ) = ( 1 3 )

    that is, whether the vector is in the column space of the matrix.

    1. Yes. We can get this conclusion by setting up the resulting linear system and applying Gauss’s Method, as usual. Another way to get it is to note by inspection of the equation of columns that taking c 3 = 3 / 4 , and c 1 = − 5 / 4 , and c 2 = 0 will do. Still a third way to get this conclusion is to note that the rank of the matrix is two, which equals the dimension of the codomain, and so the map is onto—the range is all of ℝ 2 and in particular includes the given vector.

    2. No; note that all of the columns in the matrix have a second component that is twice the first, while the vector does not. Alternatively, the column space of the matrix is

      { c 1 ( 2 4 ) + c 2 ( 0 0 ) + c 3 ( 3 6 ) ∣ c 1 , c 2 , c 3 ∈ ℝ } = { c ( 1 2 ) ∣ c ∈ ℝ }

      (which is the fact already noted, but we got it by calculation rather than inspiration), and the given vector is not in this set.

  5. Exercise 2.16 Worked answer

    Recommended. Consider this matrix, representing a transformation of ℝ 2 with respect to the bases.

    1 2 ⋅ ( 1 1 − 1 1 ) B = ⟨ ( 0 1 ) , ( 1 0 ) ⟩ D = ⟨ ( 1 1 ) , ( 1 − 1 ) ⟩

    1. To what vector in the codomain is the first member of B mapped?

    2. The second member?

    3. Where is a general vector from the domain (a vector with components x and y ) mapped? That is, what transformation of ℝ 2 is represented with respect to B , D by this matrix?

    Back to Exercise 2.16

    Answer.

    1. The first member of the basis

      ( 0 1 ) = ( 1 0 ) B

      maps to

      ( 1 / 2 − 1 / 2 ) D

      which is this member of the codomain.

      1 2 ⋅ ( 1 1 ) − 1 2 ⋅ ( 1 − 1 ) = ( 0 1 )

    2. The second member of the basis maps

      ( 1 0 ) = ( 0 1 ) B ↦ ( ( 1 / 2 1 / 2 ) D

      to this member of the codomain.

      1 2 ⋅ ( 1 1 ) + 1 2 ⋅ ( 1 − 1 ) = ( 1 0 )

    3. Because the map that the matrix represents is the identity map on the basis, it must be the identity on all members of the domain. We can come to the same conclusion in another way by considering

      ( x y ) = ( y x ) B

      which maps to

      ( ( x + y ) / 2 ( x − y ) / 2 ) D

      which represents this member of ℝ 2 .

      x + y 2 ⋅ ( 1 1 ) + x − y 2 ⋅ ( 1 − 1 ) = ( x y )

  6. Exercise 2.17 Worked answer

    Consider a homomorphism h : ℝ 2 → ℝ 2 represented with respect to the standard bases ℰ 2 , ℰ 2 by this matrix.

    ( 1 3 2 4 )

    Find the image under h of each vector.

    1. ( 2 3 )

    2. ( 0 1 )

    3. ( − 1 1 )

    Back to Exercise 2.17

    Answer. Since, with respect to the standard basis  ℰ 2 , a matrix is represented by itself, we just need to do the matrix-vector multiplication.

    1. Rep ℰ 2 ( h ( ( 2 3 ) ) ) = Rep ℰ 2 , ℰ 2 ( h ) Rep ℰ 2 ( ( 2 3 ) ) = ( 1 3 2 4 ) ℰ 2 , ℰ 2 ( 2 3 ) ℰ 2 = ( 11 16 ) ℰ 2 = ( 11 16 )

    2. ( 1 3 2 4 ) ( 0 1 ) = ( 3 4 )

    3. ( 1 3 2 4 ) ( − 1 1 ) = ( 2 2 )

  7. Exercise 2.18 Worked answer

    What transformation of F = { a cos ⁡ θ + b sin ⁡ θ ∣ a , b ∈ ℝ } is represented with respect to B = ⟨ cos ⁡ θ − sin ⁡ θ , sin ⁡ θ ⟩ and D = ⟨ cos ⁡ θ + sin ⁡ θ , cos ⁡ θ ⟩ by this matrix?

    ( 0 0 1 0 )

    Back to Exercise 2.18

    Answer. A general member of the domain, represented with respect to the domain’s basis as

    a cos ⁡ θ + b sin ⁡ θ = ( a a + b ) B

    maps to

    ( 0 a ) D representing 0 ⋅ ( cos ⁡ θ + sin ⁡ θ ) + a ⋅ ( cos ⁡ θ )

    and so the linear map represented by the matrix with respect to these bases

    a cos ⁡ θ + b sin ⁡ θ ↦ a cos ⁡ θ

    is projection onto the first component.

  8. Exercise 2.19 Worked answer

    Recommended. Decide whether 1 + 2 x is in the range of the map from ℝ 3 to 𝒫 2 represented with respect to ℰ 3 and ⟨ 1 , 1 + x 2 , x ⟩ by this matrix.

    ( 1 3 0 0 1 0 1 0 1 )

    Back to Exercise 2.19

    Answer. Denote the given basis of 𝒫 2 by B . Application of the linear map is represented by matrix-vector multiplication. Thus the first vector in ℰ 3 maps to the element of 𝒫 2 represented with respect to  B by

    ( 1 3 0 0 1 0 1 0 1 ) ( 1 0 0 ) = ( 1 0 1 )

    and that element is 1 + x . Calculate the other two images of basis vectors in the same way.

    ( 1 3 0 0 1 0 1 0 1 ) ( 0 1 0 ) = ( 3 1 0 ) = Rep B ( 4 + x 2 ) ( 1 3 0 0 1 0 1 0 1 ) ( 0 0 1 ) = ( 0 0 1 ) = Rep B ( x )

    So the range of h is the span of three polynomials 1 + x , 4 + x 2 , and x . We can thus decide if 1 + 2 x is in the range of the map by looking for scalars c 1 , c 2 , and c 3 such that

    c 1 ⋅ ( 1 + x ) + c 2 ⋅ ( 4 + x 2 ) + c 3 ⋅ ( x ) = 1 + 2 x

    and obviously c 1 = 1 , c 2 = 0 , and c 3 = 1 suffice. Thus 1 + 2 x is in the range, since it is the image of this vector.

    1 ⋅ ( 1 0 0 ) + 0 ⋅ ( 0 1 0 ) + 1 ⋅ ( 0 0 1 )

    Comment. A slicker argument is to note that the matrix is nonsingular, so it has rank  3 , so the range has dimension  3 , and since the codomain has dimension  3 the map is onto. Thus every polynomial is the image of some vector and in particular  1 + 2 x is the image of a vector in the domain.

  9. Exercise 2.20 Worked answer

    Find the map that this matrix represents with respect to B , B .

    ( 2 1 − 1 0 ) B = ⟨ ( 1 0 ) , ( 1 1 ) ⟩

    Back to Exercise 2.20

    Answer. Where B = ⟨ β → 1 , β → 2 ⟩ we can find Rep B ( v → ) by eye, where v → is the general vector, with entries x and  y .

    ( x y ) = a ⋅ ( 1 0 ) + b ⋅ ( 1 1 ) gives b = y , a = x − y

    Thus the representation of general vector with respect to  B is this.

    Rep B ( ( x y ) ) = ( x − y y )

    Compute the effect of the map with matrix-vector multiplication.

    ( 2 1 − 1 0 ) B ( x − y y ) B = ( 2 ( x − y ) + y − ( x − y ) ) B = ( 2 x − y − x + y ) B

    Finish by converting back to the standard vector representation.

    ( 2 x − y − x + y ) B = ( 2 x − y ) ⋅ ( 1 0 ) + ( − x + y ) ⋅ ( 1 1 ) = ( x − x + y )

  10. Exercise 2.21 Worked answer

    Example 2.11 gives a matrix that is singular and is therefore associated with maps that are singular. We cannot state the action of the associated map  g on domain elements  v → ∈ V , because do not know the domain  V or codomain  W or the starting and ending bases B and  D . But we can compute what happens to the representations Rep B , D ( v → ) .

    1. Find the set of column vectors representing the members of the null space of any map  g represented by this matrix.

    2. Find the nullity of any such map  g .

    3. Find the set of column vectors representing the members of the range space of any map  g represented by the matrix.

    4. Find the rank of any such map  g .

    5. Check that rank plus nullity equals the dimension of the domain.

    Back to Exercise 2.21

    Answer. Let the matrix be G , and suppose that it represents g : V → W with respect to bases B and D . Because G has two columns, the domain V is two-dimensional. Because G has two rows, the codomain W is two-dimensional. The action of g on a representation Rep B , D ( v → ) of a general member of the domain is this.

    ( x y ) B ↦ ( x + 2 y 3 x + 6 y ) D

    1. No matter what is the codomain’s basis  D , the only representation of the zero vector 0 → W is

      Rep D ( 0 → ) = ( 0 0 ) D

      and so the set of representations of members of the null space is this.

      { ( x y ) B ∣ x + 2 y = 0  and  3 x + 6 y = 0 } = { y ⋅ ( − 1 / 2 1 ) D ∣ y ∈ ℝ }

    2. The nullity is  1 . The representation map Rep D : W → ℝ 2 and its inverse are isomorphisms and so preserve the dimension of subspaces. The subspace of ℝ 2 that is in the prior item is one-dimensional. Therefore, the image of that subspace under the inverse of the representation map—the null space of G , is also one-dimensional.

    3. The set of representations of members of the range space is this.

      { ( x + 2 y 3 x + 6 y ) D ∣ x , y ∈ ℝ } = { x ⋅ ( 1 3 ) D + y ⋅ ( 2 6 ) D ∣ x , y ∈ ℝ } = { k ⋅ ( 1 3 ) D ∣ k ∈ ℝ }

    4. Of course, Theorem 2.4 gives that the rank of the map equals the rank of the matrix, which is one. Alternatively, the same argument that we used above for the null space gives here that the dimension of the range space is one.

    5. One plus one equals two.

  11. Exercise 2.22 Worked answer

    Recommended. Take each matrix to represent h : ℝ m → ℝ n with respect to the standard bases. For each (i) state m and  n . Then set up an augmented matrix with the given matrix on the left and a vector representing a range space element on the right (e.g., if the codomain is  ℝ 3 then in the right-hand column put the three entries a , b , and c ). Perform Gauss-Jordan reduction. Use that to (ii) find ℛ ( h ) and rank ( h ) (and state whether the underlying map is onto), and (iii) find 𝒩 ( h ) and nullity ( h ) (and state whether the underlying map is one-to-one).

    1. ( 2 1 − 1 3 )

    2. ( 0 1 3 2 3 4 − 2 − 1 2 )

    3. ( 1 1 2 1 3 1 )

    Back to Exercise 2.22

    Answer.

    1. (i) The dimension of the domain space is the number of columns  m = 2 . The dimension of the codomain space is the number of rows  n = 2 .

      For the rest, we consider this matrix-vector equation.

      ( 2 1 − 1 3 ) ( x y ) = ( a b ) ( ∗ )

      We solve for x and  y .

      ( 2 1 a − 1 3 b ) ⟶ ( 1 / 2 ) ρ 1 + ρ 2 ( ⟶ ( 2 / 7 ) ρ 2 ( 1 / 2 ) ρ 1 ( ⟶ − ( 1 / 2 ) ρ 2 + ρ 1 ( ( 1 0 ( 3 / 7 ) a − ( 1 / 7 ) b 0 1 ( 1 / 7 ) a + ( 2 / 7 ) b )

      (ii) For all

      ( a b ) ∈ ℝ 2

      in equation ( ∗ ) the system has a solution, by the calculation. So the range space is all of the codomain  ℛ ( h ) = ℝ 2 . The map’s rank is the dimension of the range,  2 . The map is onto because the range space is all of the codomain.

      (iii) Again by the calculation, to find the nullspace, setting a = b = 0 in equation ( ∗ ) gives that x = y = 0 . The null space is the trivial subspace of the domain.

      𝒩 ( h ) = { ( 0 0 ) }

      The nullity is the dimension of that null space,  0 . The map is one-to-one because the null space is trivial.

    2. (i) The dimension of the domain space is the number of matrix columns,  m = 3 , and the dimension of the codomain space is the number of rows,  n = 3 .

      The calculation is this.

      ( 0 1 3 a 2 3 4 b − 2 − 1 2 c ) ⟶ ρ 1 ↔ ρ 2 ( ⟶ ρ 1 + ρ 3 ( ⟶ − 2 ρ 2 + ρ 3 ( ⟶ ( 1 / 2 ) ρ 1 ( ⟶ − ( 3 / 2 ) ρ 2 + ρ 1 ( ( 1 0 − 5 / 2 − ( 3 / 2 ) a + ( 1 / 2 ) b 0 1 3 a 0 0 0 − 2 a + b + c )

      (ii) There are codomain triples

      ( a b c ) ∈ ℝ 3

      for which the system does not have a solution, specifically the system only has a solution if − 2 a + b + c = 0 .

      ℛ ( h ) = { ( a b c ) ∣ a = ( b + c ) / 2 } = { ( 1 / 2 1 0 ) b + ( 1 / 2 0 1 ) c ∣ b , c ∈ ℝ }

      The map’s rank is the range’s dimension,  2 . The map is not onto because the range space is not all of the codomain.

      (iii) Setting a = b = c = 0 in the calculation gives infinitely many solutions. Parametrizing using the free variable  z leads to this description of the nullspace.

      𝒩 ( h ) = { ( x y z ) ∣ y = − 3 z  and  x = ( 5 / 2 ) z } = { ( 5 / 2 − 3 1 ) z ∣ z ∈ ℝ }

      The nullity is the dimension of that null space,  1 . The map is not one-to-one because the null space is not trivial.

    3. (i) The domain has dimension m = 2 while the codomain has dimension  n = 3 . Here is the calculation.

      ( 1 1 a 2 1 b 3 1 c ) ⟶ − 3 ρ 1 + ρ 3 − 2 ρ 1 + ρ 2 ( ⟶ − 2 ρ 2 + ρ 3 ( ⟶ − ρ 2 ( ⟶ − ρ 2 + ρ 1 ( ( 1 0 − a + b 0 1 2 a − b 0 0 a − 2 b + c )

      (ii) The range is this subspace of the codomain.

      ℛ ( h ) = { ( 2 b − c b c ) ∣ b , c ∈ ℝ } = { ( 2 1 0 ) b + ( − 1 0 1 ) c ∣ b , c ∈ ℝ }

      The rank is  2 . The map is not onto.

      (iii) The null space is the trivial subspace of the domain.

      𝒩 ( h ) = { ( x y ) = ( 0 0 ) }

      The nullity is  0 . The map is one-to-one.

  12. Exercise 2.23 Worked answer

    Use the method from the prior exercise on this matrix.

    ( 1 0 − 1 2 1 0 2 2 2 )

    Back to Exercise 2.23

    Answer. Here is the Gauss-Jordan reduction.

    ( 1 0 − 1 a 2 1 0 b 2 2 2 c ) ⟶ − 2 ρ 1 + ρ 3 − 2 ρ 1 + ρ 2 ( ( 1 0 − 1 a 0 1 2 − 2 a + b 0 2 4 − 2 a + c ) ⟶ − 2 ρ 2 + ρ 3 ( ( 1 0 − 1 a 0 1 2 − 2 a + b 0 0 0 2 a − 2 b + c )

    (i) The dimensions are m = n = 3 . (ii) The range space is the set containing all of the members of the codomain for which this system has a solution.

    ℛ ( h ) = { ( b − ( 1 / 2 ) c b c ) ∣ b , c ∈ ℝ }

    The rank is 2. Because the rank is less than the dimension  n = 3 of the codomain, the map is not onto.

    (iii) The null space is the set of members of the domain that map to a = 0 , b = 0 , and  c = 0 .

    𝒩 ( h ) = { ( z − 2 z z ) ∣ z ∈ ℝ }

    The nullity is  1 . Because the nullity is not  0 the map is not one-to-one.

  13. Exercise 2.24 Worked answer

    Verify that the map represented by this matrix is an isomorphism.

    ( 2 1 0 3 1 1 7 2 1 )

    Back to Exercise 2.24

    Answer. For any map represented by this matrix, the domain and codomain are each of dimension  3 . To show that the map is an isomorphism, we must show it is both onto and one-to-one. For that we don’t need to augment the matrix with a , b , and  c ; this calculation

    ( 2 1 0 3 1 1 7 2 1 ) ⟶ − ( 7 / 2 ) ρ 1 + ρ 3 − ( 3 / 2 ) ρ 1 + ρ 2 ( ⟶ − 3 ρ 2 + ρ 3 ( ⟶ − 2 ρ 2 − ( 1 / 2 ) ρ 3 ( 1 / 2 ) ρ 1 ( ⟶ 2 ρ 3 + ρ 2 ( ⟶ − ( 1 / 2 ) ρ 2 + ρ 1 ( ( 1 0 0 0 1 0 0 0 1 )

    gives that for each codomain vector there is one and only one associated domain vector.

  14. Exercise 2.25 Worked answer

    This is an alternative proof of Lemma 2.9. Given an n × n matrix H , fix a domain  V and codomain  W of appropriate dimension  n , and bases B , D for those spaces, and consider the map  h represented by the matrix.

    1. Show that h is onto if and only if there is at least one Rep B ( v → ) associated by H with each Rep D ( w → ) .

    2. Show that h is one-to-one if and only if there is at most one Rep B ( v → ) associated by H with each Rep D ( w → ) .

    3. Consider the linear system H ⋅ Rep B ( v → ) = Rep D ( w → ) . Show that H is nonsingular if and only if there is exactly one solution  Rep B ( v → ) for each Rep D ( w → ) .

    Back to Exercise 2.25

    Answer.

    1. The defined map h is onto if and only if for every w → ∈ W there is a v → ∈ V such that h ( v → ) = w → . Since for every vector there is exactly one representation, converting to representations gives that h is onto if and only if for every representation Rep D ( w → ) there is a representation Rep B ( v → ) such that H ⋅ Rep B ( v → ) = Rep D ( w → ) .

    2. This is just like the prior part.

    3. As described at the start of this subsection, by definition the map h defined by the matrix H associates this domain vector v → with this codomain vector w → .

      Rep B ( v → ) = ( v 1 ⋮ v n ) Rep D ( w → ) = H ⋅ Rep B ( v → ) = ( h 1 , 1 v 1 + ⋯ + h 1 , n v n ⋮ h m , 1 v 1 + ⋯ + h m , n v n )

      Fix w → ∈ W and consider the linear system defined by the above equation.

      h 1 , 1 v 1 + ⋯ + h 1 , n v n = w 1 h 2 , 1 v 1 + ⋯ + h 2 , n v n = w 2 ⋮ = h n , 1 v 1 + ⋯ + h n , n v n = w n

      (Again, here the w i are fixed and the v j are unknowns.) Now, H is nonsingular if and only if for all w 1 , …, w n this system has a solution and the solution is unique. By the first two parts of this exercise this is true if and only if the map h is onto and one-to-one. This in turn is true if and only if h is an isomorphism.

  15. Exercise 2.26 Worked answer

    Recommended. Because the rank of a matrix equals the rank of any map it represents, if one matrix represents two different maps H = Rep B , D ( h ) = Rep B ^ , D ^ ( h ^ ) (where h , h ^ : V → W ) then the dimension of the range space of h equals the dimension of the range space of h ^ . Must these equal-dimensional range spaces actually be the same?

    Back to Exercise 2.26

    Answer. No, the range spaces may differ. Example 2.3 shows this.

  16. Exercise 2.27 Worked answer

    Let V be an n -dimensional space with bases B and D . Consider a map that sends, for v → ∈ V , the column vector representing v → with respect to B to the column vector representing v → with respect to D . Show that map is a linear transformation of ℝ n .

    Back to Exercise 2.27

    Answer. Recall that the representation map

    V ⟼ Rep B ℝ n

    is an isomorphism. Thus, its inverse map Rep B − 1 : ℝ n → V is also an isomorphism. The desired transformation of ℝ n is then this composition.

    ℝ n ⟼ Rep B − 1 V ⟼ Rep D ℝ n

    Because a composition of isomorphisms is also an isomorphism, this map Rep D ∘ Rep B − 1 is an isomorphism.

  17. Exercise 2.28 Worked answer

    Example 2.3 shows that changing the pair of bases can change the map that a matrix represents, even though the domain and codomain remain the same. Could the map ever not change? Is there a matrix H , vector spaces V and W , and associated pairs of bases B 1 , D 1 and B 2 , D 2 (with B 1 ≠ B 2 or D 1 ≠ D 2 or both) such that the map represented by H with respect to B 1 , D 1 equals the map represented by H with respect to B 2 , D 2 ?

    Back to Exercise 2.28

    Answer. Yes. Consider

    H = ( 1 0 0 1 )

    representing a map from ℝ 2 to ℝ 2 . With respect to the standard bases B 1 = ℰ 2 , D 1 = ℰ 2 this matrix represents the identity map. With respect to

    B 2 = D 2 = ⟨ ( 1 1 ) , ( 1 − 1 ) ⟩

    this matrix again represents the identity. In fact, as long as the starting and ending bases are equal—as long as B i = D i —then the map represented by H is the identity.

  18. Exercise 2.29 Worked answer

    Recommended. A square matrix is a diagonal matrix if it is all zeroes except possibly for the entries on its upper-left to lower-right diagonal—its 1 , 1 entry, its 2 , 2 entry, etc. Show that a linear map is an isomorphism if there are bases such that, with respect to those bases, the map is represented by a diagonal matrix with no zeroes on the diagonal.

    Back to Exercise 2.29

    Answer. This is immediate from Lemma 2.9.

  19. Exercise 2.30 Worked answer

    Describe geometrically the action on ℝ 2 of the map represented with respect to the standard bases ℰ 2 , ℰ 2 by this matrix.

    ( 3 0 0 2 )

    Do the same for these.

    ( 1 0 0 0 ) ( 0 1 1 0 ) ( 1 3 0 1 )

    Back to Exercise 2.30

    Answer. The first map

    ( x y ) = ( x y ) ℰ 2 ↦ ( 3 x 2 y ) ℰ 2 = ( 3 x 2 y )

    stretches vectors by a factor of three in the x  direction and by a factor of two in the y  direction. The second map

    ( x y ) = ( x y ) ℰ 2 ↦ ( x 0 ) ℰ 2 = ( x 0 )

    projects vectors onto the x  axis. The third

    ( x y ) = ( x y ) ℰ 2 ↦ ( y x ) ℰ 2 = ( y x )

    interchanges first and second components (that is, it is a reflection about the line y = x ). The last

    ( x y ) = ( x y ) ℰ 2 ↦ ( x + 3 y y ) ℰ 2 = ( x + 3 y y )

    stretches vectors parallel to the y  axis, by an amount equal to three times their distance from that axis (this is a skew.)

  20. Exercise 2.31 Worked answer

    The fact that for any linear map the rank plus the nullity equals the dimension of the domain shows that a necessary condition for the existence of a homomorphism between two spaces, onto the second space, is that there be no gain in dimension. That is, where h : V → W is onto, the dimension of W must be less than or equal to the dimension of V .

    1. Show that this (strong) converse holds: no gain in dimension implies that there is a homomorphism and, further, any matrix with the correct size and correct rank represents such a map.

    2. Are there bases for ℝ 3 such that this matrix

      H = ( 1 0 0 2 0 0 0 1 0 )

      represents a map from ℝ 3 to ℝ 3 whose range is the x y  plane subspace of ℝ 3 ?

    Back to Exercise 2.31

    Answer.

    1. This is immediate from Theorem 2.4.

    2. Yes. This is immediate from the prior item.

      To give a specific example, we can start with ℰ 3 as the basis for the domain, and then we require a basis D for the codomain ℝ 3 . The matrix H gives the action of the map as this

      ( 1 0 0 ) = ( 1 0 0 ) ℰ 3 ↦ ( 1 2 0 ) D ( 0 1 0 ) = ( 0 1 0 ) ℰ 3 ↦ ( 0 0 1 ) D ( 0 0 1 ) = ( 0 0 1 ) ℰ 3 ↦ ( 0 0 0 ) D

      and there is no harm in finding a basis D so that

      Rep D ( ( 1 0 0 ) ) = ( 1 2 0 ) D and Rep D ( ( 0 1 0 ) ) = ( 0 0 1 ) D

      that is, so that the map represented by H with respect to ℰ 3 , D is projection down onto the x y  plane. The second condition gives that the third member of D is e → 2 . The first condition gives that the first member of D plus twice the second equals e → 1 , and so this basis will do.

      D = ⟨ ( 2 0 1 ) , ( − 1 / 2 0 − 1 / 2 ) , ( 0 1 0 ) ⟩

  21. Exercise 2.32 Worked answer

    Let V be an n -dimensional space and suppose that x → ∈ ℝ n . Fix a basis B for V and consider the map h x → : V → ℝ given v → ↦ x → ⋅ Rep B ( v → ) by the dot product.

    1. Show that this map is linear.

    2. Show that for any linear map g : V → ℝ there is an x → ∈ ℝ n such that g = h x → .

    3. In the prior item we fixed the basis and varied the x → to get all possible linear maps. Can we get all possible linear maps by fixing an x → and varying the basis?

    Back to Exercise 2.32

    Answer.

    1. Recall that the representation map Rep B : V → ℝ n is linear (it is actually an isomorphism, but we do not need that it is one-to-one or onto here). Considering the column vector x to be a n × 1 matrix gives that the map from ℝ n to ℝ that takes a column vector to its dot product with x → is linear (this is a matrix-vector product and so Theorem 2.2 applies). Thus the map under consideration h x → is linear because it is the composition of two linear maps.

      v → ↦ Rep B ( v → ) ↦ x → ⋅ Rep B ( v → )

    2. Any linear map g : V → ℝ is represented by some matrix

      ( g 1 g 2 ⋯ g n )

      (the matrix has n columns because V is n -dimensional and it has only one row because ℝ is one-dimensional). Then taking x → to be the column vector that is the transpose of this matrix

      x → = ( g 1 ⋮ g n )

      has the desired action.

      v → = ( v 1 ⋮ v n ) ↦ ( g 1 ⋮ g n ) ⋅ ( v 1 ⋮ v n ) = g 1 v 1 + ⋯ + g n v n

    3. No. If x → has any nonzero entries then h x → cannot be the zero map (and if x → is the zero vector then h x → can only be the zero map).

  22. Exercise 2.33 Worked answer

    Let V , W , X be vector spaces with bases B , C , D .

    1. Suppose that h : V → W is represented with respect to B , C by the matrix H . Give the matrix representing the scalar multiple r h (where r ∈ ℝ ) with respect to B , C by expressing it in terms of H .

    2. Suppose that h , g : V → W are represented with respect to B , C by H and G . Give the matrix representing h + g with respect to B , C by expressing it in terms of H and G .

    3. Suppose that h : V → W is represented with respect to B , C by H and g : W → X is represented with respect to C , D by G . Give the matrix representing g ∘ h with respect to B , D by expressing it in terms of H and G .

    Back to Exercise 2.33

    Answer. See the following section.

References cited in this section