Example 3: Construct a matrix from
Construct a matrix whose elements are given by .
, where and .
Want the reason behind every step, the basics and the checks?
A formula for is a recipe that takes an address (row , column ) and returns the number stored there. "Construct the matrix" means: list every address the order allows, feed each one into the recipe, and put the answer in that place.
- Given
- The order and the rule .
- To find
- The matrix .
- Plan
- The order tells us and : six addresses. Compute , take its absolute value, halve it, for each address. Then assemble.
Basics you need
is the entry in row , column . A matrix has rows and columns , so its entries are . Basics: rows, columns and the address a_ij
is the distance of from 0, so it is never negative: if and if . For example , , .
In : first multiply , then subtract from , then take the absolute value, then halve.
Solution
Write down the shape and the six addresses
A matrix has 3 rows and 2 columns:
So we need for and .
Writing the empty shape first shows exactly which entries we owe. The order decides the range of each index: runs over the 3 rows and over the 2 columns, so there are entries to compute.First index = row, second = column. Basics: the address a_ijRow 1 ()
For each entry we substitute its own row number for and its own column number for . The quantity inside the bars is negative here, and the absolute value turns it positive before halving.and : the absolute value of a negative number is its negative, .Row 2 ()
Same recipe, now with . Only changes as we move down the column; only changes as we move along the row.Row 3 ()
is the only address where , so it is the only zero entry. An entry of 0 is still an entry and must be written in its place.: zero is its own absolute value.Assemble the matrix
Placing each value at its address:
The matrix is the collection of all six values, each in the row and column given by its indices. It has 3 rows and 2 columns, as the question demands.
This agrees with the textbook's solution.
The values inside the bars, , are (row 1), (row 2), (row 3). Along each row the value drops by 3 (because goes up by 1 and is multiplied by 3), and down each column it rises by 1 (because goes up by 1). Halving the absolute values gives , matching the matrix.
- Dropping the absolute value. Without it, would be . The bars make every entry non-negative.
- Swapping and . uses , : , not .
- Building a matrix. The order means 3 rows and 2 columns.
- To build a matrix from a formula, list every address the order allows and evaluate the formula at each.
- Work row by row so no entry is skipped, and keep as the row number and as the column number throughout.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| , , | Step 1 | Section 3.2.1 (Lesson: what a matrix is) |
| for , for | Steps 2–4 | Definition of absolute value |
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 →