Example 1: Factory workers as a matrix
Consider the following information regarding the number of men and women workers in three factories I, II and III
| Men workers | Women workers | |
|---|---|---|
| I | 30 | 25 |
| II | 25 | 31 |
| III | 27 | 26 |
Taking the rows as factories I, II, III and the columns as men and women workers,
is the number of women workers in factory III.
Want the reason behind every step, the basics and the checks?
Represent the above information in the form of a matrix. What does the entry in the third row and second column represent?
A matrix is a table with the labels taken off. The position of a number carries its meaning: the row tells you which factory, the column tells you which kind of worker. Once we agree on that layout, every entry has exactly one meaning, and we can read it back by remembering what row and column stand for.
- Given
- A table of 6 numbers: for each of 3 factories, the number of men workers and the number of women workers.
- To find
- (1) A matrix holding this information. (2) The meaning of the entry in row 3, column 2.
- Plan
- Decide what the 3 rows and the 2 columns stand for (the order forces the choice). Copy the numbers in, keeping each in its place. Then read off using the row and column labels.
Basics you need
A matrix is an ordered rectangular array of numbers (or functions), written inside square brackets. The numbers are its elements or entries. Horizontal lines of entries are rows; vertical lines are columns. Basics: rows, columns and the address a_ij
A matrix with rows and columns has order (read " by "). Rows are always named first. So a matrix has 3 rows and 2 columns, and entries.
is the entry in row and column : first index = row, second index = column. So sits in row 3, column 2.
Solution
Decide what the rows and columns stand for
The table has 3 factories and 2 kinds of worker. The question asks for a matrix, that is 3 rows and 2 columns. So:
- the 3 rows must be the 3 factories: row 1 = factory I, row 2 = factory II, row 3 = factory III;
- the 2 columns must be the 2 kinds of worker: column 1 = men, column 2 = women.
The order is a requirement on the shape: 3 rows, 2 columns. There are 3 factories and 2 kinds of worker, so only one assignment fits. Putting the kinds of worker in rows would give 2 rows and 3 columns, a matrix, which is not what was asked.In an order , the first number always counts rows and the second counts columns. Basics: rows, columns and the address a_ijCopy each number into its place
With that layout, the row for factory I holds its men and women: 30 and 25. Factory II gives 25 and 31. Factory III gives 27 and 26. Entry by entry:
Assembled:
It has 3 rows and 2 columns, so it is indeed of order , with entries, one for each number in the table.
The matrix is just the table with the headings removed. Because the headings are gone, the only thing that tells us "25 in row 1, column 2 means 25 women in factory I" is the agreement we made in Step 1. That is why we fix the layout before writing any numbers.A matrix is an ordered array (Definition 1, Section 3.2): each entry's meaning comes from its position, so moving a number to another place gives (in general) a different matrix. Lesson: what a matrix isRead the entry in row 3, column 2
The entry in the third row and second column is . Row 3 stands for factory III and column 2 stands for women workers. So
is the number of women workers in factory III.
The gold band is row 3 (factory III), the blue band is column 2 (women). The entry where they cross is . To interpret an entry, translate its two indices back into words: the first index picks the row (here, factory III), the second picks the column (here, women). The number itself is a count of people, so the answer is "26 women workers in factory III", not just "26".First index = row, second index = column. Mixing them up would give , which does not even exist in a matrix with only 2 columns. Basics: the address a_ij
with rows = factories I, II, III and columns = men, women. The entry in the third row and second column, , is the number of women workers in factory III. This agrees with the textbook's solution.
Every number of the table appears exactly once: the six entries are 30, 25, 25, 31, 27, 26, the same six numbers. Column 1 adds to men and column 2 adds to women, the same totals as the table's two columns, so no number has been moved to the wrong column. Row 3 adds to , the workforce of factory III.
- Swapping rows and columns. Putting men and women in rows gives a matrix, not the one asked for.
- Reading as row 2, column 3. The first index is the row. Row 2, column 3 does not exist here.
- Answering with a bare number. The question asks what the entry represents: say "the number of women workers in factory III".
- A matrix stores information by position. Fix what each row and each column means before writing numbers.
- The order is (rows) × (columns), and it decides which labels go along the side and which along the top.
- Interpreting means translating and back into the row and column labels.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| A matrix is an ordered rectangular array; rows and columns | Steps 1, 2 | Definition 1, Section 3.2 (Lesson: what a matrix is) |
| Order = rows, columns; it has entries | Steps 1, 2 | Section 3.2.1 |
| lies in row , column | Steps 2, 3 | Section 3.2.1 |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →