A matrix is a rectangular array of numbers representing data in a variety of forms. Computers work very heavily with matrices because operations with matrices are efficient with memory. Matrices can represent statistical data with numbers, but also graphical data with pictures.

How might you use a matrix to write the following image as something a computer could recognize and work with?

####
Watch This

http://youtu.be/ilFJYjfKYjk James Sousa: Dimensions of a Matrix

#### Guidance

A matrix is a means of storing information effectively and efficiently. The rows and columns each mean something very specific and the location of a number is just as important as its value. The following are all examples of matrices:

The entries in a matrix can be written out using brackets like [ ], but they can also be described individually using a set of 2 subscript indices and that stand for the row number and the column number. Alternatively, the matrix can be named with just a capital letter like .

Square matrices have the same number of rows as columns. The
**
order
**
of a matrix describes the number of rows and the number of columns in the matrix. The following matrix is said to have order
because it has two rows and three columns. A
matrix is just a regular number.

The identity matrix of order has zeros everywhere except along the main diagonal where it has ones. Just like the number 1 has an important property with numbers, the identity matrix of any order has special properties as well.

When you turn the rows of a matrix into the columns of a new matrix, the two matrices are transpositions of one another. The superscript stands for transpose. Sometimes using the transpose of a matrix is more useful than using the matrix itself.

A triangular matrix is not a matrix in the shape of a triangle. Rather, a lower triangular matrix is a square matrix where every entry below the diagonal is zero. An upper triangular matrix is a square matrix where every entry above the diagonal is zero. The following is a lower triangular matrix. When you work with solving matrices, look for triangular matrices because they are much easier to solve.

A diagonal matrix is both upper and lower triangular which means all the entries except those along the diagonal are zero. The identity matrix is a special case of a diagonal matrix.

**
Example A
**

Organize the driving distances between Sacramento , Dallas , Albany and Las Vegas in a matrix.

**
Solution:
**

**
**

Note that this matrix is symmetric across the main diagonal. Symmetric matrices are important, just like triangular matrices.

**
Example B
**

Kate runs three bakeries and each bakery sells bagels and muffins. The rows represent the bakeries and the columns represent bagels (left) and muffins (right) sold. Answer the following questions about Kate’s sales.

- What does 127 represent?
- How many muffins did Kate sell in total?
- How many bagels did Kate sell in her first location?
- Which location is doing poorly?

**
Solution:
**

- 127 represents the number of muffins that Kate sold in her second location. You know this because it is in the muffin column and the second row.
- The total muffins sold is equal to the sum of the right hand column.
- Kate sold 144 bagels at her first location.
- The third location is doing much worse than the other two locations.

**
Example C
**

Identify the order of the following matrices

**
Solution:
**
is
,
is
,
is
. Note that
are not the same orders and would be incorrect.

**
Concept Problem Revisited
**

By writing every hollow square as a 0 and a blank square as a 1 a computer could read the picture:

When you use computers to manipulate images, the computer just manipulates the numbers. In this case, if you swap zeros and ones, you get the negative image.

Real photos and computer images have matrices that are much larger and include more numbers than just zero and one to account for more colors.

#### Vocabulary

A
**
matrix
**
is a rectangular array of numbers used to represent data in a compact and efficient way.

A
**
square matrix
**
is a matrix with the same number of rows and columns.

An
**
identity matrix
**
is a matrix with zeros everywhere except along the diagonal where there are ones.

A
**
diagonal matrix
**
is a matrix with zeros everywhere except along the diagonal where the numbers can be anything.

The
**
transpose of a matrix
**
is a new matrix whose columns and rows have been switched. This changes the order of the matrix from, for example,
to
.

A
**
triangular matrix
**
is described as either

**That portion of the matrix is entirely zeros. These kinds of matrices are easier to solve.**

*upper or lower triangular*.
A
**
symmetric matrix
**
is a square matrix with reflection symmetry across the main diagonal.

#### Guided Practice

1. Geetha took the SAT three times. The first time she scored 460 on math and 540 on verbal. The second time she scored 540 on math and 620 on verbal. The third time she scored 650 on math and 670 on verbal. Use a matrix to represent Geetha’s scores.

2. Write out the matrix whose entries are .

3. Create a matrix for each of the following:

a. Diagonal Matrix

b. Lower Triangular

c. Symmetric

d. Identity

**
Answers:
**

1. Let the rows represent each sitting and the columns represent math and verbal.

2.

3. While the identity matrix does technically work for all the parts of this problem, it does not highlight the differences between each definition. Here are possible answers.

a. Diagonal Matrix

b. Lower Triangular

c. Symmetric

d. Identity

#### Practice

State the order of each of the following matrices:

1.

2.

3.

4.

5.

6. Give an example of a matrix.

7. Give an example of a matrix.

8. If a symmetric matrix is also lower triangular, what type of matrix is it?

9. Write out the matrix whose entries are .

Morgan worked for three weeks during the summer earning money on Mondays, Tuesdays, Wednesdays, Thursdays, and Fridays. The following matrix represents his earnings.

10. What do the rows and columns represent?

11. How much money did Morgan make in the first week?

12. How much money did Morgan make on Tuesdays?

13. What day of the week was most profitable?

14. What day of the week was least profitable?

15. Is the following a matrix? Explain.