PROJECTENGRAM

MATRIX SUBTRACTION (DIFFERENCE)

Matrix Subtraction (Difference)

Tags: #◇CSMATH2 #◇Linear Algebra #◇Computational Mathematics #◇Matrices #◇Matrix Operations #◇Computer Science #◇Vector Spaces #◇Linear Transformations


◇Overview

Definition: If A=[aij]A=[a_{ij}] and B=[bij]B=[b_{ij}] are matrices of the same size (m×nm \times n), their difference A−BA-B is defined as A+(−1)BA+(-1)B. This res...

◇Key Concepts

Non-Commutativity

◇Details / Theory

Definition: If A=[aij]A=[a_{ij}] and B=[bij]B=[b_{ij}] are matrices of the same size (m×nm \times n), their difference A−BA-B is defined as A+(−1)BA+(-1)B. This results in subtracting corresponding entries:
A−B=A+(−1)B=[aij]+[−bij]=[aij−bij]A-B=A+(-1)B=[a_{ij}]+[-b_{ij}]=[a_{ij}-b_{ij}]
(Handout 1, Pages 10) Example: Let A=[23401−1201]A=\begin{bmatrix} 2 & 3 & 4 \\ 0 & 1 & -1 \\ 2 & 0 & 1 \end{bmatrix} and B=[062410−124]B=\begin{bmatrix} 0 & 6 & 2 \\ 4 & 1 & 0 \\ -1 & 2 & 4 \end{bmatrix}.
A−B=[2−03−64−20−41−1−1−02−(−1)0−21−4]=[2−32−40−13−2−3]A-B=\begin{bmatrix} 2-0 & 3-6 & 4-2 \\ 0-4 & 1-1 & -1-0 \\ 2-(-1) & 0-2 & 1-4 \end{bmatrix}=\begin{bmatrix} 2 & -3 & 2 \\ -4 & 0 & -1 \\ 3 & -2 & -3 \end{bmatrix}
(Handout 1, Page 11) Non-Commutativity: In general, A−B≠B−AA-B \neq B-A. (Handout 1, Page 13)

◇Common Pitfalls

Same size requirement as addition: A−BA - B only defined when AA and BB are the same m×nm \times n. A−B≠B−AA - B \neq B - A in general (subtraction is not commutative).

◇Summary

TL;DR — Matrix subtraction: (A−B)ij=aij−bij(A - B)_{ij} = a_{ij} - b_{ij}. Requires same dimensions. Not commutative.

Related: Source / Reference:

◇References & Navigation

CONFIRMATION // 理解度の確認

ACTIVE RECALL VERIFICATION

Select an answer to verify conceptual comprehension and reveal the technical rationale.

Q1

How is the matrix difference A−BA - B formally defined using addition and scalar multiplication?

Q2

What strict size requirement must be met to subtract matrix BB from matrix AA?

Q3

Is the operation of matrix subtraction commutative?