Can We Multiply Matrices Faster by Multiplying Less?

Multiplying two complex numbers seems to require four ordinary multiplications. Multiplying two 2-by-2 matrices seems to require eight. Yet the first task can be done with three multiplications, and the second with seven. The savings may look tiny—until we repeat the matrix trick recursively.

I first became familiar with Strassen’s algorithm in the summer of 2005, during an internship at Argonne National Laboratory after my first year of PhD studies.

1. A surprise with complex numbers

Expanding the usual product gives

(a+bi)(c+di)=(ac−bd)+(ad+bc)i.

The four real products are ac, bd, ad, and bc. But instead calculate just

P=ac,Q=bd,R=(a+b)(c+d).

Since R = ac + ad + bc + bd, the missing cross-term is ad + bc = R − P − Q. Thus

(a+bi)(c+di)=(P−Q)+(R−P−Q)i.

Example. Multiply (2 + 3i)(4 + 5i). Here P = 8, Q = 15, and R = 5 × 9 = 45. The answer is (8 − 15) + (45 − 8 − 15)i = −7 + 22i.

The idea: replace one multiplication with several additions and subtractions. Whether this is faster on a particular computer depends on the costs of those operations.

2. Eight multiplications for two small matrices

For two 2-by-2 matrices, the ordinary product is

AB=(abcd)(efgh)=(ae+bgaf+bhce+dgcf+dh).

There are eight scalar products: ae, bg, af, bh, ce, dg, cf, and dh. Is there a way to use only seven?

3. Strassen’s seven-product discovery

In 1969, mathematician Volker Strassen found a remarkable answer. Form the following seven products:

M1=(a+d)(e+h)M2=(c+d)eM3=a(f−h)M4=d(g−e)M5=(a+b)hM6=(c−a)(e+f)M7=(b−d)(g+h)

Now combine them by addition and subtraction:

C11=M1+M4−M5+M7C12=M3+M5C21=M2+M4C22=M1−M2+M3+M6

For example, C₁₂ = a(f − h) + (a + b)h = af + bh. The other three entries can be checked in the same way. Nothing has been approximated: this is an exact algebraic identity.

A complete numerical example

Take A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]]. The seven values are

M₁ = 65, M₂ = 35, M₃ = −2, M₄ = 8, M₅ = 24, M₆ = 22, M₇ = −30.

Therefore C₁₁ = 65 + 8 − 24 − 30 = 19; C₁₂ = −2 + 24 = 22; C₂₁ = 35 + 8 = 43; and C₂₂ = 65 − 35 − 2 + 22 = 50.

AB=(19224350).

4. One saved multiplication becomes thousands

The real breakthrough comes from dividing larger matrices into four blocks. Each block is itself a matrix, and the seven-product identity still works because matrix addition is associative and multiplication distributes over addition. We do not need matrix multiplication to be commutative.

Recursive matrix subdivisionA large square matrix is split into four equal square blocks; each block can be subdivided again, permitting recursive Strassen multiplication.A₁₁A₁₂A₂₁A₂₂recurseEach blocksplits again
Figure 1. Divide each matrix into four blocks and apply the seven-product identity recursively.

If the matrix dimension is n = 2k, the ordinary recursive method makes 8k scalar multiplications; Strassen’s method makes 7k. Additions of blocks also cost time, so the full recurrence is

T(n)=7T(n2)+O(n2).

The resulting growth rate is

T(n)=O(nlog27)≈O(n2.8074),

compared with O(n³) for classical matrix multiplication.

Matrix sizeClassical scalar productsRecursive Strassen products
2 × 287
4 × 46449
8 × 8512343
16 × 164,0962,401
32 × 3232,76816,807

These are multiplication counts only, not total running times.

5. Why not use Strassen everywhere?

Extra additions, temporary storage, memory access, and floating-point rounding matter. For small matrices, highly optimized classical multiplication can be faster. Practical implementations may switch to Strassen only above a size threshold, and numerical error needs attention. Strassen’s method is a milestone in algorithm design, not a promise that every matrix product should be computed this way.

6. What connects the two tricks?

Both formulas reorganize a bilinear calculation: each output is a sum of products involving one quantity from the first input and one from the second. We first take carefully chosen linear combinations of the inputs, multiply fewer pairs of those combinations, and reconstruct the output by addition.

The complex-number trick does not directly derive Strassen’s formula. It teaches the same way of thinking. In fact, three real multiplications are necessary for general complex multiplication, and seven scalar multiplications are necessary for general 2-by-2 matrix multiplication over the real numbers. These optimality results concern the number of bilinear products, not the total number of arithmetic operations.

7. Try it yourself

Problem 1. Three products

Use P, Q, and R to compute (3 + 2i)(5 − 4i) without performing four separate real multiplications.

Show solution

P = 15, Q = −8, R = (3 + 2)(5 − 4) = 5. Thus the real part is 15 − (−8) = 23, and the imaginary part is 5 − 15 − (−8) = −2. Answer: 23 − 2i.

Problem 2. Verify an identity

Expand M₁ + M₄ − M₅ + M₇ and show that it equals ae + bg.

Show solution

(a + d)(e + h) + d(g − e) − (a + b)h + (b − d)(g + h) = ae + ah + de + dh + dg − de − ah − bh + bg + bh − dg − dh = ae + bg.

Problem 3. Count the savings

How many scalar multiplications does fully recursive Strassen multiplication use for two 64-by-64 matrices? Compare with the classical count.

Show solution

Because 64 = 2⁶, Strassen uses 7⁶ = 117,649 scalar multiplications. The classical method uses 64³ = 262,144. The difference is 144,495 scalar multiplications, although Strassen requires additional additions and subtractions.

Problem 4. A challenge

Explain why replacing ordinary scalar entries with square matrix blocks does not invalidate the seven-product identity, even though block multiplication is not commutative.

Show solution

In the expansions of the seven products, the order of every multiplication is preserved: a block from A always appears to the left of a block from B. Cancellation uses associativity and distributivity of matrix operations, not commutativity. Therefore the formulas remain valid for compatible square blocks.

8. Final thought

A small algebraic trick can lead to a major algorithmic improvement. The essential question is not simply “How many multiplications appear in the usual formula?” but “Can we compute the same result using a smarter set of products?” That question changed the theory of matrix multiplication.

Further reading

  • Volker Strassen, “Gaussian Elimination is Not Optimal,” Numerische Mathematik 13 (1969), 354–356. Original paper (DOI).
  • Shmuel Winograd, “On Multiplication of 2 × 2 Matrices,” Linear Algebra and its Applications 4 (1971), 381–388. Paper (DOI).

Explore Another Algebraic Surprise

Complex numbers are not only useful for simplifying multiplication. They also belong to a remarkable family of number systems associated with the dimensions 1, 2, 4, and 8.

Read our related article, Why Are 1, 2, 4, and 8 Special? , to discover why these dimensions play such an unusual role in mathematics.

Related reading: Mathematics can also help us design more efficient currency systems. Discover how to minimize the number of coins needed to make change in Which Country Has the Best Coins? The Mathematics of Making Change .

Leave a Reply

Your email address will not be published. Required fields are marked *