ECIV 520 Structural Analysis II Review of Matrix Algebra.

Slides:



Advertisements
Similar presentations
BAI CM20144 Applications I: Mathematics for Applications Mark Wood
Advertisements

Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
Matrix Algebra Matrix algebra is a means of expressing large numbers of calculations made upon ordered sets of numbers. Often referred to as Linear Algebra.
Matrix Algebra Matrix algebra is a means of expressing large numbers of calculations made upon ordered sets of numbers. Often referred to as Linear Algebra.
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Solution of linear system of equations
Chapter 9 Gauss Elimination The Islamic University of Gaza
3_3 An Useful Overview of Matrix Algebra
Linear Algebraic Equations
Special Matrices and Gauss-Siedel
Lecture 15 Recursive and Iterative Formula for Determinants Shang-Hua Teng.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 12 System of Linear Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 20 Solution of Linear System of Equations - Iterative Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 19 Solution of Linear System of Equations - Iterative Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
Special Matrices and Gauss-Siedel
Chapter 2 Matrices Definition of a matrix.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 15 Solution of Systems of Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 18 LU Decomposition and Matrix Inversion.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Matrices and Determinants
Finding the Inverse of a Matrix
Chapter 5 Determinants.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
3.8 Matrices.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Linear Algebra & Matrices MfD 2004 María Asunción Fernández Seara January 21 st, 2004 “The beginnings of matrices and determinants.
Chapter 8 Objectives Understanding matrix notation.
Compiled By Raj G. Tiwari
Scientific Computing Linear Systems – LU Factorization.
ECON 1150 Matrix Operations Special Matrices
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
 Row and Reduced Row Echelon  Elementary Matrices.
ENM 503 Block 2 Lesson 7 – Matrix Methods
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Matrices, Transformations and the 3D Pipeline Matthew Rusch Paul Keet.
Matrix Algebra and Regression a matrix is a rectangular array of elements m=#rows, n=#columns  m x n a single value is called a ‘scalar’ a single row.
Lecture 8 Matrix Inverse and LU Decomposition
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
Lesson 3 CSPP58001.
Fundamentals of Engineering Analysis
Chapter 9 Gauss Elimination The Islamic University of Gaza
Chapter 2 … part1 Matrices Linear Algebra S 1. Ch2_2 2.1 Addition, Scalar Multiplication, and Multiplication of Matrices Definition A matrix is a rectangular.
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,
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.
Numerical Methods.  LU Decomposition is another method to solve a set of simultaneous linear equations  For most non-singular matrix [A] that one could.
Numerical Computation Lecture 6: Linear Systems – part II United International College.
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.
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices.
Matrices Introduction.
MAT 322: LINEAR ALGEBRA.
Matrices and Vector Concepts
nhaa/imk/sem /eqt101/rk12/32
Spring Dr. Jehad Al Dallal
DETERMINANT MATRIX YULVI ZAIKA.
Unit 3: Matrices
Review of Matrix Algebra
Numerical Analysis Lecture14.
CSE 541 – Numerical Methods
Linear Systems Numerical Methods.
Chapter 11 Chapter 11.
Lecture 8 Matrix Inverse and LU Decomposition
Presentation transcript:

ECIV 520 Structural Analysis II Review of Matrix Algebra

Linear Equations in Matrix Form

Matrix Algebra Rectangular Array of Elements Represented by a single symbol [A]

Matrix Algebra Row 1 Row 3 Column 2Column m n x m Matrix

Matrix Algebra 3 rd Row 2 nd Column

Matrix Algebra 1 Row, m Columns Row Vector

Matrix Algebra n Rows, 1 Column Column Vector

Matrix Algebra If n = m Square Matrix e.g. n=m=5 Main Diagonal

Matrix Algebra Special Types of Square Matrices Symmetric: a ij = a ji

Matrix Algebra Diagonal: a ij = 0, i  j Special Types of Square Matrices

Matrix Algebra Identity: a ii =1.0 a ij = 0, i  j Special Types of Square Matrices

Matrix Algebra Upper Triangular Special Types of Square Matrices

Matrix Algebra Lower Triangular Special Types of Square Matrices

Matrix Algebra Banded Special Types of Square Matrices

Matrix Operating Rules - Equality [A] mxn =[B] pxq n=pm=qa ij =b ij

Matrix Operating Rules - Addition [C] mxn = [A] mxn +[B] pxq n=p m=q c ij = a ij +b ij

Matrix Operating Rules - Addition Properties [A]+[B] = [B]+[A] [A]+([B]+[C]) = ([A]+[B])+[C]

Multiplication by Scalar

Matrix Multiplication [A] n x m. [B] p x q = [C] n x q m=p

