Solved Exercises on Matrix Operations: Addition and Subtraction in Precalculus

Master matrix operations: addition and subtraction through these 5 detailed exercises with comprehensive solutions and visual representations.

Solution: Exercises 1 to 3
1 Adding 2×2 matrices
Exercise 1
Find \(A + B\) where \(A = \begin{bmatrix} 2 & 3 \\ 1 & 4 \end{bmatrix}\) and \(B = \begin{bmatrix} 5 & -1 \\ 0 & 2 \end{bmatrix}\)
Definition:

Matrix addition: Adding corresponding elements of two matrices of the same dimensions: \((A + B)_{ij} = A_{ij} + B_{ij}\)

Matrix addition method:
  1. Verify that both matrices have the same dimensions
  2. Add corresponding elements in each position
  3. Place the sum in the corresponding position of the result matrix
  4. Continue for all positions in the matrix
Matrices
\(A = \begin{bmatrix} 2 & 3 \\ 1 & 4 \end{bmatrix}\), \(B = \begin{bmatrix} 5 & -1 \\ 0 & 2 \end{bmatrix}\)
Formula
\((A + B)_{ij} = A_{ij} + B_{ij}\)
Result
\(A + B = \begin{bmatrix} 7 & 2 \\ 1 & 6 \end{bmatrix}\)
Step 1: Verify dimensions are compatible

Both A and B are 2×2 matrices, so addition is possible

Step 2: Add element in position (1,1)

\((A + B)_{11} = A_{11} + B_{11} = 2 + 5 = 7\)

Step 3: Add element in position (1,2)

\((A + B)_{12} = A_{12} + B_{12} = 3 + (-1) = 2\)

Step 4: Add element in position (2,1)

\((A + B)_{21} = A_{21} + B_{21} = 1 + 0 = 1\)

Step 5: Add element in position (2,2)

\((A + B)_{22} = A_{22} + B_{22} = 4 + 2 = 6\)

Step 6: Write the resulting matrix

\(A + B = \begin{bmatrix} 7 & 2 \\ 1 & 6 \end{bmatrix}\)

\(A + B = \begin{bmatrix} 7 & 2 \\ 1 & 6 \end{bmatrix}\)
Final answer:

\(A + B = \begin{bmatrix} 7 & 2 \\ 1 & 6 \end{bmatrix}\)

Applied rules:

• Compatibility: Matrices must have identical dimensions

• Element-wise addition: Add corresponding elements in each position

• Sign handling: Be careful with negative numbers

2 Subtracting 3×2 matrices
Exercise 2
Find \(C - D\) where \(C = \begin{bmatrix} 6 & -2 \\ 0 & 5 \\ 3 & 1 \end{bmatrix}\) and \(D = \begin{bmatrix} 1 & 3 \\ 2 & -1 \\ 0 & 4 \end{bmatrix}\)
Definition:

Matrix subtraction: Subtracting corresponding elements of two matrices of the same dimensions: \((C - D)_{ij} = C_{ij} - D_{ij}\)

Matrices
\(C = \begin{bmatrix} 6 & -2 \\ 0 & 5 \\ 3 & 1 \end{bmatrix}\), \(D = \begin{bmatrix} 1 & 3 \\ 2 & -1 \\ 0 & 4 \end{bmatrix}\)
Formula
\((C - D)_{ij} = C_{ij} - D_{ij}\)
Result
\(C - D = \begin{bmatrix} 5 & -5 \\ -2 & 6 \\ 3 & -3 \end{bmatrix}\)
Step 1: Verify dimensions are compatible

Both C and D are 3×2 matrices, so subtraction is possible

Step 2: Subtract element in position (1,1)

\((C - D)_{11} = C_{11} - D_{11} = 6 - 1 = 5\)

Step 3: Subtract element in position (1,2)

\((C - D)_{12} = C_{12} - D_{12} = (-2) - 3 = -5\)

Step 4: Subtract element in position (2,1)

\((C - D)_{21} = C_{21} - D_{21} = 0 - 2 = -2\)

Step 5: Subtract element in position (2,2)

\((C - D)_{22} = C_{22} - D_{22} = 5 - (-1) = 5 + 1 = 6\)

Step 6: Continue for remaining elements

\((C - D)_{31} = 3 - 0 = 3\), \((C - D)_{32} = 1 - 4 = -3\)

