Linear Algebra Formulas. Ben Lee

Similar documents
Lecture 1 Review: Linear models have the form (in matrix notation) Y = Xβ + ε,

Knowledge Discovery and Data Mining 1 (VO) ( )

A Quick Tour of Linear Algebra and Optimization for Machine Learning

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

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p

Math Camp Lecture 4: Linear Algebra. Xiao Yu Wang. Aug 2010 MIT. Xiao Yu Wang (MIT) Math Camp /10 1 / 88

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

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

MAT Linear Algebra Collection of sample exams

STAT200C: Review of Linear Algebra

Review of Some Concepts from Linear Algebra: Part 2

Mathematical Foundations of Applied Statistics: Matrix Algebra

LINEAR ALGEBRA REVIEW

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

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

Math 323 Exam 2 Sample Problems Solution Guide October 31, 2013

MA 265 FINAL EXAM Fall 2012

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

EE731 Lecture Notes: Matrix Computations for Signal Processing

(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 =

Solutions to Final Practice Problems Written by Victoria Kala Last updated 12/5/2015

Preliminary Linear Algebra 1. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 100

Online Exercises for Linear Algebra XM511

1. General Vector Spaces

Recall the convention that, for us, all vectors are column vectors.

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

Jim Lambers MAT 610 Summer Session Lecture 1 Notes

Linear Algebra Highlights

YORK UNIVERSITY. Faculty of Science Department of Mathematics and Statistics MATH M Test #1. July 11, 2013 Solutions

Quick Tour of Linear Algebra and Graph Theory

Linear Algebra Review. Vectors

Math Linear Algebra Final Exam Review Sheet

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

Linear Algebra Primer

MA 1B ANALYTIC - HOMEWORK SET 7 SOLUTIONS

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

MATH 2331 Linear Algebra. Section 2.1 Matrix Operations. Definition: A : m n, B : n p. Example: Compute AB, if possible.

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

In Class Peer Review Assignment 2

Review problems for MA 54, Fall 2004.

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

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

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

A Review of Linear Algebra

Scientific Computing: Dense Linear Systems

Linear Algebra Review

Taxonomy of n n Matrices. Complex. Integer. Real. diagonalizable. Real. Doubly stochastic. Unimodular. Invertible. Permutation. Orthogonal.

Cheat Sheet for MATH461

Math 224, Fall 2007 Exam 3 Thursday, December 6, 2007

EE/ACM Applications of Convex Optimization in Signal Processing and Communications Lecture 2

MATH 320: PRACTICE PROBLEMS FOR THE FINAL AND SOLUTIONS

Math 407: Linear Optimization

Chapter 2 Subspaces of R n and Their Dimensions

MATH 304 Linear Algebra Lecture 34: Review for Test 2.

MATH 235. Final ANSWERS May 5, 2015

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

Math 315: Linear Algebra Solutions to Assignment 7

CS 246 Review of Linear Algebra 01/17/19

OHSx XM511 Linear Algebra: Solutions to Online True/False Exercises

Equality: Two matrices A and B are equal, i.e., A = B if A and B have the same order and the entries of A and B are the same.

NOTES on LINEAR ALGEBRA 1

Dimension. Eigenvalue and eigenvector

MATH. 20F SAMPLE FINAL (WINTER 2010)

Quick Tour of Linear Algebra and Graph Theory

Introduction to Numerical Linear Algebra II

Math 265 Linear Algebra Sample Spring 2002., rref (A) =

MATH 31 - ADDITIONAL PRACTICE PROBLEMS FOR FINAL

Exercise Sheet 1.

Chapter 1. Matrix Algebra

2 Determinants The Determinant of a Matrix Properties of Determinants Cramer s Rule Vector Spaces 17

Econ Slides from Lecture 7

Chapter 5 Eigenvalues and Eigenvectors

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

Elementary Linear Algebra Review for Exam 2 Exam is Monday, November 16th.

ELE/MCE 503 Linear Algebra Facts Fall 2018

Lecture 1 and 2: Random Spanning Trees

MATH Spring 2011 Sample problems for Test 2: Solutions

Linear System Theory

2018 Fall 2210Q Section 013 Midterm Exam II Solution

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

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

Chapter 3 Transformations

Matrix Algebra, part 2

Some notes on Linear Algebra. Mark Schmidt September 10, 2009

TBP MATH33A Review Sheet. November 24, 2018

Lecture Summaries for Linear Algebra M51A

1 9/5 Matrices, vectors, and their applications

235 Final exam review questions

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane.

There are six more problems on the next two pages

Row Space and Column Space of a Matrix

Conceptual Questions for Review

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

The University of Texas at Austin Department of Electrical and Computer Engineering. EE381V: Large Scale Learning Spring 2013.

Final Review Written by Victoria Kala SH 6432u Office Hours R 12:30 1:30pm Last Updated 11/30/2015

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

ALGEBRA QUALIFYING EXAM PROBLEMS LINEAR ALGEBRA

Matrices and Linear Algebra

The Singular Value Decomposition

Transcription:

Linear Algebra Formulas Ben Lee January 27, 2016 Definitions and Terms Diagonal: Diagonal of matrix A is a collection of entries A ij where i = j. Diagonal Matrix: A matrix (usually square), where entries outside the main diagonal are 0. Diagonal entries may or may not be 0. Identity: Square matrix with ones in the main diagonal and zero elsewhere. Matrix multiplication If then (AB) ij = m A ik B kj k=1 U = u 1... u n, V = v 1... v n UV T = n T u i v i If D = diag(d 1,..., d n ) = d 1... d n then UD = d 1 u 1... d n u n 1

Linearly Independence span{x 1,..., x k } = {x : x = k j=1 α jx j for some α j, j = 1,..., k} Set of vectors {x 1,...x k } is linearly independent if k α i x i = 0 = α i = 0, i = 1,..., k This can also be written as Av = 0 = v = 0 where the columns of A are x i Linearly Independence also means 1. Each x span {x 1,..., x k } is a unique linear combination of x 1,..., x k k α i x i = k β i x i = α i = β i, i = 1,..., k 2. No elements of {x 1,..., x k } can be written as a linear combination of the others Invertible Matrix If A, B are invertible, then (AB) 1 = B 1 A 1 If A is n by n matrix The following are equivalent: 1. A is invertible (AKA nonsingular, nondegenerate) 2. det A 0 3. A has full rank. ranka = n 4. Only solution to Ax = 0 is x = 0 5. null A = {0} 6. Ax = b for each b R n has exactly one solution. 7. Columns of A are linearly independent 8. Columns of A span R n 9. Columns of A form a basis of R n 10. There is a matrix B such that AB = I n = BA 11. The number 0 is not an eigenvalue of A 2

Subspaces, Bases, Dimensions Subspace of R n is U R n that is closed under linear combination of its elements. We typically specify a subspace as the span{x 1,...x k }. A basis for a subspace U is the set of linearly independent vectors that spans U. 1. span{x 1,...x k } is the smallest subspace of R n that contains the vectors x 1,...x k. 2. If U is a finite-dimensional vector space, then any two bases of U have the same finite number of elements. Since a vector space has the same number of elements, we call that dim V. 1. If dim V = n, (a) Any subset of V with more than n vectors is linearly dependent (b) No subset of V with fewer than n vectors can span V Orthogonal Complement Orthogonal subspace U is defined by U R n = {x R n : u U, x u} 1. (U ) = U 2. U U = {0 } 3. Any x R n can be written as x = v + w where v U, w U 4. U V implies V U Orthogonal Matrix If Q has orthonormal columns, Q O nxn 1. Q T Q = QQ T = I n 2. If U O nxk, then U T U = I k but UU T I n 3. Q T = Q 1 4. For each x, y R n, Qx, Qy = x, y and Qx, Qx = x, x = x 2 5. If Q, W O nxn, then QW O nxn and Q 1 O nxn That is, the set O nxn is closed under multiplication and inverse. 3

Rank Rank of A is dimension of vector space spanned by its columns. Rank is also the same as the dimension spanned by rows. Note that dimensions refer to vector spaces and ranks refer to matrices. Assume A R m n 1. rank(a) min(m, n) If rank(a) = min(m, n), A has full rank. Otherwise, A is rank deficient. 2. Only a zero matrix has rank zero. 3. Square matrix A R n n is invertible if and only if A has full rank. 4. If B R n k, rank(ab) min(ranka, rankb) 5. If B R n k and has rank n, rank(ab) = rank(a) 6. If C R l m and has rank m, rank(ca) = rank(a) 7. If A is real, rank(a T A) = rank(aa T ) = rank(a) = rank(a T ) Kernel, NullSpace, Image (Range) Kernel (AKA nullspace) of a linear map is L : V W between vector spaces V and W is the set of all elements v for which L(v) = 0 ker(l) = {v V L(v) = 0} or in terms of matrix multiplication N(A) =Null(A) = ker(a) = {x R n Ax = 0} The nullity of A is the dimension of the kernel of A. 1. Null(A) contains the zero vector 2. If x, y Null(A), then x + y Null(A) 3. If x Null(A) and c is scalar, then cx Null(A) 4. Rank-nullity Theorem: If A is m-by-n matrix, rank(a) + nullity(a) = n Older books call the range of a function as the set of the outputs of the function. R(A) = {y R m : y = Ax, x R n } 4

Modern books call this image: im(a) = R(A) Theorem: N(A) = R(A T ) Eigenvalues and Eigenvectors x 0 is an eigenvector of A R n n if Ax = λx for some scalar λ λ is the eigenvalue. Eigendecomposition of Matrix: Square n by n matrix A has n eigenvectors q i (i = 1,..., n). λ 1 A = QΛQ 1 = q 1... q n... λ n q 1... q n where the columns of Q are q i and Λ is diagonal with corresponding eigenvalues. Symmetric Matrix Matrix A is symmetric if A = A T 1. Given symmetric matrices A, B A + B is symmetric 2. AB is NOT necessarily symmetric AB is symmetric if and only if A and B commute, i.e., if AB = BA 3. Real n n matrix A is symmetric if and only if Ax, y = x, Ay x, y R n 4. If A is real, all eigenvalues are real 5. A has n orthonormal eigenvectors Real symmetric matrix A is Positive-Definite if z T Mz > 0 z R n, z 0 Real symmetric matrix A is Positive-Semidefinite if z T Mz 0 z R n Note: Positive-definite and positive-semidefinite is defined for symmetric matrices. Properties of PD symmetric matrices: 1 1. All eigenvalues are positive 2. It is invertible 5

Trace Trace of a n n square matrix is the sum of the elements in the main diagonal. tr(a) = a 11 + a 22 +... + a nn = n a ii 1. tr(a + B) = tr(a) + tr(b) 2. tr(ca) = ctr(a) for all scalar c and square matrices A, B 3. tr(a T ) = tr(a) 4. Trace is invariant under cyclic permutations tr(ab) = tr(ba) tr(abcd) = tr(bcda) = tr(cdab) = tr(dabc) 5. Arbitrary permutation is NOT true in general tr(abc) tr(acb) 6. tr(p 1 AP ) = tr(a) 7. If n n square matrix (real or complex) A has λ 1,...λ n eigenvalues, then tr(a) = i λ i Determinants Determinant of 2 by 2 matrix is a c b d = ad bc 1. det(i n ) = 1 2. det(a T ) = A 3. det(a 1 ) = det(a) 1 4. For square matrices A, B, det(ab) = det(a) det(b) 5. For square n by n matrix A det(ca) = c n det(a) 6. Solutions to det(a xi n ) = 0 are the eigenvalues of A 6

Norms Properties 1. x 0 with equality if and only if x = 0 2. αx = α x 3. x + y x + y Frobenius Norm For some matrix A, B of the same size, A, B = i,j A ij B ij = tr(a T B) Then Properties A F = A, A 1/2 1. For each x, y R n, xy T F = x y 2. Squared Frobenius norm is the sum of squares of the singular values: A 2 F = r σ 2 i References Formulas are based on wikipedia. 7