Matrix addition

From testwiki
Jump to navigation Jump to search
Illustration of the addition of two matrices.

Template:Use American English Template:Short description In mathematics, matrix addition is the operation of adding two matrices by adding the corresponding entries together.

For a vector, v→, adding two matrices would have the geometric effect of applying each matrix transformation separately onto v→, then adding the transformed vectors.

𝐀v→+𝐁v→=(𝐀+𝐁)v→

Definition

Two matrices must have an equal number of rows and columns to be added.[1] In which case, the sum of two matrices A and B will be a matrix which has the same number of rows and columns as A and B. The sum of A and B, denoted Template:Nowrap, is computed by adding corresponding elements of A and B:Template:SfnTemplate:Sfn

𝐀+𝐁=[a11a12⋯a1na21a22⋯a2n⋮⋮⋱⋮am1am2⋯amn]+[b11b12⋯b1nb21b22⋯b2n⋮⋮⋱⋮bm1bm2⋯bmn]=[a11+b11a12+b12⋯a1n+b1na21+b21a22+b22⋯a2n+b2n⋮⋮⋱⋮am1+bm1am2+bm2⋯amn+bmn]

Or more concisely (assuming that Template:Nowrap):[2]

cij=aij+bij

For example:

[131012]+[007521]=[1+03+01+70+51+22+1]=[138533]

Similarly, it is also possible to subtract one matrix from another, as long as they have the same dimensions. The difference of A and B, denoted Template:Nowrap, is computed by subtracting elements of B from corresponding elements of A, and has the same dimensions as A and B. For example:

[131012]−[007521]=[1−03−01−70−51−22−1]=[13−6−5−11]

See also

Notes

Template:Reflist

References

Template:Linear algebra

  1. ↑ Elementary Linear Algebra by Rorres Anton 10e p53
  2. ↑ Template:Cite web