ME 142 Engineering Computation I Matrix Operations in Excel.

Slides:



Advertisements
Similar presentations
Determinant The numerical value of a square array of numbers that can be used to solve systems of equations with matrices. Second-Order Determinant (of.
Advertisements

SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Matrices & Systems of Linear Equations
MF-852 Financial Econometrics
Maths for Computer Graphics
Linear Systems of Equations Ax = b Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und Bioingenieurwissenschaften ETH Hönggerberg/
Chapter 2 Basic Linear Algebra
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Pam Perlich Urban Planning 5/6020
MATRICES Using matrices to solve Systems of Equations.
Matrix Mathematics in MATLAB and Excel
Finding the Inverse of a Matrix
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
1 Chapter 2 Matrices Matrices provide an orderly way of arranging values or functions to enhance the analysis of systems in a systematic manner. Their.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Using Matrices to Solve a System of Equations. Multiplicative Identity Matrix The product of a square matrix A and its identity matrix I, on the left.
1.3 Matrices and Matrix Operations.
Solving Systems of Equations and Inequalities
Chapter 2 Solving Linear Systems Matrix Definitions –Matrix--- Rectangular array/ block of numbers. –The size/order/dimension of a matrix: (The numbers.
 Row and Reduced Row Echelon  Elementary Matrices.
Rev.S08 MAC 1140 Module 10 System of Equations and Inequalities II.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 9 Matrices and Determinants.
1.3 Matrices and Matrix Operations. Definition A matrix is a rectangular array of numbers. The numbers in the array are called the entries in the matrix.
Chapter 2 Systems of Linear Equations and Matrices
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
Lesson 7.6 & 7.7 Inverses of a Square Matrix & Determinant.
1 Ch. 4 Linear Models & Matrix Algebra Matrix algebra can be used: a. To express the system of equations in a compact manner. b. To find out whether solution.
10.4 Matrix Algebra 1.Matrix Notation 2.Sum/Difference of 2 matrices 3.Scalar multiple 4.Product of 2 matrices 5.Identity Matrix 6.Inverse of a matrix.
Algebra 3: Section 5.5 Objectives of this Section Find the Sum and Difference of Two Matrices Find Scalar Multiples of a Matrix Find the Product of Two.
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
4.5 Matrices, Determinants, Inverseres -Identity matrices -Inverse matrix (intro) -An application -Finding inverse matrices (by hand) -Finding inverse.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
ME 142 Engineering Computation I Matrix Operations in Excel.
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.
MATRIX A set of numbers arranged in rows and columns enclosed in round or square brackets is called a matrix. The order of a matrix gives the number of.
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,
1 ECE 102 Engineering Computation Chapter 3 Math Review 3: Cramer’s Rule Dr. Herbert G. Mayer, PSU Status 10/11/2015 For use at CCUT Fall 2015.
1 ECE 221 Electric Circuit Analysis I Chapter 6 Cramer’s Rule Herbert G. Mayer, PSU Status 11/14/2014 For use at Changchun University of Technology CCUT.
Section 2.1 Determinants by Cofactor Expansion. THE DETERMINANT Recall from algebra, that the function f (x) = x 2 is a function from the real numbers.
Linear System of Simultaneous Equations Warm UP First precinct: 6 arrests last week equally divided between felonies and misdemeanors. Second precinct:
Notes Over 4.3 Evaluate Determinants of 2 x 2 Matrices
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
Matrix Algebra Basics Chapter 3 Section 5. Algebra.
If A and B are both m × n matrices then the sum of A and B, denoted A + B, is a matrix obtained by adding corresponding elements of A and B. add these.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
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 =
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.
CHAPTER 7 Determinant s. Outline - Permutation - Definition of the Determinant - Properties of Determinants - Evaluation of Determinants by Elementary.
College Algebra Chapter 6 Matrices and Determinants and Applications
Use Inverse Matrices to Solve Linear Systems
Chapter 7: Systems of Equations and Inequalities; Matrices
CGN 2420 Matrix Operations in Excel
12-1 Organizing Data Using Matrices
ECE 3301 General Electrical Engineering
Chapter 7 Matrix Mathematics
ECON 213 Elements of Mathematics for Economists
Matrix Algebra.
Use Inverse Matrices to Solve 2 Variable Linear Systems
Unit 3: Matrices
Simultaneous Equations
3.8 Use Inverse Matrices to Solve Linear Systems
Matrix Algebra.
College Algebra Chapter 6 Matrices and Determinants and Applications
Inverse of a Matrix Solving simultaneous equations.
3.6 Multiply Matrices.
Using matrices to solve Systems of Equations
Presentation transcript:

ME 142 Engineering Computation I Matrix Operations in Excel

Key Concepts Matrix Basics Matrix Addition Matrix Multiplication Transposing a Matrix Inverting a Matrix The Determinant of a Matrix Matrix Inversion Method Cramer’s Rule

Matrix Basics  What is a Matrix? A matrix may be defined as a collection of numbers, arranged into rows and columns

Matrix Basics  Named cells may be used to define arrays Simplifies process Makes formulas easier to understand  Pre-select the array output area  Use [Shift]+[Ctrl]+[Enter] key combination to execute array commands Populates each cell in array output area with array command

Matrix Addition  The 2 matrices to be added must be the same size  Matrices are added element by element

Matrix Addition =A+B [Shift]+[Cntl]+[Enter]

Matrix Multiplication  In order to multiply 2 matrices, the number of columns in the first matrix must equal the number of rows in the second matrix  Elements in the results matrix are obtained by performing a product-sum of each row in the first matrix by each column in the second matrix

Matrix Multiplication  Row1,col1: 1*1 + 4*(-1) +5*3 = 12  Row1,col2: 1*5 + 4*4 + 5*2 = 31  Row2,col1: 8*1 + 3*(-1) + 2*3 = 11  Row2,col2: 8*5 + 3*4 + 2*2 = 56

Matrix Multiplication: AxB =MMULT(A,B) [Shift]+[Cntl]+[Enter]

Matrix Multiplication: BxA =MMULT(B,A) [Shift]+[Cntl]+[Enter]

Transposing a Matrix =TRANSPOSE(A) [Shift]+[Cntl]+[Enter]  To transposing a matrix simply switch the rows and columns  Any matrix can be transposed

Inverting a Matrix  A matrix multiplied by its inverse matrix results in the identity matrix  The inverse of a matrix can be useful in solving simultaneous equations  Only square matrices (equal number of rows and columns) are possible to invert  Not all square matrices can actually be inverted 3x3 Identity Matrix

Inverting a Matrix

=MINVERSE(D) [Shift]+[Cntl]+[Enter]

Determinant of a Matrix  The determinant of a matrix is a single value, calculated by performing a product-sum on the rows and columns in a matrix  The determinant of a matrix can be useful in solving simultaneous equations  Only square matrices (equal number of rows and columns) have a determinant

Determinant of a Matrix =MDETERM(D) Determinant = 211  Recopy first 2 columns  Multiply and sum diagonals to the right  Multiply and sum diagonals to the left  Difference of sum is determinant (2*2*6 + 3*4*8 + 5*7*11) – (5*2*8 + 2*4*11 + 3*7*6)

Matrix Inversion Method Given linear system of equations in matrix form: Where Then multiplying both sides by [A -1 ], the inversion of [A]

Cramer’s Rule  This rule states that each unknown in a system of linear equations may be expressed as a fraction of two determinants. The determinant of the denominator, D, is obtained from the coefficients of matrix [A] The determinant of the numerator is obtained from D by replacing the column of coefficients of the unknown in question by the coefficients of matrix [B]

Cramer’s Rule Given linear system of equations in matrix form: Where

Cramer’s Rule Then the determinant of [A] may be defined as: And values of [X] may be found from the expressions below:

Cramer’s Rule  Useful in solving systems of 2 or 3 linear equations, by hand or by computer