Linear Algebra/Addition, Multiplication, and Transpose

From testwiki
Revision as of 14:37, 23 October 2018 by 130.88.52.114 (talk) (Multiplication)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Addition and subtraction

Two matrices can only be added or subtracted if they have the same size. Matrix addition and subtraction are done entry-wise, which means that each entry in A+B is the sum of the corresponding entries in A and B.

A=[753405]B=[111132]

Here is an example of matrix addition

A+B=[7+15+13+1410+35+2]=[864337]

And an example of subtraction

AB=[7151314+10352]=[642533]

Remember you can not add or subtract two matrices of different sizes.

The following rules applies to sums and scalar multiples of matrices.
Let A,B,C be matrices of the same size, and let r,s be scalars.

  • A+B=B+A
  • (A+B)+C=A+(B+C)
  • A+0=A
  • r(A+B)=rA+rB
  • (r+s)A=rA+sA
  • r(sA)=(rs)A

Multiplication

What is matrix multiplication? You can multiply two matrices if, and only if, the number of columns in the first matrix equals the number of rows in the second matrix.

Otherwise, the product of two matrices is undefined. The product matrix's dimensions are

(rows of first matrix)×(columns of the second matrix)

In above multiplication, the matrices cannot be multiplied since the number of columns in the 1st one, matrix A is not equals the number of rows in the 2nd, matrix B . The Dimensions of the product matrix. Rows of 1st matrix × Columns of 2nd

Powers

If A is an n×n matrix and if k is a positive integer, then Ak denotes the product of k copies of A

Ak=AAk

If A is non-zero and if x is in n , then Akx is the result of left-multiplying x by A repeatedly k times. If k=0 , then A0x should be x itself. Thus A0 is interpreted as the identity matrix.

Transpose

Given the m×n matrix A , the transpose of A is the n×m , denoted AT , whose columns are formed from the corresponding rows of A .

For example

A=[abcd]B=[3527691052]
AT=[acbd]BT=[3261557902]

The following rules applied when working with transposing

  1. (AT)T=A
  2. (A+B)T=AT+BT
  3. For any scalar r , (rA)T=rAT
  4. (AB)T=BTAT

The 4th rule can be generalize to products of more than two factors, as "The transpose of a product of matrices equals the product of their transposes in the reverse order." Meaning

(a1,a2,a3,,an)T=anT,,a3T,a2T,a1T

Template:BookCat