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

Similar documents
Eigenvalues and eigenvectors

Linear Algebra, part 3 QR and SVD

Review of Linear Algebra

Conceptual Questions for Review

Computational Methods CMSC/AMSC/MAPL 460. Eigenvalues and Eigenvectors. Ramani Duraiswami, Dept. of Computer Science

Numerical Methods I: Eigenvalues and eigenvectors

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2.

EIGENVALUES AND EIGENVECTORS 3

Linear Algebra Review (Course Notes for Math 308H - Spring 2016)

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

1. What is the determinant of the following matrix? a 1 a 2 4a 3 2a 2 b 1 b 2 4b 3 2b c 1. = 4, then det

AMS526: Numerical Analysis I (Numerical Linear Algebra)

systems of linear di erential If the homogeneous linear di erential system is diagonalizable,

Knowledge Discovery and Data Mining 1 (VO) ( )

Linear Algebra, part 3. Going back to least squares. Mathematical Models, Analysis and Simulation = 0. a T 1 e. a T n e. Anna-Karin Tornberg

Linear Algebra Practice Problems

Eigenvalues and Eigenvectors

18.06SC Final Exam Solutions

Tutorials in Optimization. Richard Socher

Lecture 10 - Eigenvalues problem

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

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

Review problems for MA 54, Fall 2004.

Eigenvalues and Eigenvectors

Chapter 2 Notes, Linear Algebra 5e Lay

Introduction to Matrices

Chapter 3 Transformations

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

Linear Algebra Review. Vectors

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

Calculating determinants for larger matrices

Linear Algebra: Characteristic Value Problem

Mobile Robotics 1. A Compact Course on Linear Algebra. Giorgio Grisetti

Linear Algebra. Shan-Hung Wu. Department of Computer Science, National Tsing Hua University, Taiwan. Large-Scale ML, Fall 2016

A Brief Outline of Math 355

LU Factorization. A m x n matrix A admits an LU factorization if it can be written in the form of A = LU

[3] (b) Find a reduced row-echelon matrix row-equivalent to ,1 2 2

Math Matrix Algebra

Extra Problems for Math 2050 Linear Algebra I

MAT Linear Algebra Collection of sample exams

vibrations, light transmission, tuning guitar, design buildings and bridges, washing machine, Partial differential problems, water flow,...

MATH 1120 (LINEAR ALGEBRA 1), FINAL EXAM FALL 2011 SOLUTIONS TO PRACTICE VERSION

2. Every linear system with the same number of equations as unknowns has a unique solution.

Math 310 Final Exam Solutions

1. Foundations of Numerics from Advanced Mathematics. Linear Algebra

Lecture 6 Positive Definite Matrices

Eigenvalues and Eigenvectors

Linear algebra and applications to graphs Part 1

Linear Algebra: Matrix Eigenvalue Problems

Introduction to Matrix Algebra

MATH 221, Spring Homework 10 Solutions

a11 a A = : a 21 a 22

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

10-701/ Recitation : Linear Algebra Review (based on notes written by Jing Xiang)

Econ Slides from Lecture 7

Exercise Sheet 1.

EE263: Introduction to Linear Dynamical Systems Review Session 5

University of Colorado at Denver Mathematics Department Applied Linear Algebra Preliminary Exam With Solutions 16 January 2009, 10:00 am 2:00 pm

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

CS 246 Review of Linear Algebra 01/17/19

LINEAR ALGEBRA 1, 2012-I PARTIAL EXAM 3 SOLUTIONS TO PRACTICE PROBLEMS

22.3. Repeated Eigenvalues and Symmetric Matrices. Introduction. Prerequisites. Learning Outcomes

Study Guide for Linear Algebra Exam 2

1. Let m 1 and n 1 be two natural numbers such that m > n. Which of the following is/are true?

Eigenvalues and Eigenvectors

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

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

Chap 3. Linear Algebra

Linear Algebra Primer

1. General Vector Spaces

Linear Algebra in Actuarial Science: Slides to the lecture

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

Quantum Computing Lecture 2. Review of Linear Algebra

2. Linear algebra. matrices and vectors. linear equations. range and nullspace of matrices. function of vectors, gradient and Hessian

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

Math Linear Algebra Final Exam Review Sheet

MATH 23a, FALL 2002 THEORETICAL LINEAR ALGEBRA AND MULTIVARIABLE CALCULUS Solutions to Final Exam (in-class portion) January 22, 2003

MIT Final Exam Solutions, Spring 2017

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.

Math 18, Linear Algebra, Lecture C00, Spring 2017 Review and Practice Problems for Final Exam

Linear Algebra (Review) Volker Tresp 2018

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

There are six more problems on the next two pages

Math 3191 Applied Linear Algebra

Extreme Values and Positive/ Negative Definite Matrix Conditions

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

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Preliminary/Qualifying Exam in Numerical Analysis (Math 502a) Spring 2012

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

Chapter 7. Canonical Forms. 7.1 Eigenvalues and Eigenvectors

Multiple Degree of Freedom Systems. The Millennium bridge required many degrees of freedom to model and design with.

Cheat Sheet for MATH461

Introduction to Linear Algebra. Tyrone L. Vincent

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

GRE Subject test preparation Spring 2016 Topic: Abstract Algebra, Linear Algebra, Number Theory.

Lecture 6. Numerical methods. Approximation of functions

Lecture notes on Quantum Computing. Chapter 1 Mathematical Background

Linear Algebra Primer

4. Linear transformations as a vector space 17

Algebra C Numerical Linear Algebra Sample Exam Problems

