Section 1.8/1.9. Linear Transformations

Similar documents
Announcements Monday, September 25

Announcements Wednesday, September 27

Announcements September 19

Span and Linear Independence

1 Last time: multiplying vectors matrices

Fact: Every matrix transformation is a linear transformation, and vice versa.

Span & Linear Independence (Pop Quiz)

Linear transformations

Review for Chapter 1. Selected Topics

MATH 2331 Linear Algebra. Section 1.1 Systems of Linear Equations. Finding the solution to a set of two equations in two variables: Example 1: Solve:

Math 54 Homework 3 Solutions 9/

Chapter 1: Linear Equations

Section 3.3. Matrix Equations

Chapter 1: Linear Equations

Sept. 3, 2013 Math 3312 sec 003 Fall 2013

1 Last time: inverses

All of my class notes can be found at

Linear Equations in Linear Algebra

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

Linear Equation: a 1 x 1 + a 2 x a n x n = b. x 1, x 2,..., x n : variables or unknowns

Solutions to Midterm 2 Practice Problems Written by Victoria Kala Last updated 11/10/2015

Properties of Transformations

MATH240: Linear Algebra Exam #1 solutions 6/12/2015 Page 1

Section 1.5. Solution Sets of Linear Systems

Math 416, Spring 2010 More on Algebraic and Geometric Properties January 21, 2010 MORE ON ALGEBRAIC AND GEOMETRIC PROPERTIES

1.1 Single Variable Calculus versus Multivariable Calculus Rectangular Coordinate Systems... 4

Chapter 3: Theory Review: Solutions Math 308 F Spring 2015

Math 220 F11 Lecture Notes

Linear Algebra, Summer 2011, pt. 2

Homework Set #8 Solutions

Announcements Wednesday, October 10

6. Linear Transformations.

Linear Equations in Linear Algebra

Announcements Monday, October 02

Linear Algebra (wi1403lr) Lecture no.4

Solutions to Math 51 First Exam October 13, 2015

Chapter 5. Eigenvalues and Eigenvectors

Section 4.5. Matrix Inverses

Linear Algebra March 16, 2019

MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS

Math 3108: Linear Algebra

APPM 2350, Summer 2018: Exam 1 June 15, 2018

(arrows denote positive direction)

BASIC NOTIONS. x + y = 1 3, 3x 5y + z = A + 3B,C + 2D, DC are not defined. A + C =

MATH240: Linear Algebra Review for exam #1 6/10/2015 Page 1

Announcements Wednesday, October 04

Matrix of Linear Xformations

Linear Independence x

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

Linear equations in linear algebra

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Functions

Linear Algebra Exam 1 Spring 2007

4.1 Distance and Length

Vector Geometry. Chapter 5

Chapter 4 & 5: Vector Spaces & Linear Transformations

Linear Equations in Linear Algebra

Solutions to Selected Questions from Denis Sevee s Vector Geometry. (Updated )

Exam 2 Solutions. (a) Is W closed under addition? Why or why not? W is not closed under addition. For example,

1 Matrices and matrix algebra

Designing Information Devices and Systems I Discussion 2A

Linear algebra I Homework #1 due Thursday, Oct. 5

Review Solutions for Exam 1

Notes on multivariable calculus

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

EXERCISE SET 5.1. = (kx + kx + k, ky + ky + k ) = (kx + kx + 1, ky + ky + 1) = ((k + )x + 1, (k + )y + 1)

MATH10212 Linear Algebra B Homework Week 4

There are two main properties that we use when solving linear equations. Property #1: Additive Property of Equality

Linear algebra and differential equations (Math 54): Lecture 10

1 Last time: determinants

MAT 2037 LINEAR ALGEBRA I web:

Week #4: Midterm 1 Review

Chapter 1: Systems of Linear Equations

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

Chapter 6: Orthogonality

2t t dt.. So the distance is (t2 +6) 3/2

Introduction to Vectors