\(C - D = \begin{bmatrix} 5 & -5 \\ -2 & 6 \\ 3 & -3 \end{bmatrix}\)
Final answer:

\(C - D = \begin{bmatrix} 5 & -5 \\ -2 & 6 \\ 3 & -3 \end{bmatrix}\)

Applied rules:

• Compatibility: Matrices must have identical dimensions

• Element-wise subtraction: Subtract corresponding elements in each position

• Sign handling: Remember that subtracting a negative is adding a positive

3 Adding incompatible matrices
Exercise 3
Explain why \(E + F\) cannot be calculated where \(E = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}\) and \(F = \begin{bmatrix} 5 & 6 & 7 \\ 8 & 9 & 10 \end{bmatrix}\)
Definition:

Matrix compatibility: Two matrices can only be added or subtracted if they have the same dimensions (same number of rows and columns)

Matrix E
2×2 matrix
Matrix F
2×3 matrix
Result
Operation impossible
Step 1: Identify dimensions of matrix E

Matrix E has 2 rows and 2 columns (2×2)

Step 2: Identify dimensions of matrix F

Matrix F has 2 rows and 3 columns (2×3)

Step 3: Compare dimensions

Since 2×2 ≠ 2×3, the matrices have different dimensions

Step 4: Apply the compatibility rule

Matrix addition requires identical dimensions, so E + F is undefined

Step 5: Explain the reason

There is no way to pair elements from a 2×2 matrix with elements from a 2×3 matrix for addition

Operation not possible
Final answer:

Matrix E (2×2) and matrix F (2×3) cannot be added because they have different dimensions

Applied rules:

• Dimension compatibility: Matrices must have identical dimensions for addition/subtraction

• Undefined operations: Attempting operations with incompatible matrices results in undefined expressions

• Size checking: Always verify dimensions before performing operations

Matrix Operations: Laws, Methods, and Formulas
\((A + B)_{ij} = A_{ij} + B_{ij}\)
Matrix Addition Formula
\((A - B)_{ij} = A_{ij} - B_{ij}\)
Matrix Subtraction Formula
Commutative
\(A + B = B + A\)
Addition is commutative
Associative
\(A + (B + C) = (A + B) + C\)
Addition is associative
Identity
\(A + O = A\)
Zero matrix is additive identity
Key definitions:

Matrix addition: The operation of adding two matrices of the same dimensions by adding corresponding elements. The result is a matrix of the same dimensions as the original matrices.

Matrix subtraction: The operation of subtracting two matrices of the same dimensions by subtracting corresponding elements. The result is a matrix of the same dimensions as the original matrices.

Compatible matrices: Two matrices that have the same dimensions, allowing for addition or subtraction operations to be performed.

Zero matrix: A matrix where all elements are zero, denoted as O. It acts as the additive identity for matrix addition.

Element-wise operations: Operations that are performed on corresponding elements in the same position in two matrices.

Complete methodology:
  1. Check dimensions: Verify that both matrices have identical dimensions
  2. Set up result matrix: Create a matrix of the same dimensions for the result
  3. Perform element-wise operations: Add or subtract corresponding elements
  4. Fill result matrix: Place each calculated value in the corresponding position
  5. Verify result: Check that the result has the correct dimensions and values
Tip 1: Always check that matrices have the same dimensions before adding or subtracting.
Tip 2: Matrix addition is commutative: \(A + B = B + A\).
Tip 3: Matrix subtraction is NOT commutative: \(A - B \neq B - A\).
Tip 4: Pay careful attention to signs when subtracting negative numbers.
Common errors: Attempting to add/subtract matrices with different dimensions, forgetting to carry over negative signs, misaligning corresponding elements, incorrectly handling operations with zero matrices, confusing matrix operations with scalar operations.
Applications: Computer graphics (transformations), engineering (system analysis), physics (vector operations), economics (data manipulation), statistics (data matrices), cryptography (matrix-based encryption), machine learning (data processing).
Properties to know by heart:

• Addition formula: \((A + B)_{ij} = A_{ij} + B_{ij}\)

• Subtraction formula: \((A - B)_{ij} = A_{ij} - B_{ij}\)

• Commutativity: \(A + B = B + A\)

• Associativity: \(A + (B + C) = (A + B) + C\)

• Additive identity: \(A + O = A\)

