Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →

Main diagonal

The main diagonal is the line of entries in a square matrix that goes from the top left to the bottom right. In College Algebra, those entries are written aii, like a11, a22, and a33.

Last updated July 2026

What is the main diagonal?

The main diagonal in College Algebra is the set of entries in a square matrix where the row and column numbers match. If a matrix is written as A = [aij], then the main diagonal entries are a11, a22, a33, and so on, as far as the matrix size goes.

For a 3 x 3 matrix, you can spot the main diagonal by tracing a straight line from the top left corner to the bottom right corner. The entries on that line are the ones with equal indices. So in a matrix like [[2, 5, 1], [0, -3, 4], [7, 8, 6]], the main diagonal is 2, -3, 6.

This matters because matrices in College Algebra are usually square when you work with systems of equations. Square matrices have the same number of rows and columns, which is what makes a main diagonal possible. Rectangular matrices do not have the same kind of diagonal running through matching row and column positions all the way across the matrix.

The main diagonal shows up all over matrix operations. The identity matrix has 1s on its main diagonal and 0s everywhere else, which makes it the matrix version of 1 for multiplication. In Gaussian elimination, the goal is often to move toward a triangular form where pivot entries line up along or near the main diagonal.

A common mistake is mixing up the main diagonal with the other diagonal, sometimes called the secondary or anti-diagonal, which runs from the top right to the bottom left. Another mistake is thinking any diagonal shape in a matrix counts. In this course, the main diagonal always means the entries with the same row and column index.

Why the main diagonal matters in College Algebra

The main diagonal gives you a fast way to read structure from a matrix, especially when you are solving systems of equations. In Gaussian elimination, you want to organize the matrix so the pivot positions are easy to see, often moving toward an upper triangular form where the pivots sit on or near the main diagonal.

It also connects directly to the identity matrix, which you will meet when checking matrix multiplication or building inverse ideas later in the course. Since the identity matrix has 1s on the main diagonal and 0s elsewhere, recognizing the diagonal helps you identify whether a matrix is the identity at a glance.

The values on the main diagonal can also hint at how nice or messy a matrix might be for computation. If the diagonal entries are zero or very small during elimination, you may need to swap rows to avoid a bad pivot and keep the process moving. That is one reason the diagonal matters in solving systems, not just in naming parts of a matrix.

When you work problems, the main diagonal is a shortcut for finding specific entries, describing matrix shape, and checking whether a matrix has a special form. It is one of those features that seems small, but it keeps showing up in elimination, inverses, and matrix notation.

Keep studying College Algebra Unit 8

Official unit cheatsheet

open one-pager

How the main diagonal connects across the course

Pivot Element

A pivot element is the entry you use to clear out other numbers in its column during Gaussian elimination. Pivots are often placed on the main diagonal as you row-reduce a matrix, so the diagonal gives you a visual guide for the elimination path. If a diagonal entry is zero, you may need to swap rows to find a usable pivot.

Identity Matrix

The identity matrix is the special square matrix with 1s on the main diagonal and 0s everywhere else. It matters because multiplying by it leaves a matrix unchanged, which makes it the matrix version of 1. Recognizing the main diagonal is the fastest way to tell whether a matrix has identity form.

$LU$ Decomposition

LULU decomposition rewrites a matrix as a product of a lower triangular matrix and an upper triangular matrix. The upper triangular part has entries on and above the main diagonal, so diagonal structure is built into the process. When you see LULU, you are looking at a method that organizes a matrix around its diagonal.

Is the main diagonal on the College Algebra exam?

A quiz problem may give you a matrix and ask you to identify the main diagonal, list its entries, or decide whether a matrix is an identity matrix. You might also see Gaussian elimination steps and need to track which entries become pivot positions along the diagonal. For a problem set, you may be asked to row-reduce a system and notice when a zero on the diagonal forces a row swap. The move is simple: locate the matching row and column positions, then use that pattern to describe the matrix or follow the elimination process correctly.

The main diagonal vs Secondary Diagonal

The main diagonal runs from the top left to the bottom right, while the secondary diagonal runs from the top right to the bottom left. They are easy to mix up when a matrix is drawn on paper, but they refer to different sets of entries. In College Algebra, the main diagonal is the one tied to aii notation and the identity matrix.

Key things to remember about the main diagonal

  • The main diagonal of a square matrix is the set of entries where the row and column numbers are the same.

  • In notation, the main diagonal entries are written aii, such as a11, a22, and a33.

  • The identity matrix has 1s on its main diagonal and 0s everywhere else.

  • In Gaussian elimination, pivots often sit on or are moved to the main diagonal.

  • Zero or very small diagonal entries can signal that row swaps may be needed to keep elimination stable.

Frequently asked questions about the main diagonal

What is the main diagonal in College Algebra?

It is the line of entries in a square matrix that goes from the top left to the bottom right. These are the entries where the row number equals the column number, written aii. In a 3 x 3 matrix, that means a11, a22, and a33.

Is the main diagonal the same as the secondary diagonal?

No. The main diagonal goes top left to bottom right, while the secondary diagonal goes top right to bottom left. They are different sets of entries, and only the main diagonal is the one used in the notation aii and the identity matrix.

How do you find the main diagonal of a matrix?

Match each row with the same-numbered column. In a 4 x 4 matrix, look at positions (1,1), (2,2), (3,3), and (4,4). Those entries make up the main diagonal.

Why does the main diagonal matter in Gaussian elimination?

As you row-reduce, you want useful pivot positions, and those often line up on or near the main diagonal. If a diagonal entry is 0, you may need to swap rows before continuing. That keeps the elimination process moving cleanly and avoids a dead end.

Main Diagonal in College Algebra | Fiveable