Maths for Signals and Systems Linear Algebra in Engineering

Similar documents
Maths for Signals and Systems Linear Algebra in Engineering

Maths for Signals and Systems Linear Algebra in Engineering

Eigenvalues and Eigenvectors

Lecture 15, 16: Diagonalization

Math 2331 Linear Algebra

Math 3191 Applied Linear Algebra

Conceptual Questions for Review

Study Guide for Linear Algebra Exam 2

4. Linear transformations as a vector space 17

q n. Q T Q = I. Projections Least Squares best fit solution to Ax = b. Gram-Schmidt process for getting an orthonormal basis from any basis.

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

MITOCW ocw f99-lec23_300k

Linear Algebra Exercises

MATH 423 Linear Algebra II Lecture 33: Diagonalization of normal operators.

A Brief Outline of Math 355

Eigenvalues and Eigenvectors

Maths for Signals and Systems Linear Algebra in Engineering

MIT Final Exam Solutions, Spring 2017

Recall : Eigenvalues and Eigenvectors

Maths for Signals and Systems Linear Algebra for Engineering Applications

Eigenvalue and Eigenvector Homework

Name Solutions Linear Algebra; Test 3. Throughout the test simplify all answers except where stated otherwise.

Diagonalization. Hung-yi Lee

Matrices and Deformation

MATH 583A REVIEW SESSION #1

Math 108b: Notes on the Spectral Theorem

HW2 - Due 01/30. Each answer must be mathematically justified. Don t forget your name.

GQE ALGEBRA PROBLEMS

Math 520 Exam 2 Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

6 EIGENVALUES AND EIGENVECTORS

Eigenvalues and Eigenvectors

Linear Algebra II Lecture 22

Linear Algebra, part 2 Eigenvalues, eigenvectors and least squares solutions

18.06 Problem Set 8 - Solutions Due Wednesday, 14 November 2007 at 4 pm in

Linear Algebra Primer

Linear Algebra Lecture Notes

HOMEWORK PROBLEMS FROM STRANG S LINEAR ALGEBRA AND ITS APPLICATIONS (4TH EDITION)

Properties of Linear Transformations from R n to R m

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

Linear Algebra II Lecture 13

Extra Problems for Math 2050 Linear Algebra I

MAT 1302B Mathematical Methods II

Problem Set (T) If A is an m n matrix, B is an n p matrix and D is a p s matrix, then show

Reduction to the associated homogeneous system via a particular solution

Announcements Wednesday, November 01

CS 143 Linear Algebra Review

Lecture Notes 6: Dynamic Equations Part C: Linear Difference Equation Systems

Designing Information Devices and Systems II

MATH 423 Linear Algebra II Lecture 20: Geometry of linear transformations. Eigenvalues and eigenvectors. Characteristic polynomial.

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

Math Matrix Algebra

October 4, 2017 EIGENVALUES AND EIGENVECTORS. APPLICATIONS

Summer Session Practice Final Exam

Eigenvalues and Eigenvectors

Jordan Canonical Form Homework Solutions

Math 102, Winter Final Exam Review. Chapter 1. Matrices and Gaussian Elimination

(a) If A is a 3 by 4 matrix, what does this tell us about its nullspace? Solution: dim N(A) 1, since rank(a) 3. Ax =

Math 489AB Exercises for Chapter 2 Fall Section 2.3

MTH 102: Linear Algebra Department of Mathematics and Statistics Indian Institute of Technology - Kanpur. Problem Set

Math 308 Practice Final Exam Page and vector y =

Homework For each of the following matrices, find the minimal polynomial and determine whether the matrix is diagonalizable.

Review problems for MA 54, Fall 2004.

Eigenvalues and Eigenvectors

September 26, 2017 EIGENVALUES AND EIGENVECTORS. APPLICATIONS

Math 2B Spring 13 Final Exam Name Write all responses on separate paper. Show your work for credit.

Math 113 Homework 5. Bowei Liu, Chao Li. Fall 2013

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

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

Massachusetts Institute of Technology Department of Economics Statistics. Lecture Notes on Matrix Algebra

Diagonalization of Matrix

Calculating determinants for larger matrices

MATH 310, REVIEW SHEET 2

Linear Algebra - Part II

1. Select the unique answer (choice) for each problem. Write only the answer.


Definition (T -invariant subspace) Example. Example

MATH 221, Spring Homework 10 Solutions

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

CS 246 Review of Linear Algebra 01/17/19

Problems for M 11/2: A =

21 Linear State-Space Representations

Eigenpairs and Diagonalizability Math 401, Spring 2010, Professor David Levermore

