A Review of Linear Algebra

Size: px
Start display at page:

Download "A Review of Linear Algebra"

Transcription

1 A Review of Linear Algebra Gerald Recktenwald Portland State University Mechanical Engineering Department These slides are a supplement to the book Numerical Methods with Matlab: Implementations and Applications, by Gerald W. Recktenwald, c, Prentice-Hall, Upper Saddle River, NJ. These slides are copyright c Gerald W. Recktenwald. The PDF version of these slides may be downloaded or stored or printed only for noncommercial, educational use. The repackaging or sale of these slides in any form, without written consent of the author, is prohibited. The latest version of this PDF file, along with other supplemental material for the book, can be found at or web.cecs.pdx.edu/~gerry/nmm/. Version.99 August, page Primary Topics Notation Vectors Matrices Mathematical Properties of Vectors and Matrices Special Matrices Variable type Typographical Convention Example scalar lower case Greek σ, α, β vector lower case Roman u, v, x, y, b matrix upper case Roman A, B, C NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page

2 Defining Vectors in Matlab Vector Operations Assign any expression that evaluates to a vector >> v = [ 5 ] >> w = [; ; ; 8] >> x = linspace(,,5); >> y = ::8 >> z = sin(y*pi/8); Distinquish between row and column vectors >> r = [ ]; % row vector >> s = [ ] ; % column vector >> r - s??? Error using ==> - Matrix dimensions must agree. Although r and s have the same elements, they are not the same vector. Furthermore, operations involving r and s are bound by the rules of linear algebra. Addition and Subtraction Multiplication by a scalar Transpose Linear Combinations of Vectors Inner Product Outer Product Vector Norms NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page 5 Vector Addition and Subtraction Multiplication by a Scalar Addition and subtraction are element-by-element operations Multiplication by a scalar involves multiplying each element in the vector by the scalar: c = a + b c i = a i + b i i =,...,n b = σa b i = σa i i =,...,n Example: d = a b d i = a i b i i =,...,n a = 5 b = 5 a + b = 5 a b = 5 Example: a = 5 b = a = 5 8 NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page

3 Vector Transpose Linear Combinations () The transpose of a row vector is a column vector: u = ˆ,, then u T = 5 Likewise if v is the column vector v = 55 then v T = ˆ, 5, Combine scalar multiplication with addition Example: u v αu + βv w α u. 5 + β v. 5 = αu + βv. 5 = w. 5 u m v m αu m + βv m w m r = 5 s = 5 t =r +s = = NMM: A Review of Linear Algebra page 8 NMM: A Review of Linear Algebra page 9 Linear Combinations () Linear Combinations () Any one vector can be created from an infinite combination of other suitable vectors. Example:»»» w = = + w =»» [,] [,] [,-] [,] [,] [-,] [,] w = w =»»»»» Graphical interpretation: Vector tails can be moved to convenient locations Magnitude and direction of vectors is preserved 5 NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page

4 Vector Inner Product () Vector Inner Product () In physics, analytical geometry, and engineering, the dot product has a geometric interpretation nx σ = x y σ = x i y i i= x y = x y cos θ The rules of linear algebra impose compatibility requirements on the inner product. The inner product of x and y requires that x be a row vector y be a column vector y ˆx x x x y y 5 = x y + x y + x y + x y y NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page Vector Inner Product () Computing the Inner Product in Matlab For two n-element column vectors, u and v, the inner product is σ = u T v σ = The inner product is commutative so that (for two column vectors) u T v = v T u nx u i v i i= The * operator performs the inner product if two vectors are compatible. >> u = (:) ; % u and v are >> v = (:-:) ; % column vectors >> s = u*v??? Error using ==> * Inner matrix dimensions must agree. >> s = u *v s = >> t = v *u t = NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page 5

5 Vector Outer Product Computing the Outer Product in Matlab The inner product results in a scalar. The outer product creates a rank-one matrix: A = uv T a i,j = u i v j Example: Outer product of two - element column vectors u uv T = u ˆv u 5 v v v u u v u v u v u v = u v u v u v u v u v u v u v u v 5 u v u v u v u v The * operator performs the outer product if two vectors are compatible. u = (:) ; v = (:-:) ; A = u*v A = NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page Vector Norms () Vector Norms () Compare magnitude of scalars with the absolute value α > β Consider two element vectors, which lie in a plane b = (,) a = (,) c = (,) a = (,) Compare magnitude of vectors with norms x > y There are several ways to compute x. In other words the size of two vectors can be compared with different norms. Use geometric lengths to represent the magnitudes of the vectors l a = p + =, l b = p + =, l c = p + = 5 We conclude that l a = l b and l a >l c or a = b and a > c NMM: A Review of Linear Algebra page 8 NMM: A Review of Linear Algebra page 9

6 The L Norm p-norms The notion of a geometric length for D or D vectors can be extended vectors with arbitrary numbers of elements. The result is called the Euclidian or L norm: x = `x + x x n / = nx The L norm can also be expressed in terms of the inner product x = x x = x T x i= x i! / For any integer p The L norm is sum of absolute values The L norm or max norm is x p = ` x p + x p x n p /p x = x + x x n = nx x i i= x = max ( x, x,..., x n ) = max i ( x i ) Although p can be any positive number, p =,, are most commonly used. NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page Application of Norms () Application of Norms () Are two vectors (nearly) equal? Floating point comparison of two scalars with absolute value: α β <δ α where δ is a small tolerance. Comparison of two vectors with norms: y z <δ z Notice that is not equivalent to y z <δ z y z <δ. z This comparison is important in convergence tests for sequences of vectors. See Example. in the textbook. NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page

7 Application of Norms () Orthogonal Vectors Creating a Unit Vector Given u =[u,u,...,u m ] T, the unit vector in the direction of u is Proof: The following are not unit vectors û = u u û = u u u = u u = u From geometric interpretation of the inner product cos θ = u v = u v cos θ u v u v = u T v u v Two vectors are orthogonal when θ = π/ or u v =. In other words u T v = if and only if u and v are orthogonal. u u NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page 5 Orthonormal Vectors Matrices Orthonormal vectors are unit vectors that are orthogonal. A unit vector has an L norm of one. The unit vector in the direction of u is û = u u Since u = u u it follows that u u =if u is a unit vector. Columns and Rows of a Matrix are Vectors Addition and Subtraction Multiplication by a scalar Transpose Linear Combinations of Vectors Matrix Vector Product Matrix Matrix Product Matrix Norms NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page

