Sonzaschool
Rudi

Sekondari ya Juu · Kidato cha Sita

Basic Applied Mathematics 2

Operations with matrices

takriban dakika 11 kusoma

Mada za sehemu hiiMatricesMada 5

Addition and subtraction

Matrix addition and subtraction can only be performed on matrices of the same order. These operations are carried out by adding or subtracting corresponding elements of the matrices. The resulting matrix has the same order as the original matrices.

a. Addition of matrices

Let

A=[acbd],B=[efgh]A = \begin{bmatrix} a & c \\ b & d \end{bmatrix}, \quad B = \begin{bmatrix} e & f \\ g & h \end{bmatrix}

Then,

A+B=[a+ec+fb+gd+h]A + B = \begin{bmatrix} a + e & c + f \\ b + g & d + h \end{bmatrix}

Properties of matrix addition

  1. If AA and BB are matrices of order m×nm \times n, then A+BA + B is also a matrix of order m×nm \times n.
  2. Matrix addition is commutative:

A + B = B + A

3.Matrixadditionisassociative:3. Matrix addition is **associative**:

(A + B) + C = A + (B + C)

4.Addingamatrixtoitsnegativegivesazeromatrix:4. Adding a matrix to its negative gives a zero matrix:

A + (-A) = 0

5.Addingazeromatrixtoanymatrixleavesthematrixunchanged:5. Adding a zero matrix to any matrix leaves the matrix unchanged:

A + 0 = A

### b. Subtraction of matrices Using the same matrices:

A = \begin{bmatrix} a & c \ b & d \end{bmatrix}, \quad B = \begin{bmatrix} e & f \ g & h \end{bmatrix}

Then,Then,

A - B = \begin{bmatrix} a - e & c - f \ b - g & d - h \end{bmatrix}

### Properties of matrix subtraction 1. Subtraction is **not commutative**:

A - B \neq B - A

2. The result of subtracting two matrices of order $ m \times n $ is also a matrix of order $ m \times n $. 3. Matrix subtraction is **not associative**:

(A - B) - C \neq A - (B - C)

4.Subtractingamatrixfromitselfyieldsthezeromatrix:4. Subtracting a matrix from itself yields the zero matrix:

A - A = 0

5.Subtractingazeromatrixfromamatrixleavesthematrixunchanged:5. Subtracting a zero matrix from a matrix leaves the matrix unchanged:

A - 0 = A

6.Subtractingamatrixfromazeromatrixgivesthenegativeofthematrix:6. Subtracting a matrix from a zero matrix gives the negative of the matrix:

0 - A = -A

### Example Given:

A = \begin{bmatrix} 3 & 1 & 5 \ 2 & 5 & 7 \end{bmatrix}, \quad B = \begin{bmatrix} 7 & 1 & 2 \ 8 & 9 & 3 \end{bmatrix}, \quad C = \begin{bmatrix} 1 & 1 & 1 \ 4 & 2 & 5 \end{bmatrix}

Find: 1. $ A + B $ 2. $ A - C $ 3. $ A + B - C $ ### Solution: 1. $$ A + B = \begin{bmatrix} 3 + 7 & 1 + 1 & 5 + 2 \\ 2 + 8 & 5 + 9 & 7 + 3 \end{bmatrix} = \begin{bmatrix} 10 & 2 & 7 \\ 10 & 14 & 10 \end{bmatrix}

A - C = \begin{bmatrix} 3 - 1 & 1 - 1 & 5 - 1 \ 2 - 4 & 5 - 2 & 7 - 5 \end{bmatrix} = \begin{bmatrix} 2 & 0 & 4 \ -2 & 3 & 2 \end{bmatrix}

3. $$ A + B - C = \begin{bmatrix} 10 & 2 & 7 \\ 10 & 14 & 10 \end{bmatrix} - \begin{bmatrix} 1 & 1 & 1 \\ 4 & 2 & 5 \end{bmatrix} = \begin{bmatrix} 9 & 1 & 6 \\ 6 & 12 & 5 \end{bmatrix}

Example

Let:

A=[272385413],B=[649258132]A = \begin{bmatrix} 2 & 7 & 2 \\ 3 & 8 & 5 \\ 4 & 1 & 3 \end{bmatrix}, \quad B = \begin{bmatrix} 6 & 4 & 9 \\ 2 & 5 & 8 \\ 1 & 3 & 2 \end{bmatrix}

Find:

  1. A+BA + B
  2. ABA - B

Solution:

A + B = \begin{bmatrix} 2 + 6 & 7 + 4 & 2 + 9 \ 3 + 2 & 8 + 5 & 5 + 8 \ 4 + 1 & 1 + 3 & 3 + 2 \end{bmatrix} = \begin{bmatrix} 8 & 11 & 11 \ 5 & 13 & 13 \ 5 & 4 & 5 \end{bmatrix}

2. $$ A - B = \begin{bmatrix} 2 - 6 & 7 - 4 & 2 - 9 \\ 3 - 2 & 8 - 5 & 5 - 8 \\ 4 - 1 & 1 - 3 & 3 - 2 \end{bmatrix} = \begin{bmatrix} -4 & 3 & -7 \\ 1 & 3 & -3 \\ 3 & -2 & 1 \end{bmatrix}

Mwalimu

Unasoma somo hili? Niulize nikuelezee chochote kilichomo.

Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.

Ingia ili kuuliza