Systems of Linear ODEs

spring, math 204 (mitchell) list of theorems 1 Linear Systems Linear Transformations Matrix Algebra

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

Math Camp Notes: Linear Algebra II

[Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty.]

Linear Algebra- Final Exam Review

Lec 2: Mathematical Economics

Section 8.2 : Homogeneous Linear Systems

Math Linear Algebra Final Exam Review Sheet

Lecture 3 Eigenvalues and Eigenvectors

Final Exam, Linear Algebra, Fall, 2003, W. Stephen Wilson

MATH 310, REVIEW SHEET

Symmetric and anti symmetric matrices

MATH 1553-C MIDTERM EXAMINATION 3

Matrix Solutions to Linear Systems of ODEs

Eigenvalues and Eigenvectors

Math Homework 8 (selected problems)

MATH 31 - ADDITIONAL PRACTICE PROBLEMS FOR FINAL

Transcription:

Maths for Signals and Systems Linear Algebra in Engineering Lectures 13-14, Tuesday 11 th November 2014 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL PROCESSING IMPERIAL COLLEGE LONDON

Eigenvectors and eigenvalues Consider a matrix A and a vector x. The operation Ax produces a vector y at some direction. I am interested in vectors y which lie in the same direction as x. In that case I have Ax = λx. When the above relationship holds, x is called an eigenvector and λ is called an eigenvalue of matrix A. If A is singular then λ = 0 is an eigenvalue. Problem: How do we find the eigenvectors and eigenvalues of a matrix?

Eigenvectors and eigenvalues of a projection matrix Problem: What are the eigenvectors x and eigenvalues λ of a projection matrix P? In the figure, consider the matrix P which projects vector b onto vector p. Question: Is b an eigenvector of P? Answer: NO, because b and Pb lie in different directions! Question: What vectors are eigenvectors Answer: of P? Vectors x which lie on the projection plane already! In that case Px = x and therefore x is an eigenvector with eigenvalue 1.

Eigenvectors and eigenvalues of a projection matrix (cont.) The eigenvectors of P are vectors x which lie on the projection plane already! In that case Px = x and therefore x is an eigenvector with eigenvalue 1. We can find 2 independent eigenvectors of P which lie on the projection plane. Problem: In the 3D space we can find 3 independent vectors. Can you find a third eigenvector of P that is perpendicular to the eigenvectors of P that lie on the projection plane? Answer: YES! Any vector e perpendicular to the plane. In that case Pe = 0e = 0. The eigenvalues of P are λ = 0 and λ = 1.

Eigenvectors and eigenvalues of a permutation matrix Consider the permutation matrix A = 0 1 1 0. Problem: Can you give an eigenvector of the above matrix? Or can you think of a vector that if permuted is still a multiple of itself? Answer: YES! It is the vector 1 1 and the corresponding eigenvalue is λ = 1. And furthermore, the vector 1 1 n n matrices will have n eigenvalues. It is not so easy to find them! with eigenvalue λ = 1. But there is an amazing fact! The sum of the eigenvalues, called the trace of a matrix, equals the sum of the diagonal elements of the matrix. Therefore, in the previous example, once I found an eigenvalue λ = 1, I should suspect that there is another eigenvalue λ = 1.

Problem: Solve Ax = λx Ax = λx Ax λx = 0 (0 is the zero vector). A λi x = 0 In order for the above set of equations to have a non-zero solution, the matrix (A λi) must be singular. Therefore, det A λi = 0. I now have an equation for λ. It is called the characteristic equation, or the eigenvalue equation. The idea then is to find λs first. I might have repeated λs. These mean trouble but I will deal with this later! After I find λ, I can find x from A λi x = 0. Basically, I will be looking for the null space of A λi.

Solve Ax = λx. An example Consider the matrix A = 3 1. A symmetric matrix has real eigenvalues! 1 3 Eigenvectors of a symmetric matrix can be chosen to be orthogonal. det A λi = 3 λ 2 1 = 0 3 λ = ±1 λ = 3 ± 1 λ 1 = 4, λ 2 = 2. Or det A λi 8 = det (A) = λ 1 λ 2. = λ 2 6λ + 8 = 0. Note that 6 = λ 1 + λ 2 and Find the eigenvector for λ 1 = 4. A 4I = 1 1 1 1 1 1 x 1 1 y = 0 x = y 0 Find the eigenvector for λ 2 = 2. A 2I = 1 1 1 1 1 1 x 1 1 y = 0 x = y 0 There are entire lines of eigenvectors, not single eigenvectors!

