MatricesTopic #7 of 30

Matrix Addition & Scalar Multiplication

Adding matrices, scalar multiplication, properties, and the zero matrix.

Overview

Matrix addition and scalar multiplication are the fundamental operations that allow us to combine and scale matrices. These operations define the vector space structure on Mm×nM_{m \times n}.

Matrix Addition

For matrices AA and BB of the same size (m×nm \times n):

A+B=[aij+bij]A + B = [a_{ij} + b_{ij}]

Example

[1234]+[5678]=[1+52+63+74+8]=[681012]\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} + \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} = \begin{bmatrix} 1+5 & 2+6 \\ 3+7 & 4+8 \end{bmatrix} = \begin{bmatrix} 6 & 8 \\ 10 & 12 \end{bmatrix}

Requirement

Matrices must have the same dimensions to be added.

Properties of Matrix Addition

PropertyFormula
CommutativeA+B=B+AA + B = B + A
Associative(A+B)+C=A+(B+C)(A + B) + C = A + (B + C)
IdentityA+O=AA + O = A
InverseA+(A)=OA + (-A) = O

Scalar Multiplication

For scalar cc and matrix AA:

cA=[caij]cA = [c \cdot a_{ij}]

Example

3×[1234]=[3×13×23×33×4]=[36912]3 \times \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 3 \times 1 & 3 \times 2 \\ 3 \times 3 & 3 \times 4 \end{bmatrix} = \begin{bmatrix} 3 & 6 \\ 9 & 12 \end{bmatrix}

Properties of Scalar Multiplication

PropertyFormula
Distributive (scalar)c(A+B)=cA+cBc(A + B) = cA + cB
Distributive (matrix)(c+d)A=cA+dA(c + d)A = cA + dA
Associativec(dA)=(cd)Ac(dA) = (cd)A
Identity1A=A1A = A
Zero0A=O0A = O

Matrix Subtraction

Defined as addition of the negative:

AB=A+(1)B=A+(B)A - B = A + (-1)B = A + (-B)

Example

[5678][1234]=[51627384]=[4444]\begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} - \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 5-1 & 6-2 \\ 7-3 & 8-4 \end{bmatrix} = \begin{bmatrix} 4 & 4 \\ 4 & 4 \end{bmatrix}

Linear Combinations of Matrices

A linear combination of matrices A1,A2,,AkA_1, A_2, \ldots, A_k:

c1A1+c2A2++ckAkc_1 A_1 + c_2 A_2 + \cdots + c_k A_k

Example

2[1001]+3[0110]=[2002]+[0330]=[2332]2\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} + 3\begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} = \begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix} + \begin{bmatrix} 0 & 3 \\ 3 & 0 \end{bmatrix} = \begin{bmatrix} 2 & 3 \\ 3 & 2 \end{bmatrix}

The Zero Matrix

The m×nm \times n zero matrix Om×nO_{m \times n} has all entries equal to 0.

Properties:

  • A+O=O+A=AA + O = O + A = A
  • AA=OA - A = O
  • 0A=O0A = O
  • OA=OOA = O (for matrix multiplication, when defined)

Negative of a Matrix

The negative of AA is (1)A(-1)A:

A=[aij]-A = [-a_{ij}]

Example

[1234]=[1234]-\begin{bmatrix} 1 & 2 \\ 3 & -4 \end{bmatrix} = \begin{bmatrix} -1 & -2 \\ -3 & 4 \end{bmatrix}

Worked Examples

Example 1: Combined Operations

Given:

A=[2130],B=[1321],c=2A = \begin{bmatrix} 2 & -1 \\ 3 & 0 \end{bmatrix}, \quad B = \begin{bmatrix} 1 & 3 \\ 2 & 1 \end{bmatrix}, \quad c = 2

Find 2A3B2A - 3B:

2A=[4260],3B=[3963]2A = \begin{bmatrix} 4 & -2 \\ 6 & 0 \end{bmatrix}, \quad 3B = \begin{bmatrix} 3 & 9 \\ 6 & 3 \end{bmatrix}

2A3B=[43296603]=[11103]2A - 3B = \begin{bmatrix} 4-3 & -2-9 \\ 6-6 & 0-3 \end{bmatrix} = \begin{bmatrix} 1 & -11 \\ 0 & -3 \end{bmatrix}

Example 2: Solve for Matrix

Find XX if 2X+A=B2X + A = B where:

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

Solution:

2X=BA=[4444]2X = B - A = \begin{bmatrix} 4 & 4 \\ 4 & 4 \end{bmatrix}

X=[2222]X = \begin{bmatrix} 2 & 2 \\ 2 & 2 \end{bmatrix}