8 Notation Matrices Consist of Row and Column Vectors The matrix A with m rows and n columns looks like: a a a n A = a a a n.. 5 a m a mn a ij = element in row i, and column j In Matlab we can define a matrix with As a collection of column vectors A = a () a () a (n) 5 As a collection of row vectors A = a () a (). a (m) 5 >> A = [... ;... ;... ] where semicolons separate lists of row elements. The a, element of the Matlab matrix A is A(,). A prime is used to designate a row vector on this and the following pages. NMM: A Review of Linear Algebra page 8 NMM: A Review of Linear Algebra page 9 Preview of the Row and Column View Matrix Operations Matrix and vector operations Row and column Element-by-element operations operations Addition and subtraction Multiplication by a Scalar Matrix Transpose Matrix Vector Multiplication Vector Matrix Multiplication Matrix Matrix Multiplication NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page

9 Matrix Operations Addition and subtraction C = A + B or c i,j = a i,j + b i,j i =,...,m; j =,...,n or Matrix Transpose B = A T b i,j = a j,i i =,...,m; j =,...,n Multiplication by a Scalar or B = σa b i,j = σa i,j i =,...,m; j =,...,n Note: Commas in subscripts are necessary when the subscripts are assigned numerical values. For example, a, is the row, column element of matrix A, whereas a is the rd element of vector a. When variables appear in indices, such as a ij or a i,j, the comma is optional In Matlab >> A = [ ; ; ; ] A = >> B = A B = NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page The Column View gives mathematical insight The Row View easy to do by hand Matrix Vector Product The Vector View A square matrice rotates and stretches a vector Column View of Matrix Vector Product () Consider a linear combination of a set of column vectors {a (),a (),...,a (n) }. Each a (j) has m elements Let x i be a set (a vector) of scalar multipliers or Expand the (hidden) row index x x a () + x a () x n a (n) = b nx a (j) x j = b j= a a a n b a. 5 + x a x a n n. 5 = b. 5 a m a m a mn b m NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page 5

10 Column View of Matrix Vector Product () Form a matrix with the a (j) as columns x a () a () a (n) x. 5 = b 5 5 x n Or, writing out the elements a a a n b a a a n x b x =. 5 x n 5 a m a m a mn b m Column View of Matrix Vector Product () Thus, the matrix-vector product is a a a n b a a a n x b x =. 5 x n 5 a m a m a mn b m Save space with matrix notation Ax = b NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page Column View of Matrix Vector Product () Column View of Matrix Vector Product (5) where x and b are column vectors The matrix vector product b = Ax produces a vector b from a linear combination of the columns in A. b = Ax b i = nx a ij x j j= Algorithm. initialize: b = zeros(m, ) for j =,...,n for i =,...,m b(i) =A(i, j)x(j) +b(i) end end NMM: A Review of Linear Algebra page 8 NMM: A Review of Linear Algebra page 9

11 Compatibility Requirement Row View of Matrix Vector Product () Inner dimensions must agree A x = b [m n] [n ] = [m ] Consider the following matrix vector product written out as a linear combination of matrix columns = This is the column view. NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page Row View of Matrix Vector Product () Row View of Matrix Vector Product () Now, group the multiplication and addition operations by row: (5)() + ()() + ()( ) + ( )( ) = ( )() + ()() + ( )( ) + ()( ) 5 = ()() + ()() + ()( ) + ()( ) 5 Product of a matrix, A, witha vector, x, looks like a () x a () a x () x 5 = x b a () x 5 = b 5 5 x a () x b a () where a (), a (), and a (),aretherow vectors constituting the A matrix. Final result is identical to that obtained with the column view. The matrix vector product b = Ax produces elements in b by forming inner products of the rows of A with x. NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page

12 Row View of Matrix Vector Product () Vector View of Matrix Vector Product If A is square, the product Ax has the effect of stretching and rotating x. i = i Pure stretching of the column vector 5 5 = 5 a' (i) x y i Pure rotation of the column vector 5 5 = 5 NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page 5 Vector Matrix Product Vector Matrix Product Matrix vector product Vector Matrix product = m n n m Compatibility Requirement: Inner dimensions must agree u A = v [ m] [m n] = [ n] = m m n n NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page

13 Matrix Matrix Product Column View of Matrix Matrix Product Computations can be organized in six different ways We ll focus on just two Column View extension of column view of matrix vector product Row View inner product algorithm, extension of column view of matrix vector product The product AB produces a matrix C. The columns of C are linear combinations of the columns of A. AB = C c (j) = Ab (j) c (j) and b (j) are column vectors. i j = j r A b ( j ) c ( j ) The column view of the matrix matrix product AB = C is helpful because it shows the relationship between the columns of A and the columns of C. NMM: A Review of Linear Algebra page 8 NMM: A Review of Linear Algebra page 9 Inner Product (Row) View of Matrix Matrix Product Matrix Matrix Product Summary () The product AB produces a matrix C. Thec ij element is the inner product of row i of A and column j of B. a (i) is a row vector, b (j) is a column vector. AB = C c ij = a (i) b (j) The Matrix vector product looks like: 5 5 = 5 i r a' (i ) j b ( j ) = j i c ij c ij The vector Matrix product looks like: ˆ 5 = ˆ The inner product view of the matrix matrix product is easier to use for hand calculations. NMM: A Review of Linear Algebra page 5 NMM: A Review of Linear Algebra page 5

14 Matrix Matrix Product Summary () Matrix Matrix Product Summary () The Matrix Matrix product looks like: 5 5 = 5 Compatibility Requirement Inner dimensions must agree Also, in general A B = C [m r] [r n] = [m n] AB BA NMM: A Review of Linear Algebra page 5 NMM: A Review of Linear Algebra page 5 Matrix Norms The Frobenius norm treats a matrix like a vector: just add up the sum of squares of the matrix elements.» X m nx / A F = a ij i= j= More useful norms account for the affect that the matrix has on a vector. A = max x = Ax L or spectral norm Mathematical Properties of Vectors and Matrices Linear Independence Vector Spaces Subspaces associated with matrices Matrix Rank Matrix Determinant A = max j n A = max mx a ij column sum norm i= i m j= nx a ij row sum norm NMM: A Review of Linear Algebra page 5 NMM: A Review of Linear Algebra page 55