Compare the two problems. Consider the matrix A = 3 1 1 3 with eigenvectors x x eigenvalues λ 1 = 4 and λ 2 = 2. and x x and Consider the matrix B = 0 1 1 0 with eigenvectors x x eigenvalues λ 1 = 1 and λ 2 = 1. and x x and We observe that A = B + 3I. The eigenvalues of A are obtained from the eigenvalues of B if we increase them by 3! The eigenvectors of A and B are the same!

Generalization of the above observation Consider the matrix A = B + ci. Consider an eigenvector x of B with eigenvalue λ. Then: Bx = λx and therefore, Ax = B + ci x = Bx + cix = Bx + cx = λx + cx = λ + c x A has the same eigenvectors with B with eigenvalues λ + c. BUT: There isn t any property that enables us to find the eigenvalues of A + B and AB.

Example Mathematics for Signals and Systems Take a matrix that rotates every vector by 90 o. This is Q = cos (90) sin (90) sin (90) cos (90) λ 1 + λ 2 = 0 and det Q = λ 1 λ 2 = 1 = 0 1 1 0 What vector can be parallel to itself after rotation? λ 1 det Q λi = det 1 λ = λ2 + 1 = 0 λ = ±i In that case we have an anti-symmetric matrix with Q T = Q 1 = Q. The eigenvalues come in complex conjugate pairs.

Example Mathematics for Signals and Systems Consider A = 3 1 0 3 λ 1 + λ 2 = 6 and det (λ 1 λ 2 ) = 9 det A λi = det 3 λ 1 0 3 λ = (3 λ)2 = 0 λ = 3 The eigenvalues of a triangular matrix are the values of the diagonal. In that case we have 3 1 x 0 3 y = 3x 3y y = 0 and x can be any number. In that case of repeated eigenvalues, we don t have 2 independent eigenvectors!

Matrix diagonalization for the case of independent eigenvectors Suppose we have n independent eigenvectors of a matrix A. We call them x i. We put them in the columns of a matrix S. We form the matrix AS = A x 1 x 2 x n = λ1 x 1 λ 2 x 2 λ n x n = λ 1 0 0 x 1 x 2 x 0 λ 2 0 n = SΛ AS = SΛ 0 0 λ n S 1 AS = Λ or A = SΛS 1

Matrix diagonalization: Eigenvalues of A k If Ax = λx A 2 x = λax A 2 x = λ 2 x. Therefore, the eigenvalues of A 2 are λ 2. The eigenvectors of A 2 remain the same. A 2 = SΛS 1 SΛS 1 = SΛ 2 S 1 A k = SΛ k S 1 lim A k = 0 if the eigenvalues of A have the property λ i < 1 A matrix has n independent eigenvectors and therefore is diagonalizable if all the eigenvalues are different (non repeated eigenvalues exist). If I have repeated eigenvalues I may, or may not have independent eigenvectors (consider the identity matrix!) Find the eigenvalues of A = 2 1 0 2.

Application at last! A first order system which evolves with time The system follows an equation of the form u k+1 = Au k. u k is the vector which consists of the system parameters which evolve with time. The eigenvalues of A characterize fully the behavior of the system. I start with a given vector u 0. u 1 = Au 0, u 2 = A 2 u 0 and in general u k = A k u 0 To really solve the above, I write u 0 = c 1 x 1 +c 2 x 2 + + c n x n where x i are the eigenvectors of matrix A. Au 0 = c 1 Ax 1 +c 2 Ax 2 + + c n Ax n = c 1 λ 1 x 1 +c 2 λ 2 x 2 + + c n λ n x n A 100 u 0 = c 1 λ 1 100 x 1 +c 2 λ 2 100 x 2 + + c n λ n 100 x n =SΛ 100 c c is a column vector that contains the coefficients c i.

Fibonacci example. Convert a second order scalar problem into a first order system I will take two numbers which I call F 0 = 0 and F 1 = 1. The Fibonacci sequence of numbers is given by the two initial numbers given above and the relationship F k = F k 1 +F k 2. 0,1,1,2,3,5,8,13 and so on. How can I get a formula for the 100 th Fibonacci number? Here is the trick: I define a vector u k = u k+1 = F k+2 F k+1 = 1 1 1 0 F k+1 F k F k+1 F k and an extra equation F k+1 = F k+1 = Au k

