MATH Mathematics for Agriculture II

Size: px
Start display at page:

Download "MATH Mathematics for Agriculture II"

Transcription

1 MATH Mathematics for Agriculture II Academic year UCD School of Mathematics and Statistics

2

3 Contents Chapter 1. Linear Algebra 1 1. Introduction to Matrices 1 2. Matrix Multiplication 3 3. Matrix Inverses 7 4. Systems of Linear Equations Applied Examples Inverting matrices again 31 Chapter 2. Calculus Trigonometric functions More differentiation rules: product rule and quotient rule Differentiation of composite functions Graphing functions: singularities and asymptotes Integration of trigonometric and rational functions 56 Chapter 3. Probability Sample spaces and events Probability measure Equiprobability Conditional Probability Applied Examples Picking k elements from n: Binomial Coefficients Random variables Expectation of a random variable 77 Chapter 4. Markov Chains 79 iii

4 iv Contents 1. Stochastic Matrices Markov Chains Regular Markov chains 82

5 Chapter 1 Linear Algebra 1. Introduction to Matrices Definition 1.1. An m n ( m by n ) matrix is a rectangle of numbers having m rows and n columns, enclosed by brackets. Example is a 2 3 matrix and is a 3 2 matrix. Remarks 1.3. (1) Two matrices are said to have the same size if they have the same number of rows and the same number of columns, so a 2 3 matrix and a 3 2 matrix are considered to be of different size. (2) A matrix having just one row is sometimes called a row vector, and a matrix having just one column is called a column vector. (3) We usually label matrices using capital letters like A, B, C, etc. (4) If an m n matrix has the same number of rows as columns, i.e., if m n, then it is called a square matrix. (5) If A is an m n matrix, the number appearing in the ith row and jth column is called the (i, j) entry of A, and denoted A i j. (6) Two matrices are equal if and only if they have the same size and the corresponding entries are all equal. 1

6 2 1. Linear Algebra Example 1.4. If A then A 12 3, A 23 5, A 13 1, etc. Definition 1.5 (Matrix Addition). Let A and B be matrices of the same size (m n). We define their sum A + B to be the m n matrix whose entries are given by for i 1,..., m and j 1,..., n. (A + B) i j A i j + B i j Thus A + B is obtained from A and B by adding entries in corresponding positions Example 1.6. Let A and B (A and B are both 2 4 matrices). Then 2 + ( 1) ( 2) A + B ( 3) Subtraction of matrices (of the same size) is now defined in the obvious way, - e.g., with A and B as in Example 1.6, we have 2 ( 1) ( 2) A B ( 3) We can only add or subtract two matrices if they are the same size. If A and B are different sizes then the matrix sum A + B is not defined. Definition 1.7 (Multiplication of a Matrix by a Real Number). Let A be an m n matrix and let k be a real number. Then ka is the m n matrix with entries defined by (ka) i j ka i j i.e. ka is obtained from A by multiplying every entry in A by k. 2 1 Example 1.8. If A, then A, 3A, 0A Definition 1.9. The m n matrix whose entries are all zero is called the zero (m n) matrix.

7 2. Matrix Multiplication 3 2. Matrix Multiplication Matrix multiplication is very different from addition and subtraction. In this subsection we describe how (and when) matrices can be multiplied together. This procedure is a bit unusual, so we present it in two steps. Definition 2.1 (Row Vector and Column Vector Multiplication). Let u be a row vector of size 1 n and v be a column vector of size n 1. So v 1 v 2 u (u 1 u 2 u n ) and v.. (Observe that u and v have the same number of entries.) The product of u and v is the number Example 2.2. Let u v n uv u 1 v 1 + u 2 v u n v n. 7 and v 10. Then 1 uv ( 2) ( 1) 16. Definition 2.3 (Matrix Multiplication). Let A, B be m p and q n matrices, respectively. The product AB of A and B is defined only if p q. In this case, AB is an m n matrix, and the (i, j) entry (AB) i j of AB is the product of row i of A by column j of B Example 2.4. Find AB when A and B We see that A is a 2 3 matrix and that B is a 3 2 matrix. Therefore AB will be a 2 2 matrix. The entries of AB are, ordered from left to right and from top to bottom, where (AB) 11 (AB) 12 (AB) 21 (AB) 22, (AB) ( 1) ( 1) (AB) ( 1) ( 1) (AB) ( 1)

8 4 1. Linear Algebra Thus, (AB) ( 1) + ( 1) AB Remarks 2.5. What happened? If we follow what we did, to compute AB: You fix the first row of A, and multiply it successively by the columns of B. It will give you the first row of AB. You fix the second row of A, and multiply it successively by the columns of B. It will give you the second row of AB. And so on, one row of A after the other. Example 2.6. A salesperson sells items of three types I, II and III, costing 10, 20 and 30, respectively. The next table shows how many items of each type are sold on Monday a.m. and p.m. Type I Type II Type III morning afternoon Let A denote the matrix Let B denote the 3 1 matrix whose entries are the prices of items of Type I, II and III, respectively. 10 B 20 (B is a column vector - see Remarks 1.3 (2)). Let C denote the 2 1 matrix (another column vector) whose entries are the total income from morning sales and the total income from afternoon sales, respectively: 1st entry of C : (3 10) + (4 20) + (1 30) 140 2nd entry of C : (5 10) + (2 20) + (2 30) I.e., C. 150 How do the entries of C depend on those of A and B? The 1st entry of C comes from combining the first row of A with the column of B: product of 1st entries + product of 2nd entries + product of 3rd entries 30

