Britannica
Sources used in this answer
How are matrices added together?
Created from Britannica articles
using AI.
AI can make mistakes, so verify using Britannica articles.
linear algebra
One method of adding and subtracting vectors is to place their tails together and then supply two more sides to form a parallelogram. The vector from their tails to the opposite corner of the parallelogram is equal to the sum of the original vectors. The vector between their heads (starting from the vector being subtracted) is equal to their difference.
In linear algebra, two matrices can be added together only if they have the same number of rows and the same number of columns.1
If you have two matrices, and , their sum is also an matrix. Each element of the resulting matrix is calculated by adding the elements in the corresponding positions of and :
In other words, you simply add the value located in the th row and th column of matrix to the value located in the same th row and th column of matrix to find the corresponding element in the new matrix.1