Matrices. Ellen Kulinsky

Similar documents
Matrices. Ellen Kulinsky

Math Linear Algebra Final Exam Review Sheet

det(ka) = k n det A.

1 Last time: determinants

Review for Exam Find all a for which the following linear system has no solutions, one solution, and infinitely many solutions.

Linear algebra and differential equations (Math 54): Lecture 7

1300 Linear Algebra and Vector Geometry

Math Camp Notes: Linear Algebra I

Vectors and matrices: matrices (Version 2) This is a very brief summary of my lecture notes.

MH1200 Final 2014/2015

and let s calculate the image of some vectors under the transformation T.

Linear Algebra M1 - FIB. Contents: 5. Matrices, systems of linear equations and determinants 6. Vector space 7. Linear maps 8.

MATH 1210 Assignment 4 Solutions 16R-T1

MATH 2030: EIGENVALUES AND EIGENVECTORS

Determinants: Uniqueness and more

CPE 310: Numerical Analysis for Engineers

Chapter 2: Matrices and Linear Systems

2. Every linear system with the same number of equations as unknowns has a unique solution.

Math Computation Test 1 September 26 th, 2016 Debate: Computation vs. Theory Whatever wins, it ll be Huuuge!

MAC Module 3 Determinants. Learning Objectives. Upon completing this module, you should be able to:

Chapter 4. Determinants

Math Studio College Algebra

Chapter 2:Determinants. Section 2.1: Determinants by cofactor expansion

