Lecture 3 Eigenvalues and Eigenvectors

Similar documents
DIAGONALIZATION. In order to see the implications of this definition, let us consider the following example Example 1. Consider the matrix

Diagonalization of Matrix

Recall : Eigenvalues and Eigenvectors

Lecture 15, 16: Diagonalization

Announcements Monday, November 06

Remark By definition, an eigenvector must be a nonzero vector, but eigenvalue could be zero.

TMA Calculus 3. Lecture 21, April 3. Toke Meier Carlsen Norwegian University of Science and Technology Spring 2013

Eigenvalues and Eigenvectors

Math 3191 Applied Linear Algebra

Diagonalization. Hung-yi Lee

Chapter 5. Eigenvalues and Eigenvectors

ICS 6N Computational Linear Algebra Eigenvalues and Eigenvectors

Remark 1 By definition, an eigenvector must be a nonzero vector, but eigenvalue could be zero.

City Suburbs. : population distribution after m years

MAC Module 12 Eigenvalues and Eigenvectors. Learning Objectives. Upon completing this module, you should be able to:

MAC Module 12 Eigenvalues and Eigenvectors

Review Notes for Linear Algebra True or False Last Updated: January 25, 2010

MAT 1302B Mathematical Methods II

Study Guide for Linear Algebra Exam 2

DM554 Linear and Integer Programming. Lecture 9. Diagonalization. Marco Chiarandini

1. In this problem, if the statement is always true, circle T; otherwise, circle F.

and let s calculate the image of some vectors under the transformation T.

Econ Slides from Lecture 7

MATH 221, Spring Homework 10 Solutions

Announcements Monday, October 29

Eigenvalues and Eigenvectors

Eigenvalues, Eigenvectors, and Diagonalization

MATH 304 Linear Algebra Lecture 33: Bases of eigenvectors. Diagonalization.

Math Matrix Algebra

Calculating determinants for larger matrices

ft-uiowa-math2550 Assignment NOTRequiredJustHWformatOfQuizReviewForExam3part2 due 12/31/2014 at 07:10pm CST

Chapter 3. Determinants and Eigenvalues

2 Eigenvectors and Eigenvalues in abstract spaces.

Question: Given an n x n matrix A, how do we find its eigenvalues? Idea: Suppose c is an eigenvalue of A, then what is the determinant of A-cI?

(the matrix with b 1 and b 2 as columns). If x is a vector in R 2, then its coordinate vector [x] B relative to B satisfies the formula.

Matrices 2. Slide for MA1203 Business Mathematics II Week 4

Name: Final Exam MATH 3320

Linear Algebra II Lecture 13

1 Last time: least-squares problems

Diagonalization. MATH 322, Linear Algebra I. J. Robert Buchanan. Spring Department of Mathematics

What is on this week. 1 Vector spaces (continued) 1.1 Null space and Column Space of a matrix

Math 2331 Linear Algebra

Therefore, A and B have the same characteristic polynomial and hence, the same eigenvalues.

Linear Algebra. Rekha Santhanam. April 3, Johns Hopkins Univ. Rekha Santhanam (Johns Hopkins Univ.) Linear Algebra April 3, / 7

Definition (T -invariant subspace) Example. Example

Math 205, Summer I, Week 4b:

Math Final December 2006 C. Robinson

MATH 304 Linear Algebra Lecture 23: Diagonalization. Review for Test 2.

235 Final exam review questions

Jordan Canonical Form Homework Solutions

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

Digital Workbook for GRA 6035 Mathematics

Eigenvalues and Eigenvectors 7.2 Diagonalization

4. Linear transformations as a vector space 17

Dimension. Eigenvalue and eigenvector

Eigenvalues and Eigenvectors

Announcements Wednesday, November 7

AMS10 HW7 Solutions. All credit is given for effort. (-5 pts for any missing sections) Problem 1 (20 pts) Consider the following matrix 2 A =

Math 315: Linear Algebra Solutions to Assignment 7

Jordan Normal Form and Singular Decomposition

Lecture Notes: Eigenvalues and Eigenvectors. 1 Definitions. 2 Finding All Eigenvalues

