modeling real-world data with matrices section 2-3

Post on 01-Jan-2016

276 Views

Category:

Documents

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Modeling Real-World Data with Matrices

Section 2-3

Before finishing this section you should be able to:

• Model data using matrices

• Add, subtract, and multiply matrices

Remember: Your textbook is your friend! This presentation is just a supplement to the text. BEFORE you view this, make sure you read this section in your textbook and look at all the great examples that are also worked there for you.

Intro to Matrices

A matrix is a rectangular array of terms called elements arranged in rows and columns. These rows and columns make up the dimensions of the matrix. A matrix with m rows and n columns is a matrix.

This matrix has 2 rows and 3 columns.

The dimensions are 2 x 3

3 0 5

1 6 8

6

2

4 5

3 3

There are several special matrices.

A matrix with only one row is called a row matrix. For example:

A matrix with only one column is a column matrix. For example:

A matrix with the same number of rows as columns is called a square matrix, also called matrices of the nth order, where n is the number of rows and columns. For example:

This is a 2 x 2 matrix, so it is of order 2.

1 3 7

Two matrices are equal matrices if they have the same dimensions and are identical, element by element.  Matrices may be easily added and subtracted by simply adding or subtraction the corresponding elements. The dimensions of the two matrices must be the same.

A matrix whose elements are all zeros is a zero matrix. A zero matrix is an additive identity matrix because adding a zero matrix to any matrix will not change that matrix. zero matrix (identity matrix)

0 1 0 1 1

0 1 0 1 1

2 6

4 5

6 183

12 15

A

A

Multiply each element in matrix A by the scalar 3.

A number called a scalar may also multiply matrices. Each element is multiplied by the scalar.

You can also find the product of two matrices. This is only possible when the number of columns in the first is equal to the number of rows in the second. Each element in the first row of the first matrix is multiplied by each corresponding element in the first column of the second matrix. Then add all of these products together.

3 x 3 2 x 2 2 x 3

4 1 24 2 1 2 3

0 1 02 3 3 1 0

3 2 4

A B C

Find the product AB.

AB is impossible because the dimensions of matrix A are 3 x 3 and the dimensions of matrix B are 2 x 2.

In order to multiply two matrices the number of columns in the first matrix must match the number of rows in the

second matrix. A has 3 columns and B has 2 rows so we have a dimension

mismatch and we cannot multiply these two matrices.

Find the product BC.

B is a 2 x 2 matrix and C is a 2 x 3 matrix. The number of columns in B is 2 and the number of rows in C is 2, therefore we can multiply these two matrices.

4 2 1 2 3

2 3 3 1 0BC

(4 1) (2 3) (4 2) (2 1) (4 3) (2 0)

( 2 1) (3 3) ( 2 2) (3 1) ( 2 3) (3 0)BC

10 10 12

7 1 6BC

Multiply each row in B by each column in C.

DESSERT Jessica does a survey on the cost of four different desserts at three local

restaurants. At restaurant A, a slice of apple pie is priced at $2.25, a brownie sundae is priced at $2.95, a slice of apple cobbler is priced at $1.95, and an ice cream cone is

priced at $1.10. At restaurant B, apple pie is $2.75, a brownie sundae is $3.45, apple

cobbler is $2.50, and an ice cream cone is $1.65. At restaurant C, apple pie is $2.40, a brownie sundae is $2.70, apple cobbler is

$2.35, and an ice cream cone is $1.15.

a. Use a matrix to represent the data.

b. Use a symbol to represent the price of a brownie sundae at restaurant C.

a. To represent data using a matrix, choose which category will be represented by the columns and which will be represented by the rows. Let’s use the columns to represent the prices at each restaurant and the rows to represent the prices of each dessert. Then write each data piece as you would if you were placing the data in a table.

$2.25 $2.75 $2 A B

.40$2.95 $3.4

Capple piebrownie sunda 5 $2.70

$1.95 $2.50 $2.35$1.

eapple cobbl

10 $1.65 $1.15er

ice cream

Notice that the category names appear outside of the matrix.

b. The price of a brownie sundae at restaurant C is found in row 2, column 3 of the matrix.

This element is represented by the symbol a23.

Find the values of x and y for which the matrix equation is true.

3 +16

3

y x

x y

Since the corresponding elements are equal, we can express the equality of the matrices as two equations.

y = 3x + 16x = 3y

Solve the system of equations by using substitution.

y = 3x + 16

y = 3(3y) + 16 Substitute 3y for x.

y = -2 Solve for y.

x = 3(-2) Substitute –2 for y in the

x = -6 second equation to find x.

The matrices are equal if x = -6 and y = -2. Check by substituting into the matrices.

More Examples

Find A + B if A =

and B =

A + B =

=

4 -2 6

1 3 -3

-1 2 5

-4 1 7

4 ( 1) 2 2 6 5

1 ( 4) 3 1 3 7

3 0 11

3 4 4

Find C – D if C = and D =

C – D = C + -D =

=

5 2

8 1

-4 3

2 -1

2 5

-3 4

6 -8

3 5

5 2 2 5

8 1 3 4

4 3 6 8

2 1 3 5

5 ( 2) 2 ( 5) 3 -3

8 3 1 ( 4) 11 -3 or

4 ( 6) 3 8 -10 11

2 ( 3) 1 ( 5) -1 -6

If A = , find 2A.

= =

1 3 4

2 5 0

3 6 2

1 3 4

2 2 5 0

3 6 2

2(1) 2(3) 2(4)

2( 2) 2(5) 2(0)

2(3) 2(6) 2(2)

2 6 8

4 10 0

6 12 4

Multiply each element by 2.

Use matrices A = , B = ,

and C = to find each product.

2 4

0 1

3 1 -2

4 0 -1

-3 4 2

1 5 0

2 4 3 1 2

0 1 4 0 1

2(3) 4(4) 2(1) 4(0) 2( 2) 4( 1) 22 2 -8 =

0(3) 1(4) 0(1) 1(0) 0( 2) 1( 1) 4 0 -1

Find the product AB

AB =

Find the product BCB is a 2 3 matrix and C is a 2 3 matrix.

Since B does not have the same number of columns as C has rows, the product BC does not exist.

BC is undefined.

Calculator Instructions

http://helmet.stetson.edu/~mhale/teach/ti83.htm#matrices

http://dwb.unl.edu/calculators/activities/Matrices.html

http://occawlonline.pearsoned.com/bookbind/pubbooks/pirnot_awl/chapter1/medialib/tech/ti83tutorial.pdf

Helpful WebsitesMATRICES:

http://www.ping.be/~ping1339/matr.htm

http://www.purplemath.com/modules/matrices2.htm

http://www.purplemath.com/modules/mtrxadd.htm

http://www.purplemath.com/modules/mtrxmult.htm

http://www.purplemath.com/modules/mtrxmult2.htm

2-3 Self-Check Quiz: http://www.glencoe.com/sec/math/studytools/cgi-bin/msgQuiz.php4?isbn=0-07-860861-9&chapter=2&lesson=3&quizType=1&headerFile=4&state=

top related