Math Lab
Home/Class XII/Ch 3/Matrix definition and types

Matrix definition and types

A matrix is a rectangular arrangement of numbers, symbols, or expressions, arranged in rows and columns. The numbers are called entries of the matrix. We use capital letters A,B,C,A, B, C, \ldots for matrices and lowercase indexed letters aija_{ij} for the entry in row ii, column jj. The matrix AA with mm rows and nn columns has order (or dimension) m×nm \times n.

Formal definition

A=(aij)m×n=(a11a12a1na21a22a2nam1am2amn).A = (a_{ij})_{m \times n} = \begin{pmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{pmatrix}.

When we say AA has order m×nm \times n, mm comes first. The number of entries is mnmn. Two matrices are equal if they have the same order and equal entries in every position.

Named special matrices

NameDefinition
Row matrix1×n1 \times n (one row)
Column matrixm×1m \times 1 (one column)
Square matrixm=nm = n
Diagonal matrixSquare, aij=0a_{ij} = 0 for iji \neq j
Scalar matrixDiagonal with equal diagonal entries
Identity matrix InI_nScalar matrix with diagonal 11
Zero (null) matrix OOAll entries are 00
Upper triangularaij=0a_{ij} = 0 for i>ji > j
Lower triangularaij=0a_{ij} = 0 for i<ji < j

Examples

A 2×32 \times 3 matrix: (123456)\begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}.

A row matrix of order 1×41 \times 4: (78910)(7 \quad 8 \quad 9 \quad 10).

A diagonal matrix of order 3×33 \times 3: (200050007)\begin{pmatrix} 2 & 0 & 0 \\ 0 & 5 & 0 \\ 0 & 0 & 7 \end{pmatrix}.

The 3×33 \times 3 identity: I3=(100010001)I_3 = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}.

Constructing matrices from formulas

Often a matrix is defined by giving a formula for aija_{ij}. For example, A=(aij)2×3A = (a_{ij})_{2 \times 3} with aij=i+2ja_{ij} = i + 2j gives:

a11=3,a12=5,a13=7,a21=4,a22=6,a23=8a_{11} = 3, a_{12} = 5, a_{13} = 7, a_{21} = 4, a_{22} = 6, a_{23} = 8.

So A=(357468)A = \begin{pmatrix} 3 & 5 & 7 \\ 4 & 6 & 8 \end{pmatrix}.

Equality of matrices

Two matrices A=(aij)A = (a_{ij}) and B=(bij)B = (b_{ij}) are equal, written A=BA = B, if and only if:

  1. They have the same order, and
  2. aij=bija_{ij} = b_{ij} for all i,ji, j.

So (12)\begin{pmatrix} 1 & 2 \end{pmatrix} and (12)\begin{pmatrix} 1 \\ 2 \end{pmatrix} are not equal , different orders.

Counting matrices

The number of distinct m×nm \times n matrices with entries from a set SS of size kk is kmnk^{mn}. For example, 2×22 \times 2 binary matrices number 24=162^4 = 16.

Worked examples

Example 1. Find the order of A=(123456)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \end{pmatrix}. State the entry a32a_{32}.

Order 3×23 \times 2. a32=6a_{32} = 6.

Example 2. Construct B=(bij)2×2B = (b_{ij})_{2 \times 2} with bij=(ij)2b_{ij} = (i - j)^2.

b11=0,b12=1,b21=1,b22=0b_{11} = 0, b_{12} = 1, b_{21} = 1, b_{22} = 0. So B=(0110)B = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}.

Example 3. If A=(23x5)A = \begin{pmatrix} 2 & 3 \\ x & 5 \end{pmatrix} and B=(2y45)B = \begin{pmatrix} 2 & y \\ 4 & 5 \end{pmatrix} are equal, find xx and yy.

x=4,y=3x = 4, y = 3.

Example 4. Identify the order of the zero matrix needed to add to (1001)\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} such that the result is itself.

The matrix is 2×22 \times 2, so the zero matrix of order 2×22 \times 2 adds with it.

Example 5. Find a 3×33 \times 3 diagonal matrix with diagonal entries 1,2,31, 2, 3. Is it also a scalar matrix?

(100020003)\begin{pmatrix} 1 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 3 \end{pmatrix}. Not a scalar matrix (diagonal entries differ).

Example 6. Write down a 3×33 \times 3 upper triangular matrix all of whose diagonal entries are zero.

(0ab00c000)\begin{pmatrix} 0 & a & b \\ 0 & 0 & c \\ 0 & 0 & 0 \end{pmatrix} for any a,b,ca, b, c.

Try it yourself

  1. State the order of (123456)\begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}.
  2. Construct the 3×33 \times 3 matrix A=(aij)A = (a_{ij}) with aij=i+ja_{ij} = i + j.
  3. State the entry a23a_{23} of the matrix in the previous question.
  4. If A=(x23y)=(5237)A = \begin{pmatrix} x & 2 \\ 3 & y \end{pmatrix} = \begin{pmatrix} 5 & 2 \\ 3 & 7 \end{pmatrix}, find x,yx, y.
  5. Write the 2×22 \times 2 identity matrix.
  6. Find the number of 2×22 \times 2 matrices with entries from {0,1,2}\{0, 1, 2\}.
  7. Construct a 4×44 \times 4 scalar matrix with scalar 3-3.
  8. Is the matrix (1234)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} upper or lower triangular? Neither?
  9. Construct a 3×33 \times 3 lower triangular matrix where all diagonal entries are 11.
  10. If a matrix has order 5×75 \times 7, how many entries does it have?
  11. Write down a 2×22 \times 2 matrix that is both upper and lower triangular.
  12. State whether (1001)\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} is a scalar matrix. Justify.
  13. Construct a 3×33 \times 3 matrix AA with aij=ija_{ij} = i \cdot j.
  14. List all possible orders for a matrix with exactly 1212 entries.

Pitfalls / Tricks

  • The number of entries is mnm \cdot n, but the order is always written m×nm \times n (rows first).
  • A matrix that is both upper and lower triangular must be diagonal.
  • The zero matrix and the identity matrix are not the same , be careful in operations.
  • Each entry aija_{ij} is identified by row ii, column jj. Confusing these is a frequent mistake.
  • A scalar matrix is a special case of a diagonal matrix, but not every diagonal matrix is scalar.

Next we define addition and multiplication on matrices.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Matrix definition and types
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6