Matrix addition

From Wikipedia, the free encyclopedia
(Redirected from Matrix subtraction)
Jump to navigation Jump to search
Illustration of the addition of two matrices.

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

[edit | edit source]

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 A + B, is computed by adding corresponding elements of A and B:[2][3]

𝐀+𝐁=[a11a12a1na21a22a2nam1am2amn]+[b11b12b1nb21b22b2nbm1bm2bmn]=[a11+b11a12+b12a1n+b1na21+b21a22+b22a2n+b2nam1+bm1am2+bm2amn+bmn]

Or more concisely (assuming that A + B = C):[4][5]

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 AB, 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]=[103017051221]=[136511]

See also

[edit | edit source]

Notes

[edit | edit source]
  1. ^ Elementary Linear Algebra by Rorres Anton 10e p53
  2. ^ Lipschutz & Lipson 2017.
  3. ^ Riley, Hobson & Bence 2006.
  4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

References

[edit | edit source]
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
[edit | edit source]