Skip to content

Mathematics · Ch 3 — Matrices

Equality of Matrices

3.3.1

Equality of Matrices

Equality of Matrices — The Core Idea

Two matrices are equal only when they are identical in every respect — a strict condition, not mere similarity of shape. For two matrices AA and BB to be equal, two conditions must hold simultaneously.

Condition 1: Same Order

If AA is of order m×nm \times n, then BB must also be of order m×nm \times n. A 2×32 \times 3 matrix can never equal a 3×23 \times 2 matrix, whatever numbers are inside.

Condition 2: Corresponding Elements Equal

If A=[aij]A = [a_{ij}] and B=[bij]B = [b_{ij}], then for every row index ii and column index jj,

aij=bij.a_{ij} = b_{ij}.

If even a single pair of corresponding elements differs, the matrices are not equal.

When both conditions hold, we write A=BA = B.

Watch out

Two matrices are not equal just because they contain the same set of numbers arranged differently. For example, [2301]\begin{bmatrix} 2 & 3 \\ 0 & 1 \end{bmatrix} and [3201]\begin{bmatrix} 3 & 2 \\ 0 & 1 \end{bmatrix} hold the same four numbers but are not equal, because the first-row, first-column entries differ (2 vs 3). Position matters completely.


Worked Illustrations

Illustration 1: Simple Comparison

A=[2301]andB=[2301]A = \begin{bmatrix} 2 & 3 \\ 0 & 1 \end{bmatrix} \quad \text{and} \quad B = \begin{bmatrix} 2 & 3 \\ 0 & 1 \end{bmatrix}

are equal — same order (2×22 \times 2) and every corresponding element matches. However,

C=[3201]andD=[2301]C = \begin{bmatrix} 3 & 2 \\ 0 & 1 \end{bmatrix} \quad \text{and} \quad D = \begin{bmatrix} 2 & 3 \\ 0 & 1 \end{bmatrix}

are not equal: both are 2×22 \times 2, but c11=3c_{11} = 3 while d11=2d_{11} = 2.

Illustration 2: Finding Unknowns from Equality

If

[xyzabc]=[−1.502632]\begin{bmatrix} x & y \\ z & a \\ b & c \end{bmatrix} = \begin{bmatrix} -1.5 & 0 \\ 2 & 6 \\ 3 & 2 \end{bmatrix} …

Definition 2Equality of Matrices

Definition: Equality of Matrices

Two matrices A=[aij]A = [a_{ij}] and B=[bij]B = [b_{ij}] are said to be equal if and only if both of the following conditions hold:

  1. Same order: Both matrices have the same number of rows and the same number of columns.

    (i.e., AA is m×nm \times n and BB is m×nm \times n)

  2. Corresponding elements are equal: Every element in AA is exactly equal to the element in the same position in BB.

    (i.e., aij=bija_{ij} = b_{ij} for all ii and jj)

If both conditions are satisfied, we write A=BA = B.


Intuition

Think of two matrices as identical grids of numbers. They are equal only when their grids are the same size and every number in the same cell matches perfectly.


Tiny Concrete Example

The matrices

[2301]and[2301]\begin{bmatrix} 2 & 3 \\ 0 & 1 \end{bmatrix} \quad \text{and} \quad \begin{bmatrix} 2 & 3 \\ 0 & 1 \end{bmatrix}

are equal because both are 2×22 \times 2 and each entry matches.

But …