Fibonacci example. Convert a second order scalar problem into a first order system The eigenvalues of A are obtained from det 1 λ 1 1 λ = 1 λ λ 1 = 0 λ2 λ 1 = 0 Observe the analogy between λ 2 λ 1 = 0 and F k F k 1 F k 2 = 0. λ 1,2 = 1± 5. Eigenvalues add up to 1. The matrix A is diagonalizable. 2 How can I get a formula for the 100 th Fibonacci number? F 100 c 1 ( 1+ 5 2 )100. The term c 2 ( 1 5 2 )100 becomes negligible. The eigenvectors are x 1 = λ 1 1, and x 2 = λ 2 1. u 0 = F 1 F 2 = 1 0 = c 1 λ 1 1 + c 2 λ 2 1. From this equation we find c 1 and c 2.

More applications: First order differential equations du dt = Au Problem: Solve the system of differential equations: du 1 dt = u 1 + 2u 2 du 2 dt = u 1 2u 2 We set u(0) = 1 1 2 and we see that the system s matrix is A = 0 1 2. The matrix A is singular. One of the eigenvalues is zero. Therefore, the eigenvalues are λ 1 = 0, λ 2 = 3! The solution of the above system depends exclusively on the eigenvalues of A. The eigenvectors are x 1 = 2 1 and x 2 = 1 1.

First order differential equations du dt = Au Solution: u t = c 1 e λ 1t x 1 + c 2 e λ 2t x 2 Problem: Verify the above by plugging-in e λ it x i to the equation du dt = Au. Let s find u t = c 1 e 0t 2 1 + c 2e 3t 1 1 = c 1 c 1, c 2 comes from the initial conditions. c 1 2 1 + c 2 1 1 = 1 0 c 1 = 1 3, c 2 = 1/3. 2 1 + c 2e 3t 1 1 Steady state of the system is u = 2/3 1/3. Stability is achieved if the real part of the eigenvalues is negative. Note that the complex eigenvalues appear in conjugate pairs.

First order differential equations du dt = Au 2 For t = 0, the relationship u t = c 1 1 + c 2e 3t 1 1 becomes 2 u 0 = c 1 1 + c 1 2 1 The above can be written in matrix form as: 2 1 c 1 1 1 c = 1 Sc = u(0) 2 0 c 1 = 1 3, c 2 = 1/3.

Stability: First order differential equations du dt = Au Stability is achieved if the real part of the eigenvalues is negative. We do have a steady state if at least one eigenvalue is 0 and the rest of the eigenvalues have negative real part. We blow up if at least one eigenvalue has a positive real part! For stability the trace of the system s matrix must be negative. A negative trace, though, does not guarantee stability (why?) A negative trace and positive determinant does guarantee stability! (I am sure you know why!)

Back to the equation du dt = Au I set u = Sv and therefore the differential equation becomes: S dv dv = ASv = dt dt S 1 ASv = Λv This is an amazing result!!! I start from a system of equations du dt = Au which are coupled (or dependent or correlated ) and I end up with a set of equations which are decoupled and easier to solve!!! I am hoping to get at some point: v t = e Λt v(0) and u t = Se Λt S 1 u(0) with e At = Se Λt S 1 Question: What is the exponential of a matrix?

Matrix exponentials e At Taylor series e At = I + At + (At)2 2 Note that e x = x n n! Furthermore, note that 1 + (At)3 6 + + At n n! + 0. The exponential series always converges! 1 x = 0 xn. For matrices we have (I At) 1 = I + At + (At) 2 +(At) 3 + This sum converges if λ(at) < 1. The function that I am chiefly interested in is e At and I would like to connect it to S and Λ. e At = I + SΛS 1 t + SΛ2 S 1 t 2 2 + SΛ3 S 1 t 3 6 + + SΛn S 1 t n n! + = Se Λt S 1 Question: What assumption is built-in to this formula, that is not built to the original formula in the first line? Answer: The assumption is that A must be diagonalizable.

Diagonal matrix exponentials e Λt The exponential e Λt of a diagonal matrix As we already showed Λ = e Λt = λ 1 0 0 0 0 λ n e λ 1t 0 0 λ 2 0 is 0 0 e λ 2t 0 0 0 e λ nt lim t eλt = 0 if Re λ i < 0, i lim t Λt = 0 if λ i < 0, i

Second order differential equations How do I change the second order differential equation y + by + ky = 0 to two first order ones? I define u = y y and therefore, u = y b k y = 1 0 u = b k 1 0 u y y

Higher order differential equations How do I change the n th order differential equation y (n) + b 1 y (n 1) + + b n 1 y = 0 to n first order ones? I define u = y (n 1) y y and therefore, u = y (n) y (n 1) y y = b 1 b 2 b n 2 b n 1 1 0 0 0 0 0 0 0 0 0 0 1 0 u