Matrix of Linear Xformations

Contents. 1 Vectors, Lines and Planes 1. 2 Gaussian Elimination Matrices Vector Spaces and Subspaces 124

Announcements Monday, September 18

Math Linear Algebra Final Exam Review Sheet

Math 314H EXAM I. 1. (28 points) The row reduced echelon form of the augmented matrix for the system. is the matrix

Introduction to Linear Algebra, Second Edition, Serge Lange

Recall: Dot product on R 2 : u v = (u 1, u 2 ) (v 1, v 2 ) = u 1 v 1 + u 2 v 2, u u = u u 2 2 = u 2. Geometric Meaning:

Calculus for the Life Sciences II Assignment 6 solutions. f(x, y) = 3π 3 cos 2x + 2 sin 3y

(1) for all (2) for all and all

Practice Final Exam Solutions for Calculus II, Math 1502, December 5, 2013

Solution Set 7, Fall '12

Problem 1: (3 points) Recall that the dot product of two vectors in R 3 is

Study Guide for Linear Algebra Exam 2

Section 14.1 Vector Functions and Space Curves

4.4: Optimization. Problem 2 Find the radius of a cylindrical container with a volume of 2π m 3 that minimizes the surface area.

Homework Solutions: , plus Substitutions

Linear Algebra Quiz 4. Problem 1 (Linear Transformations): 4 POINTS Show all Work! Consider the tranformation T : R 3 R 3 given by:

Section 8.2 Vector Angles

22m:033 Notes: 1.8 Linear Transformations

Math 3C Lecture 20. John Douglas Moore

Finish section 3.6 on Determinants and connections to matrix inverses. Use last week's notes. Then if we have time on Tuesday, begin:

Chapter 4. Solving Systems of Equations. Chapter 4

Dr. Allen Back. Sep. 10, 2014

Transcription:

Section 1.8/1.9 Linear Transformations

Motivation Let A be a matrix, and consider the matrix equation b = Ax. If we vary x, we can think of this as a function of x. Many functions in real life the linear transformations come from matrices in this way. It makes us happy when a function comes from a matrix, because then questions about the function translate into questions a matrix, which we can usually answer. For this reason, we want to study matrices as functions.

Matrices as Functions Change in Perspective. Let A be a matrix with m rows and n columns. Let s think about the matrix equation b = Ax as a function. The independent variable (the input) is x, which is a vector in R n. The dependent variable (the output) is b, which is a vector in R m. As you vary x, then b = Ax also varies. The set of all possible output vectors b is the column span of A. x Ax col.span R n b = Ax R m [interactive 1] [interactive 2]

Matrices as Functions Projection 1 A = 1 In the equation Ax = b, the input vector x is in R 3 and the output vector b is in R 3. Then x 1 x x A y = 1 y = y. z z This is projection onto the xy-plane. Picture: [interactive]

Matrices as Functions Reflection A = ( ) 1 1 In the equation Ax = b, the input vector x is in R 2 and the output vector b is in R 2. Then ( ) ( ) ( ) ( ) x 1 x x A = =. y 1 y y This is reflection over the y-axis. Picture: b = Ax [interactive]

Matrices as Functions Dilation A = ( 1.5 ) 1.5 In the equation Ax = b, the input vector x is in R 2 and the output vector b is in R 2. ( ) ( ) ( ) ( ) ( ) x 1.5 x 1.5x x A = = = 1.5. y 1.5 y 1.5y y This is dilation (scaling) by a factor of 1.5. Picture: b = Ax [interactive]

Matrices as Functions Identity A = ( ) 1 1 In the equation Ax = b, the input vector x is in R 2 and the output vector b is in R 2. ( ) ( ) ( ) ( ) x 1 x x A = =. y 1 y y This is the identity transformation which does nothing. Picture: b = Ax [interactive]