• Compatibility requirement: Matrices must have identical dimensions

Solution: Exercises 4 to 5
4 Multiple matrix operations
Exercise 4
Find \(2A - B\) where \(A = \begin{bmatrix} 3 & 1 \\ 0 & 2 \end{bmatrix}\) and \(B = \begin{bmatrix} 1 & 4 \\ -1 & 3 \end{bmatrix}\)
Definition:

Combined operations: Performing scalar multiplication followed by matrix subtraction. First multiply matrix A by scalar 2, then subtract matrix B from the result.

Given
\(A = \begin{bmatrix} 3 & 1 \\ 0 & 2 \end{bmatrix}\), \(B = \begin{bmatrix} 1 & 4 \\ -1 & 3 \end{bmatrix}\)
Scalar mult.
\(2A = \begin{bmatrix} 6 & 2 \\ 0 & 4 \end{bmatrix}\)
Subtraction
\(2A - B = \begin{bmatrix} 5 & -2 \\ 1 & 1 \end{bmatrix}\)
Step 1: Calculate \(2A\) (scalar multiplication)

\(2A = 2 \cdot \begin{bmatrix} 3 & 1 \\ 0 & 2 \end{bmatrix} = \begin{bmatrix} 2(3) & 2(1) \\ 2(0) & 2(2) \end{bmatrix} = \begin{bmatrix} 6 & 2 \\ 0 & 4 \end{bmatrix}\)

Step 2: Verify dimensions for subtraction

Both \(2A\) and \(B\) are 2×2 matrices, so subtraction is possible

Step 3: Perform element-wise subtraction

\((2A - B)_{11} = 6 - 1 = 5\)

\((2A - B)_{12} = 2 - 4 = -2\)

\((2A - B)_{21} = 0 - (-1) = 1\)

\((2A - B)_{22} = 4 - 3 = 1\)

Step 4: Write the final result

\(2A - B = \begin{bmatrix} 5 & -2 \\ 1 & 1 \end{bmatrix}\)

\(2A - B = \begin{bmatrix} 5 & -2 \\ 1 & 1 \end{bmatrix}\)
Final answer:

\(2A - B = \begin{bmatrix} 5 & -2 \\ 1 & 1 \end{bmatrix}\)

Applied rules:

• Scalar multiplication: Multiply each element by the scalar

• Element-wise subtraction: Subtract corresponding elements

• Order of operations: Scalar multiplication before subtraction

5 Matrix equation
Exercise 5
Find matrix X if \(X + \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 5 & 7 \\ 9 & 11 \end{bmatrix}\)
Definition:

Matrix equation: Solving for an unknown matrix by isolating it using inverse operations. To solve \(X + A = B\), subtract A from both sides: \(X = B - A\).

Given equation
\(X + A = B\)
Isolate X
\(X = B - A\)
Solution
\(X = \begin{bmatrix} 4 & 5 \\ 6 & 7 \end{bmatrix}\)
Step 1: Set up the equation

\(X + \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 5 & 7 \\ 9 & 11 \end{bmatrix}\)

Step 2: Isolate X by subtracting the known matrix

\(X = \begin{bmatrix} 5 & 7 \\ 9 & 11 \end{bmatrix} - \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}\)

Step 3: Verify dimensions are compatible

Both matrices are 2×2, so subtraction is possible

Step 4: Perform element-wise subtraction

\(X_{11} = 5 - 1 = 4\)

\(X_{12} = 7 - 2 = 5\)

\(X_{21} = 9 - 3 = 6\)

\(X_{22} = 11 - 4 = 7\)

\(X = \begin{bmatrix} 4 & 5 \\ 6 & 7 \end{bmatrix}\)
Final answer:

\(X = \begin{bmatrix} 4 & 5 \\ 6 & 7 \end{bmatrix}\)

Applied rules:

• Matrix equation solving: Add/subtract same matrix from both sides

• Element-wise operations: Apply operations to corresponding elements

• Dimension compatibility: Matrices must have same dimensions for operations

Matrix Operations: Comprehensive Summary and Rules
\((A \pm B)_{ij} = A_{ij} \pm B_{ij}\)
Matrix Addition/Subtraction Formula
Key definitions:

