Class 12 Maths, Worked in Full Past papersGet updates
Chapter 3 · Matrices

Example 3: Construct a 3×23\times2 matrix from aij=12∣i−3j∣a_{ij}=\frac12|i-3j|

ExamplesOrder of a matrix · Section 3.2.1
The question

Construct a 3×23\times2 matrix whose elements are given by aij=12 ∣i−3j∣a_{ij} = \frac12\,|i - 3j|⁠.

Exam answer

aij=12∣i−3j∣a_{ij} = \frac12|i - 3j|⁠, where i=1,2,3i = 1, 2, 3 and j=1,2j = 1, 2⁠.

a11=12∣1−3∣=1a12=12∣1−6∣=52a21=12∣2−3∣=12a22=12∣2−6∣=2a31=12∣3−3∣=0a32=12∣3−6∣=32\begin{aligned} a_{11} &= \tfrac12|1 - 3| = 1 \\ a_{12} &= \tfrac12|1 - 6| = \tfrac52 \\ a_{21} &= \tfrac12|2 - 3| = \tfrac12 \\ a_{22} &= \tfrac12|2 - 6| = 2 \\ a_{31} &= \tfrac12|3 - 3| = 0 \\ a_{32} &= \tfrac12|3 - 6| = \tfrac32 \end{aligned}

∴ A=[152122032]\therefore\ A = \begin{bmatrix} 1 & \dfrac52 \\[2pt] \dfrac12 & 2 \\[2pt] 0 & \dfrac32 \end{bmatrix}

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

A formula for aija_{ij} is a recipe that takes an address (row ii⁠, column jj⁠) 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, to find, and the plan
Given
The order 3×23\times2 and the rule aij=12∣i−3j∣a_{ij} = \frac12|i-3j|⁠.
To find
The matrix A=[aij]3×2A = [a_{ij}]_{3\times2}⁠.
Plan
The order tells us i=1,2,3i = 1, 2, 3 and j=1,2j = 1, 2⁠: six addresses. Compute i−3ji - 3j⁠, take its absolute value, halve it, for each address. Then assemble.

Basics you need

1The address aija_{ij}

aija_{ij} is the entry in row ii⁠, column jj⁠. A 3×23\times2 matrix has rows i=1,2,3i = 1, 2, 3 and columns j=1,2j = 1, 2⁠, so its entries are a11,a12,a21,a22,a31,a32a_{11}, a_{12}, a_{21}, a_{22}, a_{31}, a_{32}⁠. Basics: rows, columns and the address a_ij

2Absolute value

∣t∣|t| is the distance of tt from 0, so it is never negative: ∣t∣=t|t| = t if t≥0t\ge 0 and ∣t∣=−t|t| = -t if t<0t < 0⁠. For example ∣−5∣=5|-5| = 5⁠, ∣0∣=0|0| = 0⁠, ∣3∣=3|3| = 3⁠.

3Order of operations

In 12∣i−3j∣\frac12|i-3j|⁠: first multiply 3j3j⁠, then subtract from ii⁠, then take the absolute value, then halve.