15 Linear Independence () Two vectors lying along the same line are not independent u = 5 and v = u = 5 Any two independent vectors, for example, v = 5 and w = 5 define a plane. Any other vector in this plane of v and w can be represented by Linear Independence () A set of vectors is linearly independent if it is impossible to use a linear combination of vectors in the set to create another vector in the set. Linear independence is easy to see for vectors that are orthogonal, for example, are linearly independent. 5, 5, 5 x = αv + βw x is linearly dependent on v and w because it can be formed by a linear combination of v and w. NMM: A Review of Linear Algebra page 5 NMM: A Review of Linear Algebra page 5 Linear Independence () Consider two linearly independent vectors, u and v. If a third vector, w, cannot be expressed as a linear combination of u and v, then the set {u, v, w} is linearly independent. In other words, if {u, v, w} is linearly independent then can be true only if α = β = δ =. More generally, if the only solution to αu + βv = δw α v () + α v () + + α n v (n) = () is α = α =... = α n =, then the set {v (),v (),...,v (n) } is linearly independent. Conversely, if equation () is satisfied by at least one nonzero α i,thenthe set of vectors is linearly dependent. Linear Independence () Let the set of vectors {v (),v (),...,v (n) } be organized as the columns of a matrix. Then the condition of linear independence is α v () v () v (n) α. 5 =. 5 () 5 α n The columns of the m n matrix, A, are linearly independent if and only if x = (,,...,) T is the only n element column vector that satisfies Ax =. NMM: A Review of Linear Algebra page 58 NMM: A Review of Linear Algebra page 59

16 Vector Spaces Spaces and Subspaces Spaces and Subspaces Span of a Subspace Basis of a Subspace Subspaces associated with Matrices Group vectors according to number of elements they have. Vectors from these different groups cannot be mixed. R = Space of all vectors with one element. These vectors define the points along a line. R = Space of all vectors with two elements. These vectors define the points in a plane. R n = Space of all vectors with n elements. These vectors define the points in an n- dimensional space (hyperplane). NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page Subspaces Span of a Subspace The three vectors u = 5, v = 5, w = 5, lie in the same plane. The vectors have three elements each, so they belong to R, but they span a subspace of R. 5-5 [,,] T [-,,] T If w can be created by the linear combination β v () + β v () + + β n v (n) = w where β i are scalars, then w is said to be in the subspace that is spanned by {v (),v (),...,v (n) }. If the v i have m elements, then the subspace spanned by the v (i) is a subspace of R m.if n m it is possible, though not guaranteed, that the v (i) could span R m. - - y axis [,,-] T - x axis - NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page

17 Basis and Dimension of a Subspace Subspaces Associated with Matrices A basis for a subspace is a set of linearly independent vectors that span the subspace. Since a basis set must be linearly independent, it also must have the smallest number of vectors necessary to span the space. (Each vector makes a unique contribution to spanning some other direction in the space.) The number of vectors in a basis set is equal to the dimension of the subspace that these vectors span. Mutually orthogonal vectors (an orthogonal set) form convenient basis sets, but basis sets need not be orthogonal. The matrix vector product y = Ax creates y from a linear combination of the columns of A The column vectors of A form a basis for the column space or range of A. NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page 5 Matrix Rank Matrix Rank () The rank of a matrix, A, is the number of linearly independent columns in A. rank(a) is the dimension of the column space of A. Numerical computation of rank(a) is tricky due to roundoff. Consider u = 5 v = 5 w = 5. Do these vectors span R? What if u = ε m? We can use Matlab s built-in rank function for exploratory calculations on (relatively) small matrices Example: >> A = [ ; ; e-5] % A(,) is small A =... >> rank(a) ans = NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page

18 Matrix Rank () Matrix Determinant () Repeat numerical calculation of rank with smaller diagonal entry >> A(,) = eps/ % A(,) is even smaller A =... >> rank(a) ans = Even though A(,) is not identically zero, it is small enough that the matrix is numerically rank-deficient Only square matrices have determinants. The determinant of a (square) matrix is a scalar. If det(a) =,thena is singular, and A does not exist. det(i) =for any identity matrix I. det(ab) = det(a) det(b). det(a T )=det(a). Cramer s rule uses (many!) determinants to express the the solution to Ax = b. The matrix determinant has a number of useful properties: NMM: A Review of Linear Algebra page 8 NMM: A Review of Linear Algebra page 9 Matrix Determinant () Special Matrices det(a) is not useful for numerical computation Computation of det(a) is expensive Computation of det(a) can cause overflow For diagonal and triangular matrices, det(a) is the product of diagonal elements The built in det computes the determinant of a matrix by first factoring it into A = LU, and then computing det(a) = det(l) det(u) = `l l...l nn `u u...u nn Diagonal Matrices Tridiagonal Matrices The Identity Matrix The Matrix Inverse Symmetric Matrices Positive Definite Matrices Orthogonal Matrices Permutation Matrices NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page

19 Diagonal Matrices () Diagonal Matrices () Diagonal matrices have non-zero elements only on the main diagonal. c C = diag (c,c,...,c n )= c c n The diag function is used to either create a diagonal matrix from a vector, or and extract the diagonal entries of a matrix. >> x = [ -5 ]; >> A = diag(x) A = -5 The diag function can also be used to create a matrix with elements only on a specified super-diagonal or sub-diagonal. Doing so requires using the two-parameter form of diag: >> diag([ ],) ans = >> diag([ 5 ],-) ans = 5 NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page Identity Matrices () Identity Matrices () An identity matrix is a square matrix with ones on the main diagonal. Example: The identity matrix An identity matrix is special because I = 5 AI = A and IA = A for any compatible matrix A. This is like multiplying by one in scalar arithmetic. Identity matrices can be created with the built-in eye function. >> I = eye() I = Sometimes I n is used to designate an identity matrix with n rows and n columns. For example, I = 5 NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page 5

20 Identity Matrices () Matrix Inverse () A non-square, identity-like matrix can be created with the two-parameter form of the eye function: >> J = eye(,5) J = >> K = eye(,) K = J and K are not identity matrices! Let A be a square (i.e. n n) with real elements. The inverse of A is designated A, and has the property that A A = I and AA = I The formal solution to Ax = b is x = A b. Ax = b A Ax = A b Ix = A b x = A b NMM: A Review of Linear Algebra page NMM: A Review of Linear Algebra page Matrix Inverse () Functions to Create Special Matrices Although the formal solution to Ax = b is x = A b, it is considered bad practice to evaluate x this way. The recommended procedure for solving Ax = b is Gaussian elimination (or one of its variants) with backward substitution. This procedure is described in detail in Chapter 8. Solving Ax = b by computing x = A b requires more work (more floating point operations) than Gaussian elimination. Even if the extra work does not cause a problem with execution speed, the extra computations increase the roundoff errors in the result. If A is small (say 5 5 or less) and well conditioned, the penalty for computing A b will probably not be significant. Nonetheless, Gaussian elimination is preferred. Matrix Diagonal Tridiagonal Identity Inverse Matlab function diag tridiags (NMM Toolbox) eye inv NMM: A Review of Linear Algebra page 8 NMM: A Review of Linear Algebra page 9

