PAIBOTLearn
Sign inSign up

Matrix addition & multiplication

Matrices

Japanese school year: University year 1

What you learn

This section introduces the definition of matrices along with the rules for matrix addition, scalar multiplication, and matrix multiplication. These operations are fundamental for representing linear transformations and systems of equations compactly. Familiarity with basic arithmetic and the dot product of vectors will facilitate your understanding.

Go to practice

Key points

This rule shows how to add two matrices AA and BB. When two matrices have the same size, you simply add the numbers at the matching positions aija_{ij} and bijb_{ij} together.

(A+B)ij=aij+bij(A + B)_{ij} = a_{ij} + b_{ij}

This formula calculates the entry in row ii and column jj of the matrix product ABAB. To find each number, multiply row ii of matrix AA by column jj of matrix BB in order and sum them up.

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

This formula shows that parentheses can be expanded in matrix multiplication using the distributive law. While useful for simplifying expressions, the multiplication order cannot be changed, so ABAB must not be swapped into BABA.

A(B+C)=AB+ACA(B + C) = AB + AC

This rule (associative law) shows that when multiplying three matrices, you get the same result whether you compute ABAB first or BCBC first. You can start with whichever pair is easier, but the order of matrices A,B,CA, B, C cannot change.

(AB)C=A(BC)(AB)C = A(BC)

Choose a set to practice.