Solution

  1. Write down the shape and the six addresses

    A 3×23\times2 matrix has 3 rows and 2 columns:

    A=[a11a12a21a22a31a32].A = \begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \\ a_{31} & a_{32} \end{bmatrix}.

    So we need aija_{ij} for i=1,2,3i = 1, 2, 3 and j=1,2j = 1, 2⁠.

    Writing the empty shape first shows exactly which entries we owe. The order decides the range of each index: ii runs over the 3 rows and jj over the 2 columns, so there are 3×2=63\times2 = 6 entries to compute.
    First index = row, second = column. Basics: the address a_ij
  2. Row 1 (i=1i = 1⁠)

    a11=12∣1−3⋅1∣=12∣−2∣=12⋅2=1,a12=12∣1−3⋅2∣=12∣−5∣=52.\begin{aligned} a_{11} &= \tfrac12|1 - 3\cdot1| = \tfrac12|-2| = \tfrac12\cdot 2 = 1,\\ a_{12} &= \tfrac12|1 - 3\cdot2| = \tfrac12|-5| = \tfrac52. \end{aligned}
    For each entry we substitute its own row number for ii and its own column number for jj⁠. The quantity inside the bars is negative here, and the absolute value turns it positive before halving.
    ∣−2∣=2|-2| = 2 and ∣−5∣=5|-5| = 5⁠: the absolute value of a negative number is its negative, −(−2)=2-(-2) = 2⁠.
  3. Row 2 (i=2i = 2⁠)

    a21=12∣2−3⋅1∣=12∣−1∣=12,a22=12∣2−3⋅2∣=12∣−4∣=12⋅4=2.\begin{aligned} a_{21} &= \tfrac12|2 - 3\cdot1| = \tfrac12|-1| = \tfrac12,\\ a_{22} &= \tfrac12|2 - 3\cdot2| = \tfrac12|-4| = \tfrac12\cdot 4 = 2. \end{aligned}
    Same recipe, now with i=2i = 2⁠. Only ii changes as we move down the column; only jj changes as we move along the row.
  4. Row 3 (i=3i = 3⁠)

    a31=12∣3−3⋅1∣=12∣0∣=0,a32=12∣3−3⋅2∣=12∣−3∣=32.\begin{aligned} a_{31} &= \tfrac12|3 - 3\cdot1| = \tfrac12|0| = 0,\\ a_{32} &= \tfrac12|3 - 3\cdot2| = \tfrac12|-3| = \tfrac32. \end{aligned}
    a31a_{31} is the only address where i=3ji = 3j⁠, so it is the only zero entry. An entry of 0 is still an entry and must be written in its place.
    ∣0∣=0|0| = 0⁠: zero is its own absolute value.
  5. Assemble the matrix

    Placing each value at its address:

    A=[152122032].A = \begin{bmatrix} 1 & \tfrac52 \\[2pt] \tfrac12 & 2 \\[2pt] 0 & \tfrac32 \end{bmatrix}.
    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.
Result A=[152122032]3×2A = \begin{bmatrix} 1 & \tfrac52 \\[2pt] \tfrac12 & 2 \\[2pt] 0 & \tfrac32 \end{bmatrix}_{3\times2}

This agrees with the textbook's solution.

Check it with numbers

The values inside the bars, i−3ji - 3j⁠, are −2,−5-2, -5 (row 1), −1,−4-1, -4 (row 2), 0,−30, -3 (row 3). Along each row the value drops by 3 (because jj goes up by 1 and is multiplied by 3), and down each column it rises by 1 (because ii goes up by 1). Halving the absolute values gives 1,52,12,2,0,321, \tfrac52, \tfrac12, 2, 0, \tfrac32⁠, matching the matrix.

Common mistakes
  1. Dropping the absolute value. Without it, a11a_{11} would be −1-1⁠. The bars make every entry non-negative.
  2. Swapping ii and jj⁠. a12a_{12} uses i=1i = 1⁠, j=2j = 2⁠: 12∣1−6∣=52\tfrac12|1-6| = \tfrac52⁠, not 12∣2−3∣=12\tfrac12|2-3| = \tfrac12⁠.
  3. Building a 2×32\times3 matrix. The order 3×23\times2 means 3 rows and 2 columns.
What to take away
  1. To build a matrix from a formula, list every address (i,j)(i, j) the order allows and evaluate the formula at each.
  2. Work row by row so no entry is skipped, and keep ii as the row number and jj as the column number throughout.

Every fact used, and where it comes from

FactUsed inSource
A=[aij]m×nA = [a_{ij}]_{m\times n}⁠, 1≤i≤m1\le i\le m⁠, 1≤j≤n1\le j\le nStep 1Section 3.2.1 (Lesson: what a matrix is)
∣t∣=t|t| = t for t≥0t\ge0⁠, ∣t∣=−t|t| = -t for t<0t<0Steps 2–4Definition of absolute value
Found an error, or want more?

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 →