9 2. Matrix Multiplication 5 (3 10) + (4 20) + (1 30) The 2nd entry of C comes from combining the second row of A with the column of B in the same way. (5 10) + (2 20) + (2 30) This scheme for combining rows of one matrix with columns of another leads to the definition of matrix multiplication. In this case C is the product A multiplied by B, i.e., C AB. Example 2.7. If A and B are as in Example 2.4 then BA is a 3 3 matrix. The (2, 3) entry of BA, (BA) 23 is 2nd row of B combined with 3rd column of A, i.e. The complete product is (BA) ( 1) ( 1) BA Warning 2.8. Matrix multiplication is not commutative! I.e. in general, AB BA. In Examples 2.4 and 2.7, we saw that AB and BA were both defined, but did not even have the same size. It is also possible for only one of AB and BA to be defined, e.g. if A is 2 4 and B is 4 3. Even if AB and BA are both defined and have the same size (e.g. if both are 3 3), the two products are typically different. Remarks 2.9 (General properties of matrix arithmetic). In the following, A, B and C are matrices and for each item below we assume that their sizes are such that all indicated additions and multiplications are defined. (1) A + B B + A : matrix addition is commutative. (2) (A + B) + C A + (B + C) : matrix addition is associative. (3) AB is typically not equal to BA, even when both are defined : matrix multiplication is not commutative. (4) (AB)C A(BC) : matrix multiplication is associative. (5) Distributive laws for matrix multiplication over matrix addition: (A + B)C AC + BC A(B + C) AB + AC (6) Whenever k is a real number, we have (ka)b A(kB) k(ab) and k(a+ B) ka + kb. Matrices share properties (1), (2), (4) and (5) with real numbers, but not (3)!