21 Symmetric Matrices Tridiagonal Matrices If A = A T,thenA is called a symmetric matrix. Example: 5 5 Note: B = A T A is symmetric for any (real) matrix A. Example: 5. The diagonal elements need not be equal. The general form of a tridiagonal matrix is a b c a b c a b A = c n a n b n 5 c n a n NMM: A Review of Linear Algebra page 8 NMM: A Review of Linear Algebra page 8 To Do Add slides on: Tridiagonal Matrices Positive Definite Matrices Orthogonal Matrices Permutation Matrices NMM: A Review of Linear Algebra page 8

Solving Linear Systems of Equations

Solving Linear Systems of Equations Solving Linear Systems of Equations Gerald Recktenwald Portland State University Mechanical Engineering Department gerry@me.pdx.edu These slides are a supplement to the book Numerical Methods with Matlab:

More information

MATH2210 Notebook 2 Spring 2018

MATH2210 Notebook 2 Spring 2018 MATH2210 Notebook 2 Spring 2018 prepared by Professor Jenny Baglivo c Copyright 2009 2018 by Jenny A. Baglivo. All Rights Reserved. 2 MATH2210 Notebook 2 3 2.1 Matrices and Their Operations................................

More information

Linear Algebra Review. Vectors

Linear Algebra Review. Vectors Linear Algebra Review 9/4/7 Linear Algebra Review By Tim K. Marks UCSD Borrows heavily from: Jana Kosecka http://cs.gmu.edu/~kosecka/cs682.html Virginia de Sa (UCSD) Cogsci 8F Linear Algebra review Vectors

More information

Linear Algebra Review

Linear Algebra Review Chapter 1 Linear Algebra Review It is assumed that you have had a course in linear algebra, and are familiar with matrix multiplication, eigenvectors, etc. I will review some of these terms here, but quite

More information

Elementary maths for GMT

Elementary maths for GMT Elementary maths for GMT Linear Algebra Part 2: Matrices, Elimination and Determinant m n matrices The system of m linear equations in n variables x 1, x 2,, x n a 11 x 1 + a 12 x 2 + + a 1n x n = b 1

More information

Basic Concepts in Linear Algebra

Basic Concepts in Linear Algebra Basic Concepts in Linear Algebra Grady B Wright Department of Mathematics Boise State University February 2, 2015 Grady B Wright Linear Algebra Basics February 2, 2015 1 / 39 Numerical Linear Algebra Linear

More information

Knowledge Discovery and Data Mining 1 (VO) ( )

Knowledge Discovery and Data Mining 1 (VO) ( ) Knowledge Discovery and Data Mining 1 (VO) (707.003) Review of Linear Algebra Denis Helic KTI, TU Graz Oct 9, 2014 Denis Helic (KTI, TU Graz) KDDM1 Oct 9, 2014 1 / 74 Big picture: KDDM Probability Theory

More information

Review of Basic Concepts in Linear Algebra

Review of Basic Concepts in Linear Algebra Review of Basic Concepts in Linear Algebra Grady B Wright Department of Mathematics Boise State University September 7, 2017 Math 565 Linear Algebra Review September 7, 2017 1 / 40 Numerical Linear Algebra

More information

Math Linear Algebra Final Exam Review Sheet

Math Linear Algebra Final Exam Review Sheet Math 15-1 Linear Algebra Final Exam Review Sheet Vector Operations Vector addition is a component-wise operation. Two vectors v and w may be added together as long as they contain the same number n of

More information

Jim Lambers MAT 610 Summer Session Lecture 1 Notes

Jim Lambers MAT 610 Summer Session Lecture 1 Notes Jim Lambers MAT 60 Summer Session 2009-0 Lecture Notes Introduction This course is about numerical linear algebra, which is the study of the approximate solution of fundamental problems from linear algebra

More information

Linear Algebra V = T = ( 4 3 ).

Linear Algebra V = T = ( 4 3 ). Linear Algebra Vectors A column vector is a list of numbers stored vertically The dimension of a column vector is the number of values in the vector W is a -dimensional column vector and V is a 5-dimensional

More information

Foundations of Matrix Analysis

Foundations of Matrix Analysis 1 Foundations of Matrix Analysis In this chapter we recall the basic elements of linear algebra which will be employed in the remainder of the text For most of the proofs as well as for the details, the

More information

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.

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. Matrices Operations Linear Algebra Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0 The rectangular array 1 2 1 4 3 4 2 6 1 3 2 1 in which the

More information

Topics. Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij

Topics. Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij Topics Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij or a ij lives in row i and column j Definition of a matrix

More information

Matrix Algebra: Summary

Matrix Algebra: Summary May, 27 Appendix E Matrix Algebra: Summary ontents E. Vectors and Matrtices.......................... 2 E.. Notation.................................. 2 E..2 Special Types of Vectors.........................

More information

Numerical Methods I Solving Square Linear Systems: GEM and LU factorization

Numerical Methods I Solving Square Linear Systems: GEM and LU factorization Numerical Methods I Solving Square Linear Systems: GEM and LU factorization Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 MATH-GA 2011.003 / CSCI-GA 2945.003, Fall 2014 September 18th,

More information

Review Questions REVIEW QUESTIONS 71

Review Questions REVIEW QUESTIONS 71 REVIEW QUESTIONS 71 MATLAB, is [42]. For a comprehensive treatment of error analysis and perturbation theory for linear systems and many other problems in linear algebra, see [126, 241]. An overview of

More information

Conceptual Questions for Review

Conceptual Questions for Review Conceptual Questions for Review Chapter 1 1.1 Which vectors are linear combinations of v = (3, 1) and w = (4, 3)? 1.2 Compare the dot product of v = (3, 1) and w = (4, 3) to the product of their lengths.

More information

NOTES on LINEAR ALGEBRA 1