Matrix addition: The fundamental operation of combining two matrices of identical dimensions by adding their corresponding elements. If matrices A and B have dimensions m×n, then their sum A+B is also an m×n matrix where each element is calculated as \((A + B)_{ij} = A_{ij} + B_{ij}\). This operation is only defined when both matrices have the same number of rows and columns.

Matrix subtraction: The operation of finding the difference between two matrices of identical dimensions by subtracting corresponding elements: \((A - B)_{ij} = A_{ij} - B_{ij}\). Like addition, this operation requires matrices to have the same dimensions.

Compatible matrices: Two matrices that possess identical dimensions, allowing for addition or subtraction operations. For matrices to be compatible, they must have the same number of rows and the same number of columns.

Zero matrix: A matrix where every element equals zero, denoted as O or 0. The zero matrix serves as the additive identity element for matrix addition, meaning that adding it to any matrix A results in A itself: A + O = A.

Element-wise operations: Operations performed on corresponding elements in the same position across different matrices. Both addition and subtraction are element-wise operations that preserve the matrix structure.

Scalar multiplication: The operation of multiplying every element of a matrix by a scalar (real number), denoted as kA where each element becomes kA_{ij}. This operation changes the magnitude of elements but preserves the matrix dimensions.

Complete methodology for matrix operations:
  1. Dimension verification: Confirm that both matrices have identical dimensions before proceeding
  2. Operation selection: Determine whether to add or subtract based on the problem
  3. Element-wise processing: Process each position systematically (row by row, column by column)
  4. Sign handling: Carefully manage positive and negative values during operations
  5. Result compilation: Assemble all calculated elements into the result matrix
  6. Verification: Check that the result matrix has the correct dimensions and values
Tip 1: Always verify dimensions first. Matrix addition/subtraction is only possible when both matrices have the same dimensions.
Tip 2: Matrix addition is commutative: A + B = B + A, but subtraction is not: A - B ≠ B - A.
Tip 3: Work systematically from top-left to bottom-right to avoid missing elements.
Tip 4: Remember that subtracting a negative number is the same as adding a positive number.
Tip 5: The zero matrix acts as the identity element for addition: A + O = A.
Tip 6: When solving matrix equations, perform the same operation on both sides of the equation.
Common errors: Attempting operations on matrices with different dimensions, forgetting to carry signs correctly, misaligning corresponding elements, incorrectly handling zero matrices, confusing matrix operations with scalar operations, failing to verify dimensions before operations.
Applications: Computer graphics (image processing, transformations), engineering (system analysis, structural modeling), physics (vector operations, quantum mechanics), economics (input-output models), statistics (data analysis), machine learning (neural networks), cryptography (matrix-based encryption), signal processing (filtering operations).
Key relationships: Matrix operations preserve the dimensional structure of matrices. The result of addition or subtraction always has the same dimensions as the original matrices. These operations follow algebraic properties similar to real numbers but with additional constraints.
Memorization aids: "Same size for addition/subtraction"; "Add corresponding elements"; "Zero matrix is the identity for addition".
Essential properties and formulas to know by heart:

• Addition formula: \((A + B)_{ij} = A_{ij} + B_{ij}\)

• Subtraction formula: \((A - B)_{ij} = A_{ij} - B_{ij}\)

• Commutativity of addition: \(A + B = B + A\)

• Associativity of addition: \(A + (B + C) = (A + B) + C\)

• Additive identity: \(A + O = A\) (where O is zero matrix)

• Additive inverse: \(A + (-A) = O\)

• Non-commutativity of subtraction: \(A - B \neq B - A\)

• Scalar multiplication: \((kA)_{ij} = k(A_{ij})\)

• Distributive property: \(k(A + B) = kA + kB\)

Visualization: Matrix Operations
Understanding Matrix Operations Visually
Visualizing how matrix operations work:
- Element-wise addition and subtraction
- Dimension compatibility
- Result matrix formation

Analysis: The visualization demonstrates how matrices of the same dimensions can be combined element-wise. Each position in the result matrix corresponds to an operation performed on the corresponding elements of the input matrices.

  • Compatible matrices: Same dimensions allow element-wise operations
  • Element correspondence: Position (i,j) in result comes from position (i,j) in inputs
  • Structure preservation: Result has same dimensions as operands
  • Operation independence: Each element is processed independently

Questions & Answers

Question: I'm confused about why we can't add matrices with different dimensions. Why can't we just add them like regular numbers?