Matrices as Functions Rotation A = ( ) 1 1 In the equation Ax = b, the input vector x is in R 2 and the output vector b is in R 2. Then ( ) ( ) ( ) ( ) x 1 x y A = =. y 1 y x What is this? Let s plug in a few points and see what happens. ( ) ( ) 1 2 A = 2 1 ( ) ( ) 1 1 A = 1 1 ( ) ( ) 2 A = 2 It looks like counterclockwise rotation by 9.

Matrices as Functions Rotation A = ( ) 1 1 In the equation Ax = b, the input vector x is in R 2 and the output vector b is in R 2. Then ( ) ( ) ( ) ( ) x 1 x y A = =. y 1 y x b = Ax [interactive]

Other Geometric Transformations In 1.9 of Lay, there is a long list of geometric transformations of R 2 given by matrices. (Reflections over the diagonal, contractions and expansions along different axes, shears, projections,... ) Please look them over.

Transformations Motivation We have been drawing pictures of what it looks like to multiply a matrix by a vector, as a function of the vector. Now let s go the other direction. Suppose we have a function, and we want to know, does it come from a matrix? Example For a vector x in R 2, let T (x) be the counterclockwise rotation of x by an angle θ. Is T (x) = Ax for some matrix A? If θ = 9, then we know T (x) = Ax, where ( ) 1 A =. 1 But for general θ, it s not clear. Our next goal is to answer this kind of question.

Transformations Vocabulary Definition A transformation (or function or map) from R n to R m is a rule T that assigns to each vector x in R n a vector T (x) in R m. R n is called the domain of T (the inputs). R m is called the codomain of T (the outputs). For x in R n, the vector T (x) in R m is the image of x under T. Notation: x T (x). The set of all images {T (x) x in R n } is the range of T. Notation: T : R n R m means T is a transformation from R n to R m. x T T (x) range It may help to think of T as a machine that takes x as an input, and gives you T (x) as the output. R n domain T R m codomain

Functions from Calculus Many of the functions you know and love have domain and codomain R. ( ) the length of the opposite edge over the sin: R R sin(x) = hypotenuse of a right triangle with angle x in radians Note how I ve written down the rule that defines the function sin. f : R R f (x) = x 2 Note that x 2 is sloppy (but common) notation for a function: it doesn t have a name! You may be used to thinking of a function in terms of its graph. (x, sin x) x The horizontal axis is the domain, and the vertical axis is the codomain. This is fine when the domain and codomain are R, but it s hard to do when they re R 2 and R 3! You need five dimensions to draw that graph.

Matrix Transformations Definition Let A be an m n matrix. The matrix transformation associated to A is the transformation T : R n R m defined by T (x) = Ax. In other words, T takes the vector x in R n to the vector Ax in R m. For example, if A = ( ) 1 2 3 4 5 6 and T (x) = Ax then 1 ( ) ( ) T 2 1 2 3 = 1 2 14 =. 4 5 6 32 3 3 Your life will be much easier if you just remember these. The domain of T is R n, which is the number of columns of A. The codomain of T is R m, which is the number of rows of A. The range of T is the set of all images of T : x 1 T (x) = Ax = v 1 v 2 v n x 2. x n = x1v1 + x2v2 + + xnvn. This is the column span of A. It is a span of vectors in the codomain.

Matrix Transformations Example 1 1 Let A = 1 and let T (x) = Ax, so T : R 2 R 3. 1 1 ( ) 1 1 ( ) 7 3 If u = then T (u) = 1 3 = 4. 4 4 1 1 7 7 Let b = 5. Find v in R 2 such that T (v) = b. Is there more than one? 7 We want to find v such that T (v) = Av = b. We know how to do that: augmented row 1 1 7 matrix 1 1 7 reduce 1 2 1 v = 5 1 5 1 5. 1 1 7 1 1 7 ( ) 2 This gives x = 2 and y = 5, or v = (unique). In other words, 5 1 1 ( ) 7 T (v) = 1 2 = 5. 5 1 1 7