NOTES on LINEAR ALGEBRA 1 School of Economics, Management and Statistics University of Bologna Academic Year 207/8 NOTES on LINEAR ALGEBRA for the students of Stats and Maths This is a modified version of the notes by Prof Laura

More information

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

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane. Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane c Sateesh R. Mane 2018 8 Lecture 8 8.1 Matrices July 22, 2018 We shall study

More information

Numerical Linear Algebra

Numerical Linear Algebra Numerical Linear Algebra R. J. Renka Department of Computer Science & Engineering University of North Texas 02/03/2015 Notation and Terminology R n is the Euclidean n-dimensional linear space over the

More information

Matrices and Linear Algebra

Matrices and Linear Algebra Contents Quantitative methods for Economics and Business University of Ferrara Academic year 2017-2018 Contents 1 Basics 2 3 4 5 Contents 1 Basics 2 3 4 5 Contents 1 Basics 2 3 4 5 Contents 1 Basics 2

More information

5.6. PSEUDOINVERSES 101. A H w.

5.6. PSEUDOINVERSES 101. A H w. 5.6. PSEUDOINVERSES 0 Corollary 5.6.4. If A is a matrix such that A H A is invertible, then the least-squares solution to Av = w is v = A H A ) A H w. The matrix A H A ) A H is the left inverse of A and

More information

Review problems for MA 54, Fall 2004.

Review problems for MA 54, Fall 2004. Review problems for MA 54, Fall 2004. Below are the review problems for the final. They are mostly homework problems, or very similar. If you are comfortable doing these problems, you should be fine on

More information

Linear Algebra and Matrix Inversion

Linear Algebra and Matrix Inversion Jim Lambers MAT 46/56 Spring Semester 29- Lecture 2 Notes These notes correspond to Section 63 in the text Linear Algebra and Matrix Inversion Vector Spaces and Linear Transformations Matrices are much

More information

TOPIC 2 Computer application for manipulating matrix using MATLAB

TOPIC 2 Computer application for manipulating matrix using MATLAB YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM TOPIC 2 Computer application for manipulating matrix using MATLAB Definition of Matrices in MATLAB

More information

Finding the Roots of f(x) = 0. Gerald W. Recktenwald Department of Mechanical Engineering Portland State University

Finding the Roots of f(x) = 0. Gerald W. Recktenwald Department of Mechanical Engineering Portland State University Finding the Roots of f(x) = 0 Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@me.pdx.edu These slides are a supplement to the book Numerical Methods with Matlab:

More information

Finding the Roots of f(x) = 0

Finding the Roots of f(x) = 0 Finding the Roots of f(x) = 0 Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@me.pdx.edu These slides are a supplement to the book Numerical Methods with Matlab:

More information

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT Math Camp II Basic Linear Algebra Yiqing Xu MIT Aug 26, 2014 1 Solving Systems of Linear Equations 2 Vectors and Vector Spaces 3 Matrices 4 Least Squares Systems of Linear Equations Definition A linear

More information

MAT 610: Numerical Linear Algebra. James V. Lambers

MAT 610: Numerical Linear Algebra. James V. Lambers MAT 610: Numerical Linear Algebra James V Lambers January 16, 2017 2 Contents 1 Matrix Multiplication Problems 7 11 Introduction 7 111 Systems of Linear Equations 7 112 The Eigenvalue Problem 8 12 Basic

More information

Matrix Factorization and Analysis

Matrix Factorization and Analysis Chapter 7 Matrix Factorization and Analysis Matrix factorizations are an important part of the practice and analysis of signal processing. They are at the heart of many signal-processing algorithms. Their

More information

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

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 MTH 0: Linear Algebra Department of Mathematics and Statistics Indian Institute of Technology - Kanpur Problem Set Problems marked (T) are for discussions in Tutorial sessions (T) If A is an m n matrix,

More information

A Review of Matrix Analysis

A Review of Matrix Analysis Matrix Notation Part Matrix Operations Matrices are simply rectangular arrays of quantities Each quantity in the array is called an element of the matrix and an element can be either a numerical value

More information

1. General Vector Spaces

1. General Vector Spaces 1.1. Vector space axioms. 1. General Vector Spaces Definition 1.1. Let V be a nonempty set of objects on which the operations of addition and scalar multiplication are defined. By addition we mean a rule

More information

Phys 201. Matrices and Determinants

Phys 201. Matrices and Determinants Phys 201 Matrices and Determinants 1 1.1 Matrices 1.2 Operations of matrices 1.3 Types of matrices 1.4 Properties of matrices 1.5 Determinants 1.6 Inverse of a 3 3 matrix 2 1.1 Matrices A 2 3 7 =! " 1

More information

Applied Mathematics 205. Unit II: Numerical Linear Algebra. Lecturer: Dr. David Knezevic

Applied Mathematics 205. Unit II: Numerical Linear Algebra. Lecturer: Dr. David Knezevic Applied Mathematics 205 Unit II: Numerical Linear Algebra Lecturer: Dr. David Knezevic Unit II: Numerical Linear Algebra Chapter II.3: QR Factorization, SVD 2 / 66 QR Factorization 3 / 66 QR Factorization

More information

Lecture 7. Econ August 18

Lecture 7. Econ August 18 Lecture 7 Econ 2001 2015 August 18 Lecture 7 Outline First, the theorem of the maximum, an amazing result about continuity in optimization problems. Then, we start linear algebra, mostly looking at familiar

More information

Linear Algebra Primer

Linear Algebra Primer Linear Algebra Primer David Doria daviddoria@gmail.com Wednesday 3 rd December, 2008 Contents Why is it called Linear Algebra? 4 2 What is a Matrix? 4 2. Input and Output.....................................

More information

Review of linear algebra

Review of linear algebra Review of linear algebra 1 Vectors and matrices We will just touch very briefly on certain aspects of linear algebra, most of which should be familiar. Recall that we deal with vectors, i.e. elements of

More information

Scientific Computing: Dense Linear Systems

Scientific Computing: Dense Linear Systems Scientific Computing: Dense Linear Systems Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 Course MATH-GA.2043 or CSCI-GA.2112, Spring 2012 February 9th, 2012 A. Donev (Courant Institute)

More information

MATH 3511 Lecture 1. Solving Linear Systems 1

MATH 3511 Lecture 1. Solving Linear Systems 1 MATH 3511 Lecture 1 Solving Linear Systems 1 Dmitriy Leykekhman Spring 2012 Goals Review of basic linear algebra Solution of simple linear systems Gaussian elimination D Leykekhman - MATH 3511 Introduction

