Matrices SSP 2017.

Slides:



Advertisements
Similar presentations
Adding & Subtracting Matrices
Advertisements

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.
Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
CHAPTER 1 Section 1.6 إعداد د. هيله العودان (وضعت باذن معدة العرض)
Maths for Computer Graphics
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
MATRICES Using matrices to solve Systems of Equations.
Matrices and Determinants
Finding the Inverse of a Matrix
Chapter 5 Determinants.
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
A Fast Introduction inverse matrix1 What is a matrix (One Matrix many matrices) Why do they exist Matrix Terminology Elements Rows Columns Square.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Section 10.3 – The Inverse of a Matrix No Calculator.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
3.5 Solution by Determinants. The Determinant of a Matrix The determinant of a matrix A is denoted by |A|. Determinants exist only for square matrices.
Systems and Matrices (Chapter5)
 Row and Reduced Row Echelon  Elementary Matrices.
Rev.S08 MAC 1140 Module 10 System of Equations and Inequalities II.
Matrix Inversion.
Row Reduction Method Lesson 6.4.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
Ch X 2 Matrices, Determinants, and Inverses.
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,
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
ME 142 Engineering Computation I Matrix Operations in Excel.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
4.1: Matrix Operations Objectives: Students will be able to: Add, subtract, and multiply a matrix by a scalar Solve Matrix Equations Use matrices to organize.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Chapter 5 More Work with Matrices
Determinants Every n  n matrix A is associated with a real number called the determinant of A, written  A . The determinant of a 2  2 matrix.
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.
Designed by Victor Help you improve MATRICES Let Maths take you Further… Know how to write a Matrix, Know what is Order of Matrices,
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 =
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices.
Matrices Introduction.
College Algebra Chapter 6 Matrices and Determinants and Applications
Downhill product – Uphill product.
MTH108 Business Math I Lecture 20.
Chapter 7: Systems of Equations and Inequalities; Matrices
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Solving Systems of Equations Using Matrices
MAT 322: LINEAR ALGEBRA.
A Fast Introduction What is a matrix (One Matrix many matrices)
Introduction What is a matrix (One Matrix many matrices)
ECE 3301 General Electrical Engineering
Chapter 7 Matrix Mathematics
Finding the Inverse of a Matrix
MATHEMATICS Linear Equations
5 Systems of Linear Equations and Matrices
Chapter 5 Systems and Matricies. Chapter 5 Systems and Matricies.
Instruction of Chapter 8 on
With an immediate use for it
7.3 Matrices.
Chapter 7: Matrices and Systems of Equations and Inequalities
Using matrices to solve Systems of Equations
Use Inverse Matrices to Solve 2 Variable Linear Systems
Dr Huw Owens Room B44 Sackville Street Building Telephone Number 65891
Section 3.3 – The Inverse of a Matrix
Matrices.
6 Systems of Linear Equations and Matrices
Chapter 7: Matrices and Systems of Equations and Inequalities
Inverse of a Matrix Solving simultaneous equations.
Lecture 7 System of Linear Differential Equations fall semester
Game Programming Algorithms and Techniques
Using matrices to solve Systems of Equations
Matrices and Determinants
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Matrices SSP 2017

Matrices A matrix is an array of numbers arranged in rows and columns; below is a generic “i × j” (pronounced “i by j”) matrix, where i represents the number of rows and j is the number of columns. Each entry is identified by its row and column location, as shown.

Uses of matrices Though there are many uses of matrices in math, science and engineering, at SSP, we concentrate on only a few of them: • Calculating cross-products • Transforming from one coordinate system to another • Solving systems of equations • Using matrix operations in Python Though most of the SSP calculations will be done with 3 × 3 matrices, what follows can be generalized for n × n matrices (or so-called square matrices).

Determinants The first operation with a matrix is to calculate its determinant; by definition, the determinant of a 2 × 2 matrix is (note that the parentheses turned into a straight-sided bracket): The term “determinant” was first used by Augustin-Louis Cauchy in 1812.

For a 3 × 3 matrix, evaluating the determinant is more difficult; the algorithm shown below is called “reduction by minors”. Please note the minus sign in the second term.