Matrix Transformations Example, continued 1 1 Let A = 1 and let T (x) = Ax, so T : R 2 R 3. 1 1 Is there any c in R 3 such that there is more than one v in R 2 with T (v) = c? Translation: is there any c in R 3 such that the solution set of Ax = c has more than one vector v in it? The solution set of Ax = c is a translate of the solution set of Ax = b (from before), which has one vector in it. So the solution set to Ax = c has only one vector. So no! Find c such that there is no v with T (v) = c. Translation: Find c such that Ax = c is inconsistent. Translation: Find c not in the column span of A ( (i.e., the range of T ). 12 ) We could draw a picture, or notice that if c =, then our matrix 3 equation translates into x + y = 1 y = 2 x + y = 3, which is obviously inconsistent.

Matrix Transformations Non-Example Note: All of these questions are questions about the transformation T ; it still makes sense to ask them in the absence of the matrix A. The fact that T comes from a matrix means that these questions translate into questions about a matrix, which we know how to do. ( ) sin x x Non-example: T : R 2 R 3 T = xy y cos y Question: Is there any c in R 3 such that there is more than one v in R 2 with T (v) = c? Note the question still makes sense, although T has no hope of being a matrix transformation. By the way, T ( ) = so the answer is yes. sin sin π = = π = T cos 1 cos ( ) π,

Matrix Transformations Picture The picture of a matrix transformation is the same as the pictures we ve been drawing all along. Only the language is different. Let ( ) 1 A = and let T (x) = Ax, 1 so T : R 2 R 2. Then ( ) x T = A y ( ) x = y ( 1 1 which is still is reflection over the y-axis. Picture: ) ( ) x = y ( ) x, y T

Poll [Was not ( done in ) class] 1 1 Let A = and let T (x) = Ax, so T : R 2 R 2. (T is called a shear.) 1 Poll What does T do to this sheep? Hint: first draw a picture what it does to the box around the sheep. T A B C [interactive] sheared sheep

Linear Transformations So, which transformations actually come from matrices? Recall: If A is a matrix, u, v are vectors, and c is a scalar, then A(u + v) = Au + Av So if T (x) = Ax is a matrix transformation then, A(cv) = cav. T (u + v) = T (u) + T (v) and T (cv) = ct (v). Any matrix transformation has to satisfy this property. This property is so special that it has its own name. Definition A transformation T : R n R m is linear if it satisfies the above equations for all vectors u, v in R n and all scalars c. In other words, T respects addition and scalar multiplication. Check: if T is linear, then T () = T (cu + dv) = ct (u) + dt (v) for all vectors u, v and scalars c, d. More generally, T ( c 1v 1 + c 2v 2 + + c nv n ) = c1t (v 1) + c 2T (v 2) + + c nt (v n). In engineering this is called superposition.

Summary We can think of b = Ax as a transformation with input x and output b. This gives us a way to draw pictures of the geometry of a matrix. There are lots of questions that one can ask about transformations. We like transformations that come from matrices, because questions about those transformations turn into questions about matrices. Linear transformations are the transformations that come from matrices.

Linear Transformations Dilation Define T : R 2 R 2 by T (x) = 1.5x. Is T linear? Check: T (u + v) = 1.5(u + v) = 1.5u + 1.5v = T (u) + T (v) T (cv) = 1.5(cv) = c(1.5v) = c(tv). So T satisfies the two equations, hence T is linear. Note: T is a matrix transformation! as we checked before. T (x) = ( ) 1.5 x, 1.5

Linear Transformations Rotation Define T : R 2 R 2 by T (x) = the vector x rotated counterclockwise by an angle of θ. Is T linear? Check: u + v v T T (u + v) T (v) u θ T (u) T T (cu) u cu T (u) θ The pictures show T (u) + T (v) = T (u + v) and T (cu) = ct (u). Since T satisfies the two equations, T is linear.

