CSE 541 – Numerical Methods

Slides:



Advertisements
Similar presentations
1.5 Elementary Matrices and a Method for Finding
Advertisements

Matrix Definition: An array of numbers in m rows and n colums is called an mxn matrix A square matrix of order n, is an (nxn) matrix.
Matrices & Systems of Linear Equations
Lecture 6 Matrix Operations and Gaussian Elimination for Solving Linear Systems Shang-Hua Teng.
MF-852 Financial Econometrics
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 12 System of Linear Equations.
Chapter 2 Matrices Definition of a matrix.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
Economics 2301 Matrices Lecture 13.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Matrices MSU CSE 260.
Matrices and Determinants
Chapter 5 Determinants.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Chapter 1: Matrices Definition 1: A matrix is a rectangular array of numbers arranged in horizontal rows and vertical columns. EXAMPLE:
Compiled By Raj G. Tiwari
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
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
Patrick Nichols Thursday, September 18, Linear Algebra Review.
Systems of Linear Equation 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.
ENM 503 Block 2 Lesson 7 – Matrix Methods
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 : “shiv rpi” Linear Algebra A gentle introduction Linear Algebra has become as basic and as applicable.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
8.1 Matrices & Systems of Equations
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.
6.837 Linear Algebra Review Rob Jagnow Monday, September 20, 2004.
Chapter 3 Determinants Linear Algebra. Ch03_2 3.1 Introduction to Determinants Definition The determinant of a 2  2 matrix A is denoted |A| and is given.
Introduction and Definitions
Chapter 2 Determinants. With each square matrix it is possible to associate a real number called the determinant of the matrix. The value of this number.
Matrices and Determinants
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,
Linear Algebra Review Tuesday, September 7, 2010.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Lecture 1 Linear algebra Vectors, matrices. Linear algebra Encyclopedia Britannica:“a branch of mathematics that is concerned with mathematical structures.
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
Linear Algebra by Dr. Shorouk Ossama.
Matrices Introduction.
MTH108 Business Math I Lecture 20.
2. Matrix Methods
Sec 3.6 Determinants 2x2 matrix Evaluate the determinant of.
MAT 322: LINEAR ALGEBRA.
Matrices and Vector Concepts
Boyce/DiPrima 10th ed, Ch 7.2: Review of Matrices Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and.
nhaa/imk/sem /eqt101/rk12/32
Matrices.
Linear Algebra Lecture 2.
Chapter 7 Matrix Mathematics
CHAPTER 2 MATRICES Determinant Inverse.
5 Systems of Linear Equations and Matrices
Linear independence and matrix rank
L5 matrix.
Systems of First Order Linear Equations
DETERMINANT MATRIX YULVI ZAIKA.
Lecture 11 Matrices and Linear Algebra with MATLAB
Chapter 3 Linear Algebra
Matrices Introduction.
6 Systems of Linear Equations and Matrices
Presented By Farheen Sultana Ist Year I SEM
Systems of Linear Equations and Matrices
Laboratory in Oceanography: Data and Methods
Matrix Operations Ms. Olifer.
3.5 Perform Basic Matrix Operations Algebra II.
Matrices and Determinants
Presentation transcript:

CSE 541 – Numerical Methods Linear Systems

Example Suppose we have three masses all connected by springs. Each spring has the same constant k. Simple force balance gives us accelerations in terms of displacements.

Simple Force Equation Recall from elementary physics, that F=ma, or ma=F).

Simple Force Equation If we attach the masses and then let go, physically we know that it will oscillate Crucial question is what is the steady state i.e., no acceleration How do we solve such a linear system of equations? Occurs in many circumstances: mass balances, circuit design, stress-strain, weather forecasting, light propagation, etc.

Systems of Equations This simple example produces 3 equations in three unknowns: Geometrically this represents 3 planes in space.

Systems of Equations Three different things can happen: Planes intersect at a single point. A unique solution to the system of equations.

Systems of Equations Planes do not intersect at all: (At least two are parallel). parallel planes

Systems of Equations Planes intersect at an infinite number of points (plane or line).

Systems of Equations How do we know whether a unique solution exists? How do we find such a solution?

Systems of Equations In general, we may have n equations in n unknowns. Can we find a solution? Can we program an algorithm to efficiently find a solution? Is it well behaved? Accuracy? Convergence? Stability?