More information

Introduction to Matrix Algebra

Introduction to Matrix Algebra Introduction to Matrix Algebra August 18, 2010 1 Vectors 1.1 Notations A p-dimensional vector is p numbers put together. Written as x 1 x =. x p. When p = 1, this represents a point in the line. When p

More information

Matrix Operations. Linear Combination Vector Algebra Angle Between Vectors Projections and Reflections Equality of matrices, Augmented Matrix

Matrix Operations. Linear Combination Vector Algebra Angle Between Vectors Projections and Reflections Equality of matrices, Augmented Matrix Linear Combination Vector Algebra Angle Between Vectors Projections and Reflections Equality of matrices, Augmented Matrix Matrix Operations Matrix Addition and Matrix Scalar Multiply Matrix Multiply Matrix

More information

Since the determinant of a diagonal matrix is the product of its diagonal elements it is trivial to see that det(a) = α 2. = max. A 1 x.

Since the determinant of a diagonal matrix is the product of its diagonal elements it is trivial to see that det(a) = α 2. = max. A 1 x. APPM 4720/5720 Problem Set 2 Solutions This assignment is due at the start of class on Wednesday, February 9th. Minimal credit will be given for incomplete solutions or solutions that do not provide details

More information

Linear Algebra Massoud Malek

Linear Algebra Massoud Malek CSUEB Linear Algebra Massoud Malek Inner Product and Normed Space In all that follows, the n n identity matrix is denoted by I n, the n n zero matrix by Z n, and the zero vector by θ n An inner product

More information

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3 ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3 ISSUED 24 FEBRUARY 2018 1 Gaussian elimination Let A be an (m n)-matrix Consider the following row operations on A (1) Swap the positions any

More information

MATRICES. a m,1 a m,n A =

MATRICES. a m,1 a m,n A = MATRICES Matrices are rectangular arrays of real or complex numbers With them, we define arithmetic operations that are generalizations of those for real and complex numbers The general form a matrix of

More information

Linear Algebra and Matrices

Linear Algebra and Matrices Linear Algebra and Matrices 4 Overview In this chapter we studying true matrix operations, not element operations as was done in earlier chapters. Working with MAT- LAB functions should now be fairly routine.

More information

Introduction. Vectors and Matrices. Vectors [1] Vectors [2]

Introduction. Vectors and Matrices. Vectors [1] Vectors [2] Introduction Vectors and Matrices Dr. TGI Fernando 1 2 Data is frequently arranged in arrays, that is, sets whose elements are indexed by one or more subscripts. Vector - one dimensional array Matrix -

More information

MAC Module 3 Determinants. Learning Objectives. Upon completing this module, you should be able to:

MAC Module 3 Determinants. Learning Objectives. Upon completing this module, you should be able to: MAC 2 Module Determinants Learning Objectives Upon completing this module, you should be able to:. Determine the minor, cofactor, and adjoint of a matrix. 2. Evaluate the determinant of a matrix by cofactor

More information

Linear Systems and Matrices

Linear Systems and Matrices Department of Mathematics The Chinese University of Hong Kong 1 System of m linear equations in n unknowns (linear system) a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.......

More information

Review of Linear Algebra

Review of Linear Algebra Review of Linear Algebra Definitions An m n (read "m by n") matrix, is a rectangular array of entries, where m is the number of rows and n the number of columns. 2 Definitions (Con t) A is square if m=

More information

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

Math 18, Linear Algebra, Lecture C00, Spring 2017 Review and Practice Problems for Final Exam Math 8, Linear Algebra, Lecture C, Spring 7 Review and Practice Problems for Final Exam. The augmentedmatrix of a linear system has been transformed by row operations into 5 4 8. Determine if the system

More information

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

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p Math Bootcamp 2012 1 Review of matrix algebra 1.1 Vectors and rules of operations An p-dimensional vector is p numbers put together. Written as x 1 x =. x p. When p = 1, this represents a point in the

More information

4 Linear Algebra Review

4 Linear Algebra Review Linear Algebra Review For this topic we quickly review many key aspects of linear algebra that will be necessary for the remainder of the text 1 Vectors and Matrices For the context of data analysis, the

More information

EE731 Lecture Notes: Matrix Computations for Signal Processing

EE731 Lecture Notes: Matrix Computations for Signal Processing EE731 Lecture Notes: Matrix Computations for Signal Processing James P. Reilly c Department of Electrical and Computer Engineering McMaster University September 22, 2005 0 Preface This collection of ten

More information

Linear Algebra Review

Linear Algebra Review Chapter 1 Linear Algebra Review It is assumed that you have had a beginning course in linear algebra, and are familiar with matrix multiplication, eigenvectors, etc I will review some of these terms here,

More information

CPE 310: Numerical Analysis for Engineers

CPE 310: Numerical Analysis for Engineers CPE 310: Numerical Analysis for Engineers Chapter 2: Solving Sets of Equations Ahmed Tamrawi Copyright notice: care has been taken to use only those web images deemed by the instructor to be in the public

More information

4 Linear Algebra Review

4 Linear Algebra Review 4 Linear Algebra Review For this topic we quickly review many key aspects of linear algebra that will be necessary for the remainder of the course 41 Vectors and Matrices For the context of data analysis,

More information

Lecture 9. Errors in solving Linear Systems. J. Chaudhry (Zeb) Department of Mathematics and Statistics University of New Mexico

Lecture 9. Errors in solving Linear Systems. J. Chaudhry (Zeb) Department of Mathematics and Statistics University of New Mexico Lecture 9 Errors in solving Linear Systems J. Chaudhry (Zeb) Department of Mathematics and Statistics University of New Mexico J. Chaudhry (Zeb) (UNM) Math/CS 375 1 / 23 What we ll do: Norms and condition

More information

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

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form Chapter 5. Linear Algebra A linear (algebraic) equation in n unknowns, x 1, x 2,..., x n, is an equation of the form a 1 x 1 + a 2 x 2 + + a n x n = b where a 1, a 2,..., a n and b are real numbers. 1

More information

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

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 Section 5.5. Matrices and Vectors A matrix is a rectangular array of objects arranged in rows and columns. The objects are called the entries. A matrix with m rows and n columns is called an m n matrix.

More information

Chapter Two Elements of Linear Algebra

