What would you like to understand?

Popular destinationsCalculatorsCoursesPracticeFormulas

Unlock Premium Help

Explore every tutor and study workspace for seven days, with no daily AI cap during the trial.

Choose a billing period
Ask a parent to pay

Nothing is charged during the first seven days. Unless you cancel, the plan you selected begins when the trial ends and renews on its stated schedule. Manage cancellation from your plan page. Stripe handles the payment details.

Matrix multiplication formula: what it means and how to use it

Compose two linear transformations by row-column products. This matrices relationship belongs to linear algebra. Read the symbols against the problem, confirm the required conditions, and estimate the scale before calculating.

\[(AB)_{ij}=\sum_{k=1}^{n}a_{ik}b_{kj}\]

Check dimensions before using Matrix multiplication

Write the size and role of every vector, matrix, space, and transformation. An expression can look algebraically familiar while being dimensionally undefined. Rebuild missing background in the linear algebra subject guide, then use linear algebra practice to retrieve the relationship without being told its name.

Follow one object through Matrix multiplication

Track both the coordinates and the geometric or structural meaning:

\[For row $(1,2)$ and column $(3,4)^T$, the entry is $1(3)+2(4)=11$.\]

Carry out the transformation in a valid order

  1. Name the unknown, and the unit the answer has to come out in.
  2. Match the symbols to your values. $A$ is $m\times n$ and $B$ is $n\times p$.
  3. Check the conditions before substituting. The inner dimensions must match; generally $AB\ne BA$.
  4. Substitute, keep exact values to the last line, then test the sign, size, and unit against a rough estimate - The check that catches most linear algebra slips.

An order or dimension error to avoid

What goes wrong: Students multiply the matrices entry by entry, pairing the top-left with the top-left.

Why it fails: That operation exists but represents something else entirely; it does not compose two transformations and it does not respect the way matrices act on vectors.

Repair: Use rows against columns: the entry in row i, column j comes from row i of A paired with column j of B. For row (1, 2) and column (3, 4), the entry is 1(3) + 2(4) = 11.

Multiply back or test a simple vector

After using Matrix multiplication, repeat the calculation with units attached and test the result against a boundary case or a quick numerical estimate.

When the transformation statement holds

The product does not exist unless the number of columns in A matches the number of rows in B, since otherwise a row and a column have different lengths and cannot be paired off. Two 2 by 3 matrices cannot be multiplied in either order.

Questions about Matrix multiplication

Is AB the same as BA?

Almost never, and often only one of them is even defined. Take A = [[1, 2], [3, 4]] and B = [[0, 1], [1, 0]]: then AB is [[2, 1], [4, 3]] while BA is [[3, 4], [1, 2]].

What size is the answer?

Rows from the left matrix, columns from the right one. A 4 by 2 times a 2 by 7 gives a 4 by 7, and the matching inner 2s disappear into the sums.

Why does the second matrix act first?

Because of how function notation reads. In ABx the vector x meets B first, so writing AB means apply B, then A, the same right-to-left order as f(g(x)).

Does entry-by-entry multiplication ever get used?

Yes, it is called the Hadamard product and shows up in statistics and neural networks. It is a different operation with a different symbol, and it needs both matrices to be exactly the same shape.

Make it yours

Change one input, predict whether the output should rise, fall, or stay fixed, and only then recalculate.