Answer: This is a great conceptual question! Matrices are fundamentally different from regular numbers because they represent arrays of numbers with specific positional meaning.

Consider this analogy: You can't add a 2×3 grid of numbers to a 2×2 grid of numbers because there's no way to pair up all the elements:

If you have a 2×2 matrix \(\begin{bmatrix} a & b \\ c & d \end{bmatrix}\) and a 2×3 matrix \(\begin{bmatrix} e & f & g \\ h & i & j \end{bmatrix}\), how would you add element \(d\) to something? The 2×3 matrix doesn't have a corresponding element in that position!

Matrix addition is defined element-wise, meaning each element at position (i,j) in the first matrix needs a corresponding element at position (i,j) in the second matrix. Without identical dimensions, this pairing is impossible.

It's like trying to add two different sized spreadsheets element by element - you'd run out of cells in one spreadsheet before finishing the other!

Question: What's the difference between matrix subtraction and adding the negative of a matrix? Are they the same thing?

Answer: Yes, they are exactly the same thing! This is a fundamental property of matrix operations:

Matrix subtraction: \(A - B\) means subtracting each element of B from the corresponding element of A

Adding the negative: \(A + (-B)\) means adding each element of the negative of B to the corresponding element of A

The negative of a matrix \(-B\) is created by multiplying every element of B by -1. So if \(B = \begin{bmatrix} b_{11} & b_{12} \\ b_{21} & b_{22} \end{bmatrix}\), then \(-B = \begin{bmatrix} -b_{11} & -b_{12} \\ -b_{21} & -b_{22} \end{bmatrix}\).

Therefore: \(A - B = A + (-B)\)

For example, if \(A = \begin{bmatrix} 3 & 5 \\ 2 & 4 \end{bmatrix}\) and \(B = \begin{bmatrix} 1 & 2 \\ 0 & 3 \end{bmatrix}\):

\(A - B = \begin{bmatrix} 3-1 & 5-2 \\ 2-0 & 4-3 \end{bmatrix} = \begin{bmatrix} 2 & 3 \\ 2 & 1 \end{bmatrix}\)

\(A + (-B) = \begin{bmatrix} 3 & 5 \\ 2 & 4 \end{bmatrix} + \begin{bmatrix} -1 & -2 \\ 0 & -3 \end{bmatrix} = \begin{bmatrix} 2 & 3 \\ 2 & 1 \end{bmatrix}\)

Both methods give identical results!

Question: How do I solve matrix equations like \(X + A = B\) for the unknown matrix X?

Answer: Matrix equations are solved using the same principles as scalar equations, but with matrix operations:

For the equation \(X + A = B\):

To isolate X, subtract matrix A from both sides:

\(X + A - A = B - A\)

\(X + O = B - A\) (since \(A - A = O\), the zero matrix)

\(X = B - A\)

Key principles:

  • You can add or subtract the same matrix from both sides of an equation
  • The zero matrix acts as the additive identity (like 0 in real numbers)
  • Matrix subtraction is the inverse operation to matrix addition

Example: If \(X + \begin{bmatrix} 2 & 1 \\ 0 & 3 \end{bmatrix} = \begin{bmatrix} 5 & 4 \\ 1 & 7 \end{bmatrix}\), then:

\(X = \begin{bmatrix} 5 & 4 \\ 1 & 7 \end{bmatrix} - \begin{bmatrix} 2 & 1 \\ 0 & 3 \end{bmatrix} = \begin{bmatrix} 3 & 3 \\ 1 & 4 \end{bmatrix}\)

Always verify by substituting back into the original equation!

Question: What happens when I multiply a matrix by a scalar? How is this different from matrix addition?

Answer: Scalar multiplication and matrix addition are fundamentally different operations:

Scalar multiplication:

  • Multiplies every element of the matrix by the same scalar
  • Preserves the matrix dimensions
  • Changes the magnitude of all elements uniformly
  • Example: \(3 \cdot \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 3 & 6 \\ 9 & 12 \end{bmatrix}\)

Matrix addition:

  • Adds corresponding elements from two matrices
  • Requires both matrices to have the same dimensions
  • Combines elements from different matrices
  • Example: \(\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} + \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} = \begin{bmatrix} 6 & 8 \\ 10 & 12 \end{bmatrix}\)

Scalar multiplication affects each element individually by the same factor, while matrix addition combines elements from different matrices position by position.