<<

MATH 355 Supplemental Notes Coordinatization

Coordinatization

In R3, we have the standard i, j and k. When we write a vector in coordinate form, say

3 v 2 , (1) “ »´ fi 5 — – fl it is understood as v 3i 2j 5k. “ ´ ` The numbers 3, 2 and 5 are the coordinates of v relative to the ⇠ i, j, k . It has p´ q “p q always been understood that a coordinate representation such as that in (1) is with respect to the ordered basis ⇠. A little thought reveals that it need not be so. One could have chosen the same basis elements in a di↵erent order, as in the basis ⇠ i, k, j . We employ notation indicating the 1 “p q coordinates are with respect to the di↵erent basis ⇠1:

3 v 5 , to mean that v 3i 5k 2j, r s⇠1 “ » fi “ ` ´ 2 —´ – fl reflecting the order in which the basis elements fall in ⇠1. Of course, one could employ similar notation even when the coordinates are expressed in terms of the standard basis, writing v for r s⇠ (1), but whenever we have coordinatization with respect to the standard basis of Rn in mind, we will consider the wrapper to be optional. r¨s⇠ Of course, there are many non-standard bases of Rn. In fact, any linearly independent collection of n vectors in Rn provides a basis. Say we take

1 1 1 4 ´ ´ » 0fi » 1fi » 1fi » 1fi u , u u u ´ . 1 “ 2 “ 3 “ 4 “ — 3 — 1 — 0 — 2 — —´ — — — 0 — 4 — 2 — 1 — — — —´ – fl – fl – fl – fl As per the discussion above, these vectors are being expressed relative to the standard basis of R4. A quick check of a related 4-by-4 reveals these vectors are linearly independent, and hence form a basis of R4.

octave:80> A = [ 1 0 3 0; 1 1 1 4; 1 1 0 2; 4 12 1]’ ⌥ ´ ´ ´ ´ ´ ⌅ A =

11 14 ´ ´ 011 1 ´ 3 10 2 ´ 042 1 ´

2 MATH 355 Supplemental Notes of a Linear Transformation

octave:81> det(A) ans = 17 ´ ⌃ ⇧ Let us denote the ordered basis as ↵ u , u , u , u . Every vector of R4 can be expressed uniquely “p 1 2 3 4q as a of elements in the basis ↵. is a tool that reveals the weights.

Example 1:

Find the coordinatization relative to the basis ↵ of the vector v 8, 3, 13, 5 . “p ´ ´ q We can reduce the relevant augmented matrix to RREF:

octave:85> augA = [A [8; 3; 13; 5]] ⌥ ´ ´ ⌅ augA =

11 14 8 ´ ´ 011 1 3 ´ ´ 3 1 0 2 13 ´ 042 1 5 ´ ´

octave:86> rref(augA) ans =

10002 0100 1 ´ 00101 00013

⌃ ⇧ Thus, v 2u u u 3u , and “ 1 ´ 2 ` 3 ` 4 2 » 1fi v ´ . r s↵ “ — 1 — — 3 — – fl

Matrix of a Linear Transformation

Let T : be a linear transformation from the n-dimensional having ordered V Ñ W V basis ↵ v , v2,...,v into to the m-dimensional vector space , having ordered basis “p 1 nq W “ w , w ,...,w . As we have seen, as soon as one knows the outputs from T for a basis, all of its p 1 2 mq

3 MATH 355 Supplemental Notes Matrix of a Linear Transformation behavior is known. Let us suppose we know the outputs of T on the basis ↵. More specifically, let us assume we know how each T v , an element of , is expressed relative to the basis . p kq W Specifically, we know the weights aik in the expression