BASIC ALGORITHMS IN LINEAR ALGEBRA. Matrices and Applications of Gaussian Elimination. A 2 x. A T m x. A 1 x A T 1. A m x

ICS 6N Computational Linear Algebra Symmetric Matrices and Orthogonal Diagonalization

Glossary of Linear Algebra Terms. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Quadratic forms. Here. Thus symmetric matrices are diagonalizable, and the diagonalization can be performed by means of an orthogonal matrix.

MATH 1553 PRACTICE MIDTERM 3 (VERSION B)

Eigenvalue and Eigenvector Homework

1. Let A = (a) 2 (b) 3 (c) 0 (d) 4 (e) 1

EE5120 Linear Algebra: Tutorial 6, July-Dec Covers sec 4.2, 5.1, 5.2 of GS

Summer Session Practice Final Exam

Announcements Monday, November 13

Lecture 12: Diagonalization

Properties of Linear Transformations from R n to R m

A = 3 1. We conclude that the algebraic multiplicity of the eigenvalues are both one, that is,

Linear Algebra Practice Final

ft-uiowa-math2550 Assignment OptionalFinalExamReviewMultChoiceMEDIUMlengthForm due 12/31/2014 at 10:36pm CST

MATH 1553 PRACTICE MIDTERM 3 (VERSION A)

Lecture 11: Finish Gaussian elimination and applications; intro to eigenvalues and eigenvectors (1)

(b) If a multiple of one row of A is added to another row to produce B then det(b) =det(a).

Linear Algebra II Lecture 22

PROBLEM SET. Problems on Eigenvalues and Diagonalization. Math 3351, Fall Oct. 20, 2010 ANSWERS

Schur s Triangularization Theorem. Math 422

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

Linear Algebra Primer

Lec 2: Mathematical Economics

Chapters 5 & 6: Theory Review: Solutions Math 308 F Spring 2015

Eigenvalues and Eigenvectors

c c c c c c c c c c a 3x3 matrix C= has a determinant determined by

Announcements Wednesday, November 7

Computationally, diagonal matrices are the easiest to work with. With this idea in mind, we introduce similarity:

Linear Algebra (MATH ) Spring 2011 Final Exam Practice Problem Solutions

Eigenvalues for Triangular Matrices. ENGI 7825: Linear Algebra Review Finding Eigenvalues and Diagonalization

Eigenvalues and Eigenvectors

Linear Algebra M1 - FIB. Contents: 5. Matrices, systems of linear equations and determinants 6. Vector space 7. Linear maps 8.

Lecture 11: Diagonalization

Chapter 5 Eigenvalues and Eigenvectors

Elementary Linear Algebra

Diagonalization. P. Danziger. u B = A 1. B u S.

Homework sheet 4: EIGENVALUES AND EIGENVECTORS. DIAGONALIZATION (with solutions) Year ? Why or why not? 6 9

MATH 20F: LINEAR ALGEBRA LECTURE B00 (T. KEMP)

Transcription:

Lecture 3 Eigenvalues and Eigenvectors Eivind Eriksen BI Norwegian School of Management Department of Economics September 10, 2010 Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 1 / 27

Dynamics of unemployment A motivating example: Unemployment Unemployment rates change over time as individuals gain or lose their employment. We consider a simple model, called a Markov model, that describes the dynamics of unemployment using transitional probabilities. In this model, we assume: If an individual is unemployed in a given week, the probability is p for this individual to be employed the following week, and 1 p for him or her to stay unemployed If an individual is employed in a given week, the probability is q for this individual to stay employed the following week, and 1 q for him or her to be unemployed Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 2 / 27

Dynamics of unemployment Markov model for unemployment Let x t be the ratio of individuals employed in week t, and let y t be the ratio of individuals unemployed in week t. Then the week-on-week changes are given by these equations: x t+1 = qx t + py t y t+1 = (1 q)x t + (1 p)y t Note that these equations are linear, and can be written in matrix form as v t+1 = Av t, where ( ) ( ) q p xt A =, v 1 q 1 p t = We call A the transition matrix and v t the state vector of the system. What is the long term state of the system? Are there any equilibrium states? If so, will these equilibrium states be reached? y t Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 3 / 27

