Matrix Squared Rules- Algebraic Operations Guide

What "Matrix Squared" Actually Means

Matrix squared means multiplying a matrix by itself. That's it. You take matrix A and compute A × A.

The result is written as . This isn't the same as squaring each element individually. Most people get tripped up here, so pay attention.

You can only square a matrix if it's square — same number of rows and columns. A 2×2 matrix squared gives you another 2×2. A 3×3 gives another 3×3. Non-square matrices can't be multiplied by themselves.

The Core Rule for Matrix Squaring

The rule is straightforward: A² = A × A

You apply standard matrix multiplication. Row-by-column dot products. Here's what that looks like for a 2×2 matrix:

If A = [a b]
       [c d]

Then A² = [a b] × [a b] = [a²+bc     ab+bd]
       [c d]     [c d]     [ca+dc     cb+d²]

The resulting matrix elements follow these patterns:

Notice the off-diagonal elements aren't necessarily equal unless the original matrix is symmetric.

Prerequisites: When Can You Square a Matrix?

You need three things before you attempt this:

Common Dimension Cases

Matrix SizeCan Square?Result Size
2×2Yes2×2
3×3Yes3×3
4×4Yes4×4
2×3NoN/A
3×2NoN/A

How to Square a Matrix: Step-by-Step

Let's work through a concrete example.

Given: A = [2  1]
                   [3  4]

Step 1: Set up the multiplication

A² = [2  1] × [2  1]
        [3  4]   [3  4]

Step 2: Calculate element (1,1)

Row 1 of first matrix · Column 1 of second matrix
= (2 × 2) + (1 × 3) = 4 + 3 = 7

Step 3: Calculate element (1,2)

Row 1 of first matrix · Column 2 of second matrix
= (2 × 1) + (1 × 4) = 2 + 4 = 6

Step 4: Calculate element (2,1)

Row 2 of first matrix · Column 1 of second matrix
= (3 × 2) + (4 × 3) = 6 + 12 = 18

Step 5: Calculate element (2,2)

Row 2 of first matrix · Column 2 of second matrix
= (3 × 1) + (4 × 4) = 3 + 16 = 19

Result: A² = [7  6]
             [18 19]

Properties of Matrix Squaring

These are the facts you need to know:

The non-commutative nature is the biggest gotcha. If A and B don't commute (AB ≠ BA), then (AB)² expands to ABAB, not A²B².

Special Cases Worth Knowing

Diagonal Matrices

Diagonal matrices are easy. Just square each diagonal element.

If A = [2 0]
       [0 3]

Then A² = [4 0]
       [0 9]

Off-diagonal elements stay zero. This is the simplest case.

Identity Matrix

The identity matrix I has the property I² = I. Multiplying it by itself does nothing.

Nilpotent Matrices

Some matrices square to zero. If A² = 0, then A is called nilpotent.

A = [0 1]
    [0 0]

A² = [0 0]
    [0 0]

This matters in Jordan normal form and differential equations.

Common Mistakes to Avoid

Tools for Computing Matrix Squares

ToolBest ForLimitation
Hand calculation2×2 and 3×3 matricesError-prone for larger matrices
TI-84/TI-NspireQuick checksRequires correct syntax
MATLAB/OctaveLarge matrices, automationLearning curve
Python NumPyProgramming, data scienceRequires Python knowledge
Wolfram AlphaInstant verificationLimited to smaller matrices

For quick work, Wolfram Alpha accepts queries like "matrix square [[2,1],[3,4]]" and gives you the answer instantly.

When You'll Actually Use This

Matrix squaring shows up in several contexts:

The graph theory application is particularly useful. If you have an adjacency matrix A, then A²[i,j] tells you how many 2-step paths exist from vertex i to vertex j.

The Bottom Line

Matrix squaring is matrix multiplication of a matrix by itself. The rules are simple: the matrix must be square, you use standard multiplication, and you get back a matrix of the same size.

The tricky parts aren't the mechanics — they're the properties that differ from regular number squaring. Non-commutativity breaks most of your intuitions about how powers work.

Master the 2×2 case first. Then the 3×3. Once you're comfortable with the mechanics, the special cases (diagonal, nilpotent, identity) become obvious.