College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.

Slides:



Advertisements
Similar presentations
Matrix.
Advertisements

Chapter 4 Systems of Linear Equations; Matrices Section 6 Matrix Equations and Systems of Linear Equations.
Wednesday, July 15, 2015 EQ: What are the similarities and differences between matrices and real numbers ? Warm Up Evaluate each expression for a = -5,
Matrices MSU CSE 260.
4.4 Matrices: Basic Operations. Addition and Subtraction of matrices To add or subtract matrices, they must be of the same order, mxn. To add matrices.
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
Chapter 4 Systems of Linear Equations; Matrices Section 4 Matrices: Basic Operations.
1 Operations with Matrice 2 Properties of Matrix Operations
1 Chapter 3 Matrix Algebra with MATLAB Basic matrix definitions and operations were covered in Chapter 2. We will now consider how these operations are.
8.4 Matrix Operations Day 1 Thurs May 7 Do Now Solve X – 2y = -6 3x + 4y = 7.
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
ECON 1150 Matrix Operations Special Matrices
Rev.S08 MAC 1140 Module 10 System of Equations and Inequalities II.
Matrix Algebra. Quick Review Quick Review Solutions.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Chapter 4 Matrices By: Matt Raimondi.
4.1 Matrix Operations What you should learn: Goal1 Goal2 Add and subtract matrices, multiply a matrix by a scalar, and solve the matrix equations. Use.
Systems of Linear Equations: Matrices Chapter Overview A matrix is simply a rectangular array of numbers. Matrices are used to organize information.
Chapter 8 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Matrix Operations and Their Applications.
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
Operations with Matrices
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
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.
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
Copyright © Cengage Learning. All rights reserved. 7 Linear Systems and Matrices.
Chapter 8 Matrices and Determinants Matrix Solutions to Linear Systems.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Matrices: Basic Operations and Their Properties
Matrix Algebra Section 7.2. Review of order of matrices 2 rows, 3 columns Order is determined by: (# of rows) x (# of columns)
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Sec 4.1 Matrices.
Copyright © Cengage Learning. All rights reserved. 2 SYSTEMS OF LINEAR EQUATIONS AND MATRICES.
Algebra Matrix Operations. Definition Matrix-A rectangular arrangement of numbers in rows and columns Dimensions- number of rows then columns Entries-
Matrices Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 A matrix is a rectangular array of real numbers. Each entry.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
Matrices and Determinants
Matrix Operations McDougal Littell Algebra 2 Larson, Boswell, Kanold, Stiff Larson, Boswell, Kanold, Stiff Algebra 2: Applications, Equations, Graphs Algebra.
1 Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors. Review Matrices.
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.
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
MATRICES. Introduction Matrix algebra has several uses in economics as well as other fields of study. One important application of Matrices is that it.
Matrix Operations McDougal Littell Algebra 2 Larson, Boswell, Kanold, Stiff Larson, Boswell, Kanold, Stiff Algebra 2: Applications, Equations, Graphs Algebra.
Matrices. Matrix A matrix is an ordered rectangular array of numbers. The entry in the i th row and j th column is denoted by a ij. Ex. 4 Columns 3 Rows.
MTH108 Business Math I Lecture 20.
Chapter 4 Systems of Linear Equations; Matrices
Sections 2.4 and 2.5 Matrix Operations
Properties and Applications of Matrices
Christmas Packets are due on Friday!!!
10.4 The Algebra of Matrices
College Algebra Chapter 6 Matrices and Determinants and Applications
Matrix Operations Monday, August 06, 2018.
Matrix Operations.
Matrix Algebra.
Precalculus Mathematics for Calculus Fifth Edition
25. Basic matrix operations
Math-2 (honors) Matrix Algebra
College Algebra Fifth Edition
Section 2.4 Matrices.
Matrices and Matrix Operations
Matrix Algebra.
Matrix Operations Ms. Olifer.
3.5 Perform Basic Matrix Operations Algebra II.
Presentation transcript:

College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson

Matrices and Determinants 7

The Algebra of Matrices 7.2

The Algebra of Matrices Thus far, we’ve used matrices simply for notational convenience when solving linear systems. Matrices have many other uses in mathematics and the sciences. For most of these applications, a knowledge of matrix algebra is essential.

The Algebra of Matrices Like numbers, matrices can be added, subtracted, multiplied, and divided. In this section, we learn how to perform these algebraic operations on matrices.

Equality of Matrices

Two matrices are equal if they have the same entries in the same positions. Equal MatricesUnequal Matrices

Equality of Matrices The matrices A = [a ij ] and B = [b ij ] are equal if and only if: They have the same dimension m x n. Corresponding entries are equal. That is, a ij = b ij for i = 1, 2,..., m and j = 1, 2,..., n.

E.g.1—Equal Matrices Find a, b, c, and d, if Since the two matrices are equal, corresponding entries must be the same. So, we must have: a = 1, b = 3, c = 5, d = 2

Addition, Subtraction, and Scalar Multiplication of Matrices

Addition and Subtraction of Matrices Two matrices can be added or subtracted if they have the same dimension. Otherwise, their sum or difference is undefined. We add or subtract the matrices by adding or subtracting corresponding entries.

Scalar Multiplication of Matrices To multiply a matrix by a number, we multiply every element of the matrix by that number. This is called the scalar product

Sum, Difference, and Scalar Product of Matrices Let: A = [a ij ] and B = [b ij ] be matrices of the same dimension m x n. c be any real number.

Sum of Matrices The sum A + B is the m x n matrix obtained by adding corresponding entries of A and B. A + B = [a ij + b ij ]

Difference of Matrices The difference A – B is the m x n matrix obtained by subtracting corresponding entries of A and B. A – B = [a ij – b ij ]

Scalar Product of Matrices The scalar product cA is the m x n matrix obtained by multiplying each entry of A by c. cA = [ca ij ]

E.g. 2—Performing Algebraic Operations in Matrices Let: Carry out each indicated operation, or explain why it cannot be performed. (a) A + B (b) C – D (c) C + A (d) 5A

E.g. 2—Performing Algebraic Operations in Matrices (a) (b)

E.g. 2—Performing Algebraic Operations in Matrices (c) C + A is undefined because we can’t add matrices of different dimensions. (d)

Addition and Scalar Multiplication of Matrices The following properties follow from: The definitions of matrix addition and scalar multiplication. The corresponding properties of real numbers.

Properties of Addition and Scalar Multiplication Let A, B, and C be m x n matrices and let c and d be scalars. A + B = B + A Commutative Property of Matrix Addition (A + B) + C = A + (B + C) Associative Property of Matrix Addition c(dA) = (cd)A Associative Property of Scalar Multiplication (c + d)A = cA + dA c(A + B) = cA + cB Distributive Properties of Scalar Multiplication

E.g. 3—Solving a Matrix Equation Solve the matrix equation 2X – A = B for the unknown matrix X, where:

E.g. 3—Solving a Matrix Equation We use the properties of matrices to solve for X. 2X – A = B 2X = B + A X = ½(B + A)

E.g. 3—Solving a Matrix Equation Thus,

Multiplication of Matrices

Multiplying two matrices is more difficult to describe than other matrix operations. In later examples, we will see why taking the matrix product involves a rather complex procedure—which we now describe.

Multiplication of Matrices First, the product AB (or A · B) of two matrices A and B is defined only when: The number of columns in A is equal to the number of rows in B.

Multiplication of Matrices This means that, if we write their dimensions side by side, the two inner numbers must match: Columns in A Rows in B MatricesAB Dimensionsm x nn x k

Multiplication of Matrices If the dimensions of A and B match in this fashion, then the product AB is a matrix of dimension m x k. Before describing the procedure for obtaining the elements of AB, we define the inner product of a row of A and a column of B.

Inner Product If is a row of A, and if is a column of B, their inner product is the number a 1 b 1 + a 2 b 2 + ··· +a n b n

Inner Product For example, taking the inner product of [2 –1 0 4] and gives: 2 · 5 + (–1) · · (–3) + 4 · ½ = 8

Matrix Multiplication If A = [a ij ] is an m x n matrix and B = [b ij ] an n x k matrix, their product is the m x k matrix C = [c ij ] where c ij is the inner product of the ith row of A and the jth column of B. We write the product as C = AB

Multiplication of Matrices This definition of matrix product says that each entry in the matrix AB is obtained from a row of A and a column of B, as follows.

Multiplication of Matrices The entry c ij in the ith row and jth column of the matrix AB is obtained by: Multiplying the entries in the ith row of A with the corresponding entries in the jth column of B. Adding the results.

E.g. 4—Multiplying Matrices Let Calculate, if possible, the products AB and BA.

E.g. 4—Multiplying Matrices Since A has dimension 2 x 2 and B has dimension 2 x 3, the product AB is defined and has dimension 2 x 3. We can thus write: The question marks must be filled in using the rule defining the product of two matrices.

E.g. 4—Multiplying Matrices If we define C = AB = [c ij ], the entry c 11 is the inner product of the first row of A and the first column of B: Similarly, we calculate the remaining entries of the product as follows.

E.g. 4—Multiplying Matrices Entry Inner Product of Value Product Matrix c 12 1 · · 4 = 17 c 13 1 · · 7 = 23

E.g. 4—Multiplying Matrices Entry Inner Product of Value Product Matrix c 21 (–1) · (–1) + 0 · 0 = 1 c 22 (–1) · · 4 = –5 c 23 (–1) · · 7 = –2

E.g. 4—Multiplying Matrices Thus, we have: However, the product BA is not defined—because the dimensions of B and A are 2 x 3 and 2 x 2. The inner two numbers are not the same. So, the rows and columns won’t match up when we try to calculate the product.

Multiplying Matrices Graphing calculators and computers are capable of performing matrix algebra. For instance, if we enter the matrices in Example 4 into the matrix variables [A] and [B] on a TI-83 calculator, the calculator finds their product as shown.

Properties of Matrix Multiplication

Although matrix multiplication is not commutative, it does obey the Associative and Distributive Properties.

Properties of Matrix Multiplication Let A, B, and C be matrices for which the following products are defined. Then, A(BC) = (AB)C Associative Property A(B + C) = AB + AC (B + C)A = BA + CA Distributive Property

Properties of Matrix Multiplication The next example shows that, even when both AB and BA are defined, they aren’t necessarily equal. This result proves that matrix multiplication is not commutative.

E.g. 5—Matrix Multiplication Is Not Commutative Let Calculate the products AB and BA. Since both matrices A and B have dimension 2 x 2, both products AB and BA are defined, and each product is also a 2 x 2 matrix.

E.g. 5—Matrix Multiplication Is Not Commutative

This shows that, in general, AB ≠ BA. In fact, in this example, AB and BA don’t even have an entry in common.

Applications of Matrix Multiplication

We now consider some applied examples that give some indication of why mathematicians chose to define the matrix product in such an apparently bizarre fashion. The next example shows how our definition of matrix product allows us to express a system of linear equations as a single matrix equation.

E.g. 6—Writing a Linear System as a Matrix Equation Show that this matrix equation is equivalent to the system of equations in Example 2 of Section 7.1.

E.g. 6—Writing a Linear System as a Matrix Equation If we perform matrix multiplication on the left side of the equation, we get:

E.g. 6—Writing a Linear System as a Matrix Equation Since two matrices are equal only if their corresponding entries are equal, we equate entries to get: This is exactly the system of equations in Example 2 of Section 7.1.

E.g. 7—Representing Demographic Data by Matrices In a certain city, the proportion of voters in each age group who are registered as Democrats, Republicans, or Independents is given by the following matrix.

E.g. 7—Representing Demographic Data by Matrices This matrix gives the distribution, by age and sex, of the voting population of this city.

E.g. 7—Representing Demographic Data by Matrices For this problem, let’s make the (highly unrealistic) assumption that, within each age group, political preference is not related to gender. That is, the percentage of Democrat males in the 18–30 group, for example, is the same as the percentage of Democrat females in this group.

E.g. 7—Representing Demographic Data by Matrices (a) Calculate the product AB. (b) How many males are registered as Democrats in this city? (c) How many females are registered as Republicans?

E.g. 7—Demographic Data Example (a)

E.g. 7—Demographic Data When we take the inner product of a row in A with a column in B, we are adding the number of people in each age group who belong to the category in question. Example (b)

E.g. 7—Demographic Data So, the entry c 21 of AB (the 9000) is obtained by taking the inner product of the Republican row in A with the Male column in B. Example (b)

E.g. 7—Demographic Data This number is, therefore, the total number of male Republicans in this city. Example (b)

E.g. 7—Demographic Data We can label the rows and columns of AB as follows. 13,500 males are registered as Democrats in this city. Example (b)

E.g. 7—Demographic Data There are 10,950 females registered as Republicans. Example (c)

Applications of Matrix Multiplication In Example 7, the entries in each column of A add up to 1. Can you see why this has to be true, given what the matrix describes?

Stochastic Matrices A matrix with this property is called stochastic. Stochastic matrices are used extensively in statistics—where they arise frequently in situations like the one described here.

Computer Graphics

One important use of matrices is in the digital representation of images. A digital camera or a scanner converts an image into a matrix by dividing the image into a rectangular array of elements called pixels. Each pixel is assigned a value that represents the color, brightness, or some other feature of that location.

Pixels For example, in a 256-level gray-scale image, each pixel is assigned a value between 0 and represents white. 255 represents black. The numbers in between represent increasing gradations of gray.

Gray Scale The gradations of a much simpler 8-level gray scale are shown. We use this 8-level gray scale to illustrate the process.

Digitizing Images To digitize the black and white image shown, we place a grid over the picture.

Digitizing Images Each cell in the grid is compared to the gray scale. It is assigned a value between 0 and 7, depending on which gray square in the scale most closely matches the “darkness” of the cell. If the cell is not uniformly gray, an average value is assigned.

Digitizing Images The values are stored in the matrix shown. The digital image corresponding to this matrix is shown in the accompanying image.

Digitizing Images Obviously, the grid we have used is far too coarse to provide good image resolution. In practice, currently available high-resolution digital cameras use matrices with dimensions 2048 x 2048 or larger.

Digitizing Images Here, we summarize the process.

Manipulating Images Once the image is stored as a matrix, it can be manipulated using matrix operations. To darken the image, we add a constant to each entry in the matrix. To lighten the image, we subtract.

Manipulating Images To increase the contrast, we darken the darker areas and lighten the lighter areas. So, we could add 1 to each entry that is 4, 5, or 6 and subtract 1 from each entry that is 1, 2, or 3. Note that we cannot darken an entry of 7 or lighten a 0.

Modifying Matrices Applying this process to the earlier matrix produces a new matrix.

Modifying Images That generates the high-contrast image in Figure 4(b).

Modifying Images Using Matrices Other ways of representing and manipulating images using matrices are discussed in Focus on Modeling.