Matrix Definition Examples: 45 Problems with Answers

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×n matrix has m rows and n 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×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], what are the dimensions of A and what is a2,3?

Answer

A is 2×3; a2,3=2

First step

1
Step 1: Count rows: 2. Count columns: 3. Dimensions: 2×3.

Full solution

  1. 2
    Step 2: a2,3 means row 2, column 3. That entry is 2.
  2. 3
    Step 3: Verify: row 2 is [0,5,2], third element is 2 ✓
A matrix's dimensions are always given as rows × columns. The notation ai,j refers to the entry in row i and column j.

Example 2

medium
Write a 3×1 column matrix where ai,1=2i−1.

Example 3

challenge
Show how any n×n matrix A decomposes uniquely as a sum S+K where S is symmetric and K 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]?

Example 2

medium
If A is a 4×3 matrix, how many entries does it have? Can you multiply A by a 3×5 matrix?

Example 3

easy
What are the dimensions of the matrix (123456)?

Example 4

easy
In the matrix A=(78910), what is the entry a21?

Example 5

easy
How many entries does a 3×4 matrix have?

Example 6

easy
Is (123456) a square matrix?

Example 7

easy
What is the 3×3 identity matrix?

Example 8

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

Example 9

easy
What is the entry a12 in (5−328)?

Example 10

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

Example 11

medium
Matrix B is 2×5 and matrix C is 5×3. What are the dimensions of BC?

Example 12

medium
Can a 3×2 matrix be added to a 2×3 matrix? Explain.

Example 13

medium
How many entries lie on the main diagonal of a 5×5 matrix?

Example 14

medium
Matrix A is 4×3. For the product AB to be defined, what must be true of B's number of rows?

Example 15

medium
Two matrices are equal. A=(x23y) and B=(5237). Find x and y.

Example 16

medium
Is the product of a 1×3 row vector and a 3×1 column vector a scalar or a matrix?

Example 17

medium
Write the transpose of (123).

Example 18

medium
A matrix is m×n. After transposing twice, what are its dimensions?

Example 19

medium
A 4×4 matrix has entry rule aij=i+j. Find a23.

Example 20

challenge
A square matrix equals its own transpose. The entry a13=6. What must a31 be, and what is such a matrix called?

Example 21

challenge
If A is m×n and A=AT is possible, what relationship must m and n have, and why?

Example 22

challenge
A matrix is n×n with all entries 0 except aii=i. Find the entry in row 3, column 3 and the total of all diagonal entries for n=4.

Example 23

easy
How many entries does a 6×7 matrix have?

Example 24

easy
True or false: a 1×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 1 called the identity matrix?

Example 27

medium
Write a 3×2 matrix A with aij=i+2j.

Example 28

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

Example 29

medium
Matrix A=(1a23)=(b423)=B. Find a and b.

Example 30

medium
What is the transpose of (123456)?

Example 31

medium
A matrix A is 7×4. What are the dimensions of AT?

Example 32

medium
A diagonal matrix has zeros everywhere except on the main diagonal. Write the 3×3 diagonal matrix with diagonal (2,5,−1).

Example 33

medium
How many distinct 2×2 matrices with entries in {0,1} are there?

Example 34

medium
For A to be square, what relationship must hold between its row count m and column count n?

Example 35

medium
A matrix is upper triangular if aij=0 whenever i>j. Write a 3×3 upper triangular matrix with all diagonal entries 1 and superdiagonal entries 2.

Example 36

medium
True/false: every n×n symmetric matrix has aij=aji for all i,j.

Example 37

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

Example 38

hard
A skew-symmetric matrix satisfies AT=−A. Why must its diagonal entries all be zero?

Example 39

hard
A matrix A is 3×4. Can ATA be defined, and if so what are its dimensions?

Example 40

hard
Write the 3×3 permutation matrix that sends the standard basis vector e1→e2,  e2→e3,  e3→e1.

Example 41

hard
For an n×n symmetric matrix, how many independent entries are there?

Example 42

challenge
How many independent entries does an n×n skew-symmetric matrix have?

Background Knowledge

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

systems of equationsvariables