Chapter 2 Introduction to Matrix Notation

Similar documents
MAT188H1S Lec0101 Burbulla

Introduction to Matrices for Engineers

x y The matrix form, the vector form, and the augmented matrix form, respectively, for the system of equations are

8.1. Cramer s Rule for Solving Simultaneous Linear Equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

Exponential and Logarithmic Functions

Linear Algebra Notes for Marsden and Tromba Vector Calculus

1 Determinants and the Solvability of Linear Systems

Using row reduction to calculate the inverse and the determinant of a square matrix

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

Question 2: How do you solve a matrix equation using the matrix inverse?

Solving Systems of Linear Equations

1 Introduction to Matrices

Typical Linear Equation Set and Corresponding Matrices

Systems of Linear Equations

Lecture 1: Systems of Linear Equations

Chapter 7. Matrices. Definition. An m n matrix is an array of numbers set out in m rows and n columns. Examples. (

To Be or Not To Be a Linear Equation: That Is the Question

PROPERTIES OF ELLIPTIC CURVES AND THEIR USE IN FACTORING LARGE NUMBERS

Linear Algebraic Equations, SVD, and the Pseudo-Inverse

Algebra I Vocabulary Cards

Solving Systems of Linear Equations

Linear Equations ! $ & " % & " 11,750 12,750 13,750% MATHEMATICS LEARNING SERVICE Centre for Learning and Professional Development

Solutions to Homework Section 3.7 February 18th, 2005

8.2. Solution by Inverse Matrix Method. Introduction. Prerequisites. Learning Outcomes

9 MATRICES AND TRANSFORMATIONS

Lecture 2 Matrix Operations

Linearly Independent Sets and Linearly Dependent Sets

1 Determine whether an. 2 Solve systems of linear. 3 Solve systems of linear. 4 Solve systems of linear. 5 Select the most efficient

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

5 Systems of Equations

Section 7.2 Linear Programming: The Graphical Method

MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set.

Identifying second degree equations

7.3 Solving Systems by Elimination

5.2 Inverse Functions

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

Chapter 8. Lines and Planes. By the end of this chapter, you will

SYSTEMS OF LINEAR EQUATIONS

BX in ( u, v) basis in two ways. On the one hand, AN = u+

Data Mining: Algorithms and Applications Matrix Math Review

EQUATIONS and INEQUALITIES

Graphing Linear Equations

Use order of operations to simplify. Show all steps in the space provided below each problem. INTEGER OPERATIONS

MATHEMATICS FOR ENGINEERS BASIC MATRIX THEORY TUTORIAL 2

Math, Trigonometry and Vectors. Geometry. Trig Definitions. sin(θ) = opp hyp. cos(θ) = adj hyp. tan(θ) = opp adj. Here's a familiar image.

How To Understand And Solve A Linear Programming Problem

Vector Spaces. Chapter R 2 through R n

MATH 304 Linear Algebra Lecture 18: Rank and nullity of a matrix.

Slope-Intercept Form and Point-Slope Form

Chapter 19. General Matrices. An n m matrix is an array. a 11 a 12 a 1m a 21 a 22 a 2m A = a n1 a n2 a nm. The matrix A has n row vectors

5 Homogeneous systems

CS3220 Lecture Notes: QR factorization and orthogonal transformations

2.3. Finding polynomial functions. An Introduction:

A =

Math 312 Homework 1 Solutions

Example 1: Model A Model B Total Available. Gizmos. Dodads. System:

Core Maths C3. Revision Notes

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress

Matrix Differentiation

1 Symmetries of regular polyhedra

INVESTIGATIONS AND FUNCTIONS Example 1

LINEAR MAPS, THE TOTAL DERIVATIVE AND THE CHAIN RULE. Contents

THREE DIMENSIONAL GEOMETRY

Florida Algebra 1 End-of-Course Assessment Item Bank, Polk County School District

Introduction to Matrix Algebra

Pattern Co. Monkey Trouble Wall Quilt. Size: 48" x 58"

Operation Count; Numerical Linear Algebra

SECTION 2.2. Distance and Midpoint Formulas; Circles

1.5. Factorisation. Introduction. Prerequisites. Learning Outcomes. Learning Style

LINEAR ALGEBRA W W L CHEN

Solving Simultaneous Equations and Matrices

T ( a i x i ) = a i T (x i ).

3.1. Solving linear equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

Brief Introduction to Vectors and Matrices

Solving Linear Systems, Continued and The Inverse of a Matrix

Linear Algebra Notes

Systems of Linear Equations: Two Variables

Matrix Algebra in R A Minimal Introduction

University of Lille I PC first year list of exercises n 7. Review

Vector Notation: AB represents the vector from point A to point B on a graph. The vector can be computed by B A.

Chapter 9. Systems of Linear Equations

Content. Chapter 4 Functions Basic concepts on real functions 62. Credits 11

MATHEMATICS FOR ENGINEERING BASIC ALGEBRA

Notes on Determinant

Equations, Inequalities & Partial Fractions

Mathematics Course 111: Algebra I Part IV: Vector Spaces

LS.6 Solution Matrices

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test

MATH2210 Notebook 1 Fall Semester 2016/ MATH2210 Notebook Solving Systems of Linear Equations... 3

A Concrete Introduction. to the Abstract Concepts. of Integers and Algebra using Algebra Tiles

6. Cholesky factorization

MBA Jump Start Program

Solving Quadratic Equations by Graphing. Consider an equation of the form. y ax 2 bx c a 0. In an equation of the form

CHAPTER 10 SYSTEMS, MATRICES, AND DETERMINANTS

5.5. Solving linear systems by the elimination method

Transcription:

Chapter 2 Introduction to Matrix Notation 2.1 Introduction In this chapter matrix notation is introduced as a tool for solving a pair of linear equations. This reveals three important features about matrices: The first is the existence of a scalar value associated with a matrix called the determinant; the second is matrix multiplication and the third is matrix inversion. This prepares us for the next chapter we investigate the nature of the determinant for larger matrices. 2.2 Solving a Pair of Linear Equations There are two simple was to solve a pair of linear equations such as 24 6x + 4 (2.1) 10 2x + 2. (2.2) The first technique is graphical and the second is algebraic. 2.2.1 Graphical Technique The graphical technique represents the equations as two straight lines which ma be coincident parallel or intersect. The point of intersection could be located an with respect to the Cartesian axes and could make it extremel difficult to identif an accurate x position. Figure 2.1 shows two lines representing (2.1) and (2.2) the solution is the point of intersection (2 3). Although the solution is eas to identif for these equations a more reliable and accurate technique is required. So let s consider an algebraic approach. J. Vince Matrix Transforms for Computer Games and Animation DOI 10.1007/978-1-4471-4321-5_2 Springer-Verlag London 2012 3

4 2 Introduction to Matrix Notation Fig. 2.1 Graphs of the simultaneous linear equations 2.2.2 Algebraic Technique The algebraic strateg is to manipulate (2.1) and (2.2) such that when the are added or subtracted the x or coefficient disappears which permits one variable to be identified. The second variable is revealed b substituting the first in one of the original equations. We begin b multipling (2.2)b2toturnthe2 term into 4: The pair of equations now become Subtracting (2.4) from (2.3) produces 2 10 2 2x + 2 2 20 4x + 4. 24 6x + 4 (2.3) 20 4x + 4. (2.4) 4 2x which means that x 2. To discover the corresponding value of we substitute x 2in(2.1) to discover that 3. This algebraic approach alwas provides an accurate result so long as the original equations are linearl independent. Now let s find a general solution for an pair of linear equations in two unknowns with the proviso that the are linearl independent. We start with the following pair of equations: r ax + b (2.5) s cx + d. (2.6) To eliminate the coefficient we multipl (2.5)bd and (2.6)bb: dr adx + bd (2.7) bs bcx + bd. (2.8)

2.2 Solving a Pair of Linear Equations 5 Next we subtract (2.8) from (2.7): and dr bs (ad bc)x dr bs x ad bc. (2.9) To eliminate the x coefficient we multipl (2.5)bc and (2.6) ba: Next we subtract (2.10) from (2.11): cr acx + bc (2.10) as acx + ad. (2.11) as cr (ad bc) and as cr ad bc. (2.12) Note that (2.9) and (2.12) share the same denominator ad bc a b c and d are the coefficients of x and in the original simultaneous equations. This denominator becomes zero if the equations are linearl dependent and no solution is possible. Let s test this general solution using the original equations (2.1) and (2.2) : a 6 b 4 c 2 d 2 r 24 s 10 x dr bs 48 40 ad bc 12 8 2 as cr 60 48 ad bc 12 8 3. The algebraic solution reveals some interesting patterns which emerge when we consider a third technique using matrix notation which is covered next. 2.2.3 Matrix Technique Given a pair of linearl independent equations such as (2.1) and (2.2): 24 6x + 4 10 2x + 2

6 2 Introduction to Matrix Notation their solution must depend on the constants and coefficients 24 6 4 10 2 and 2. Matrix notation describes equations such that the coefficients are isolated from the variables of x and in a 2 2 square matrix: [ 6 4 2 2 or in the general case: [ a b A c d A identifies the matrix. The denominator ad bc in (2.9) and (2.12) isthe difference between the cross-multiplied terms ad and bc. This is called the determinant of the matrix and is written. A a b c d ad bc. To keep the notation consistent the values 24 and 10 or the general values r and s are represented as a column matrix or column vector: [ [ 24 r or. 10 s The variables x and are also represented as a column vector:. Finall we bring the above elements together as follows: [ [ 24 6 4 x 10 2 2[ or for the general case: [ [ r a b x. s c d[ In either case the original equations are reconstructed using the following rules: 1. Select r followed b and multipl the elements of the top row of the coefficient matrix b the elements of the x vector respectivel: r ax + b. 2. Select s followed b and multipl the elements of the bottom row of the coefficient matrix b the elements of the x vector respectivel: s cx + d.

2.2 Solving a Pair of Linear Equations 7 For example the following matrix equation [ 30 20 represents the pair of linear equations [ 2 3 4 5 30 2x + 3 20 4x + 5. The power of matrix notation is that there is no limit to the number of linear equations and variables one can manipulate. For example the following matrix equation 10 1 2 3 x 20 4 5 6 30 7 8 9 z represents the three linear equations 10 x + 2 + 3z 20 4x + 5 + 6z 30 7x + 8 + 9z. An pair of linear equations can be represented as a matrix equation and permits us to write the solution in matrix form. For instance the solution to the original equations requires the following matrix equation: which is another wa of writing [ e f g h[ r s x er + fs gr + hs. But we have alread computed two such equations: dr bs x ad bc as cr ad bc which can be expressed in matrix form. But before we do this let s substitute D ad bc to simplif the equations: x 1 (dr bs) (2.13) D

8 2 Introduction to Matrix Notation 1 (as cr). (2.14) D Now let s express (2.13) and (2.14) as a matrix equation [ x 1 [ [ d b r. (2.15) D c a s So we now have a matrix solution for an pair of linear equations with two unknowns. Let s test (2.15). Example Here are two linearl independent equations: 24 4x + 3 11 x + 2 a 4 b 3 c 1 d 2 r 24 s 11 D 5 therefore 1 5 [ 2 3 1 4 [ 24 11 x 1 (2 24 3 11) 3 5 1 ( 1 24 + 4 11) 4 5 which is correct. Although matrix notation provides the same answers as algebra so far it does not appear to offer an advantages. However these will become apparent as we discover more about matrix notation such as matrix multiplication which we cover next. 2.3 Matrix Multiplication So far we have seen how to multipl a vector b a matrix. Now let s discover how to multipl one matrix b another. For example given [ [ a b e f M N c d g h what is [ [ a b e f MN? c d g h

2.3 Matrix Multiplication 9 We can resolve this problem b solving the same problem using algebra. So let s start b declaring two linear equations of the form Next we substitute (2.18) and (2.19) in(2.16) and (2.17): x ax + b (2.16) cx + d (2.17) x ex + f (2.18) gx + h. (2.19) x a(ex + f)+ b(gx + h) c(ex + f)+ d(gx + h) x (ae + bg)x + (af + bh) (2.20) (ce + dg)x + (cf + dh). (2.21) This algebraic answer must be the same as that given using matrix notation. So let s set up the same scenario using matrices. We begin with [ a b c d [ e f x g h[ (2.22). (2.23) Next we substitute (2.23) in(2.22) [ [ [ x a b e f x. (2.24) c d g h[ The matrix form of (2.20) and (2.21) is [ x which means that [ [ a b e f MN c d g h [ ae + bg af + bh ce + dg cf + dh [ ae + bg af + bh ce + dg cf + dh (2.25). (2.26) Equation (2.26) shows how the product MN must be evaluated. The terms of the top row of the first matrix: a and b multipl the terms of the first column of the second matrix e and g giving the result ae + bg.

10 2 Introduction to Matrix Notation Table 2.1 Subscripts for matrix multiplication (mn) ij m ij n ij + m ij n ij (mn) 11 m 11 n 11 + m 12 n 21 (mn) 12 m 11 n 12 + m 12 n 22 (mn) 21 m 21 n 11 + m 22 n 21 (mn) 22 m 21 n 12 + m 22 n 22 The terms of the top row of the first matrix: a and b multipl the terms of the second column of the second matrix f and h giving the result af + bh. The terms of the bottom row of the first matrix: c and d multipl the terms of the first column of the second matrix e and g giving the result ce + dg. Finall the terms of the bottom row of the first matrix: c and d multipl the terms of the second column of the second matrix f and h giving the result cf + dh. Observe that the product result is placed in the common matrix element shared b the row in the first matrix and the column in the second matrix. To formalise this operation let s reference an matrix element using the subscripts (ij) i is the row and j the column. Let m ij be an element in M n ij an element in N and (mn) ij be an element in the product MN. For example m 11 a n 22 h and (mn) 12 af + bh. Table 2.1 shows how the four elements of the matrix MN are formed from the individual elements of M and N which can be generalised to (mn) ij m i1 n 1j + m i2 n 2j. For example given then M [ 1 2 N 3 4 [ 2 3 4 5 [ [ 1 2 2 3 MN 3 4 4 5 [ 1 2 + 2 4 1 3 + 2 5 3 2 + 4 4 3 3 + 4 5 [ 10 13. 22 29 Although it ma not be immediatel obvious matrix multiplication is noncommutative. i.e. in general MN NM. For example [ [ e f a b NM g h c d [ ae + cf be + df ag + ch bg + dh

2.4 Identit Matrix 11 which does not equal MN (2.26). Consequentl one has to be careful whenever two or more matrices are multiplied together. Now that we know how to form the product of two matrices let s look at a special matrix which when used to multipl another matrix results in the same matrix. 2.4 Identit Matrix Algebra contains two important objects: the additive identit 0 and the multiplicative identit 1 which obe the following rules: a + 0 0 + a a a 1 1 a a. The matrix equivalent of 0 is 0 which contains onl 0s: [ 0 0 0 0 0 as the matrix equivalent of 1 is not a matrix of 1s but 0s and 1s. It is eas to discover this matrix simpl b declaring the following pair of linear equations: x 1x + 0 0x + 1 or in matrix form: [ [ x 1 0 x. (2.27) 0 1[ Thematrixin(2.27) iscalledanidentit matrix or a unit matrix I and it is eas to see that it has no effect when it pre- or post-multiplies another matrix: [ [ [ a b 1 0 a b c d 0 1 c d [ [ [ a b a b 1 0. c d c d 0 1 Now that we have an identit matrix let s calculate the matrix equivalent of the multiplicative inverse. 2.5 Inverse Matrix The multiplicative inverse in algebra is an object that obes the following rule: a a 1 a 1 a 1.

12 2 Introduction to Matrix Notation This suggests that for an matrix A there is an inverse matrix A 1 such that AA 1 A 1 A I I is the identit matrix. Unfortunatel an inverse matrix is not alwas possible but for the moment let s assume that this is the case. Thus if [ [ a b A and A 1 e f c d g h then AA 1 I: [ [ [ AA 1 a b e f 1 0. (2.28) c d g h 0 1 We can compute the inverse matrix b expanding (2.28): [ [ ae + bg af + bh 1 0. (2.29) ce + dg cf + dh 0 1 Equating the matrix elements in (2.29)wehave Similarl ae + bg 1 g 1 ae. (2.30) b ce + dg 0 g ce d. (2.31) Therefore equating (2.30) and (2.31)wehave D ad bc. Substituting e in (2.31) 1 ae b ce d d ade bce e d ad bc d D g ce d c d d D c D.

2.5 Inverse Matrix 13 Equating the remaining matrix elements in (2.29) wehave Similarl af + bh 0 h af b. (2.32) cf + dh 1 h 1 cf d Therefore equating (2.32) and (2.33)wehave Substituting f in (2.32) af b 1 cf d adf b + bcf f b D. h af b a b b D a D. Substituting e f g and h in A 1 we have [ A 1 e f 1 [ d b g h D c a. (2.33) which is the same matrix we computed in (2.15). Therefore given an invertible matrix A: [ a b A c d its inverse A 1 is given b A 1 1 [ d b D c a D ad bc. For example given [ 6 4 A 3 3

14 2 Introduction to Matrix Notation then D 6 and A 1 1 6 [ 3 4. 3 6 The product AA 1 must equal the identit matrix I: [ [ AA 1 6 4 1 3 4 3 3 6 3 6 1 [ 6 0 6 0 6 [ 1 0. 0 1 The inverse matrix is an extremel useful object and plas an important role in matrix transformations. It can also be used as an algebraic tool for rearranging matrix equations. For example given the following matrix equation [ [ r a b x s c d[ if we let [ v r M s [ a b c d [ x v then we can write in shorthand Multipling both sides of (2.34) bm 1 we have therefore v Mv. (2.34) M 1 v M 1 Mv Iv v M 1 v [ x 1 [ [ d b r. D c a s We will emplo this strateg later on when we investigate matrix algebra and transformations.

2.6 Worked Examples 15 2.6 Worked Examples Example 1 Solve the linearl independent equations: 9 3x + 2 1 4x. Using 1 D [ d b c a [ r s r 9 s 1 a 3 b 2 c 4 d 1 then D 11 and [ x 1 [ [ 1 2 9 11 4 3 1 1 [ 11 11 33 [ 1. 3 Example 2 Solve the linearl independent equations: 7 3x 0 2x 4. Using 1 D [ d b c a [ r s r 7 s 0 a 3 b 1 c 2 d 4 then D 14 and [ x 1 [ 4 1 7 14 2 3[ 0 1 [ 28 14 14

16 2 Introduction to Matrix Notation [ 2. 1 Example 3 Solve the trivial linearl independent equations: 1 x 1. Using 1 D [ d b c a [ r s r 1 s 1 a 1 b 0 c 0 d 1 then D 1 and [ x 1 [ 1 0 1 1 0 1[ 1 [ 1. 1 Example 4 Solve the following equations: 4 6x 4 2 3x 2. Using 1 D [ d b c a [ r s r 4 s 2 a 6 b 4 c 3 d 2 then D 0 which confirms that the equations are not linearl independent. The second equation is half the first. 2.7 Summar Hopefull this chapter has provided a quick introduction to the ideas behind matrix notation which is just another wa of representing a collection of linear equations.

2.7 Summar 17 So far we have onl considered two simultaneous linear equations but there is no limit a matrix grows in size as the number of equations increases. We emplo special rules when multipling matrices to ensure that the result agrees with that obtained using algebra. These rules appl to all of the matrices covered in this book. As we tend to multipl matrices together rather than add them we are particularl interested in the identit matrix which is equivalent to the number 1 in algebra. We are also interested in the inverse matrix which when used to multipl the original matrix creates the identit matrix. We have seen that ver obvious patterns arise from the coefficients when solving pairs and triples of linear equations. One reoccurring pattern is given the name determinant and is derived from the associated matrix. For a 2 2matrixitis the difference of the cross products. Other rules are emploed for 3 3 and 4 4 matrices. Before developing a formal description of matrix algebra we will explore how to compute the determinant for an size matrix.

http://www.springer.com/978-1-4471-4320-8