10 6 1. Linear Algebra As with ordinary arithmetic of real numbers, matrix multiplication is done before addition or subtraction, e.g., AB + C means (AB) + C, not A(B + C). Recall that a matrix is called square if it has the same number of rows as columns, i.e., if it is an n n matrix for some n. If A and B are two 3 3 matrices then A + B, A B and the products AB and BA are all defined and all 3 3 matrices. Fix n. Within the set of n n matrices, we can add, subtract and multiply any matrix by any other, and stay inside the set of n n matrices. Definition The set of n n matrices whose entries are real numbers is denoted M n (). If A is a n n matrix we can write A M n (). Definition 2.11 (Matrix powers). Let A M n (), i.e., A is an n n matrix, and let k be a positive integer. The kth power A k of A is the n n matrix A A A }{{} k times 1 1 Example In M 2 (), if A, then A 2 AA and A 3 AAA A 2 A Warning Recall that if x is a number and x 2 0 then x has to be 0. However, if A is a square matrix and A 2 is the 2 2 zero matrix, then A does not have to be the zero matrix. E.g., if A then A 2. Definition 2.14 (Transposes). If A is an m n matrix then the transpose A T of A is the n m matrix whose entries are given by (A T ) i j A ji. In practice, this means that the ith row of A becomes the ith column of A T (and also that the jth column of A becomes the jth row of A T ).

11 3. Matrix Inverses 7 Example If A then A T Warning Transposes are taken before multiplication, e.g., AB T means A(B T ), not (AB) T. Warning The transposed of a product of matrices is the reverse product of the transposed matrices: (AB) T B T A T, which is in general not equal to A T B T! 3. Matrix Inverses If we divide a real number by 5 we are multiplying it by 1 5. We say that 1 5 is the reciprocal or multiplicative inverse of 5 in. This means , i.e., if you multiply 5 by 1 5, you get 1; multiplying by 1 5 reverses the work of multiplying by 5. More generally, if a is a non-zero real number then 1 a is the inverse of a. When given an equation like ax b, where a and b are known to us, we solve it by multiplying both sides by the inverse of a: E.g. if 5x 4 then x 4 5. ax b 1 a ax 1 a b x b a. Our aim now is to introduce a similar procedure to solve matrix equations like AX B, and much more besides. To do this, we need the concept of a matrix inverse. However, before we can do this, we need to find a matrix which behaves something like the number 1. The number 1 is special because when you multiply any number by 1, you change nothing (and it is the only number with this property) Example 3.1. Let A and let I. Find AI and IA. 1 2

12 8 1. Linear Algebra AI 1 2 ( 1) ( 1) A ( 1) IA ( 1) A Both AI and IA are equal to A: multiplying A by I (on the left or right) does not affect A. a b In general, if A is any 2 2 matrix, then c d a b 1 0 a b AI A c d c d and IA A also. Definition 3.2. I I 2 ). Remarks is called the 2 2 identity matrix (it is sometimes denoted (1) I 2 behaves in M 2 () like the real number 1 behaves in - multiplying a real number x by 1 has no effect on x. 1 (2) The 3 3 identity matrix is I 3 0. Check that if A is any 3 3 matrix then AI 3 I 3 A A. 1 (3) For any positive integer n, the n n identity matrix I n is defined by I n (I n has 1s along the main diagonal and 0s elsewhere). The entries of I n are given by: 1 i j (I n ) i j 0 i j

13 3. Matrix Inverses 9 Theorem 3.4. If A is any n n matrix then AI n I n A A. I.e., multiplying A on the left or right by I n leaves A unchanged. Now we have the n n identity matrices, we can ask which n n matrices have multiplicative inverses. Definition 3.5. Let A be an n n matrix. If B is an n n matrix for which AB I n and BA I n then B is called an inverse for A Example 3.6. Let A and let B Then AB I 2 BA I 2 So B is an inverse for A. In the same way that 1 5 reverses the effect of 5, by getting us back to 1 ( ), so B reverses the effect of A by getting us back to I 2 (AB BA I 2 ). Remarks 3.7. (1) Suppose B and C are both inverses for a particular matrix A, i.e. BA AB I n and CA AC I n. Then (BA)C I n C C and also (BA)C B(AC) BI n B Hence B C, and if A has an inverse, its inverse is unique. Thus we can talk about the inverse of a matrix. (2) Not every square matrix has an inverse. For example the 2 2 zero matrix does not. (3) The inverse of a n n matrix A, if it exists, is denoted A 1. Given a square matrix A, how do we (a) decide if A 1 exists, and

14 1. Linear Algebra (b) if so, work out what it is? In the 2 2 case, there is a nice formula to work out matrix inverses. a b Example 3.8. Let A M 2 (), and let us suppose that c d ad bc (For instance, in Example 3.6 we had A, and in this case ad bc ) Now consider We calculate the product AB: AB B 1 d b ad bc c a a b 1 d b c d ad bc c a 1 a b d b ad bc c d c a 1 ad + b( c) a( b) + ba ad bc cd + d( c) c( b) + da 1 ad bc 0 ad bc 0 ad bc 1 0 I 2. Similarly (and you should check this) BA I 2, so B is the inverse of A, i.e., B A 1. Check that if you apply the formula to A in Example 3.6 then you get the inverse. However, what if A is as above, but ad bc 0? It turns out that, in this case, A does not have an inverse. Example 3.9. The matrix does not have an inverse. A To show this, we proceed as follows. We know that there are only two possible cases: either A has an inverse, or A does not. If we manage to show that the first case is impossible, then

15 4. Systems of Linear Equations 11 the second is necessarilly true. So we assume that A does have an inverse, and see what consequences it would have: p q A 1, r s If we can reach an impossible conclusion then this case does not occur. For A 1 to be the inverse of A, we must have A 1 A I 2, i.e. p 2q 2p 4q 1 0 A 1 A. r 2s 2r 4s Thus, comparing entries, p 2q 1 and 2p 4q 0. Dividing the second equation by 2 we get p 2q 0. The two equations thus give which is impossible. 1 0, The only way to get out of this is to say that our original assumption about A 1 is wrong: A does not have an inverse. What about 3 3 matrices, or 4 4, 27 27? Even in the 3 3 case, while there is a formula, it isn t very nice. In larger cases the formulae become completely impossible to use, so we have to find another way of determining inverses. See Section Systems of Linear Equations Consider the equation 2x + y 3. This is a linear equation in the variables x and y. As it stands, the statement 2x + y 3 is neither true nor false: it is just a statement involving the abstract variables x and y. However if we replace x and y with some particular pair of real numbers, the statement will become either true or false. E.g. (1) Putting x 1, y 1 gives 2x + y : True (2) Putting x 1, y 2 gives 2x + y : False Definition 4.1. A pair (x 0, y 0 ) of real numbers is a solution to the equation 2x + y 3 if setting x x 0 and y y 0 makes the equation true; i.e. if 2x 0 + y 0 3. E.g. (1, 1) and (0, 3) are solutions, but (1, 4) is not a solution since setting x 1, y 4 gives 2x + y The set of all solutions to the equation is called its solution set. Given several linear equations, it is sometimes necessary to look for solutions which solve all of them simultaneously.

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

Linear Algebra: Lecture Notes. Dr Rachel Quinlan School of Mathematics, Statistics and Applied Mathematics NUI Galway Linear Algebra: Lecture Notes Dr Rachel Quinlan School of Mathematics, Statistics and Applied Mathematics NUI Galway November 6, 23 Contents Systems of Linear Equations 2 Introduction 2 2 Elementary Row

More information

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

[ Here 21 is the dot product of (3, 1, 2, 5) with (2, 3, 1, 2), and 31 is the dot product of . Matrices A matrix is any rectangular array of numbers. For example 3 5 6 4 8 3 3 is 3 4 matrix, i.e. a rectangular array of numbers with three rows four columns. We usually use capital letters for matrices,

More information

Matrix operations Linear Algebra with Computer Science Application

Matrix operations Linear Algebra with Computer Science Application Linear Algebra with Computer Science Application February 14, 2018 1 Matrix operations 11 Matrix operations If A is an m n matrix that is, a matrix with m rows and n columns then the scalar entry in the

More information

Chapter 2 Notes, Linear Algebra 5e Lay

Chapter 2 Notes, Linear Algebra 5e Lay Contents.1 Operations with Matrices..................................1.1 Addition and Subtraction.............................1. Multiplication by a scalar............................ 3.1.3 Multiplication

More information

1 Matrices and matrix algebra

1 Matrices and matrix algebra 1 Matrices and matrix algebra 1.1 Examples of matrices A matrix is a rectangular array of numbers and/or variables. For instance 4 2 0 3 1 A = 5 1.2 0.7 x 3 π 3 4 6 27 is a matrix with 3 rows and 5 columns

More information

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.

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. Finite Mathematics Chapter 2 Section 2.1 Systems of Linear Equations: An Introduction Systems of Equations Recall that a system of two linear equations in two variables may be written in the general form

More information

10. Linear Systems of ODEs, Matrix multiplication, superposition principle (parts of sections )

10. Linear Systems of ODEs, Matrix multiplication, superposition principle (parts of sections ) c Dr. Igor Zelenko, Fall 2017 1 10. Linear Systems of ODEs, Matrix multiplication, superposition principle (parts of sections 7.2-7.4) 1. When each of the functions F 1, F 2,..., F n in right-hand side

More information

MATRICES AND MATRIX OPERATIONS

MATRICES AND MATRIX OPERATIONS SIZE OF THE MATRIX is defined by number of rows and columns in the matrix. For the matrix that have m rows and n columns we say the size of the matrix is m x n. If matrix have the same number of rows (n)

More information

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

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations Chapter 1: Systems of linear equations and matrices Section 1.1: Introduction to systems of linear equations Definition: A linear equation in n variables can be expressed in the form a 1 x 1 + a 2 x 2

More information

A FIRST COURSE IN LINEAR ALGEBRA. An Open Text by Ken Kuttler. Matrix Arithmetic

A FIRST COURSE IN LINEAR ALGEBRA. An Open Text by Ken Kuttler. Matrix Arithmetic A FIRST COURSE IN LINEAR ALGEBRA An Open Text by Ken Kuttler Matrix Arithmetic Lecture Notes by Karen Seyffarth Adapted by LYRYX SERVICE COURSE SOLUTION Attribution-NonCommercial-ShareAlike (CC BY-NC-SA)

More information

Linear Equations in Linear Algebra

Linear Equations in Linear Algebra 1 Linear Equations in Linear Algebra 1.7 LINEAR INDEPENDENCE LINEAR INDEPENDENCE Definition: An indexed set of vectors {v 1,, v p } in n is said to be linearly independent if the vector equation x x x

More information

We could express the left side as a sum of vectors and obtain the Vector Form of a Linear System: a 12 a x n. a m2

We could express the left side as a sum of vectors and obtain the Vector Form of a Linear System: a 12 a x n. a m2 Week 22 Equations, Matrices and Transformations Coefficient Matrix and Vector Forms of a Linear System Suppose we have a system of m linear equations in n unknowns a 11 x 1 + a 12 x 2 + + a 1n x n b 1

More information

Matrix Algebra. Learning Objectives. Size of Matrix

Matrix Algebra. Learning Objectives. Size of Matrix Matrix Algebra 1 Learning Objectives 1. Find the sum and difference of two matrices 2. Find scalar multiples of a matrix 3. Find the product of two matrices 4. Find the inverse of a matrix 5. Solve a system

More information

Prepared by: M. S. KumarSwamy, TGT(Maths) Page

Prepared by: M. S. KumarSwamy, TGT(Maths) Page Prepared by: M. S. KumarSwamy, TGT(Maths) Page - 50 - CHAPTER 3: MATRICES QUICK REVISION (Important Concepts & Formulae) MARKS WEIGHTAGE 03 marks Matrix A matrix is an ordered rectangular array of numbers

More information

Matrices. Chapter Definitions and Notations

Matrices. Chapter Definitions and Notations Chapter 3 Matrices 3. Definitions and Notations Matrices are yet another mathematical object. Learning about matrices means learning what they are, how they are represented, the types of operations which

More information

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition Prof. Tesler Math 283 Fall 2018 Also see the separate version of this with Matlab and R commands. Prof. Tesler Diagonalizing

More information

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

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations. POLI 7 - Mathematical and Statistical Foundations Prof S Saiegh Fall Lecture Notes - Class 4 October 4, Linear Algebra The analysis of many models in the social sciences reduces to the study of systems

More information

Math 360 Linear Algebra Fall Class Notes. a a a a a a. a a a

Math 360 Linear Algebra Fall Class Notes. a a a a a a. a a a Math 360 Linear Algebra Fall 2008 9-10-08 Class Notes Matrices As we have already seen, a matrix is a rectangular array of numbers. If a matrix A has m columns and n rows, we say that its dimensions are

More information

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

Introduction. Vectors and Matrices. Vectors [1] Vectors [2] Introduction Vectors and Matrices Dr. TGI Fernando 1 2 Data is frequently arranged in arrays, that is, sets whose elements are indexed by one or more subscripts. Vector - one dimensional array Matrix -

More information

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW MATRICES

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW MATRICES 1 CHAPTER 4 MATRICES 1 INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW MATRICES 1 Matrices Matrices are of fundamental importance in 2-dimensional and 3-dimensional graphics programming

More information

Math Lecture 3 Notes

Math Lecture 3 Notes Math 1010 - Lecture 3 Notes Dylan Zwick Fall 2009 1 Operations with Real Numbers In our last lecture we covered some basic operations with real numbers like addition, subtraction and multiplication. This

More information

Review Let A, B, and C be matrices of the same size, and let r and s be scalars. Then

Review Let A, B, and C be matrices of the same size, and let r and s be scalars. Then 1 Sec 21 Matrix Operations Review Let A, B, and C be matrices of the same size, and let r and s be scalars Then (i) A + B = B + A (iv) r(a + B) = ra + rb (ii) (A + B) + C = A + (B + C) (v) (r + s)a = ra

More information

2.1 Matrices. 3 5 Solve for the variables in the following matrix equation.

2.1 Matrices. 3 5 Solve for the variables in the following matrix equation. 2.1 Matrices Reminder: A matrix with m rows and n columns has size m x n. (This is also sometimes referred to as the order of the matrix.) The entry in the ith row and jth column of a matrix A is denoted

More information

Systems of Linear Equations and Matrices

Systems of Linear Equations and Matrices Chapter 1 Systems of Linear Equations and Matrices System of linear algebraic equations and their solution constitute one of the major topics studied in the course known as linear algebra. In the first

More information

Section 12.4 Algebra of Matrices

Section 12.4 Algebra of Matrices 244 Section 2.4 Algebra of Matrices Before we can discuss Matrix Algebra, we need to have a clear idea what it means to say that two matrices are equal. Let's start a definition. Equal Matrices Two matrices

More information

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

Matrix Algebra Determinant, Inverse matrix. Matrices. A. Fabretti. Mathematics 2 A.Y. 2015/2016. A. Fabretti Matrices Matrices A. Fabretti Mathematics 2 A.Y. 2015/2016 Table of contents Matrix Algebra Determinant Inverse Matrix Introduction A matrix is a rectangular array of numbers. The size of a matrix is indicated

More information

Systems of Linear Equations and Matrices

Systems of Linear Equations and Matrices Chapter 1 Systems of Linear Equations and Matrices System of linear algebraic equations and their solution constitute one of the major topics studied in the course known as linear algebra. In the first

More information

Linear Algebra and Matrix Inversion

Linear Algebra and Matrix Inversion Jim Lambers MAT 46/56 Spring Semester 29- Lecture 2 Notes These notes correspond to Section 63 in the text Linear Algebra and Matrix Inversion Vector Spaces and Linear Transformations Matrices are much

More information

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

Inverting Matrices. 1 Properties of Transpose. 2 Matrix Algebra. P. Danziger 3.2, 3.3 3., 3.3 Inverting Matrices P. Danziger 1 Properties of Transpose Transpose has higher precedence than multiplication and addition, so AB T A ( B T and A + B T A + ( B T As opposed to the bracketed expressions

More information

Matrices. 1 a a2 1 b b 2 1 c c π

Matrices. 1 a a2 1 b b 2 1 c c π Matrices 2-3-207 A matrix is a rectangular array of numbers: 2 π 4 37 42 0 3 a a2 b b 2 c c 2 Actually, the entries can be more general than numbers, but you can think of the entries as numbers to start

More information

Matrix Multiplication

Matrix Multiplication 3.2 Matrix Algebra Matrix Multiplication Example Foxboro Stadium has three main concession stands, located behind the south, north and west stands. The top-selling items are peanuts, hot dogs and soda.

More information

x + 2y + 3z = 8 x + 3y = 7 x + 2z = 3

x + 2y + 3z = 8 x + 3y = 7 x + 2z = 3 Chapter 2: Solving Linear Equations 23 Elimination Using Matrices As we saw in the presentation, we can use elimination to make a system of linear equations into an upper triangular system that is easy

More information

CLASS 12 ALGEBRA OF MATRICES

CLASS 12 ALGEBRA OF MATRICES CLASS 12 ALGEBRA OF MATRICES Deepak Sir 9811291604 SHRI SAI MASTERS TUITION CENTER CLASS 12 A matrix is an ordered rectangular array of numbers or functions. The numbers or functions are called the elements

More information

Fundamentals of Engineering Analysis (650163)

Fundamentals of Engineering Analysis (650163) Philadelphia University Faculty of Engineering Communications and Electronics Engineering Fundamentals of Engineering Analysis (6563) Part Dr. Omar R Daoud Matrices: Introduction DEFINITION A matrix is

More information

For comments, corrections, etc Please contact Ahnaf Abbas: Sharjah Institute of Technology. Matrices Handout #8.

For comments, corrections, etc Please contact Ahnaf Abbas: Sharjah Institute of Technology. Matrices Handout #8. Matrices Handout #8 Topic Matrix Definition A matrix is an array of numbers: a a2... a n a2 a22... a 2n A =.... am am2... amn Matrices are denoted by capital letters : A,B,C,.. Matrix size or rank is determined

More information

Linear Algebra March 16, 2019

Linear Algebra March 16, 2019 Linear Algebra March 16, 2019 2 Contents 0.1 Notation................................ 4 1 Systems of linear equations, and matrices 5 1.1 Systems of linear equations..................... 5 1.2 Augmented

More information

Chapter. Algebra techniques. Syllabus Content A Basic Mathematics 10% Basic algebraic techniques and the solution of equations.

Chapter. Algebra techniques. Syllabus Content A Basic Mathematics 10% Basic algebraic techniques and the solution of equations. Chapter 2 Algebra techniques Syllabus Content A Basic Mathematics 10% Basic algebraic techniques and the solution of equations. Page 1 2.1 What is algebra? In order to extend the usefulness of mathematical

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2 MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS SYSTEMS OF EQUATIONS AND MATRICES Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a

More information

Elementary maths for GMT

Elementary maths for GMT Elementary maths for GMT Linear Algebra Part 2: Matrices, Elimination and Determinant m n matrices The system of m linear equations in n variables x 1, x 2,, x n a 11 x 1 + a 12 x 2 + + a 1n x n = b 1

More information

ICS 6N Computational Linear Algebra Matrix Algebra

ICS 6N Computational Linear Algebra Matrix Algebra ICS 6N Computational Linear Algebra Matrix Algebra Xiaohui Xie University of California, Irvine xhx@uci.edu February 2, 2017 Xiaohui Xie (UCI) ICS 6N February 2, 2017 1 / 24 Matrix Consider an m n matrix

More information

Matrix Operations. Linear Combination Vector Algebra Angle Between Vectors Projections and Reflections Equality of matrices, Augmented Matrix

Matrix Operations. Linear Combination Vector Algebra Angle Between Vectors Projections and Reflections Equality of matrices, Augmented Matrix Linear Combination Vector Algebra Angle Between Vectors Projections and Reflections Equality of matrices, Augmented Matrix Matrix Operations Matrix Addition and Matrix Scalar Multiply Matrix Multiply Matrix

More information

Math 343 Midterm I Fall 2006 sections 002 and 003 Instructor: Scott Glasgow

Math 343 Midterm I Fall 2006 sections 002 and 003 Instructor: Scott Glasgow Math 343 Midterm I Fall 006 sections 00 003 Instructor: Scott Glasgow 1 Assuming A B are invertible matrices of the same size, prove that ( ) 1 1 AB B A 1 = (11) B A 1 1 is the inverse of AB if only if

More information

Matrices and Determinants

Matrices and Determinants Chapter1 Matrices and Determinants 11 INTRODUCTION Matrix means an arrangement or array Matrices (plural of matrix) were introduced by Cayley in 1860 A matrix A is rectangular array of m n numbers (or

More information

1300 Linear Algebra and Vector Geometry

1300 Linear Algebra and Vector Geometry 1300 Linear Algebra and Vector Geometry R. Craigen Office: MH 523 Email: craigenr@umanitoba.ca May-June 2017 Matrix Inversion Algorithm One payoff from this theorem: It gives us a way to invert matrices.

More information

3 Matrix Algebra. 3.1 Operations on matrices

3 Matrix Algebra. 3.1 Operations on matrices 3 Matrix Algebra A matrix is a rectangular array of numbers; it is of size m n if it has m rows and n columns. A 1 n matrix is a row vector; an m 1 matrix is a column vector. For example: 1 5 3 5 3 5 8

More information

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p Math Bootcamp 2012 1 Review of matrix algebra 1.1 Vectors and rules of operations An p-dimensional vector is p numbers put together. Written as x 1 x =. x p. When p = 1, this represents a point in the

More information

Matrix Algebra 2.1 MATRIX OPERATIONS Pearson Education, Inc.

Matrix Algebra 2.1 MATRIX OPERATIONS Pearson Education, Inc. 2 Matrix Algebra 2.1 MATRIX OPERATIONS MATRIX OPERATIONS m n If A is an matrixthat is, a matrix with m rows and n columnsthen the scalar entry in the ith row and jth column of A is denoted by a ij and

More information

6.1 Matrices. Definition: A Matrix A is a rectangular array of the form. A 11 A 12 A 1n A 21. A 2n. A m1 A m2 A mn A 22.

6.1 Matrices. Definition: A Matrix A is a rectangular array of the form. A 11 A 12 A 1n A 21. A 2n. A m1 A m2 A mn A 22. 61 Matrices Definition: A Matrix A is a rectangular array of the form A 11 A 12 A 1n A 21 A 22 A 2n A m1 A m2 A mn The size of A is m n, where m is the number of rows and n is the number of columns The

More information

MATH 2030: MATRICES. Example 0.2. Q:Define A 1 =, A. 3 4 A: We wish to find c 1, c 2, and c 3 such that. c 1 + c c

MATH 2030: MATRICES. Example 0.2. Q:Define A 1 =, A. 3 4 A: We wish to find c 1, c 2, and c 3 such that. c 1 + c c MATH 2030: MATRICES Matrix Algebra As with vectors, we may use the algebra of matrices to simplify calculations. However, matrices have operations that vectors do not possess, and so it will be of interest

More information

Instruction: Operations with Matrices ( ) ( ) log 8 log 25 = If the corresponding elements do not equal, then the matrices are not equal.

Instruction: Operations with Matrices ( ) ( ) log 8 log 25 = If the corresponding elements do not equal, then the matrices are not equal. 7 Instruction: Operations with Matrices Two matrices are said to be equal if they have the same size and their corresponding elements are equal. For example, 3 ( ) ( ) ( ) ( ) log 8 log log log3 8 If the

More information

All of my class notes can be found at

All of my class notes can be found at My name is Leon Hostetler I am currently a student at Florida State University majoring in physics as well as applied and computational mathematics Feel free to download, print, and use these class notes

More information

Introduction to Matrix Algebra

Introduction to Matrix Algebra Introduction to Matrix Algebra August 18, 2010 1 Vectors 1.1 Notations A p-dimensional vector is p numbers put together. Written as x 1 x =. x p. When p = 1, this represents a point in the line. When p

More information

Matrix Arithmetic. j=1

Matrix Arithmetic. j=1 An m n matrix is an array A = Matrix Arithmetic a 11 a 12 a 1n a 21 a 22 a 2n a m1 a m2 a mn of real numbers a ij An m n matrix has m rows and n columns a ij is the entry in the i-th row and j-th column

More information

Things we can already do with matrices. Unit II - Matrix arithmetic. Defining the matrix product. Things that fail in matrix arithmetic

Things we can already do with matrices. Unit II - Matrix arithmetic. Defining the matrix product. Things that fail in matrix arithmetic Unit II - Matrix arithmetic matrix multiplication matrix inverses elementary matrices finding the inverse of a matrix determinants Unit II - Matrix arithmetic 1 Things we can already do with matrices equality

More information

MA 138 Calculus 2 with Life Science Applications Matrices (Section 9.2)

MA 138 Calculus 2 with Life Science Applications Matrices (Section 9.2) MA 38 Calculus 2 with Life Science Applications Matrices (Section 92) Alberto Corso albertocorso@ukyedu Department of Mathematics University of Kentucky Friday, March 3, 207 Identity Matrix and Inverse

More information

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition Prof. Tesler Math 283 Fall 2016 Also see the separate version of this with Matlab and R commands. Prof. Tesler Diagonalizing

More information

Fall Inverse of a matrix. Institute: UC San Diego. Authors: Alexander Knop

Fall Inverse of a matrix. Institute: UC San Diego. Authors: Alexander Knop Fall 2017 Inverse of a matrix Authors: Alexander Knop Institute: UC San Diego Row-Column Rule If the product AB is defined, then the entry in row i and column j of AB is the sum of the products of corresponding

More information

Linear Equations and Matrix

Linear Equations and Matrix 1/60 Chia-Ping Chen Professor Department of Computer Science and Engineering National Sun Yat-sen University Linear Algebra Gaussian Elimination 2/60 Alpha Go Linear algebra begins with a system of linear

More information

Order of Operations. Real numbers

Order of Operations. Real numbers Order of Operations When simplifying algebraic expressions we use the following order: 1. Perform operations within a parenthesis. 2. Evaluate exponents. 3. Multiply and divide from left to right. 4. Add

More information

Linear Algebra Homework and Study Guide

Linear Algebra Homework and Study Guide Linear Algebra Homework and Study Guide Phil R. Smith, Ph.D. February 28, 20 Homework Problem Sets Organized by Learning Outcomes Test I: Systems of Linear Equations; Matrices Lesson. Give examples of

More information

Phys 201. Matrices and Determinants

Phys 201. Matrices and Determinants Phys 201 Matrices and Determinants 1 1.1 Matrices 1.2 Operations of matrices 1.3 Types of matrices 1.4 Properties of matrices 1.5 Determinants 1.6 Inverse of a 3 3 matrix 2 1.1 Matrices A 2 3 7 =! " 1

More information

Chapter 1A -- Real Numbers. iff. Math Symbols: Sets of Numbers

Chapter 1A -- Real Numbers. iff. Math Symbols: Sets of Numbers Fry Texas A&M University! Fall 2016! Math 150 Notes! Section 1A! Page 1 Chapter 1A -- Real Numbers Math Symbols: iff or Example: Let A = {2, 4, 6, 8, 10, 12, 14, 16,...} and let B = {3, 6, 9, 12, 15, 18,

More information

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1 1 Rows first, columns second. Remember that. R then C. 1 A matrix is a set of real or complex numbers arranged in a rectangular array. They can be any size and shape (provided they are rectangular). A

More information

REVIEW Chapter 1 The Real Number System

REVIEW Chapter 1 The Real Number System REVIEW Chapter The Real Number System In class work: Complete all statements. Solve all exercises. (Section.4) A set is a collection of objects (elements). The Set of Natural Numbers N N = {,,, 4, 5, }

More information

Matrices BUSINESS MATHEMATICS

Matrices BUSINESS MATHEMATICS Matrices BUSINESS MATHEMATICS 1 CONTENTS Matrices Special matrices Operations with matrices Matrix multipication More operations with matrices Matrix transposition Symmetric matrices Old exam question

More information

Linear Algebra Tutorial for Math3315/CSE3365 Daniel R. Reynolds

Linear Algebra Tutorial for Math3315/CSE3365 Daniel R. Reynolds Linear Algebra Tutorial for Math3315/CSE3365 Daniel R. Reynolds These notes are meant to provide a brief introduction to the topics from Linear Algebra that will be useful in Math3315/CSE3365, Introduction

More information

Mon Feb Matrix algebra and matrix inverses. Announcements: Warm-up Exercise:

Mon Feb Matrix algebra and matrix inverses. Announcements: Warm-up Exercise: Math 2270-004 Week 5 notes We will not necessarily finish the material from a given day's notes on that day We may also add or subtract some material as the week progresses, but these notes represent an

More information

A primer on matrices

A primer on matrices A primer on matrices Stephen Boyd August 4, 2007 These notes describe the notation of matrices, the mechanics of matrix manipulation, and how to use matrices to formulate and solve sets of simultaneous

More information

Computational Foundations of Cognitive Science. Addition and Scalar Multiplication. Matrix Multiplication

Computational Foundations of Cognitive Science. Addition and Scalar Multiplication. Matrix Multiplication Computational Foundations of Cognitive Science Lecture 1: Algebraic ; Transpose; Inner and Outer Product Frank Keller School of Informatics University of Edinburgh keller@inf.ed.ac.uk February 23, 21 1

More information

Matrix Algebra. Matrix Algebra. Chapter 8 - S&B

Matrix Algebra. Matrix Algebra. Chapter 8 - S&B Chapter 8 - S&B Algebraic operations Matrix: The size of a matrix is indicated by the number of its rows and the number of its columns. A matrix with k rows and n columns is called a k n matrix. The number

More information

Math 2331 Linear Algebra

Math 2331 Linear Algebra 2.2 The Inverse of a Matrix Math 2331 Linear Algebra 2.2 The Inverse of a Matrix Shang-Huan Chiu Department of Mathematics, University of Houston schiu@math.uh.edu math.uh.edu/ schiu/ Shang-Huan Chiu,

More information

MATRICES. a m,1 a m,n A =

MATRICES. a m,1 a m,n A = MATRICES Matrices are rectangular arrays of real or complex numbers With them, we define arithmetic operations that are generalizations of those for real and complex numbers The general form a matrix of

More information

5.1 Introduction to Matrices

5.1 Introduction to Matrices 5.1 Introduction to Matrices Reminder: A matrix with m rows and n columns has size m x n. (This is also sometimes referred to as the order of the matrix.) The entry in the ith row and jth column of a matrix

More information

Math 3191 Applied Linear Algebra

Math 3191 Applied Linear Algebra Math 191 Applied Linear Algebra Lecture 8: Inverse of a Matrix Stephen Billups University of Colorado at Denver Math 191Applied Linear Algebra p.1/0 Announcements We will not make it to section. tonight,

More information

Matrix Algebra: Definitions and Basic Operations

Matrix Algebra: Definitions and Basic Operations Section 4 Matrix Algebra: Definitions and Basic Operations Definitions Analyzing economic models often involve working with large sets of linear equations. Matrix algebra provides a set of tools for dealing

More information

A matrix over a field F is a rectangular array of elements from F. The symbol

A matrix over a field F is a rectangular array of elements from F. The symbol Chapter MATRICES Matrix arithmetic A matrix over a field F is a rectangular array of elements from F The symbol M m n (F ) denotes the collection of all m n matrices over F Matrices will usually be denoted

More information

Numerical Analysis Lecture Notes

Numerical Analysis Lecture Notes Numerical Analysis Lecture Notes Peter J Olver 3 Review of Matrix Algebra Vectors and matrices are essential for modern analysis of systems of equations algebrai, differential, functional, etc In this

More information

Matrices and Vectors

Matrices and Vectors Matrices and Vectors James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University November 11, 2013 Outline 1 Matrices and Vectors 2 Vector Details 3 Matrix

More information

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions Math 308 Midterm Answers and Comments July 18, 2011 Part A. Short answer questions (1) Compute the determinant of the matrix a 3 3 1 1 2. 1 a 3 The determinant is 2a 2 12. Comments: Everyone seemed to

More information

Lecture 3 Linear Algebra Background

Lecture 3 Linear Algebra Background Lecture 3 Linear Algebra Background Dan Sheldon September 17, 2012 Motivation Preview of next class: y (1) w 0 + w 1 x (1) 1 + w 2 x (1) 2 +... + w d x (1) d y (2) w 0 + w 1 x (2) 1 + w 2 x (2) 2 +...

More information

CS 246 Review of Linear Algebra 01/17/19

CS 246 Review of Linear Algebra 01/17/19 1 Linear algebra In this section we will discuss vectors and matrices. We denote the (i, j)th entry of a matrix A as A ij, and the ith entry of a vector as v i. 1.1 Vectors and vector operations A vector

More information

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

MAC Module 2 Systems of Linear Equations and Matrices II. Learning Objectives. Upon completing this module, you should be able to : MAC 0 Module Systems of Linear Equations and Matrices II Learning Objectives Upon completing this module, you should be able to :. Find the inverse of a square matrix.. Determine whether a matrix is invertible..

More information

Chapter 2. Ma 322 Fall Ma 322. Sept 23-27

Chapter 2. Ma 322 Fall Ma 322. Sept 23-27 Chapter 2 Ma 322 Fall 2013 Ma 322 Sept 23-27 Summary ˆ Matrices and their Operations. ˆ Special matrices: Zero, Square, Identity. ˆ Elementary Matrices, Permutation Matrices. ˆ Voodoo Principle. What is

More information

Exercise Set Suppose that A, B, C, D, and E are matrices with the following sizes: A B C D E

Exercise Set Suppose that A, B, C, D, and E are matrices with the following sizes: A B C D E Determine the size of a given matrix. Identify the row vectors and column vectors of a given matrix. Perform the arithmetic operations of matrix addition, subtraction, scalar multiplication, and multiplication.

More information

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.

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. Matrices Operations Linear Algebra Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0 The rectangular array 1 2 1 4 3 4 2 6 1 3 2 1 in which the

More information

Appendix C Vector and matrix algebra

Appendix C Vector and matrix algebra Appendix C Vector and matrix algebra Concepts Scalars Vectors, rows and columns, matrices Adding and subtracting vectors and matrices Multiplying them by scalars Products of vectors and matrices, scalar

More information

Definition 2.3. We define addition and multiplication of matrices as follows.

Definition 2.3. We define addition and multiplication of matrices as follows. 14 Chapter 2 Matrices In this chapter, we review matrix algebra from Linear Algebra I, consider row and column operations on matrices, and define the rank of a matrix. Along the way prove that the row

More information

SCHOOL OF BUSINESS, ECONOMICS AND MANAGEMENT BUSINESS MATHEMATICS / MATHEMATICAL ANALYSIS

SCHOOL OF BUSINESS, ECONOMICS AND MANAGEMENT BUSINESS MATHEMATICS / MATHEMATICAL ANALYSIS SCHOOL OF BUSINESS, ECONOMICS AND MANAGEMENT BUSINESS MATHEMATICS / MATHEMATICAL ANALYSIS Unit Six Moses Mwale e-mail: moses.mwale@ictar.ac.zm BBA 120 Business Mathematics Contents Unit 6: Matrix Algebra

More information

Chapter 7. Linear Algebra: Matrices, Vectors,

Chapter 7. Linear Algebra: Matrices, Vectors, Chapter 7. Linear Algebra: Matrices, Vectors, Determinants. Linear Systems Linear algebra includes the theory and application of linear systems of equations, linear transformations, and eigenvalue problems.

More information

Math 140, c Benjamin Aurispa. 2.1 Matrices

Math 140, c Benjamin Aurispa. 2.1 Matrices 2.1 Matrices Reminder: A matrix with m rows and n columns has size m x n. (This is also sometimes referred to as the order of the matrix.) The entry in the ith row and jth column of a matrix A is denoted

More information

A primer on matrices

A primer on matrices A primer on matrices Stephen Boyd August 4, 2007 These notes describe the notation of matrices, the mechanics of matrix manipulation, and how to use matrices to formulate and solve sets of simultaneous

More information

Math 1302 Notes 2. How many solutions? What type of solution in the real number system? What kind of equation is it?

Math 1302 Notes 2. How many solutions? What type of solution in the real number system? What kind of equation is it? Math 1302 Notes 2 We know that x 2 + 4 = 0 has How many solutions? What type of solution in the real number system? What kind of equation is it? What happens if we enlarge our current system? Remember

More information

Math 320, spring 2011 before the first midterm

Math 320, spring 2011 before the first midterm Math 320, spring 2011 before the first midterm Typical Exam Problems 1 Consider the linear system of equations 2x 1 + 3x 2 2x 3 + x 4 = y 1 x 1 + 3x 2 2x 3 + 2x 4 = y 2 x 1 + 2x 3 x 4 = y 3 where x 1,,

More information

1 Matrices and Systems of Linear Equations

1 Matrices and Systems of Linear Equations Linear Algebra (part ) : Matrices and Systems of Linear Equations (by Evan Dummit, 207, v 260) Contents Matrices and Systems of Linear Equations Systems of Linear Equations Elimination, Matrix Formulation

More information

Section 5.5: Matrices and Matrix Operations

Section 5.5: Matrices and Matrix Operations Section 5.5 Matrices and Matrix Operations 359 Section 5.5: Matrices and Matrix Operations Two club soccer teams, the Wildcats and the Mud Cats, are hoping to obtain new equipment for an upcoming season.

More information

Chapter 2. Matrix Arithmetic. Chapter 2

Chapter 2. Matrix Arithmetic. Chapter 2 Matrix Arithmetic Matrix Addition and Subtraction Addition and subtraction act element-wise on matrices. In order for the addition/subtraction (A B) to be possible, the two matrices A and B must have the

More information

Honors Advanced Mathematics Determinants page 1

Honors Advanced Mathematics Determinants page 1 Determinants page 1 Determinants For every square matrix A, there is a number called the determinant of the matrix, denoted as det(a) or A. Sometimes the bars are written just around the numbers of the

More information

Section 2.2: The Inverse of a Matrix

Section 2.2: The Inverse of a Matrix Section 22: The Inverse of a Matrix Recall that a linear equation ax b, where a and b are scalars and a 0, has the unique solution x a 1 b, where a 1 is the reciprocal of a From this result, it is natural

More information

Definition. A matrix is a rectangular array of numbers enclosed by brackets (plural: matrices).

Definition. A matrix is a rectangular array of numbers enclosed by brackets (plural: matrices). Matrices (general theory). Definition. A matrix is a rectangular array of numbers enclosed by brackets (plural: matrices). Examples. 1 2 1 1 0 2 A= 0 0 7 B= 0 1 3 4 5 0 Terminology and Notations. Each

More information

1. Introduction to commutative rings and fields

1. Introduction to commutative rings and fields 1. Introduction to commutative rings and fields Very informally speaking, a commutative ring is a set in which we can add, subtract and multiply elements so that the usual laws hold. A field is a commutative

More information