a1k »a2k fi T v a w a w a w , so that T v . p kq“ 1k 1 ` 2k 2 `¨¨¨` mk m r p kqs “ . — . — —a — mk – fl Then the matrix of T in the ordered bases ↵ and is

a a a 11 12 ¨¨¨ 1n T v1 T v2 T vn »a21 a22 a2n fi T p q p q ¨¨¨ p q ¨¨¨ . (2) ↵ “ “ . . .. . «“ ‰ “ ‰ “ ‰ — . . . . “ ‰ ÓÓ Ó— —a a a — m1 m2 ¨¨¨ mn – fl Note that, if , it is still possible to have di↵erent bases ↵ and , but if the same basis V “ W ↵ is used twice, we can simplify the notation and write T ↵ as T ↵. You may realize from this discussion that there are many di↵erent matrix representations“ ‰ for“ ‰ the same linear transformation T, potentially one for each pair of bases ↵ and .

Example 2:

In R2 and R3 consider ordered bases ↵ v , v and w , w , w , respectively, where “p 1 2q “p 1 2 3q 4 0 1 2 1 ´ v1 , v2 ´ , and w1 » 2fi , w2 » 3fi , w3 » 2fi . “ «3 “ « 5 “ ´ “ “ 0 2 3 — —´ — – fl – fl – fl Suppose T : R2 R3 is linear, and produces the following images for the elements in ↵: Ñ 5 5

T v 1 and T v2 2 . p 1q“»´ fi p q“» fi 11 7 — —´ – fl – fl Find the matrix T ↵. “ ‰ Since the augmented matrices

4015 100 2 2 ´ 2321 010 1 , we have T v 1 , and »´ ´ fi „ » ´ fi p 1q “ »´ fi 0 2 3 11 001 3 3 — ´ — “ ‰ — – fl – fl – fl 4015 100 1 1 ´ 2322 010 2, so T v2 2 . »´ fi „ » fi p q “ » fi 0 237 001 1 1 — ´ ´ — ´ “ ‰ —´ – fl – fl – fl 4 MATH 355 Supplemental Notes Matrix of a Linear Transformation

Thus, 21 T v T v p 1q p 2q T ↵ » 12fi . “ « “ ´ “ ÓÓ‰ “ ‰ 3 1 “ ‰ — ´ – fl

One expects that, having found the matrix T , it can be used to find T v for any input vector ↵ r p qs v. Notice that one obtains “ ‰ 21 2 1 T v1 » 12fi » 1fi . r p qs “ ´ «0 “ ´ 3 1 3 — ´ — – fl – fl That is, the result T v comes from after expressing v as 1, 0 , which is r p 1qs 1 p q its coordinatization relative to the basis ↵. Speaking generally, it is the case that

T v T v . (3) p q “ ↵ ↵ “ ‰ “ ‰ “ ‰ Example 3:

rd 3, the vector subspace of R consisting of at-most-3 -degree , has ordered P 2 3 Cp q basis ↵ 1, x, x , x . Vectors/members of 3 can be coordinatized with respect to this basis. “p q P For instance, the

7 » 1fi p x 2x3 x 7 has coordinates p ´ . p q“ ´ ` ↵ “ — 0 “ ‰ — — 2 — – fl The operation of di↵erentiation, d dx, is linear, and for each input p x from 3 the image/result { p q P d dx p p1 x is in 2 and can be represented by coordinates relative to the ordered basis { p q“2 p q P 1, x, x of 2. We have “p q P 0100 d dx 1 d dx x d dx x2 d dx x3 { p q { p q { p q { p q d dx ↵ »0020fi . { “ « “ “ ÓÓ‰ “ ‰ “ Ó‰ “ Ó‰ 0003 “ ‰ — – fl 3 Using this, you can find the derivative of any polynomial in 3. For p x 2x x 7, for P p q“ ´ ` instance, its derivative is

7 0100 1 » 1fi ´ d dx p 0020 ´ 0 , { ↵ ↵ “ » fi “ » fi — 0 “ ‰ “ ‰ 0003— 6 — — 2 — – fl — – fl – fl which should be understood as p x 6x2 1. 1p q“ ´

5 MATH 355 Supplemental Notes

An important result is the following, which arms that matrix multiplication is defined in the right way.

Theorem 1: Suppose , , and are finite-dimensional vector spaces with ordered bases U V W ↵, and , respectively. Suppose that S: and T : are linear transformations. U Ñ V V Ñ W Then

The composition T S given by T S x T S x is a linear transformation from • ˝ p ˝ qp q“ p p qq to . U W The matrix of T S in the ordered bases ↵ and is the product of the matrix of S in • ˝ the ordered bases ↵ and with the matrix of T in the ordered bases and ; that is

T S T S . ˝ ↵ “ ↵ “ ‰ “ ‰ “ ‰

Change of Basis

A special instance is the identity operator id: Rn Rn, given by id x x. If ⇠ represents the Ñ p q“ standard basis for Rn, and ↵ v ,...,v is another ordered basis, then “p 1 nq

⇠ v1 v2 vn id ↵ ¨¨¨ . “ « “ ‰ ÓÓ Ó We call this a change-of-basis, or transition matrix, as it maps a vector from its coordinate representation relative to basis ↵ to its representation in another (in this case, the standard) basis, ⇠: ⇠ v id v . ⇠ “ ↵ ↵ “ ‰ “ ‰ “ ‰ What this means is that any nonsingular matrix X can be viewed as a change-of-basis matrix, mapping from coordinates relative to the ordered basis ↵ consisting of the columns of X to standard coordinates. The matrix which maps from standard coordinates back to coordinates in the ordered ⇠ ↵ basis ↵ is naturally X 1. That is, if id X, then id X 1. ´ ↵ “ ⇠ “ ´ As with general linear maps, one might“ ‰ use two nonstandard“ ‰ bases ↵ v ,...,v and for Rn. “p 1 nq The matrix of the identity map id: Rn Rn in the ordered bases ↵ and , since id v v , is Ñ p jq“ j

6 MATH 355 Supplemental Notes Similarity found by tailoring the formula (2) appropriately:

v v v 1 2 ¨¨¨ n id ↵ . “ «“ ‰ “ ‰ “ ‰ “ ‰ ÓÓ Ó This, too, serves to change coordinates v id v “ ↵ ↵ and is thus a change-of-basis matrix. Note“ that,‰ whenever“ ‰ “ ‰ the same basis is used, we have id I, ↵ “ the usual identity matrix. “ ‰ Now, suppose A is diagonalizable. Then there exists a basis ↵ of Rn consisting of eigenvectors of A. Constructing a matrix X from that basis, we have

1 ⇠ ↵ A X⇤X´ id ⇤ id . “ “ ↵ ⇠ That is, we can view this factorization as a change first“ ‰ from“ standard‰ coordinates to ones in ↵ (the 1 action of X´ ), then rescalings in those coordinates (using eigenvalues, the diagonal elements of ⇤, as scalars), followed by a return from coordinates in ↵ to standard ones. More generally, every matrix A is is similar to a Jordan form matrix

1 ⇠ A BJB´ id J id , “ “ ⇠ where is the ordered basis arising from the columns“ ‰ of the“ matrix‰ B.

Next, let’s assume only that the real matrix A is m-by-n, and take U, V to be the usual matrices of the singular value decompositon of A. Write ↵ for the ordered basis of Rn comprised of the m columns of V, for the ordered basis of R arising from the columns of U, ⇠m for the standard m n basis of R , and ⇠n for the standard basis of R . Then ⇠ ↵ A U⌃VT id m ⌃ id . “ “ ⇠n “ ‰ “ ‰

Similarity

Finally, we mentioned before that there can be many di↵erent matrix representations for one linear operator T : . In the case where the domain and codomain are the same, so that one V Ñ W ↵ V W can talk about a matrix T ↵ (abbreviated as T ↵), there are still many matrix representations of T, one for each di↵erent basis ↵ of . However, any two are related, are, in fact similar. Specifically, “ ‰ V “ ‰ if ↵ and are both ordered bases of , then V ↵ ↵ ↵ 1 1 T id T id id T id ´ C T C´ , ↵ “ ↵ “ p q “ where the matrix“C ‰relating“ the‰ “ two‰ “ is the‰ transition“ ‰ “ matrix‰ “ ‰ from -coordinates“ ‰ to ↵-coordinates.

7