Transcription:

Linear Algebra, part 2 Eigenvalues, eigenvectors and least squares solutions Anna-Karin Tornberg Mathematical Models, Analysis and Simulation Fall semester, 2013 Main problem of linear algebra 2: Given an n n matrix A, find eigenvector(s) and eigenvalue(s) x and such that Ax = x. Rewrite the equation as (A I)x = 0. This equation can only have a non-trivial solution if the matrix (A I) is singular. The number is an eigenvalue of A if and only if det(a I) = 0. det(a I) is a polynomial in of degree n. Will have n roots, 1,..., n. Can have multiplicity larger than one, and can have complex eigenvalues, even if A is real. Can compute eigenvalues by hand using this approach for small systems. Other approaches needed for computer algorithms for large systems. Not the focus here.

Facts about eigenvalues The product of the n eigenvalues equals the determinant of A: det(a) =( 1 )...( n ). The sum of the eigenvalues equals the trace (sum of diagonal entries) of A: 1 + 2 + + n = a 11 + a 22 + + a nn. If A is triangular, then its eigenvalues lie along the main diagonal. The eigenvalues of A 2 are 2 1,..., 2 n. The eigenvalues of A 1 are 1/ 1,...,1/ n. Eigenvectors of A are also eigenvectors of A 2 and A 1 (and any function of A). Eigenvalues of A + B and AB are in general not known from eigenvalues of A and B, exceptforthespecialcasewhena and B commute, i.e. when AB = BA. Linear di erential equations with constant coe cients The simple equation dy dt = ay has the general solution y(t) =Ce at. (Initial condition det. C). Consider a system (u is n 1 vector, A is n n): du dt = Au. Let x i be an eigenvector of A with corresponding eigenvalue define u i = e i t x i.wethenhave i, and Au i = A(e i t x i )=e i t Ax i = e i t ix i = i u i which is equal to du i dt = d dt (e i t x i )= i e i t x i = i u i. The general solution is u(t) =C 1 e 1t x 1 + + C n e nt x n

Growth and decay For the scalar equation, solution u(0)e at decays if a < 0, grows if a > 0. If a is complex, the real part of a determines the growth or decay. For the system, the that will decay. is determine which modes that will grow and which Example 1 - A 2 2 system with real eigenvalues. Example 2 - Rigid body rotation: complex eigenvalues. Diagonalization of a matrix Suppose that the n n matrix A has n linearly independent eigenvectors x 1,...,x n.formamatrixs, whose columns are the eigenvectors of A. Then, S 1 AS = is diagonal. The diagonal entries of are the eigenvalues 1,..., n. If A has no repeated eigenvalues, i.e. all is aredistinct,thena has n linearly independent eigenvectors, and A is diagonalizable. If one or more eigenvalues of A have multiplicity larger than one A might have or might not have a full set of linearly independent eigenvectors. If A is symmetric, all eigenvalues are real and it has a full set of orthonormal eigenvectors. Denote by Q the orthogonal matrix whose columns are eigenvectors of A. (Defined on p 54 in Strang). We have that Q 1 = Q T and Q T AQ =. [WORKSHEET]

Vector and Matrix norms, Quadratic forms Euclidean norm of x: kxk 2 = P n k=1 x k 2 1/2 = p x T x. 2-norm of matrix defined as : kak 2 =max kaxk 2 kxk 2 =max Consider the Rayleigh quotient: R K (x) =(x T Kx)/(x T x). q x T Ax x T x. Di erentiating R K (x) withrespecttox k (DO IT!), can show that = 0, k =1,...,n if and only if Kx = R K (x)x. @R @x k Theorem: If Kx = x,thenx is a stationary point of R K (x) and = R K (x ). Hence, the Rayleigh quotient is maximized by the largest eigenvalue of K. Denote the largest eigenvalue of A T A by M. We get kak 2 = p M. This is well defined, since A T A is SPD and all eigenvalues are positive. Positive definite matrices and minimum principles A symmetric matrix A is positive definite (SPD, introduced last time) if x T Ax > 0 for all non-zeros vectors x. We know that a matrix is SPD if it is symmetric and all pivots are positive, or equivalently, that all eigenvalues are positive. The solution x to Ax = b can also be viewed as a solution to the following minimization problem: If A is positive definite, then the quadratic P(x) = 1 2 xt Ax is minimized at the point where Ax = b. The minimum value is P(A 1 b)= 1 2 bt A 1 b. x T b Proof: Example by calculus

Least squares solution Consider again Ax = b, wherea is m n with m > n. (x is n 1, b is m 1. Example: Find the line y = c + dt that passes through four given points (t 1, y 1 ),...(t 4, y 4 ). If the four points all fall on a straight line, this overdetermined system has a solution. Otherwise, we want to find the straight line that best fit the data points. Normal equations The vector x that minimizes kax bk 2 is the solution to the normal equations A T Ax = A T b. This vector x =(A T A) 1 A T b is the least squares solution to Ax = b. Proof: kax bk 2 =(Ax b) T (Ax b) =((Ax) T b T )(Ax b) = = x T A T Ax x T A T b b T Ax + b T b. b T Ax is a scalar, and can be transposed: b T Ax =(b T Ax) T = x T A T b. The term b T b is constant, and does not a ect the minimization. So, the form to minimize (scaled by a factor of 2, which is arbitrary) is P(x) = 1 2 xt A T Ax x T A T b. According to earlier thm, this quadratic form is minimized for x which is a solution to A T Ax = A T b. [NOTES CONTD.]