Matrix Definition Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Matrix Definition.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

A matrix is a rectangular array of numbers arranged in rows (horizontal) and columns (vertical). An mร—nm \times n matrix has mm rows and nn columns. Each number in the matrix is called an entry or element, identified by its row and column position.

Think of a spreadsheet: rows go across, columns go down, and every cell holds a number. A 2ร—32 \times 3 matrix is like a mini-spreadsheet with 2 rows and 3 columns. Matrices package multiple numbers into a single organized object so you can manipulate them all at once.

Read the full concept explanation โ†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: A matrix is a rectangular array where each entry is pinned by its row and column address.

Common stuck point: The procedure for matrix definition is the easy part; the trap is stating dimensions columns-first. Asking "Are the numbers arranged in a fixed rectangle of rows and columns with a stated size?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Are the numbers arranged in a fixed rectangle of rows and columns with a stated size?

Worked Examples

Example 1

easy
Given A=[3โˆ’17052]A = \begin{bmatrix} 3 & -1 & 7 \\ 0 & 5 & 2 \end{bmatrix}, what are the dimensions of AA and what is a2,3a_{2,3}?

Answer

AA is 2ร—32 \times 3; a2,3=2a_{2,3} = 2

First step

1
Step 1: Count rows: 2. Count columns: 3. Dimensions: 2ร—32 \times 3.

Full solution

  1. 2
    Step 2: a2,3a_{2,3} means row 2, column 3. That entry is 22.
  2. 3
    Step 3: Verify: row 2 is [0,5,2][0, 5, 2], third element is 22 โœ“
A matrix's dimensions are always given as rows ร— columns. The notation ai,ja_{i,j} refers to the entry in row ii and column jj.

Example 2

medium
Write a 3ร—13 \times 1 column matrix where ai,1=2iโˆ’1a_{i,1} = 2i - 1.

Example 3

challenge
Show how any nร—nn\times n matrix AA decomposes uniquely as a sum S+KS + K where SS is symmetric and KK is skew-symmetric.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
What are the dimensions of [40โˆ’1732]\begin{bmatrix} 4 & 0 \\ -1 & 7 \\ 3 & 2 \end{bmatrix}?

Example 2

medium
If AA is a 4ร—34 \times 3 matrix, how many entries does it have? Can you multiply AA by a 3ร—53 \times 5 matrix?

Example 3

easy
What are the dimensions of the matrix (123456)\begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}?

Example 4

easy
In the matrix A=(78910)A = \begin{pmatrix} 7 & 8 \\ 9 & 10 \end{pmatrix}, what is the entry a21a_{21}?

Example 5

easy
How many entries does a 3ร—43 \times 4 matrix have?

Example 6

easy
Is (123456)\begin{pmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \end{pmatrix} a square matrix?

Example 7

easy
What is the 3ร—33 \times 3 identity matrix?

Example 8

easy
Give the dimensions of a column vector with 4 entries.

Example 9

easy
What is the entry a12a_{12} in (5โˆ’328)\begin{pmatrix} 5 & -3 \\ 2 & 8 \end{pmatrix}?

Example 10

easy
A matrix has the same number of rows and columns. What is it called?

Example 11

medium
Matrix BB is 2ร—52 \times 5 and matrix CC is 5ร—35 \times 3. What are the dimensions of BCBC?

Example 12

medium
Can a 3ร—23 \times 2 matrix be added to a 2ร—32 \times 3 matrix? Explain.

Example 13

medium
How many entries lie on the main diagonal of a 5ร—55 \times 5 matrix?

Example 14

medium
Matrix AA is 4ร—34 \times 3. For the product ABAB to be defined, what must be true of BB's number of rows?

Example 15

medium
Two matrices are equal. A=(x23y)A = \begin{pmatrix} x & 2 \\ 3 & y \end{pmatrix} and B=(5237)B = \begin{pmatrix} 5 & 2 \\ 3 & 7 \end{pmatrix}. Find xx and yy.

Example 16

medium
Is the product of a 1ร—31 \times 3 row vector and a 3ร—13 \times 1 column vector a scalar or a matrix?

Example 17

medium
Write the transpose of (123)\begin{pmatrix} 1 & 2 & 3 \end{pmatrix}.

Example 18

medium
A matrix is mร—nm \times n. After transposing twice, what are its dimensions?

Example 19

medium
A 4ร—44 \times 4 matrix has entry rule aij=i+ja_{ij} = i + j. Find a23a_{23}.

Example 20

challenge
A square matrix equals its own transpose. The entry a13=6a_{13} = 6. What must a31a_{31} be, and what is such a matrix called?

Example 21

challenge
If AA is mร—nm \times n and A=ATA = A^{T} is possible, what relationship must mm and nn have, and why?

Example 22

challenge
A matrix is nร—nn \times n with all entries 0 except aii=ia_{ii} = i. Find the entry in row 3, column 3 and the total of all diagonal entries for n=4n = 4.

Example 23

easy
How many entries does a 6ร—76 \times 7 matrix have?

Example 24

easy
True or false: a 1ร—11 \times 1 matrix is just a scalar.

Example 25

easy
What is the dimension of a row vector with 6 entries?

Example 26

easy
Is a matrix with all entries equal to 11 called the identity matrix?

Example 27

medium
Write a 3ร—23 \times 2 matrix AA with aij=i+2ja_{ij}=i+2j.

Example 28

medium
For two matrices to be equal, what conditions must hold?

Example 29

medium
Matrix A=(1a23)=(b423)=BA=\begin{pmatrix} 1 & a \\ 2 & 3 \end{pmatrix}=\begin{pmatrix} b & 4 \\ 2 & 3 \end{pmatrix}=B. Find aa and bb.

Example 30

medium
What is the transpose of (123456)\begin{pmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \end{pmatrix}?

Example 31

medium
A matrix AA is 7ร—47\times 4. What are the dimensions of ATA^T?

Example 32

medium
A diagonal matrix has zeros everywhere except on the main diagonal. Write the 3ร—33 \times 3 diagonal matrix with diagonal (2,5,โˆ’1)(2,5,-1).

Example 33

medium
How many distinct 2ร—22\times 2 matrices with entries in {0,1}\{0,1\} are there?

Example 34

medium
For AA to be square, what relationship must hold between its row count mm and column count nn?

Example 35

medium
A matrix is upper triangular if aij=0a_{ij}=0 whenever i>ji>j. Write a 3ร—33\times 3 upper triangular matrix with all diagonal entries 11 and superdiagonal entries 22.

Example 36

medium
True/false: every nร—nn\times n symmetric matrix has aij=ajia_{ij}=a_{ji} for all i,ji,j.

Example 37

hard
How many distinct 3ร—33\times 3 diagonal matrices with diagonal entries in {0,1}\{0,1\} are there, and how many of them are the identity or zero?

Example 38

hard
A skew-symmetric matrix satisfies AT=โˆ’AA^T=-A. Why must its diagonal entries all be zero?

Example 39

hard
A matrix AA is 3ร—43\times 4. Can ATAA^T A be defined, and if so what are its dimensions?

Example 40

hard
Write the 3ร—33\times 3 permutation matrix that sends the standard basis vector e1โ†’e2,โ€…โ€Še2โ†’e3,โ€…โ€Še3โ†’e1e_1 \to e_2,\; e_2\to e_3,\;e_3\to e_1.

Example 41

hard
For an nร—nn\times n symmetric matrix, how many independent entries are there?

Example 42

challenge
How many independent entries does an nร—nn\times n skew-symmetric matrix have?

Background Knowledge

These ideas may be useful before you work through the harder examples.

systems of equationsvariables