Algebra

Diagonal Matrix

Only the main diagonal of a square grid is highlighted.

Diagonal Matrix definition

A diagonal matrix is a square matrix whose entries outside the main diagonal are all zero.

In Spanish
matriz diagonal
Topic
Matrices

Diagonal Matrix in a picture

Diagonal Matrix diagramThe colored positions are the only ones allowed to contain nonzero entries.200000005
The colored positions are the only ones allowed to contain nonzero entries.

How it works

Only entries in positions (i, i) can be nonzero. A diagonal entry may also be zero. Multiplying by a diagonal matrix scales individual coordinates. A diagonal matrix is invertible exactly when every diagonal entry is nonzero, and its inverse then uses their reciprocals.

Worked examples

Is [[2, 0], [0, 7]] diagonal?

Yes.

Is [[0, 0], [0, 1]] diagonal?

Yes, and it is singular.

What is the determinant of diagonal entries 2, 3, and 4?

2 × 3 × 4 = 24.

Common mistake

A zero on the diagonal is allowed. The requirement concerns entries outside the diagonal.

Quick check

Is the identity matrix diagonal?

Show answer

Yes.

What must all off-diagonal entries equal?

Show answer

Zero.

Can a diagonal matrix have determinant zero?

Show answer

Yes, if any diagonal entry is zero.

Sources

Flashcard

Diagonal Matrix

Reveal the definition

A diagonal matrix is a square matrix whose entries outside the main diagonal are all zero.

Effortless Math. “Diagonal Matrix.” Math Dictionary.