Matrix Multiplication

Matrix Multiplication - Properties Associative: [A]([B][C]) = ([A][B])[C] If dimensions suitable Distributive: [A]([B]+[C]) = [A][B]+[A] [C] Attention: [A][B]  [B][A]

Operations - Transpose

Operations - Trace Square Matrix tr[A] =  a ii

Determinants Are composed of same elements Completely Different Mathematical Concept

Determinants Defined in a recursive form 2x2 matrix

Determinants

Defined in a recursive form 3x3 matrix

Determinants Minor a 11

Determinants Minor a 12

Determinants Minor a 13

Determinants Properties 1)If two rows or two columns of matrix [A] are equal then det[A]=0 2)Interchanging any two rows or columns will change the sign of the det 3)If a row or a column of a matrix is {0} then det[A]=0 4) 5)If we multiply any row or column by a scalar s then 6) If any row or column is replaced by a linear combination of any of the other rows or columns the value of det[A] remains unchanged

Operations - Inverse [A][A] -1 [A] [A] -1 =[I] If [A] -1 does not exist [A] is singular

Operations - Inverse Calculation of [A] -1

Solution of Linear Equations

Numerical Solution of Linear Equations

Solution of Linear Equations Consider the system

Solution of Linear Equations

Express In Matrix Form Upper Triangular What is the characteristic? Solution by Back Substitution

Solution of Linear Equations Objective Can we express any system of equations in a form 0

Background Consider (Eq 1) (Eq 2) Solution 2*(Eq 1) (Eq 2) Solution !!!!!! Scaling Does Not Change the Solution

Background Consider (Eq 1) (Eq 2)-(Eq 1) Solution !!!!!! (Eq 1) (Eq 2) Solution Operations Do Not Change the Solution

Gauss Elimination Example Forward Elimination

Gauss Elimination -

Substitute 2 nd eq with new

Gauss Elimination -

Substitute 3rd eq with new

Gauss Elimination -

Substitute 3rd eq with new

Gauss Elimination

Gauss Elimination – Potential Problem Forward Elimination

Gauss Elimination – Potential Problem Division By Zero!! Operation Failed

Gauss Elimination – Potential Problem OK!!

Gauss Elimination – Potential Problem Pivoting

Partial Pivoting a 32 >a 22 a l2 >a 22 NO YES

Partial Pivoting

Full Pivoting In addition to row swaping Search columns for max elements Swap Columns Change the order of x i Most cases not necessary

EXAMPLE

Eliminate Column 1 PIVOTS

Eliminate Column 1

Eliminate Column 2 PIVOTS

Eliminate Column 2 Upper Triangular Matrix [ U ] Modified RHS { b }

LU Decomposition PIVOTS Column 1 PIVOTS Column 2

LU Decomposition As many as, and in the location of, zeros Upper Triangular Matrix U

LU Decomposition PIVOTS Column 1 PIVOTS Column 2 Lower Triangular Matrix L

LU Decomposition = This is the original matrix!!!!!!!!!!

LU Decomposition [ L ]{ y }{ b } [ A ]{ x }{ b }

LU Decomposition Lyb

Modified RHS { b }

LU Decomposition Ax=b A=LU -LU Decomposition Ly=b- Solve for y Ux=y- Solve for x

Matrix Inversion

[A][A] -1 [A] [A] -1 =[I] If [A] -1 does not exist [A] is singular

Matrix Inversion

Solution

Matrix Inversion [A] [A] -1 =[I]

Matrix Inversion

To calculate the invert of a nxn matrix solve n times :

Matrix Inversion For example in order to calculate the inverse of:

Matrix Inversion First Column of Inverse is solution of

Matrix Inversion Second Column of Inverse is solution of

Matrix Inversion Third Column of Inverse is solution of:

Use LU Decomposition

Use LU Decomposition – 1 st column Forward SUBSTITUTION

Use LU Decomposition – 1 st column Back SUBSTITUTION

Use LU Decomposition – 2 nd Column Forward SUBSTITUTION

Use LU Decomposition – 2 nd Column Back SUBSTITUTION

Use LU Decomposition – 3 rd Column Forward SUBSTITUTION

Use LU Decomposition – 3 rd Column Back SUBSTITUTION

Result

Test It

Iterative Methods Recall Techniques for Root finding of Single Equations Initial Guess New Estimate Error Calculation Repeat until Convergence

Gauss Seidel

First Iteration: Better Estimate

Gauss Seidel Second Iteration: Better Estimate

Gauss Seidel Iteration Error: Convergence Criterion:

Jacobi Iteration

First Iteration: Better Estimate

Jacobi Iteration Second Iteration: Better Estimate

Jacobi Iteration Iteration Error: