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

Square Matrix

A square matrix is a matrix with the same number of rows and columns, so it is n by n. In Linear Algebra and Differential Equations, square matrices are the ones you use for determinants, inverses, eigenvalues, and many system-solving methods.

Last updated July 2026

What is Square Matrix?

A square matrix is a matrix with the same number of rows and columns, like a 2 by 2, 3 by 3, or n by n matrix. In Linear Algebra and Differential Equations, that shape matters because a lot of the most useful matrix tools only work when the matrix is square.

The big reason is that square matrices can act on vectors in a way that keeps the input and output in the same dimension. That makes them the natural matrices for linear transformations from a space to itself, and for systems where the number of equations matches the number of unknowns. If you have a 3 by 3 matrix, you are usually looking at a transformation in 3-dimensional space or a system with three variables.

Square matrices are also the setting for determinants. A determinant is only defined for square matrices, and its value tells you things like whether the matrix is invertible and whether a linear system has a unique solution. If the determinant is 0, the matrix cannot be inverted, which means it does not have an inverse matrix.

That is why square matrices show up so often in solving systems. When you write a system in matrix form, the coefficient matrix is square if the system is balanced in size, and then you can use inverse matrices or Cramer's Rule in the cases where those methods apply. For example, a 2 by 2 system can be solved with a 2 by 2 coefficient matrix if the determinant is nonzero.

Some square matrices have extra structure that makes them easier to work with. A diagonal matrix has nonzero entries only on the main diagonal, and a symmetric matrix is equal to its transpose. Both are still square matrices, but they come with patterns that make computation and theory simpler, especially when you get to eigenvalues and matrix decompositions.

A common mistake is to think any matrix can be inverted if you just do enough algebra. That is not true. Only square matrices can even be candidates for an inverse, and even then the determinant has to be nonzero.

Why Square Matrix matters in Linear Algebra and Differential Equations

Square matrices are the main objects behind the algebra you keep using in this course. They are the matrices that can have inverses, determinants, and eigenvalues, so they sit at the center of several topics instead of being just one definition to memorize.

They also show up whenever the class moves from a list of equations to matrix notation. If you are solving a linear system, the coefficient matrix is often square when the system has the same number of equations and unknowns. That makes square matrices the natural starting point for row reduction, inverse methods, and Cramer's Rule.

In differential equations, square matrices matter again when you study systems of linear differential equations. The matrix of coefficients is usually square, and its eigenvalues help describe how the system behaves over time. That is where square matrices connect algebra to growth, decay, stability, and oscillation.

They also give you a quick way to check whether a method can even be used. If the matrix is not square, you already know there is no determinant and no inverse matrix in the usual sense. That saves time and keeps you from trying the wrong technique on a homework problem or quiz item.

Keep studying Linear Algebra and Differential Equations Unit 10

Official unit cheatsheet

open one-pager

How Square Matrix connects across the course

Determinant

The determinant is defined only for square matrices, so the shape comes first. Once you have a square matrix, the determinant tells you whether it is invertible and whether a system has a unique solution. In practice, a zero determinant usually means the rows or columns are dependent, which changes how you solve the system.

Identity Matrix

The identity matrix is always square, with 1s on the main diagonal and 0s everywhere else. It acts like the number 1 for matrix multiplication, so it is the target you want when checking an inverse. If A times A inverse equals the identity matrix, then A must be square.

Inverse Matrix Theorem

This theorem ties square matrices to invertibility conditions. It tells you when a square matrix has an inverse, often linking that fact to the determinant, row reduction, and solutions to linear systems. If the matrix fails one of the equivalent conditions, you know you cannot use inverse methods.

Cofactor Method

The cofactor method is a way to compute determinants, and it only works for square matrices. You expand along a row or column, which is useful for small matrices like 2 by 2 or 3 by 3. It is slower than row operations for large matrices, but it connects directly to the structure of a square matrix.

Is Square Matrix on the Linear Algebra and Differential Equations exam?

A quiz or problem set will usually ask you to recognize whether a matrix is square before you choose a method. That matters because determinant questions, inverse questions, and Cramer's Rule all require a square coefficient matrix. If the matrix is not square, you should stop and switch strategies instead of forcing an inverse.

You may also be asked to identify a square matrix from its dimensions, such as deciding whether a 3 by 3 matrix qualifies. In system problems, you might write the coefficient matrix and then check whether it is square before finding a determinant or inverse. In differential equations, a square matrix can appear inside a system of equations, and you may use its eigenvalues to describe the system's behavior.

Square Matrix vs Rectangular Matrix

A rectangular matrix does not have the same number of rows and columns, while a square matrix does. The difference is not just about shape, because many tools in this course, like determinants and inverses, only apply to square matrices. If you see an m by n matrix with m not equal to n, it is rectangular.

Key things to remember about Square Matrix

  • A square matrix has the same number of rows and columns, so its shape is n by n.

  • Square matrices are the ones that can have determinants, inverses, and eigenvalues.

  • In linear systems, the coefficient matrix is often square when the number of equations matches the number of unknowns.

  • If a square matrix has determinant 0, it does not have an inverse.

  • In systems of differential equations, square matrices help describe how variables change together over time.

Frequently asked questions about Square Matrix

What is a square matrix in Linear Algebra and Differential Equations?

A square matrix is a matrix with the same number of rows and columns, like 2 by 2 or 3 by 3. In this course, square matrices matter because they are the matrices that can have determinants and inverses, and they are the ones you use in many system-solving methods.

How do you know if a matrix is square?

Check the dimensions. If the number of rows equals the number of columns, it is square. So a 4 by 4 matrix is square, but a 2 by 3 matrix is not.

Why can only square matrices have inverses?

An inverse matrix has to multiply with the original matrix to give the identity matrix, and that identity matrix is square. If the original matrix is not square, the multiplication does not line up to produce the identity in the usual way. Even among square matrices, only ones with nonzero determinant are invertible.

Where do square matrices show up in differential equations?

They show up in systems of linear differential equations, where the coefficient matrix is usually square. Then the matrix can be analyzed with eigenvalues to see whether the system grows, decays, or oscillates. That makes the matrix shape part of the solution method, not just a label.

Square Matrix | Linear Algebra and Differential Equations | Fiveable