Calculating vector cross-products Given vectors A and B, which may be expressed as components:

Coordinate transformations Given all the coordinate transformations we do at SSP (alt-az, RA/dec, and others), matrices provide a calculation method. If you have the coordinates (x, y) in some coordinate system, and you want the coordinates (x’, y’) in a different coordinate system, and the two systems are connected by a rotation through angle θ, then… Hey, derive the transformation equations!

Coordinate transformations x’ = x cos q + y sin q y’ = – x sin q + y cos q which translates, in matrix notation, to: The 2 × 2 matrix is called the rotation matrix R; this equation introduces the notion of matrix multiplication. Note that (x, y) may also specify the components of a vector.

Coordinate transformations What is the determinant of the rotation matrix? What is the significance of this answer?

Coordinate transformations What is the determinant of the rotation matrix? What is the significance of this answer? The determinant is 1, which indicates that the length of any vector undergoing the rotation will not change.

Coordinate transformations That transformation is equivalent to rotating the vector back by an angle q.

Systems of equations First published by Gabriel Cramer in 1750, “Cramer’s Rule” uses matrices to solve a system of n equations with n unknowns (a system of n simultaneous equations). For a system of equations: a11 x1 + a12 x2 + … + a1n xn = b1 a21 x1 + a22 x2 + … + a2n xn = b2 : : : : an1 x1 + an2 x2 + … + ann xn = bn where the a’s and b’s are constants and the x’s are the variables

Systems of equations Create the following determinants: …

Systems of equations Then, the solutions to equation are:

An example A mechanical engineer, a materials scientist and a physicist worked on a component of the Mars Odyssey mission, and, like many technical staff, made life hard for the project manager. Instead of turning in an orderly timesheet for hours worked, the three staff scientists submitted the following note: "Between us, we worked a total of 20 hours. For this, we should be paid a total of $900." To meet strict accounting requirements, the project manager needed to know how many hours each individual scientist worked. She asked them, politely, for more information, to which they replied, tersely, "The materials scientist worked two fewer hours than the mechanical engineer." The project manager smiled; the problem was solved. She knew that the mechanical engineer's pay rate was $60 per hour, the materials scientist's rate was $40 per hour and the physicist's rate was $20 per hour. Who worked how many hours?

Let x = the number of hours the mechanical engineer worked; y = the number of hours the materials scientist worked and z = the number of hours the physicist worked. Then 1 x + 1 y + 1 z = 20 for the hours and 60 x + 40 y + 20 z = 900 for the pay. In addition y + 2 = x or 1 x – 1 y + 0 z = 2, yielding three equations with three unknowns. So x = B1/A = –540/–60 = 9 hours y = B2/A = –420/–60 = 7 hours z = B3/A = –240/–60 = 4 hours

Properties of matrices I is the identity matrix; there are “1”s along the diagonal, and there are “0”s off-diagonal. Any matrix multiplied by this matrix will yield the same matrix. For example,

Properties of matrices In matrix multiplication, an n × m matrix may be multiplied by a m × p matrix, which will result in an n × p matrix. The number of columns in the first matrix must match the number of rows in the second matrix for a meaningful matrix to result.

Properties of matrices A matrix may have a multiplicative inverse; that is, if A is matrix then there may exist a matrix A–1 such that A–1 A = I The inverse of a matrix may be calculated using any number of algorithms (e.g., Gauss-Jordan elimination), but generally, there is a function in most computer languages that performs the inversion. A rotation matrix’s inverse leads to rotation in the opposite direction; what’s the inverse of R?

Properties of matrices A matrix may have a multiplicative inverse; that is, if A is matrix then there may exist a matrix A–1 such that A–1 A = I The inverse of a matrix may be calculated using any number of algorithms (e.g., Gauss-Jordan elimination), but generally, there is a function in most computer languages that performs the inversion.

Properties of matrices A rotation matrix’s inverse leads to rotation in the opposite direction; what’s the inverse of R?

Properties of matrices A rotation matrix’s inverse leads to rotation in the opposite direction; what’s the inverse of R? The inverse of the rotation matrix is also its transpose (all its off-diagonal elements have switched places across the diagonal)