Dynamics of unemployment Long term state of the system The state of the system after t weeks is given by: v 1 = Av 0 v 2 = Av 1 = A(Av 0 ) = A 2 v 0 v 3 = Av 2 = A(A 2 v 0 ) = A 3 v 0 v t = A t v 0 For white males in the US in 1966, the probabilities where found to be p = 0.136 and q = 0.998. If the unemployment rate is 5% at t = 0, expressed by x 0 = 0.95 and y 0 = 0.05, the situation after 100 weeks would be ( x100 y 100 ) = ( ) 100 0.998 0.136 0.002 0.864 ( ) 0.95 =? 0.05 We need eigenvalues and eigenvectors to compute A 100 efficiently. Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 4 / 27

Steady states Dynamics of unemployment Definition A steady state is a state vector v = ( x y ) with x, y 0 and x + y = 1 such that Av = v. The last condition is an equilibrium condition Example Find the steady state when A = ( 0.998 0.136 0.002 0.864 ). Solution The equation Av = v is a linear system, since it can be written as ( ) ( ) ( ) ( ) ( ) 0.998 0.136 x x 0.998 1 0.136 x = = 0.002 0.864 y y 0.002 0.864 1 y ( ) 0 0 Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 5 / 27

Steady states Dynamics of unemployment Solution (Continued) So we see that the system has one degree of freedom, and can be written as { x = 68y 0.002x + 0.136y = 0 y = free variable The only solution that satisfies x + y = 1 is therefore given by x = 68 69 = 0.986, y = 1 69 = 0.014 In other words, there is an equilibrium or steady state of the system in which the unemployment is 1.4%. The question if this steady state will be reached is more difficult, but can be solved using eigenvalues. Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 6 / 27

Diagonal matrices Diagonal matrices An n n matrix is diagonal if it has the form d 1 0... 0 0 d 2... 0 D =...... 0 0... d n It is easy to compute with diagonal matrices. Example Let D = ( 5 0 0 3 ). Compute D2, D 3, D n and D 1. Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 7 / 27

Diagonal matrices Computations with diagonal matrices Solution ( ) 2 ( ) ( ) D 2 5 0 5 2 0 25 0 = = 0 3 0 3 2 = 0 9 ( ) 3 ( ) ( ) D 3 5 0 5 3 0 125 0 = = 0 3 0 3 3 = 0 27 ( ) n ( ) D n 5 0 5 n 0 = = 0 3 0 3 n ( ) 1 ( ) ( ) D 1 5 0 5 1 0 1/5 0 = = 0 3 0 3 1 = 0 1/3 Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 8 / 27

Definitions: Eigenvalues and eigenvectors Let A be an n n matrix. Definition If there is a number λ R and an n-vector x 0 such that Ax = λx, then we say that λ is an eigenvalue for A, and x is called an eigenvector for A with eigenvalue λ. Note that eigenvalues are numbers while eigenvectors are vectors. Definition The set of all eigenvectors of A for a given eigenvalue λ is called an eigenspace, and it is written E λ (A). Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 9 / 27

Eigenvalues: An example Example Let A = ( ) ( ) ( ) 1 6 6 3, u =, v = 5 2 5 2 Are u, v eigenvectors for A? If so, what are the eigenvalues? Solution We compute Au = ( ) 24, Av = 20 ( ) 9 11 We see that Au = 4u, so u is an eigenvector with eigenvalue λ = 4. But Av λv, so v is not an eigenvector for A. Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 10 / 27

Computation of eigenvalues It is possible to write the vector equation Ax = λx as a linear system. Since λx = λi x (where I = I n is the identity matrix), we have that Ax = λx Ax λx = 0 (A λi )x = 0 This linear system has a non-trivial solution x 0 if and only if det(a λi ) = 0. Definition The characteristic equation of A is the equation det(a λi ) = 0 It is a polynomial equation of degree n in one variable λ. Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 11 / 27

Computation of eigenvalues Proposition The eigenvalues of A are the solutions of the characteristic equation det(a λi ) = 0. Idea of proof: The eigenvalues are the numbers λ for which the equation Ax = λx (A λi )x = 0 has a non-trivial solution. Example Find all the eigenvalues of the matrix ( ) 2 3 A = 3 6 Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 12 / 27

Example: Computation of eigenvalues Solution To find the eigenvalues, we must write down and solve the characteristic equation. We first find A λi : A λi = ( ) 2 3 3 6 ( ) ( ) λ 0 2 λ 3 = 0 λ 3 6 λ Then the characteristic equation becomes 2 λ 3 3 6 λ = (2 λ)( 6 λ) 3 3 = λ2 + 4λ 21 = 0 The solutions are λ = 7 and λ = 3, and these are the eigenvalues of A. Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 13 / 27

Computation of eigenvectors Prodedure Find the eigenvalues of A, if this is not already known. For each eigenvalue λ, solve the linear system (A λi )x = 0. The set of all solutions of this linear system is the eigenspace E λ (A) of all eigenvectors of A with eigenvalue λ. The solutions of the linear system (A λi )x = 0 can be found using Gaussian elimination, for instance. Example Find all eigenvectors for the matrix ( ) 2 3 A = 3 6 Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 14 / 27

Example: Computation of eigenvectors Solution We know that the eigenvalues are λ = 7 and λ = 3, so there are two eigenspaces E 7 and E 3 of eigenvectors. Let us compute E 7 first. We compute the coefficient matrix A λi and reduce it to echelon form: A ( 7)I = ( ) 2 ( 7) 3 3 6 ( 7) = ( ) 9 3 3 1 ( ) 1 1/3 0 0 Hence x 2 = s is a free variable, and x 1 = 1 3 x 2 = 1 3s. We may therefore write all eigenvectors for λ = 7 in parametric vector form as: E 7 (A) : ( x1 x 2 ) ( 1 = 3 s ) = s s ( 1 3 1 ) for all s R Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 15 / 27

Example: Computation of eigenvectors Solution Let us compute the other eigenspace E 3 of eigenvector with eigenvalue λ = 3. We compute the coefficient matrix A λi and reduce it to echelon form: A 3I = ( ) ( ) 2 3 3 1 3 = 3 6 3 3 9 x 2 ( ) 1 3 0 0 Hence x 2 = s is a free variable, and x 1 = 3x 2 = 3s. We may therefore write all eigenvectors for λ = 3 in parametric vector form as: ( ) ( ) ( ) x1 3s 3 E 3 (A) : = = s for all s R s 1 Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 16 / 27

Eigenspaces When λ is en eigenvalue for A, the linear system (A λi )x = 0 should have non-trivial solutions, and therefore at least one degree of freedom. How to write eigenspaces It is convenient to describe an eigenspace E λ, i.e. the set of solutions of (A λi )x = 0, as the set of vectors on a given parametric vector form. This parametric vector form is obtained by solving for the basic variables and expressing each of them in terms of the free variables, for instance using a reduced echelon form. If the linear system has m degrees of freedom, then the eigenspace is the set of all linear combinations of m eigenvectors. These eigenvectors are linearly independent. Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 17 / 27

Example: How to write eigenspaces Example We want to write down the eigenspace of a matrix A with eigenvalue λ. We first find the reduced echelon form of A λi. Let s say we find this matrix: 1 2 0 4 0 0 1 3 0 0 0 0 0 0 0 0 Then we see that x 2 = s and x 4 = t are free variables and that the general solution can be found when we solve for x 1 and x 3 and express each of them in terms of x 2 = s and x 4 = t: Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 18 / 27

Linearly independent eigenvectors Example (Continued) x 1 x 2 x 3 = x 4 2x 2 + 4x 4 free 3x 4 free = 2s + 4t s 3t t = s 2 1 0 0 + t Hence the correpsponding eigenspace is all linear combinations of the two linearly independent vectors v 1 = 2 1 0 0, v 2 = 4 0 3 1 4 0 3 1 Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 19 / 27

Diagonalization Eigenvalues and eigenvectors We have seen that it is easier to compute with diagonal matrices. Most matrices are not diagonal, but sometimes a non-diagonal matrix can be diagonalized: Definition An n n matrix A is diagonalizable if there exists a diagonal matrix D and an invertible matrix P such that A = PDP 1. Note that the equation A = PDP 1 can also be re-written as A = PDP 1 D = P 1 AP AP = PD The last equation means that D consists of eigenvalues for A (on the diagonal) and that P consists of eigenvectors for A (as columns). Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 20 / 27

Criterion for diagonalization Let A be an n n matrix, let λ 1, λ 2,..., λ k be the k distinct eigenvalues of A, and let m i 1 be the degrees of freedom of the linear system (A λ i I )x = 0 for i = 1, 2,..., k. Proposition The n n matrix A is diagonalizable if and only if m 1 + m 2 + + m k = n. In this case, a diagonalization of A can be chosen in the following way: 1 D is a diagonal matrix with the eigenvalues λ 1, λ 2,..., λ k on the diagonal (with λ i repeated m i times) 2 P is a matrix consisting of eigenvectors as columns (with m i linearly independent eigenvector for each eigenvalue λ i ) Idea of proof: When we form D and P from eigenvalues and eigenvectors, we know that AP = PD, so the question is whether we have enough eigenvectors; P is invertible if and only if it consists of n linearly independent eigenvectors. Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 21 / 27

Which matrices are diagonalizable? Remarks An n n matrix is diagonalizable if and only if it has n linearly independent eigenvectors. Example If A has n distinct eigenvalues, then it is diagonalizable If A is symmetric, then it is diagonalizable Diagonalize the following matrix, if possible: ( ) 2 3 A = 3 6 Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 22 / 27

Example: Diagonalization Solution We have computed the eigenvalues and eigenvector of the matrix A earlier. Since λ 1 = 7 and λ 2 = 3 are the eigenvalues, we choose ( ) 7 0 D = 0 3 Since there was one degree of freedom for each of the eigenvalues, we have m 1 + m 2 = 1 + 1 = 2, and A is diagonalizable. To find P, we use the eigenspaces we found earlier: E 7 : x = s ( 1 3 1 ), E 3 : x = s ( ) 3 1 ( ) 1 P = 3 3 1 1 Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 23 / 27

Application: Computation of powers Example Compute A 1000 when A = ( ) 2 3 3 6 Solution We have found a diagonalization of A earlier, with ( ) ( ) 7 0 1 D =, P = 3 3, P 1 = 1 0 3 1 1 10 ( ) 3 9 3 1 where P 1 has been computed from P. We use this to find a formula for the power A 1000 : A 1000 = (PDP 1 ) 1000 = (PDP 1 )(PDP 1 ) (PDP 1 ) = PD 1000 P 1 Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 24 / 27

Application: Computation of powers Solution (Continued) From this formula we compute that ( ) ( ) ( ) A 1000 1 = 3 3 ( 7) 1000 0 1 3 9 1 1 0 3 1000 10 3 1 ( 7 1000 + 9 3 1000 3 7 1000 + 3 3 1000 ) = 1 10 3 7 1000 + 3 3 1000 9 7 1000 + 3 1000 Problem Compute the unemployment rate after 100 weeks in the example from slide 4. Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 25 / 27

Example: Diagonalization Example Diagonalize the following matrix, if possible: 1 2 4 A = 0 1 6 0 0 3 Solution Since the matrix is upper triangular, the eigenvalues are the elements on the diagonal; λ 1 = 1 (double root) and λ 2 = 3. For λ = 1, and get 0 2 4 0 1 0 A 1I = 0 0 6 0 0 1 0 0 2 0 0 0 and hence m 1 = 1 degrees of freedom. Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 26 / 27

Example: Diagonalization Solution (Continued) For λ = 3, we get 2 2 4 1 0 5 A 3I = 0 2 6 0 1 3 0 0 0 0 0 0 and hence m 2 = 1 degrees of freedom. Since m 1 + m 2 = 2 < n = 3, A is not diagonalizable. We see that it is the eigenvalue λ = 1 that is the problem in this example. Even though λ = 1 appears twice as an eigenvalue (double root), there is only one degree of freedom and therefore not enough linearly independent eigenvectors. Eivind Eriksen (BI Dept of Economics) Lecture 3 Eigenvalues and Eigenvectors September 10, 2010 27 / 27