Linear Transformations Non-example Is every transformation a linear transformation? ( ) sin x x No! For instance, T = xy is not linear. y cos y Why? We have to check the two defining properties. Let s try the second: ( ( )) sin(cx) sin x ( ) x T c = (cx)(cy) =? c xy x = ct y y cos(cy) cos y Not necessarily: if c = 2 and x = π, y = π, then ( ( )) ( ) sin 2π π 2π T 2 = T = 2π 2π = 4π 2 π 2π cos 2π 1 ( ) sin π π 2T = 2 =. π π π cos π 2π 2 2 So T fails the second property. Conclusion: T is not a matrix transformation! (We could also have noted T ().)

Poll Poll Which of the following transformations are linear? ( ) ( ) ( ) ( ) x1 x1 x1 2x1 + x 2 A. T = B. T = x 2 x 2 x 2 x 1 2x 2 ( ) ( ) ( ) ( ) x1 x1x 2 x1 2x1 + 1 C. T = D. T = x 2 x 2 x 2 x 1 2x 2 A. T (( ) 1 + B. Linear. ( ( )) 1 C. T 2 = 1 ( ) D. T = ( )) 1 = ( ) 4 2T 2 ( ) ( ) 1, so not linear. ( ) 2 = T ( ) 1 + T ( ) 1, so not linear. 1 ( ) 1, so not linear. Remark: in fact, T is linear if and only if each entry of the output is a linear function of the entries of the input, with no constant terms. Check this!

The Matrix of a Linear Transformation We will see that a linear transformation T is a matrix transformation: T (x) = Ax. But what matrix does T come from? What is A? Here s how to compute it.

Unit Coordinate Vectors Definition This is what e 1, e 2,... mean, The unit coordinate vectors in R n for the rest of the class. are 1 1 e 1 =., e 2 =.,..., e n 1 =., e n =.. 1 1 in R 2 in R 3 e 2 e 1 e 3 e 2 e 1 Note: if A is an m n matrix with columns v 1, v 2,..., v n, then Ae i = v i for i = 1, 2,..., n: multiplying a matrix by e i gives you the ith column. 1 2 3 4 5 6 1 = 1 4 1 2 3 4 5 6 1 = 2 5 1 2 3 4 5 6 = 3 6 7 8 9 7 7 8 9 8 7 8 9 1 9

Linear Transformations are Matrix Transformations Recall: A matrix A defines a linear transformation T by T (x) = Ax. Theorem Let T : R n R m be a linear transformation. Let A = T (e 1) T (e 2) T (e n). This is an m n matrix, and T is the matrix transformation for A: T (x) = Ax. The matrix A is called the standard matrix for T. Take-Away Linear transformations are the same as matrix transformations. Dictionary Linear transformation T : R n R m m n matrix A = T (e 1 ) T (e 2 ) T (e n) T (x) = Ax T : R n R m m n matrix A

Linear Transformations are Matrix Transformations Continued Why is a linear transformation a matrix transformation? Suppose for simplicity that T : R 3 R 2. x 1 T y = T x + y 1 + z z 1 = T ( ) xe 1 + ye 2 + ze 3 = xt (e 1) + yt (e 2) + zt (e 3) x = T (e 1) T (e 2) T (e 3) y z x = A y. z

Linear Transformations are Matrix Transformations Example Before, we defined a dilation transformation T : R 2 R 2 by T (x) = 1.5x. What is its standard matrix? ( ) 1.5 T (e 1) = 1.5e 1 = ( ) 1.5 ( ) = A =. 1.5 T (e 2) = 1.5e 2 = 1.5 Check: ( 1.5 1.5 ) ( ) x = y ( ) 1.5x = 1.5 1.5y ( ) x = T y ( ) x. y

Linear Transformations are Matrix Transformations Example Question What is the matrix for the linear transformation T : R 2 R 2 defined by T (x) = x rotated counterclockwise by an angle θ? T (e 2 ) T (e 1 ) θ sin(θ) cos(θ) cos(θ) e 1 sin(θ) ( ) cos(θ) T (e 1) = sin(θ) ( ) θ = ( 9 = ) cos(θ) sin(θ) ( ) = A = 1 sin(θ) sin(θ) cos(θ) A = 1 T (e 2) = cos(θ) from before θ e 2

