Presentation on theme: "Chapter 2 – Linear Transformations"— Presentation transcript:
1 Chapter 2 – Linear Transformations Outline Introduction to Linear Transformations and Their Inverses Linear Transformations in Geometry The Inverse of a Linear Transformation 2.4 Matrix Products
2 2.1 Introduction to Linear Transformations and Their Inverses The matrix A is called the coefficient matrix of the transformation.is called a linear transformation.: the decoding transformation.: the inverse of the coding transformation.Since the decoding transformation is the inverse of the coding transformation , we say that the matrix B is the inverse of the matrix A. We can write this as
3 Invertible No all linear transformations are invertible. Suppose with matrix , the solutions areBecause this system does not have a unique solution, it is impossible to recover the actual position from the encoded position. The coding matrix A is noninvertible.Consider two sets X and Y. A function T from X to Y is a rule that associates with each element x of X a unique element y of Y.The set X is called the domain of the function, and Y is its codomain. We will sometimes refer to x as the input of the function and to y as its output.
4 Linear Transformations (Definition 2.1.1) A function T from Rn to Rm is called a linear transformation if there is an m ×n matrix A such that for all in Rn.A linear transformation is a special kind of function.The identity transformation from Rn to Rn: all entries on the main diagonal are 1, and all other entries are 0. This matrix is called the identity matrix and is denoted by In., where The output vector is obtained from by rotating through an angle of 90o in the counterclockwise.
5 (Fact 2.1.2) The Column of the Matrix of a Linear Transformation (Fact 2.1.2) Consider a linear transformation T from Rm to Rn. Then, the matrix of T isTo justify this result, we have thenThe vectors in Rm are sometimes referred to as the standard vectors in Rm. The standard vectors in R3 are often denoted by
6 (Fact 2.1.3) Linear Transformations (Fact 2,1,3) A transformation T from Rn to Rm is linear if (and only if), for all , in Rn, and, for all in Rn and all scalars k.
7 2.2 Linear Transformations in Geometry (Example 1) Consider the matrices Show the effect of each of these matrices on our standard letter L, and describe each transformation in words.
8 ScalingsFor any positive constant k, the matrix defines a scaling by k, since This is a dilation (or enlargement) if k exceeds 1, and it is a contraction (or shrinking) for values of k between 0 and 1.
9 ProjectionsConsider a line L in the plane, running through the origin. Any vector in R2 can be written uniquely as where is parallel to line L, and is perpendicular to L.The transformation from R2 to R2 is called the projection of onto L, often denoted by :
10 Example 2(Example 2) Find the matrix A of the projection onto the line L spanned by
11 Definition 2.2.1 Projections (Definition 2.2.1) Consider a line L in the coordinate plane, running through the origin. Any vector in R2 can be written uniquely as where is parallel to line L, and is perpendicular to L.The transformation from R2 to R2 is called the projection of onto L, often denoted by If is a unit vector parallel to L, then The transformation is linear, with matrix
13 Definition 2.2.2 Reflections (Definition 2.2.2) Consider a line L in the coordinate plane, running through the origin, and let be a vector in R2. The linear transformation is called the reflection of about L, often denoted by : We have a formula relating to : The matrix of T is of the form , where a2+b2=1.
14 Projections and Reflections in Space Let be the plane through the origin perpendicular to L; note that the vector will be parallel to We can give formulas for the orthogonal projection onto V, as well as for the reflections about V and L, in terms of the projection onto L:
15 Example 3(Example 3) Let V be the plane defined by 2x1+x2-2x3=0, and let Find
16 Fact Rotations(Fact 2.2.3) The matrix of a counterclockwise rotation in R2 through an angle θ is Note that this matrix is of the form , where a2+b2=1.
17 RotationsThe matrix of a counterclockwise rotation through an angle a isThe matrix of a counterclockwise rotation through an angle of is
18 Example 4 &5(Example 4) The matrix of a counterclockwise rotation through π/6 (or 30o) is(Example 5) Examine how the linear transformation affects our standard letter L. Here a and b are arbitrary constants.
19 Fact 2.2.4 Rotations Combined with a Scaling (Fact 2.2.4) A matrix of the form represents a rotation combined with a scaling. More precisely, if r and θ are the polar coordinates of vector , then represents a rotation through θ combined with a scaling by r.
24 2.3 The Inverse of Linear Transformation (Definition 2.3.1) A function T from X to Y is called invertible if the equation T(x)=y has a unique solution x in X for each y in Y.If a function T is invertible, then so is T-1, and (T-1)-1=T.
25 InvertibleConsider the linear transformation from Rn to Rm given by where A is an matrixm<n The system has either no solutions or infinitely many solutions. The transformation is noninvertible.m=n The system has a unique solution if and only if rref(A)=In. Therefore, the transformation is invertible if and only if reff(A)=In, or equivalently, if rank(A)=n.m>n The transformation is noninvertible since the system is inconsistent.
26 Invertible Matrices(Definition 2.3.2) A matrix A is called invertible if the linear transformation is invertible. The matrix of the inverse transformation is denoted by A-1. If the transformation is invertible, its inverse is(Fact 2.3.3) An matrix A is invertible if and only ifA is a square matrix (i.e., m=n), andrref(A)=In.(Fact 2.3.4) Let A be an matrixConsider a vector in Rn. If A is invertible, then the system has the unique solution If A is noninvertible, then the system has infinitely many solutions or none.Consider the special case when The system has as a solution. If A is invertible, then this is the only solution. If A is noninvertible, then there are infinitely many other solutions.
27 Example 1(Example 1) Is the matrix A invertible?
28 Finding the Inverse of a Matrix If a matrix A is invertible, how can we find the inverse matrix A-1?
29 Finding the Inverse of a Matrix (Fact 2.3.5) To find the inverse of an n×n matrix A, form the n× (2n) matrix [A|In] and compute rref[A|In].If rref[A|In] is of the form [In|B], then A is invertible, and A-1=B.If rref[A|In] is of another form (i.e., its left half fails to be In), then A is not invertible. Note that the left half of rref[A|In] is rref(A).
30 Inverse and Determinant of a 2×2 Matrix The 2×2 matrix is invertible if (and only if) ad-bc≠0. Quantity ad-bc is called the determinant of A, written det(A):If is invertible, then
31 2.4 Matrix ProductsThe composite of two functions: The composite of the functions y=sin(x) and z=cos(y) is z=cos(sin(x)).
33 Definition 2.4.1 Matrix Multiplication Let B be an n×p matrix and A a q×m matrix. The product BA is defined if (and only if) p=q.If B is an n×p matrix and A a p×m matrix, then the product BA is defined as the matrix of the linear transformation This means that , for all in Rm. The product BA is an n×m matrix.
34 Fact 2.4.2 The Columns of the Matrix Product (Fact 2.4.2) Let B be n×p matrix and A a p×m matrix with columns Then, the product BA is To find BA, we can multiply B with the columns of A and combine the resulting vectors.
35 Fact 2.4.3 (Fact 2.4.3) Matrix multiplication is noncommutative. AB≠BA, in general. However, at times it does happen that AB=BA; then we say that the matrices A and B commute.
36 Fact 2.4.4 The Entries of the Matrix Product (Fact 2.4.4) Let B be an n×p matrix and A a p×m matrix. The ijth entry of BA is the dot product of the ith row of B with the jth column of A Is the n×m matrix whose ijth entry is
38 Fact 2.4.5 Multiplying with the Inverse (Fact 2.4.5) For an invertible n×n matrix A,
39 Fact 2.4.6 Multiplying with the Identity Matrix (Fact 2.4.6) For an n×m matrix A,
40 Fact 2.4.7 Matrix Multiplication is Associative (Fact 2.4.7) Matrix multiplication is associative (AB)C=A(BC) We can simply write ABC for the product (AB)C=A(BC).
41 Fact 2.4.8 The Inverse of a Product of Matrices (Fact 2.4.8) If A and B are invertible n×n matrices, then BA is invertible as well, and (BA)-1=A-1B-1. Pay attention to the order of the matrices. (Order matters!)
42 Fact 2.4.9 A Criterion for Invertibility (Fact 2.4.9) Let A and B be two n×n matrices such that BA=In Then,A and B are both invertible,A-1=B and B-1=A, andAB=In.
43 Example 2(Example 2) Suppose A, B, and C are three n×n matrices and ABC=In. Show that B is invertible, and express B-1 in terms of A and C.
44 Fact 2.4.10 Distributive Property for Matrices (Fact ) If A and B are n×p matrices, and C and D are p×m matrices, then A(C+D)=AC+AD, and (A+B)C=AC+BC.
45 Fact(Fact ) If A is an n×p matrix, B is a p×m matrix, and k is a scaler, then (kA)B=A(kB)=k(AB).
46 Fact 2.4.12 Multiplying Partitioned Matrices (Fact ) Partitioned matrices can be multiplied as though the submatrices were scalars (i.e., using the formula in Fact 2.4.4): is the partitioned matrix whose ijth “entry” is the matrix provided that all the products AikBkj are defined.
48 Example 4(Example 4) Let A be a partitioned matrix where A11 is an n×n matrix, A22 is an m×m matrix, and A12 is an n×m matrix.For which choices of A11, A12, and A22 is A invertible?If A is invertible, what is A-1 (in terms of A11, A12, A22)?