Refresher: Vector and Matrix Algebra Mike Kirkpatrick Department of Chemical Engineering FAMU-FSU College of Engineering.

Slides:



Advertisements
Similar presentations
Ch 7.7: Fundamental Matrices
Advertisements

1.5 Elementary Matrices and a Method for Finding
Systems of Linear Equations
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
8 CHAPTER Linear Algebra: Matrix Eigenvalue Problems Chapter 8 p1.
Chapter 9 Gauss Elimination The Islamic University of Gaza
Matrix Operations. Matrix Notation Example Equality of Matrices.
Ch 7.3: Systems of Linear Equations, Linear Independence, Eigenvalues
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
Chapter 3 Determinants and Matrices
Review of Matrix Algebra
1 Neural Nets Applications Vectors and Matrices. 2/27 Outline 1. Definition of Vectors 2. Operations on Vectors 3. Linear Dependence of Vectors 4. Definition.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
化工應用數學 授課教師: 郭修伯 Lecture 9 Matrices
A matrix having a single row is called a row matrix. e.g.,
1 Operations with Matrice 2 Properties of Matrix Operations
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Boyce/DiPrima 9th ed, Ch 7.3: Systems of Linear Equations, Linear Independence, Eigenvalues Elementary Differential Equations and Boundary Value Problems,
Compiled By Raj G. Tiwari
Chapter 2 Solving Linear Systems Matrix Definitions –Matrix--- Rectangular array/ block of numbers. –The size/order/dimension of a matrix: (The numbers.
Systems and Matrices (Chapter5)
1 February 24 Matrices 3.2 Matrices; Row reduction Standard form of a set of linear equations: Chapter 3 Linear Algebra Matrix of coefficients: Augmented.
ECON 1150 Matrix Operations Special Matrices
8.1 Vector spaces A set of vector is said to form a linear vector space V Chapter 8 Matrices and vector spaces.
Presentation on Matrices and some special matrices In partial fulfillment of the subject Vector calculus and linear algebra ( ) Submitted by: Agarwal.
 Row and Reduced Row Echelon  Elementary Matrices.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Systems of Linear Equation and Matrices
Matrix Algebra. Quick Review Quick Review Solutions.
MATH 250 Linear Equations and Matrices
CHAPTER 2 MATRIX. CHAPTER OUTLINE 2.1 Introduction 2.2 Types of Matrices 2.3 Determinants 2.4 The Inverse of a Square Matrix 2.5 Types of Solutions to.
Matrices & Determinants Chapter: 1 Matrices & Determinants.
Matrix. REVIEW LAST LECTURE Keyword Parametric form Augmented Matrix Elementary Operation Gaussian Elimination Row Echelon form Reduced Row Echelon form.
8.1 Matrices & Systems of Equations
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
1 MAC 2103 Module 3 Determinants. 2 Rev.F09 Learning Objectives Upon completing this module, you should be able to: 1. Determine the minor, cofactor,
Matrices CHAPTER 8.1 ~ 8.8. Ch _2 Contents  8.1 Matrix Algebra 8.1 Matrix Algebra  8.2 Systems of Linear Algebra Equations 8.2 Systems of Linear.
Unit 3: Matrices.
Linear Algebra 1.Basic concepts 2.Matrix operations.
Chapter 5 Eigenvalues and Eigenvectors 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
Chapter 8 Matrices and Determinants Matrix Solutions to Linear Systems.
Chapter 9 Gauss Elimination The Islamic University of Gaza
Matrices and Determinants
Linear Algebra Chapter 2 Matrices.
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
STROUD Worked examples and exercises are in the text Programme 5: Matrices MATRICES PROGRAMME 5.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
STROUD Worked examples and exercises are in the text PROGRAMME 5 MATRICES.
Boot Camp in Linear Algebra TIM 209 Prof. Ram Akella.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Matrices, Vectors, Determinants.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
1 SYSTEM OF LINEAR EQUATIONS BASE OF VECTOR SPACE.
10.4 Matrix Algebra. 1. Matrix Notation A matrix is an array of numbers. Definition Definition: The Dimension of a matrix is m x n “m by n” where m =
College Algebra Chapter 6 Matrices and Determinants and Applications
7.7 Determinants. Cramer’s Rule
ECE 3301 General Electrical Engineering
Matrices and vector spaces
Systems of First Order Linear Equations
Lecture 11 Matrices and Linear Algebra with MATLAB
Chapter 3 Linear Algebra
Systems of Linear Equations and Matrices
Eigenvalues and Eigenvectors
Matrices and Determinants
Presentation transcript:

Refresher: Vector and Matrix Algebra Mike Kirkpatrick Department of Chemical Engineering FAMU-FSU College of Engineering

Outline Basics: Basics: Operations on vectors and matricesOperations on vectors and matrices Linear systems of algebraic equations Linear systems of algebraic equations Gauss eliminationGauss elimination Matrix rank, existence of a solutionMatrix rank, existence of a solution Inverse of a matrixInverse of a matrix DeterminantsDeterminants Eigenvalues and Eigenvectors Eigenvalues and Eigenvectors applicationsapplications diagonalizationdiagonalization more more

Outline cont’ Special matrix properties Special matrix properties symmetric, skew-symmetric, and orthogonal matricessymmetric, skew-symmetric, and orthogonal matrices Hermitian, skew-Hermitian, and unitary matricesHermitian, skew-Hermitian, and unitary matrices

Matrices A matrix is a rectangular array of numbers (or functions). A matrix is a rectangular array of numbers (or functions). The matrix shown above is of size m x n. Note that this designates first the number of rows, then the number of columns. The matrix shown above is of size m x n. Note that this designates first the number of rows, then the number of columns. The elements of a matrix, here represented by the letter ‘a’ with subscripts, can consist of numbers, variables, or functions of variables. The elements of a matrix, here represented by the letter ‘a’ with subscripts, can consist of numbers, variables, or functions of variables.

Vectors A vector is simply a matrix with either one row or one column. A matrix with one row is called a row vector, and a matrix with one column is called a column vector. A vector is simply a matrix with either one row or one column. A matrix with one row is called a row vector, and a matrix with one column is called a column vector. Transpose: A row vector can be changed into a column vector and vice-versa by taking the transpose of that vector. e.g.: Transpose: A row vector can be changed into a column vector and vice-versa by taking the transpose of that vector. e.g.:

Matrix Addition Matrix addition is only possible between two matrices which have the same size. Matrix addition is only possible between two matrices which have the same size. The operation is done simply by adding the corresponding elements. e.g.: The operation is done simply by adding the corresponding elements. e.g.:

Matrix scalar multiplication Multiplication of a matrix or a vector by a scalar is also straightforward: Multiplication of a matrix or a vector by a scalar is also straightforward:

Transpose of a matrix Taking the transpose of a matrix is similar to that of a vector: Taking the transpose of a matrix is similar to that of a vector: The diagonal elements in the matrix are unaffected, but the other elements are switched. A matrix which is the same as its own transpose is called symmetric, and one which is the negative of its own transpose is called skew-symmetric. The diagonal elements in the matrix are unaffected, but the other elements are switched. A matrix which is the same as its own transpose is called symmetric, and one which is the negative of its own transpose is called skew-symmetric.

Matrix Multiplication The multiplication of a matrix into another matrix not possible for all matrices, and the operation is not commutative: The multiplication of a matrix into another matrix not possible for all matrices, and the operation is not commutative: AB ≠ BA in general In order to multiply two matrices, the first matrix must have the same number of columns as the second matrix has rows. In order to multiply two matrices, the first matrix must have the same number of columns as the second matrix has rows. So, if one wants to solve for C=AB, then the matrix A must have as many columns as the matrix B has rows. So, if one wants to solve for C=AB, then the matrix A must have as many columns as the matrix B has rows. The resulting matrix C will have the same number of rows as did A and the same number of columns as did B. The resulting matrix C will have the same number of rows as did A and the same number of columns as did B.

Matrix Multiplication The operation is done as follows: The operation is done as follows: using index notation: for example: for example:

Linear systems of equations One of the most important application of matrices is for solving linear systems of equations which appear in many different problems including electrical networks, statistics, and numerical methods for differential equations. One of the most important application of matrices is for solving linear systems of equations which appear in many different problems including electrical networks, statistics, and numerical methods for differential equations. A linear system of equations can be written: A linear system of equations can be written: a 11 x 1 + … + a 1n x n = b 1 a 21 x 1 + … + a 2n x n = b 2 : a m1 x 1 + … + a mn x n = b m This is a system of m equations and n unknowns. This is a system of m equations and n unknowns.

The system of equations shown on the previous slide can be written more compactly as a matrix equation: The system of equations shown on the previous slide can be written more compactly as a matrix equation:Ax=b where the matrix A contains all the coefficients of the unknown variables from the LHS, x is the vector of unknowns, and b a vector containing the numbers from the RHS where the matrix A contains all the coefficients of the unknown variables from the LHS, x is the vector of unknowns, and b a vector containing the numbers from the RHS Linear systems cont’

Gauss elimination Although these types of problems can be solved easily using a wide number of computational packages, the principle of Gaussian elimination should be understood. Although these types of problems can be solved easily using a wide number of computational packages, the principle of Gaussian elimination should be understood. The principle is to successively eliminate variables from the equations until the system is in ‘triangular’ form, that is, the matrix A will contain all zeros below the diagonal. The principle is to successively eliminate variables from the equations until the system is in ‘triangular’ form, that is, the matrix A will contain all zeros below the diagonal.

A very simple example: A very simple example: -x + 2y = 4 3x + 4y =38 first, divide the second equation by -2, then add to the first equation to eliminate y; the resulting system is: -x + 2y = x = -15x = x = -15x = 6 y = 5 Gauss elimination cont’

Matrix rank The rank of a matrix is simply the number of independent row vectors in that matrix. The rank of a matrix is simply the number of independent row vectors in that matrix. The transpose of a matrix has the same rank as the original matrix. The transpose of a matrix has the same rank as the original matrix. To find the rank of a matrix by hand, use Gauss elimination and the linearly dependant row vectors will fall out, leaving only the linearly independent vectors, the number of which is the rank. To find the rank of a matrix by hand, use Gauss elimination and the linearly dependant row vectors will fall out, leaving only the linearly independent vectors, the number of which is the rank.

Matrix inverse The inverse of the matrix A is denoted as A -1 The inverse of the matrix A is denoted as A -1 By definition, AA -1 = A -1 A = I, where I is the identity matrix. By definition, AA -1 = A -1 A = I, where I is the identity matrix. Theorem: The inverse of an n x n matrix A exists if and only if the rank A = n. Theorem: The inverse of an n x n matrix A exists if and only if the rank A = n. Gauss-Jordan elimination can be used to find the inverse of a matrix by hand. Gauss-Jordan elimination can be used to find the inverse of a matrix by hand.

Determinants Determinants are useful in eigenvalue problems and differential equations. Determinants are useful in eigenvalue problems and differential equations. Can be found only for square matrices. Can be found only for square matrices. Simple example: 2 nd order determinant Simple example: 2 nd order determinant

3 rd order determinant The determinant of a 3 X 3 matrix is found as follows: The determinant of a 3 X 3 matrix is found as follows: The terms on the RHS can be evaluated as shown for a 2 nd order determinant. The terms on the RHS can be evaluated as shown for a 2 nd order determinant.

Some theorems for determinants Cramer’s: If the determinant of a system of n equations with n unknowns is nonzero, that system has precisely one solution. Cramer’s: If the determinant of a system of n equations with n unknowns is nonzero, that system has precisely one solution. det(AB)=det(BA)=det(A)det(B) det(AB)=det(BA)=det(A)det(B)

Eigenvalues and Eigenvectors Let A be an nxn matrix and consider the vector equation: Let A be an nxn matrix and consider the vector equation: Ax = x A value of for which this equation has a solution x≠0 is called an eigenvalue of the matrix A. A value of for which this equation has a solution x≠0 is called an eigenvalue of the matrix A. The corresponding solutions x are called the eigenvectors of the matrix A. The corresponding solutions x are called the eigenvectors of the matrix A.

Solving for eigenvalues Ax=x Ax - x = 0 (A- I)x = 0 This is a homogeneous linear system, homogeneous meaning that the RHS are all zeros. This is a homogeneous linear system, homogeneous meaning that the RHS are all zeros. For such a system, a theorem states that a solution exists given that det(A-I)=0. For such a system, a theorem states that a solution exists given that det(A-I)=0. The eigenvalues are found by solving the above equation. The eigenvalues are found by solving the above equation.

Solving for eigenvalues cont’ Simple example: find the eigenvalues for the matrix: Simple example: find the eigenvalues for the matrix: Eigenvalues are given by the equation det(A-I) = 0: Eigenvalues are given by the equation det(A-I) = 0: So, the roots of the last equation are -1 and -6. These are the eigenvalues of matrix A. So, the roots of the last equation are -1 and -6. These are the eigenvalues of matrix A.

Eigenvectors For each eigenvalue,, there is a corresponding eigenvector, x. For each eigenvalue,, there is a corresponding eigenvector, x. This vector can be found by substituting one of the eigenvalues back into the original equation: Ax = x : for the example:-5x 1 + 2x 2 = x 1 This vector can be found by substituting one of the eigenvalues back into the original equation: Ax = x : for the example:-5x 1 + 2x 2 = x 1 2x 1 – 2x 2 = x 2 2x 1 – 2x 2 = x 2 Using =-1, we get x 2 = 2x 1, and by arbitrarily choosing x 1 = 1, the eigenvector corresponding to =-1 is: Using =-1, we get x 2 = 2x 1, and by arbitrarily choosing x 1 = 1, the eigenvector corresponding to =-1 is: and similarly,

Special matrices A matrix is called symmetric if: A matrix is called symmetric if: A T = A A skew-symmetric matrix is one for which: A skew-symmetric matrix is one for which: A T = -A A T = -A An orthogonal matrix is one whose transpose is also its inverse: An orthogonal matrix is one whose transpose is also its inverse: A T = A -1 A T = A -1

Complex matrices If a matrix contains complex (imaginary) elements, it is often useful to take its complex conjugate. The notation used for the complex conjugate of a matrix A is:  If a matrix contains complex (imaginary) elements, it is often useful to take its complex conjugate. The notation used for the complex conjugate of a matrix A is:  Some special complex matrices are as follows: Some special complex matrices are as follows: Hermitian:  T = A Skew-Hermitian:  T = -A Unitary:  T = A -1