Chapter Two Elements of Linear Algebra Chapter Two Elements of Linear Algebra Previously, in chapter one, we have considered single first order differential equations involving a single unknown function. In the next chapter we will begin to

More information

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition Prof. Tesler Math 283 Fall 2018 Also see the separate version of this with Matlab and R commands. Prof. Tesler Diagonalizing

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2 MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS SYSTEMS OF EQUATIONS AND MATRICES Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a

More information

DS-GA 1002 Lecture notes 0 Fall Linear Algebra. These notes provide a review of basic concepts in linear algebra.

DS-GA 1002 Lecture notes 0 Fall Linear Algebra. These notes provide a review of basic concepts in linear algebra. DS-GA 1002 Lecture notes 0 Fall 2016 Linear Algebra These notes provide a review of basic concepts in linear algebra. 1 Vector spaces You are no doubt familiar with vectors in R 2 or R 3, i.e. [ ] 1.1

More information

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

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 Section 5.5. Matrices and Vectors A matrix is a rectangular array of objects arranged in rows and columns. The objects are called the entries. A matrix with m rows and n columns is called an m n matrix.

More information

3. Vector spaces 3.1 Linear dependence and independence 3.2 Basis and dimension. 5. Extreme points and basic feasible solutions

3. Vector spaces 3.1 Linear dependence and independence 3.2 Basis and dimension. 5. Extreme points and basic feasible solutions A. LINEAR ALGEBRA. CONVEX SETS 1. Matrices and vectors 1.1 Matrix operations 1.2 The rank of a matrix 2. Systems of linear equations 2.1 Basic solutions 3. Vector spaces 3.1 Linear dependence and independence

More information

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

Preliminary Linear Algebra 1. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 100 Preliminary Linear Algebra 1 Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 1 / 100 Notation for all there exists such that therefore because end of proof (QED) Copyright c 2012

More information

CS 246 Review of Linear Algebra 01/17/19

CS 246 Review of Linear Algebra 01/17/19 1 Linear algebra In this section we will discuss vectors and matrices. We denote the (i, j)th entry of a matrix A as A ij, and the ith entry of a vector as v i. 1.1 Vectors and vector operations A vector

More information

MATH 2030: MATRICES. Example 0.2. Q:Define A 1 =, A. 3 4 A: We wish to find c 1, c 2, and c 3 such that. c 1 + c c

MATH 2030: MATRICES. Example 0.2. Q:Define A 1 =, A. 3 4 A: We wish to find c 1, c 2, and c 3 such that. c 1 + c c MATH 2030: MATRICES Matrix Algebra As with vectors, we may use the algebra of matrices to simplify calculations. However, matrices have operations that vectors do not possess, and so it will be of interest

More information

Quiz ) Locate your 1 st order neighbors. 1) Simplify. Name Hometown. Name Hometown. Name Hometown.

Quiz ) Locate your 1 st order neighbors. 1) Simplify. Name Hometown. Name Hometown. Name Hometown. Quiz 1) Simplify 9999 999 9999 998 9999 998 2) Locate your 1 st order neighbors Name Hometown Me Name Hometown Name Hometown Name Hometown Solving Linear Algebraic Equa3ons Basic Concepts Here only real

More information

Chapter 7. Tridiagonal linear systems. Solving tridiagonal systems of equations. and subdiagonal. E.g. a 21 a 22 a A =

Chapter 7. Tridiagonal linear systems. Solving tridiagonal systems of equations. and subdiagonal. E.g. a 21 a 22 a A = Chapter 7 Tridiagonal linear systems The solution of linear systems of equations is one of the most important areas of computational mathematics. A complete treatment is impossible here but we will discuss

More information

Matrix Algebra for Engineers Jeffrey R. Chasnov

Matrix Algebra for Engineers Jeffrey R. Chasnov Matrix Algebra for Engineers Jeffrey R. Chasnov The Hong Kong University of Science and Technology The Hong Kong University of Science and Technology Department of Mathematics Clear Water Bay, Kowloon

More information

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

2. Linear algebra. matrices and vectors. linear equations. range and nullspace of matrices. function of vectors, gradient and Hessian FE661 - Statistical Methods for Financial Engineering 2. Linear algebra Jitkomut Songsiri matrices and vectors linear equations range and nullspace of matrices function of vectors, gradient and Hessian

More information

Chapter 3 Transformations

Chapter 3 Transformations Chapter 3 Transformations An Introduction to Optimization Spring, 2014 Wei-Ta Chu 1 Linear Transformations A function is called a linear transformation if 1. for every and 2. for every If we fix the bases

More information

Background Mathematics (2/2) 1. David Barber

Background Mathematics (2/2) 1. David Barber Background Mathematics (2/2) 1 David Barber University College London Modified by Samson Cheung (sccheung@ieee.org) 1 These slides accompany the book Bayesian Reasoning and Machine Learning. The book and

More information

Linear Algebra Homework and Study Guide

Linear Algebra Homework and Study Guide Linear Algebra Homework and Study Guide Phil R. Smith, Ph.D. February 28, 20 Homework Problem Sets Organized by Learning Outcomes Test I: Systems of Linear Equations; Matrices Lesson. Give examples of

More information

Quantum Computing Lecture 2. Review of Linear Algebra

Quantum Computing Lecture 2. Review of Linear Algebra Quantum Computing Lecture 2 Review of Linear Algebra Maris Ozols Linear algebra States of a quantum system form a vector space and their transformations are described by linear operators Vector spaces

More information

Math Lecture 26 : The Properties of Determinants

Math Lecture 26 : The Properties of Determinants Math 2270 - Lecture 26 : The Properties of Determinants Dylan Zwick Fall 202 The lecture covers section 5. from the textbook. The determinant of a square matrix is a number that tells you quite a bit about

More information

Linear Algebra: Lecture notes from Kolman and Hill 9th edition.

Linear Algebra: Lecture notes from Kolman and Hill 9th edition. Linear Algebra: Lecture notes from Kolman and Hill 9th edition Taylan Şengül March 20, 2019 Please let me know of any mistakes in these notes Contents Week 1 1 11 Systems of Linear Equations 1 12 Matrices

More information

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

MATH 240 Spring, Chapter 1: Linear Equations and Matrices MATH 240 Spring, 2006 Chapter Summaries for Kolman / Hill, Elementary Linear Algebra, 8th Ed. Sections 1.1 1.6, 2.1 2.2, 3.2 3.8, 4.3 4.5, 5.1 5.3, 5.5, 6.1 6.5, 7.1 7.2, 7.4 DEFINITIONS Chapter 1: Linear