[ Here 21 is the dot product of (3, 1, 2, 5) with (2, 3, 1, 2), and 31 is the dot product of

MATH2210 Notebook 2 Spring 2018

Components and change of basis

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices

CHAPTER 8: Matrices and Determinants

8 Square matrices continued: Determinants

Solving Consistent Linear Systems

Linear Algebra 1 Exam 1 Solutions 6/12/3

The determinant. Motivation: area of parallelograms, volume of parallepipeds. Two vectors in R 2 : oriented area of a parallelogram

Section 2.2: The Inverse of a Matrix

Digital Workbook for GRA 6035 Mathematics

Linear Algebra (part 1) : Matrices and Systems of Linear Equations (by Evan Dummit, 2016, v. 2.02)

Math 4377/6308 Advanced Linear Algebra

A Primer on Solving Systems of Linear Equations

MAC Module 2 Systems of Linear Equations and Matrices II. Learning Objectives. Upon completing this module, you should be able to :

Linear Systems and Matrices

Topic 15 Notes Jeremy Orloff

Math 344 Lecture # Linear Systems

MTH Linear Algebra. Study Guide. Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education

4. Determinants.

Math 320, spring 2011 before the first midterm

[Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty.]

MATH 323 Linear Algebra Lecture 6: Matrix algebra (continued). Determinants.

Evaluating Determinants by Row Reduction

1 Matrices and Systems of Linear Equations

Determinants An Introduction

Calculating determinants for larger matrices

Elementary Linear Algebra

Chapter 4. Solving Systems of Equations. Chapter 4

4 Elementary matrices, continued

Properties of the Determinant Function

Determinants. Recall that the 2 2 matrix a b c d. is invertible if

Finite Mathematics Chapter 2. where a, b, c, d, h, and k are real numbers and neither a and b nor c and d are both zero.

Elementary Row Operations on Matrices

If A is a 4 6 matrix and B is a 6 3 matrix then the dimension of AB is A. 4 6 B. 6 6 C. 4 3 D. 3 4 E. Undefined

Pre-Calculus I. For example, the system. x y 2 z. may be represented by the augmented matrix

Matrix Factorization Reading: Lay 2.5

POLI270 - Linear Algebra

Math 3C Lecture 20. John Douglas Moore

Linear Algebra: Linear Systems and Matrices - Quadratic Forms and Deniteness - Eigenvalues and Markov Chains

MATH Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product.

is a 3 4 matrix. It has 3 rows and 4 columns. The first row is the horizontal row [ ]

Multiplying matrices by diagonal matrices is faster than usual matrix multiplication.

ANSWERS. Answer: Perform combo(3,2,-1) on I then combo(1,3,-4) on the result. The elimination matrix is

3 Matrix Algebra. 3.1 Operations on matrices

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations.

Eigenvalues and Eigenvectors: An Introduction

Introduction. Vectors and Matrices. Vectors [1] Vectors [2]

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

Matrix Algebra Determinant, Inverse matrix. Matrices. A. Fabretti. Mathematics 2 A.Y. 2015/2016. A. Fabretti Matrices

Graduate Mathematical Economics Lecture 1

Chapter 1. Vectors, Matrices, and Linear Spaces

Elementary matrices, continued. To summarize, we have identified 3 types of row operations and their corresponding

1.3 Solving Systems of Linear Equations: Gauss-Jordan Elimination and Matrices

4 Elementary matrices, continued

Math 20F Practice Final Solutions. Jor-el Briones

n n matrices The system of m linear equations in n variables x 1, x 2,..., x n can be written as a matrix equation by Ax = b, or in full

Relationships Between Planes

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

Matrices and Linear Algebra

Lecture 3: Gaussian Elimination, continued. Lecture 3: Gaussian Elimination, continued

Unit 3: Matrices. Juan Luis Melero and Eduardo Eyras. September 2018

This MUST hold matrix multiplication satisfies the distributive property.

Math 220: Summer Midterm 1 Questions

Elementary Matrices. which is obtained by multiplying the first row of I 3 by -1, and

Elementary Linear Algebra

Linear Algebra: Lecture Notes. Dr Rachel Quinlan School of Mathematics, Statistics and Applied Mathematics NUI Galway

3.4 Elementary Matrices and Matrix Inverse

Linear Algebra: Lecture notes from Kolman and Hill 9th edition.

Exercise Sketch these lines and find their intersection.

CHAPTER 7: Systems and Inequalities

Inverting Matrices. 1 Properties of Transpose. 2 Matrix Algebra. P. Danziger 3.2, 3.3

22A-2 SUMMER 2014 LECTURE 5

MAC1105-College Algebra. Chapter 5-Systems of Equations & Matrices

Gaussian Elimination and Back Substitution

MA 527 first midterm review problems Hopefully final version as of October 2nd

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

Transcription:

Matrices Ellen Kulinsky

Amusement Parks At an amusement park, each adult ticket costs $10 and each children s ticket costs $5. At the end of one day, the amusement park as sold $200 worth of tickets. You also know that in total 30 tickets were sold. How many adult tickets and how many children tickets were sold? 10(30 - c) + 5c = 200 Money equation: 10a + 5c = 200 Num. of tickets equation: a + c = 30 a = 30 - c 300-10c + 5c = 200 100 = 5c c = 20 Substitution! a = 10

But that wasn t bad Time to level up. Get rid of y! 18x + 6y = 96 5x + 3y = 36 2 18x + 6y = 96 Subtract: 10x + 6y = 72 8x = 24 x=3 Plug back in 5 3 + 3y = 36 15 + 3y = 36 3y = 21 What about now? 9x + 6y + 3x + z = 96 + 12z = 22 x + 5y + 2z = 17 y=7 Substitution or Elimination is there another way?

YES! It s called a matrix. Matrix: - a rectangular arrangement of numbers into rows and columns - very useful way to represent information and work with data - often used in computers Dimensions: m by n matrix (rows by columns) (m n)

How does this have to do with systems of equations? 10a + 5c = 200 a + c = 30 18x + 6y = 96 5x + 3y = 36 Question: Why plus 1? 10 5 200 1 1 30 18 6 96 5 3 36 Answer: One column represents no variables Question: Dimensions? Answer: 2 by 3 Question: How does this relate to original equations? Answer: # of rows = # of equations # of columns = 1 + # of variables

Row Operations three basic operations that can be performed on a matrix without changing the solution set of the linear system it represents

Row Operations 2x + 5y = 3 3x + 4y = 6 Row Operation Equations Switch any two rows 3x + 4y = 6 2x + 5y = 3 (Interchange row 1 and row 2) Multiply a row by a nonzero constant (3 2)x + (3 5)y = (3 3) 3x + 4y = 6 (Row 1 becomes 3 times itself) Add one row to another 2x + 5y = 3 5x + 9y = 9 (Row 2 becomes the sum of rows 2 and 1)

Reduced Row Echelon Form A pivot is the first nonzero entry in a row. In Reduced Row Echelon Form: - every pivot is a one - all other entries besides the pivot in pivot columns are zeros - every following row has a pivot that is further right.

Review Time What is a matrix? - a rectangular arrangement of numbers into rows and columns - very useful way to represent information and work with data - often used in computers What are the dimensions of a matrix? - m by n matrix (m n) - rows by columns Rewrite this system of equations as a coefficient matrix. 11x + 5y = 99 17x + 14y = 32 11 5 99 17 14 32 What are the three row operations?

Review Time What is a pivot? - first nonzero entry in a row What is reduced row echelon form? - every pivot is a one - all other entries in pivot column, except pivot, are zeros - every following pivot is strictly further right What are the steps to simplifying a matrix into reduced row echelon form? 1) 2) 3) 4) Top left: 1. Make all entries below: 0. Make second entry, second row: 1. All numbers, not pivot in column, turn into 0s. 5) Repeat until totally in R.R.E.F. How to solve a system of equations using a matrix: 1) Rewrite as an augmented matrix. 2) Simplify into reduced row echelon form using row operations.