Linear Transformations are Matrix Transformations Example Question What is the matrix for the linear transformation T : R 3 R 3 that reflects through the xy-plane and then projects onto the yz-plane? [interactive] e 1 yz reflect xy yz project yz yz xy xy xy T (e 1) =.

Linear Transformations are Matrix Transformations Example, continued Question What is the matrix for the linear transformation T : R 3 R 3 that reflects through the xy-plane and then projects onto the yz-plane? [interactive] yz yz yz reflect xy project yz xy e 2 xy xy T (e 2) = e 2 = 1.

Linear Transformations are Matrix Transformations Example, continued Question What is the matrix for the linear transformation T : R 3 R 3 that reflects through the xy-plane and then projects onto the yz-plane? [interactive] e 3 yz reflect xy yz project yz yz xy xy xy T (e 3) =. 1

Linear Transformations are Matrix Transformations Example, continued Question What is the matrix for the linear transformation T : R 3 R 3 that reflects through the xy-plane and then projects onto the yz-plane? T (e 1) = T (e 2) = 1 T (e 1) = 1 = A = 1. 1

Onto Transformations Definition A transformation T : R n R m is onto (or surjective) if the range of T is equal to R m (its codomain). In other words, for every b in R m, the equation T (x) = b has at least one solution. Or, every possible output has an input. Note that not onto means there is some b in R m which is not the image of any x in R n. x onto range(t ) T (x) [interactive] R n T not onto R m = codomain T (x) [interactive] x range(t ) R n T R m = codomain

Characterization of Onto Transformations Theorem Let T : R n R m be a linear transformation with matrix A. Then the following are equivalent: T is onto T (x) = b has a solution for every b in R m Ax = b is consistent for every b in R m The columns of A span R m A has a pivot in every row Question If T : R n R m is onto, what can we say about the relative sizes of n and m? Answer: T corresponds to an m n matrix A. In order for A to have a pivot in every row, it must have at least as many columns as rows: m n. 1 1 1 For instance, R 2 is too small to map onto R 3.

One-to-one Transformations Definition A transformation T : R n R m is one-to-one (or into, or injective) if different vectors in R n map to different vectors in R m. In other words, for every b in R m, the equation T (x) = b has at most one solution x. Or, different inputs have different outputs. Note that not one-to-one means at least two different vectors in R n have the same image. y x one-to-one T (x) T (y) [interactive] z R n T T (z) R m range x not one-to-one T (x) = T (y) y [interactive] z R n T T (z) R m range

Characterization of One-to-One Transformations Theorem Let T : R n R m be a linear transformation with matrix A. Then the following are equivalent: T is one-to-one T (x) = b has one or zero solutions for every b in R m Ax = b has a unique solution or is inconsistent for every b in R m Ax = has a unique solution The columns of A are linearly independent A has a pivot in every column. Question If T : R n R m is one-to-one, what can we say about the relative sizes of n and m? Answer: T corresponds to an m n matrix A. In order for A to have a pivot in every column, it must have at least as many rows as columns: n m. 1 1 1 For instance, R 3 is too big to map into R 2.

Summary Linear transformations are the transformations that come from matrices. The unit coordinate vectors e 1, e 2,... are the unit vectors in the positive direction along the coordinate axes. You compute the columns of the matrix for a linear transformation by plugging in the unit coordinate vectors. A transformation T is one-to-one if T (x) = b has at most one solution, for every b in R m. A transformation T is onto if T (x) = b has at least one solution, for every b in R m. Two of the most basic questions one can ask about a transformation is whether it is one-to-one or onto. There are lots of equivalent conditions for a linear transformation to be one-to-one and/or onto, in terms of its matrix.