More information

ORIE 6300 Mathematical Programming I August 25, Recitation 1

ORIE 6300 Mathematical Programming I August 25, Recitation 1 ORIE 6300 Mathematical Programming I August 25, 2016 Lecturer: Calvin Wylie Recitation 1 Scribe: Mateo Díaz 1 Linear Algebra Review 1 1.1 Independence, Spanning, and Dimension Definition 1 A (usually infinite)

More information

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.

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. Introduction Matrix Operations Matrix: An m n matrix A is an m-by-n array of scalars from a field (for example real numbers) of the form a a a n a a a n A a m a m a mn The order (or size) of A is m n (read

More information

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

2. Every linear system with the same number of equations as unknowns has a unique solution. 1. For matrices A, B, C, A + B = A + C if and only if A = B. 2. Every linear system with the same number of equations as unknowns has a unique solution. 3. Every linear system with the same number of equations

More information

LS.1 Review of Linear Algebra

LS.1 Review of Linear Algebra LS. LINEAR SYSTEMS LS.1 Review of Linear Algebra In these notes, we will investigate a way of handling a linear system of ODE s directly, instead of using elimination to reduce it to a single higher-order

More information

Matrices and Vectors. Definition of Matrix. An MxN matrix A is a two-dimensional array of numbers A =

Matrices and Vectors. Definition of Matrix. An MxN matrix A is a two-dimensional array of numbers A = 30 MATHEMATICS REVIEW G A.1.1 Matrices and Vectors Definition of Matrix. An MxN matrix A is a two-dimensional array of numbers A = a 11 a 12... a 1N a 21 a 22... a 2N...... a M1 a M2... a MN A matrix can

More information

Numerical Methods. Elena loli Piccolomini. Civil Engeneering. piccolom. Metodi Numerici M p. 1/??

Numerical Methods. Elena loli Piccolomini. Civil Engeneering.  piccolom. Metodi Numerici M p. 1/?? Metodi Numerici M p. 1/?? Numerical Methods Elena loli Piccolomini Civil Engeneering http://www.dm.unibo.it/ piccolom elena.loli@unibo.it Metodi Numerici M p. 2/?? Least Squares Data Fitting Measurement

More information

1 Multiply Eq. E i by λ 0: (λe i ) (E i ) 2 Multiply Eq. E j by λ and add to Eq. E i : (E i + λe j ) (E i )

1 Multiply Eq. E i by λ 0: (λe i ) (E i ) 2 Multiply Eq. E j by λ and add to Eq. E i : (E i + λe j ) (E i ) Direct Methods for Linear Systems Chapter Direct Methods for Solving Linear Systems Per-Olof Persson persson@berkeleyedu Department of Mathematics University of California, Berkeley Math 18A Numerical

More information

Practical Linear Algebra: A Geometry Toolbox

Practical Linear Algebra: A Geometry Toolbox Practical Linear Algebra: A Geometry Toolbox Third edition Chapter 12: Gauss for Linear Systems Gerald Farin & Dianne Hansford CRC Press, Taylor & Francis Group, An A K Peters Book www.farinhansford.com/books/pla

More information

Formula for the inverse matrix. Cramer s rule. Review: 3 3 determinants can be computed expanding by any row or column

Formula for the inverse matrix. Cramer s rule. Review: 3 3 determinants can be computed expanding by any row or column Math 20F Linear Algebra Lecture 18 1 Determinants, n n Review: The 3 3 case Slide 1 Determinants n n (Expansions by rows and columns Relation with Gauss elimination matrices: Properties) Formula for the

More information

Matrices and Matrix Algebra.

Matrices and Matrix Algebra. Matrices and Matrix Algebra 3.1. Operations on Matrices Matrix Notation and Terminology Matrix: a rectangular array of numbers, called entries. A matrix with m rows and n columns m n A n n matrix : a square

More information

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices Graphics 2009/2010, period 1 Lecture 4 Matrices m n matrices Matrices Definitions Diagonal, Identity, and zero matrices Addition Multiplication Transpose and inverse The system of m linear equations in

More information

TBP MATH33A Review Sheet. November 24, 2018

TBP MATH33A Review Sheet. November 24, 2018 TBP MATH33A Review Sheet November 24, 2018 General Transformation Matrices: Function Scaling by k Orthogonal projection onto line L Implementation If we want to scale I 2 by k, we use the following: [

More information

Gaussian Elimination and Back Substitution

Gaussian Elimination and Back Substitution Jim Lambers MAT 610 Summer Session 2009-10 Lecture 4 Notes These notes correspond to Sections 31 and 32 in the text Gaussian Elimination and Back Substitution The basic idea behind methods for solving

More information

b 1 b 2.. b = b m A = [a 1,a 2,...,a n ] where a 1,j a 2,j a j = a m,j Let A R m n and x 1 x 2 x = x n

b 1 b 2.. b = b m A = [a 1,a 2,...,a n ] where a 1,j a 2,j a j = a m,j Let A R m n and x 1 x 2 x = x n Lectures -2: Linear Algebra Background Almost all linear and nonlinear problems in scientific computation require the use of linear algebra These lectures review basic concepts in a way that has proven

More information

G1110 & 852G1 Numerical Linear Algebra

G1110 & 852G1 Numerical Linear Algebra The University of Sussex Department of Mathematics G & 85G Numerical Linear Algebra Lecture Notes Autumn Term Kerstin Hesse (w aw S w a w w (w aw H(wa = (w aw + w Figure : Geometric explanation of the

More information

Linear Equations in Linear Algebra

Linear Equations in Linear Algebra 1 Linear Equations in Linear Algebra 1.7 LINEAR INDEPENDENCE LINEAR INDEPENDENCE Definition: An indexed set of vectors {v 1,, v p } in n is said to be linearly independent if the vector equation x x x

More information

A Brief Outline of Math 355

A Brief Outline of Math 355 A Brief Outline of Math 355 Lecture 1 The geometry of linear equations; elimination with matrices A system of m linear equations with n unknowns can be thought of geometrically as m hyperplanes intersecting

More information

Lecture 3: Matrix and Matrix Operations

Lecture 3: Matrix and Matrix Operations Lecture 3: Matrix and Matrix Operations Representation, row vector, column vector, element of a matrix. Examples of matrix representations Tables and spreadsheets Scalar-Matrix operation: Scaling a matrix

More information