What is a Matrix? A matrix is a set of elements, organized into rows and columns rows columns

Matrix Definitions n x m Array of Scalars (n Rows and m Columns) n: row dimension of a matrix, m: column dimension m = n  square matrix of dimension n Element

Matrix Definitions Column Matrices and Row Matrices Column matrix (n x 1 matrix): Row matrix (1 x n matrix): a = [ai] = [a1 a2 … an]

Basic Matrix Operations Addition (just add each element) Each matrix must be the same size! Properties of Matrix-Matrix Addition Commutative: Associative:

Basic Matrix Operations Subtraction

Basic Matrix Operations Scalar-Matrix Multiplication Properties of Scalar-Matrix Multiplication

Basic Matrix Operations Matrix-Matrix Multiplication A: n x l matrix, B: l x m  C: n x m matrix example

Matrix Multiplication Matrices A and B have these dimensions: [n x m] and [p x q]

Matrix Multiplication Matrices A and B can be multiplied if: [n x m] and [p x q] m = p

Matrix Multiplication The resulting matrix will have the dimensions: [n x m] and [p x q] n x q

Computation: A x B = C [2 x 2] [2 x 3] [2 x 3]

Computation: A x B = C [3 x 2] [2 x 3] [3 x 3] A and B can be multiplied [3 x 3]

Computation: A x B = C [3 x 2] [2 x 3] Result is 3 x 3 [3 x 3]

Matrix Multiplication Is AB = BA? Maybe, but maybe not! Heads up: multiplication is NOT commutative!

Matrix Multiplication Properties of Matrix-Matrix Multiplication

The Identity Matrix Identity Matrix, I, is a Square Matrix: Properties of the Identity matrix: AI = A IA = A Multiplying a matrix with the Identity matrix does not change the initial matrix.

Vector Operations Vector: 1 x N matrix Interpretation: a line in N dimensional space Dot Product, Cross Product, and Magnitude defined on vectors only y v x

Matrix Transpose Transpose: interchanging the rows and columns of a matrix. Properties of the Transpose (AT)T = A (A + B) T = AT + BT (AB) T = BT AT

Inverse of a Matrix Some matrices have an inverse, such that: AA-1 = I, and A-1A = I By definition: I-1 = I, since I-1I = I-1 Inversion is tricky: (ABC)-1 = C-1B-1A-1 Derived from non-commutativity property

Determinant of a Matrix Used for inversion If det(A) = 0, then A has no inverse Can be found using factorials, pivots, and cofactors.

Complexity of Matrix Ops Consider a square matrix of nxn with N elements Matrix Addition N additions, so either O(N) or O(n2) Scalar-Matrix multiplication Matrix-Matrix multiplication Each element has a row-column dot product. Each element => n multiplications and n-1 additions Total is n3 multiplications and n3-n2 additions, O(n3)

System of Linear Equations If our system of equations is linear, then we can write the system as a matrix times a vector of the unknowns equal to the constant terms.

System of Linear Equations Examples in three-dimensions

System of Linear Equations Each of these examples can be expressed in a simple matrix form: Where A is a nxn matrix, x and b are nx1 column matrices (or vectors).

Special Matrices Some matrices have special powers or properties: Symmetric matrix Diagonal matrix Lower Triangular matrix Upper Triangular matrix Banded matrix

Symmetric Matrices Symmetric matrix – elements are symmetric about the diagonal. {aij} = {aji} for all i,j a12 = a21, a33=a33, etc. Implies A is equal to its transpose. A = AT

Diagonal Matrices A diagonal matrix has zero’s everywhere except possibly along the diagonal. {aij} = 0 for all i ≠ j. Addition, scalar-matrix multiplication and matrix-matrix multiplication among diagonal matrices preserves diagonal matrices. C = AB {cij} = 0 i ≠ j; {cii} = {aiibii} All operations are only O(n). O(n)

Lower Triangular Matrix A lower-triangular matrix has a value of zero for all elements above the diagonal. {lij} = 0 i < j. Can you solve the first equation?

Upper-Triangular Matrix A upper-triangular matrix has a value of zero for all elements below the diagonal. {uij} = 0 i > j. Can you solve the last equation?

Banded Matrices A banded matrix has zeros as we move away from the diagonal. {bij} = 0 i > j+b and i < j-b. band-width b