Matrix Addition and Subtraction

Fundamentals of Matrix Addition and Subtraction

  • A matrix is a rectangular array of numbers, symbols, or expressions arranged in rows and columns.

  • The dimensions or order of a matrix are defined as m×nm \times n, where mm represents the number of horizontal rows and nn represents the number of vertical columns.

  • For matrix addition and subtraction to be mathematically defined, both matrices must be of identical dimensions (i.e., both must be m×nm \times n). If two matrices have different dimensions, addition and subtraction are undefined.

  • Given two 3×33 \times 3 square matrices AA and BB:

    • A=(201300511)A = \begin{pmatrix} 2 & 0 & 1 \\ 3 & 0 & 0 \\ 5 & 1 & 1 \end{pmatrix}

    • B=(101121110)B = \begin{pmatrix} 1 & 0 & 1 \\ 1 & 2 & 1 \\ 1 & 1 & 0 \end{pmatrix}


Matrix addition and subtraction of two 3x3 matrices

Matrix Addition

  • Matrix addition is an entry-wise operation where corresponding entries from two matrices of the same dimension are added together.

  • Formally, if A=[aij]A = [a_{ij}] and B=[bij]B = [b_{ij}], then their sum C=A+B=[cij]C = A + B = [c_{ij}] is given by cij=aij+bijc_{ij} = a_{ij} + b_{ij} for all indices ii and jj.

  • For the matrices AA and BB, the addition operation is expressed as:

    • A+B=(2+10+01+13+10+20+15+11+11+0)=(302421621)A + B = \begin{pmatrix} 2 + 1 & 0 + 0 & 1 + 1 \\ 3 + 1 & 0 + 2 & 0 + 1 \\ 5 + 1 & 1 + 1 & 1 + 0 \end{pmatrix} = \begin{pmatrix} 3 & 0 & 2 \\ 4 & 2 & 1 \\ 6 & 2 & 1 \end{pmatrix}

  • Step-by-step element calculations for A+BA + B:

    • Row 1 Calculations:

    • Position (1,1)(1, 1): a11+b11=2+1=3a_{11} + b_{11} = 2 + 1 = 3

    • Position (1,2)(1, 2): a12+b12=0+0=0a_{12} + b_{12} = 0 + 0 = 0

    • Position (1,3)(1, 3): a13+b13=1+1=2a_{13} + b_{13} = 1 + 1 = 2

    • Row 2 Calculations:

    • Position (2,1)(2, 1): a21+b21=3+1=4a_{21} + b_{21} = 3 + 1 = 4

    • Position (2,2)(2, 2): a22+b22=0+2=2a_{22} + b_{22} = 0 + 2 = 2

    • Position (2,3)(2, 3): a23+b23=0+1=1a_{23} + b_{23} = 0 + 1 = 1

    • Row 3 Calculations:

    • Position (3,1)(3, 1): a31+b31=5+1=6a_{31} + b_{31} = 5 + 1 = 6

    • Position (3,2)(3, 2): a32+b32=1+1=2a_{32} + b_{32} = 1 + 1 = 2

    • Position (3,3)(3, 3): a33+b33=1+0=1a_{33} + b_{33} = 1 + 0 = 1

Matrix Subtraction

  • Matrix subtraction is an entry-wise operation where each entry of the second matrix is subtracted from the corresponding entry of the first matrix.

  • Formally, if A=[aij]A = [a_{ij}] and B=[bij]B = [b_{ij}], then their difference D=A−B=[dij]D = A - B = [d_{ij}] is defined by dij=aij−bijd_{ij} = a_{ij} - b_{ij} for all indices ii and jj.

  • For the matrices AA and BB, the subtraction operation is expressed as:

    • A−B=(2−10−01−13−10−20−15−11−11−0)=(1002−2−1401)A - B = \begin{pmatrix} 2 - 1 & 0 - 0 & 1 - 1 \\ 3 - 1 & 0 - 2 & 0 - 1 \\ 5 - 1 & 1 - 1 & 1 - 0 \end{pmatrix} = \begin{pmatrix} 1 & 0 & 0 \\ 2 & -2 & -1 \\ 4 & 0 & 1 \end{pmatrix}

  • Step-by-step element calculations for A−BA - B:

    • Row 1 Calculations:

    • Position (1,1)(1, 1): a11−b11=2−1=1a_{11} - b_{11} = 2 - 1 = 1

    • Position (1,2)(1, 2): a12−b12=0−0=0a_{12} - b_{12} = 0 - 0 = 0

    • Position (1,3)(1, 3): a13−b13=1−1=0a_{13} - b_{13} = 1 - 1 = 0

    • Row 2 Calculations:

    • Position (2,1)(2, 1): a21−b21=3−1=2a_{21} - b_{21} = 3 - 1 = 2

    • Position (2,2)(2, 2): a22−b22=0−2=−2a_{22} - b_{22} = 0 - 2 = -2

    • Position (2,3)(2, 3): a23−b23=0−1=−1a_{23} - b_{23} = 0 - 1 = -1

    • Row 3 Calculations:

    • Position (3,1)(3, 1): a31−b31=5−1=4a_{31} - b_{31} = 5 - 1 = 4

    • Position (3,2)(3, 2): a32−b32=1−1=0a_{32} - b_{32} = 1 - 1 = 0

    • Position (3,3)(3, 3): a33−b33=1−0=1a_{33} - b_{33} = 1 - 0 = 1

Algebraic Properties of Matrix Addition and Subtraction

  • Commutative Property of Addition: Matrix addition is commutative, meaning A+B=B+AA + B = B + A for any matrices AA and BB of identical dimensions.

  • Associative Property of Addition: Matrix addition is associative, meaning (A+B)+C=A+(B+C)(A + B) + C = A + (B + C) for any matrices AA, BB, and CC of identical dimensions.

  • Additive Identity Property: For any m×nm \times n matrix AA, there exists a zero matrix OO of size m×nm \times n such that A+O=O+A=AA + O = O + A = A.

  • Additive Inverse Property: For every matrix AA, there exists an additive inverse −A=(−1)A-A = (-1)A such that A+(−A)=OA + (-A) = O.

  • Non-Commutativity of Subtraction: Matrix subtraction is not commutative; in general, A−B≠B−AA - B \neq B - A. Rather, B−A=−(A−B)B - A = -(A - B).

  • Connection to Scalar Multiplication: Subtraction can be framed in terms of addi