Linear Algebra
Basic

Matrix Addition

Matrices of equal size add entry by entry.

Formula

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

Variables

A, BMatrices of equal size

Example

[[1,2],[3,4]] + [[5,6],[7,8]] = [[6,8],[10,12]].

Did You Know?

Matrices add entry by entry, but only if they're exactly the same shape.