Your turn! 51x + 25y = 101 x + 34y = 69 4x + 18y = 40 51 25 101 1 34 69 4 18 40

Your turn! 5x + 4y + 13z = 230 x + 3y + 5z = 34 7x + 20z = 95 5x + 4y + 13 z = 230 1x + 3y + 5 z = 34 7x + 0y + 20z = 95 5 4 13 1 3 5 7 0 20 230 34 95

Your turn! 5x - 4y + 13z = 230 -x + 3y + 5z = 34 7x - 20z = -95 5x +(- 4)y + 13 z = 230 (-1)x + 3y + 5 z = 34 7x + 0y +(-20)z = -95 5-4 13-1 3 5 7 0-20 230 34-95

Your turn!

Practice! 2R1 + R2 R2 / 3 Steps: 1) 2) 3) 4) 5) Top left: 1. Make second row start with: 0. Make second entry, second row: 1. All numbers, not pivot in column, turn into 0s. Repeat until totally in R.R.E.F. R1 + (-5)R2

Your turn! 1) 2) 3) 4) 5) Top left: 1. Make all entries below: 0. Make second entry, second row: 1. All numbers, not pivot in column, turn into 0s. Repeat until totally in R.R.E.F.

Now let s combine it all! Amusement park: 10a + 5c = 200 a + c = 30 10 5 200 1 1 30 R1 R2 1 1 30 0 1 20 10 5 200 1 1 30 1 1 30 10 5 200 R1 - R2 To solve a system of equations using a matrix: 1) Rewrite as an augmented matrix. 2) Simplify into reduced row echelon form using row operations. R2 + (-10)R1 1 1 30 0-5 -100 1 0 10 0 1 20 a = 10 tickets c = 20 tickets R2 / (-5)

To solve a system of equations using a matrix: Your turn! a + 2b + 3c = 9 2a - b + c = 8 3a - c =3 1) Rewrite as an augmented matrix. 2) Simplify into RREF using row operations. 1) 2) 3) 4) 5) Top left: 1. Make all entries below: 0. Make second entry, second row: 1. All numbers, not pivot in column, turn into 0s. Repeat until totally in R.R.E.F.

HW: Reduce into reduced row echelon form: 1) 2) 3)

HW: Reduce into reduced row echelon form: 1) 2) 3)

HW 1 Solution:

HW 2 Solution:

HW 3 Solution:

Special Matrices Square All Matrices Dimensions: n by n (same number of rows and columns) Square Upper Triangular Diagonal Identity Lower Triangular 10 20 30 40

All Matrices Special Matrices Upper Triangular All entries below the diagonal are zeros. 10 20 0 40 Square Upper Triangular Diagonal Lower Triangular Identity Diagonal All entries except on the diagonal are zero 10 0 0 40 Question: RREF? Answer: Upper Triangular Lower Triangular All entries above the diagonal are zeros. 10 0 20 40

All Matrices Special Matrices Identity All entries are zero, except 1s on the diagonal. 1 0 0 1 Square Upper Triangular Diagonal Lower Triangular Identity Question: Why is the identity special? And why is it called the identity matrix? Answer: If you multiply any matrix by the identity of the appropriate size, you will get back the same (an identical) matrix.

