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โ†’

However, there are other operations that could also be considered addition for matrices, such as the direct sum and the Kronecker sum.

Entrywise sum

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][3]

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]

Direct sum

Another operation, which is used less often, is the direct sum (denoted by โŠ•). The Kronecker sum is also denoted โŠ•; the context should make the usage clear. The direct sum of any pair of matrices A of size m × n and B of size p × q is a matrix of size (m + p) × (n + q) defined as:[4]Template:Sfn

๐€โŠ•๐=[๐€00๐]=[a11โ‹ฏa1n0โ‹ฏ0โ‹ฎโ‹ฑโ‹ฎโ‹ฎโ‹ฑโ‹ฎam1โ‹ฏamn0โ‹ฏ00โ‹ฏ0b11โ‹ฏb1qโ‹ฎโ‹ฑโ‹ฎโ‹ฎโ‹ฑโ‹ฎ0โ‹ฏ0bp1โ‹ฏbpq]

For instance,

[132231]โŠ•[1601]=[13200231000001600001]

The direct sum of matrices is a special type of block matrix. In particular, the direct sum of square matrices is a block diagonal matrix.

The adjacency matrix of the union of disjoint graphs (or multigraphs) is the direct sum of their adjacency matrices. Any element in the direct sum of two vector spaces of matrices can be represented as a direct sum of two matrices.

In general, the direct sum of n matrices is:Template:Sfn

โจi=1n๐€i=diag(๐€1,๐€2,๐€3,โ€ฆ,๐€n)=[๐€10โ‹ฏ00๐€2โ‹ฏ0โ‹ฎโ‹ฎโ‹ฑโ‹ฎ00โ‹ฏ๐€n]

where the zeros are actually blocks of zeros (i.e., zero matrices).

Kronecker sum

Template:Main article The Kronecker sum is different from the direct sum, but is also denoted by โŠ•. It is defined using the Kronecker product โŠ— and normal matrix addition. If A is n-by-n, B is m-by-m and ๐ˆk denotes the k-by-k identity matrix then the Kronecker sum is defined by:

๐€โŠ•๐=๐€โŠ—๐ˆm+๐ˆnโŠ—๐.

See also

Notes

Template:Reflist

References

  1. โ†‘ Elementary Linear Algebra by Rorres Anton 10e p53
  2. โ†‘ Template:Cite web
  3. โ†‘ Template:Cite web
  4. โ†‘ Template:MathWorld