What operations can we do with matrices? 1) 2) 3) 4) 5) 6) Matrix Addition (and Subtraction) Scalar Multiplication (and Division) Matrix Multiplication Transpose Determinant Inverse

Matrix Addition - Impossible to add matrices of different dimensions - Matrices are added together by adding the corresponding elements Solve for x and y in the matrix below. x=1 y=3

Matrix Subtraction Solve for Matrix B. 5 8 27 4

Scalar multiplication - Multiplying a matrix by a scalar (number) results in every entry scaled by that number Find 2A (multiply matrix A by the scalar 2).

Practice! 1) 2) 1 1 2 0 1 2 3 5 8 8 11 14 3) 3 = 6 9 15 12 18 24

Matrix Multiplication Hang on to your seats, this might get a little weird. 8 5 6 7 1 2 3 4 8 5 6 7 1 3 2 4 8+15 16+20 6+21 12+28 23 36 27 40

Matrix Multiplication (skip if reviewed already) Matrix A: 3 by 4 AxB=C Matrix B: 4 by 2 Question: How many rows does result C have? Answer: 3 Question: How many columns does result C have? Answer: 2

Matrix Multiplication Answer: a Matrix A: a by b AxB=C Matrix B: c by d Question: How many rows does result C have? Question: How many columns does result C have? Answer: d Question: What do we know about the dimensions of A and B? Answer: b=c [The number of columns in A are equal to the number of rows in B]

Practice!!! 2 3 1 0 1 2 3 4 1 3 2 3 1 0 2 2 4 1 0 6 1-2 5 0 4 3 2 1 + 3 3 1 1 + 0 3 2 4 16 4-4 23 0 24 18 2 4 2 2 + 3 4 1 2 + 0 4 11 16 1 2

Transpose Transpose: A matrix that is obtained from flipping the original over its diagonal Hint: Imagine placing a mirror on the diagonal 10 20 30 40 50 60 Transpose What happens if you transpose a matrix transpose? 10 40 20 50 30 60 Original Matrix

Practice!!! 2 3 1 0 2 2 4 1 0 6 1 2 3 4 1-2 5 0 4 3 Transpose 2 1 3 0 Transpose 2 4 0 2 1 6 Transpose Transpose 1 3 2 4 1 0-2 4 5 3

2 2 matrix determinant: Determinant Determinant: A number obtained from a square matrix, by following a certain algorithm Geometric Interpretation: - The area of the parallelogram is the absolute value of the determinant of the matrix formed by the vectors representing the parallelogram's sides.

Determinant (cont.) 2 2 matrix determinant: Example: 10 20 12 40 10 40-20 12 = 400-240 = 160 Practice: Notation: Straight lines around a matrix (looks like an absolute value) 3 4 5 6 3 6-5 4 = 18-20 = -2

Determinant (cont.) 3 3 matrix determinant: = a(ei - fh) - b(di - fg) + c(dh - eg) = aei - afh - bdi + bfg + cdh - ceg Fun fact: you can expand along any column or row Expand along rows/columns with the most zeroes

Determinant (cont.) How to know if positive or negative term: + - + - + + - + Row Number + Column Number even: positive term odd: negative term

BONUS: Determinant (cont.) 2 0 0 4 5 0 7 9 4 2 1 0 4 5 0 7 9 4 2 0 1 4 5 1 7 0 4 2 5 4 = 40 2 (5 4-0) - 1 (4 4-0)= 40-16 = 24 2 4 7 3 0 5 9 0 0 0 4 0 1 3 2 8 2 0 1 4 4 5 3 3 0 8 = 4 (5 2 1 )= 3 8 5 (2 4-1 7)= 5 1 = 5 4 (5 (2 8-3 1)) = 4 5 13

Rules of Determinants det(identity) = 1 In fact, the determinant of any matrix with zeroes below or above the diagonal is just the product of the diagonal entries. Try to explain this. det(c A) = cn det(a) where n is the dimension of the square matrix. Try to explain this. For two square matrices of equal size, A and B: det(ab) = det(a) det(b) det(at) = det(a)

Similar to inverse of number: reciprocal Inverse Inverse: A matrix when multiplied with the original matrix returns the identity; invertible if and only if the determinant is non-zero 7-2 -3 1 8 ⅛ 8 ⅛=1 Anything times 1 is itself! 1 3 2 7 7-6 14-14 -3+3-6 + 7 1 0 0 1

Inverse 2 2 matrix inverse: How do we find inverses for bigger matrices? Steps: 1) Create an augmented matrix with the invertible square on one side and the identity of appropriate size on the other. 2) Reduce to RREF. 3) The new right side is the inverse.

Inverse Example: What are the steps to simplifying a matrix into reduced row echelon form? 1) 2) 3) 4) Top left: 1. Make all entries below: 0. Make second entry, second row: 1. All numbers, not pivot in column, turn into 0s. 5) Repeat until totally in R.R.E.F.

Inverse Why must the determinant be non-zero? det(ab)=det(a) x det(b) AA-1 = I det(aa-1) = det(a) x det(a-1) = det(i) = 1 det(a) = 1/det(A-1)

What operations can we do with matrices? Review! All Matrices Square Upper Triangular Diagonal Lower Triangular Identity Square Dimensions: n by n (same number of rows and columns) Upper Triangular All entries below the diagonal are zeros. 1) 2) 3) 4) 5) 6) Matrix Addition (and Subtraction) Scalar Multiplication (and Division) Matrix Multiplication Transpose 8 5 1 2 Determinant 6 7 3 4 Inverse 8 5 6 7 Lower Triangular All entries above the diagonal are zeros. Diagonal All entries except on the diagonal are zero. Identity All entries are zero, except 1s on the diagonal. If you multiply any matrix by the identity of the appropriate size, you will get back the same (an identical) matrix. 4 9 7 9 11 1 2 3 4 7 3 3 3 8 5 6 7 32 20 24 28

Review! What operations can we do with matrices? 1) 2) 3) 4) 5) 6) 2 0 0 4 5 0 7 9 4 2 1 3 4 5 1 7 9 4 Matrix Addition (and Subtraction) Scalar Multiplication (and Division) Matrix Multiplication Transpose Determinant: Determinant Inverse 2 3 7 6 2 5 4 = 40 3 5 7 9 1 4 2 6-7 3 = 12-21 = -9 Trick question, not a square! 2 3 7 6 8 5 4 1 8 4 2 3 7 6 5 1 16+12 10+3 56+24 35+6 Transpose: 2 (5 4-1 9) -1 (4 4-1 7) +3 (4 9-5 7) = 2 11-1 9 + 3 1 = 22-9 + 3 = 16 28 13 80 41 2 3 7 6 2 7 3 6 3 5 7 9 1 4 3 7 1 5 9 4

Review! det(identity) = 1 In fact, the determinant of any matrix with zeroes below or above the diagonal is just the product of the diagonal entries. Try to explain this. det(c A) = cn det(a) where n is the dimension of the square matrix. Try to explain this. For two square matrices of equal size, A and B: det(ab) = det(a) det(b) det(at) = det(a) What operations can we do with matrices? 1) 2) 3) 4) 5) 6) Matrix Addition (and Subtraction) Scalar Multiplication (and Division) Matrix Multiplication Transpose Determinant Inverse Determinant: = a(ei - fh) - b(di - fg) + c(dh - eg) = aei - afh - bdi + bfg + cdh - ceg

Review! What operations can we do with matrices? 1) 2) 3) 4) 5) 6) Matrix Addition (and Subtraction) Scalar Multiplication (and Division) Matrix Multiplication Transpose Determinant Inverse How do we find inverses for bigger matrices? Inverse: A matrix when multiplied with the original matrix returns the identity; invertible if and only if the determinant is non-zero 2 2 matrix inverse: Steps: 1) Create an augmented matrix with the invertible square on one side and the identity of appropriate size on the other. 2) Reduce to RREF. 3) The new right side is the inverse.

Sources Khan Academy http://www.purplemath.com/modules/mtrxadd.htm https://www.math.hmc.edu/calculus/tutorials/linearsystems/ https://en.wikipedia.org/wiki/transpose http://www.mathwords.com/i/inverse_of_a_matrix.htm http://www.math.odu.edu/~bogacki/cgi-bin/lat.cgi