Matrix Addition, Subtraction, Scalar Multiplication

Master matrix operations: addition, subtraction, scalar multiplication, and applications through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Matrix addition
Exercise 1
Find the sum of matrices:
\(A = \begin{bmatrix} 2 & 5 \\ 3 & 1 \end{bmatrix}\) and \(B = \begin{bmatrix} 4 & -2 \\ 0 & 7 \end{bmatrix}\)
Definition:

Matrix addition: Adding corresponding elements of two matrices of the same dimensions

Matrix addition method:
  1. Ensure matrices have the same dimensions
  2. Add corresponding elements in each position
  3. Place the result in the same position in the sum matrix
Matrices A and B
\(\begin{bmatrix} 2 & 5 \\ 3 & 1 \end{bmatrix} + \begin{bmatrix} 4 & -2 \\ 0 & 7 \end{bmatrix}\)
Addition Process
\(\begin{bmatrix} 2+4 & 5+(-2) \\ 3+0 & 1+7 \end{bmatrix}\)
Result
\(\begin{bmatrix} 6 & 3 \\ 3 & 8 \end{bmatrix}\)
Step 1: Verify dimensions

Matrix A is 2×2 and Matrix B is 2×2, so addition is possible

Step 2: Add corresponding elements

Position (1,1): \(2 + 4 = 6\)

Position (1,2): \(5 + (-2) = 3\)

Position (2,1): \(3 + 0 = 3\)

Position (2,2): \(1 + 7 = 8\)

Step 3: Form the result matrix

\(A + B = \begin{bmatrix} 6 & 3 \\ 3 & 8 \end{bmatrix}\)

\(A + B = \begin{bmatrix} 6 & 3 \\ 3 & 8 \end{bmatrix}\)
Final answer:

The sum of matrices A and B is \(\begin{bmatrix} 6 & 3 \\ 3 & 8 \end{bmatrix}\)

Applied rules:

• Dimension requirement: Only matrices of the same dimensions can be added

• Element-wise addition: Add corresponding elements in the same positions

• Commutative property: \(A + B = B + A\)

2 Matrix subtraction
Exercise 2
Find the difference of matrices:
\(C = \begin{bmatrix} 8 & 3 \\ 1 & 5 \end{bmatrix}\) and \(D = \begin{bmatrix} 2 & 7 \\ 4 & 1 \end{bmatrix}\)
Definition:

Matrix subtraction: Subtracting corresponding elements of two matrices of the same dimensions

Matrices C and D
\(\begin{bmatrix} 8 & 3 \\ 1 & 5 \end{bmatrix} - \begin{bmatrix} 2 & 7 \\ 4 & 1 \end{bmatrix}\)
Subtraction Process
\(\begin{bmatrix} 8-2 & 3-7 \\ 1-4 & 5-1 \end{bmatrix}\)
Result
\(\begin{bmatrix} 6 & -4 \\ -3 & 4 \end{bmatrix}\)
Step 1: Verify dimensions

Matrix C is 2×2 and Matrix D is 2×2, so subtraction is possible

Step 2: Subtract corresponding elements

Position (1,1): \(8 - 2 = 6\)

Position (1,2): \(3 - 7 = -4\)

Position (2,1): \(1 - 4 = -3\)

Position (2,2): \(5 - 1 = 4\)

Step 3: Form the result matrix

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

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

The difference of matrices C and D is \(\begin{bmatrix} 6 & -4 \\ -3 & 4 \end{bmatrix}\)

Applied rules:

• Dimension requirement: Only matrices of the same dimensions can be subtracted

• Element-wise subtraction: Subtract corresponding elements in the same positions

• Non-commutative: \(C - D \neq D - C\) in general

3 Scalar multiplication
Exercise 3
Find the scalar multiple of matrix:
\(E = \begin{bmatrix} 1 & -3 \\ 4 & 2 \end{bmatrix}\) multiplied by scalar \(k = -2\)
Definition:

Scalar multiplication: Multiplying every element of a matrix by a scalar (number)

Matrix E and Scalar k
\(-2 \cdot \begin{bmatrix} 1 & -3 \\ 4 & 2 \end{bmatrix}\)
Multiplication Process
\(\begin{bmatrix} -2 \cdot 1 & -2 \cdot (-3) \\ -2 \cdot 4 & -2 \cdot 2 \end{bmatrix}\)
Result
\(\begin{bmatrix} -2 & 6 \\ -8 & -4 \end{bmatrix}\)
Step 1: Identify scalar and matrix

Scalar: \(k = -2\)

Matrix: \(E = \begin{bmatrix} 1 & -3 \\ 4 & 2 \end{bmatrix}\)

Step 2: Multiply each element by the scalar

Position (1,1): \((-2) \cdot 1 = -2\)

Position (1,2): \((-2) \cdot (-3) = 6\)

Position (2,1): \((-2) \cdot 4 = -8\)

Position (2,2): \((-2) \cdot 2 = -4\)

Step 3: Form the result matrix

\(kE = \begin{bmatrix} -2 & 6 \\ -8 & -4 \end{bmatrix}\)

\(kE = \begin{bmatrix} -2 & 6 \\ -8 & -4 \end{bmatrix}\)
Final answer:

The scalar multiple of matrix E by -2 is \(\begin{bmatrix} -2 & 6 \\ -8 & -4 \end{bmatrix}\)

Applied rules:

• Scalar multiplication: Multiply every element by the scalar

• Dimension preservation: The result has the same dimensions as the original matrix

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

Matrix Operations: Properties and Rules
\(A + B = [a_{ij} + b_{ij}], \quad kA = [ka_{ij}], \quad A - B = [a_{ij} - b_{ij}]\)
Matrix Operation Formulas
Addition
\( A + B = B + A \)
Commutative property
Scalar Mult.
\( k(A + B) = kA + kB \)
Distributive property
Zero Matrix
\( A + 0 = A \)
Additive identity
Key definitions:

Matrix: A rectangular array of numbers arranged in rows and columns

Dimensions: The size of a matrix expressed as (rows × columns)

Scalar: A single number that multiplies every element of a matrix

Compatible matrices: Matrices that have the same dimensions for addition/subtraction

Matrix operation methodology:
  1. Verify compatibility: Check that matrices have the same dimensions for addition/subtraction
  2. Element-wise operations: Perform operations on corresponding elements
  3. Scalar multiplication: Multiply every element by the scalar
  4. Result formation: Place results in corresponding positions
  5. Verification: Check that the result has correct dimensions
Tip 1: Always check that matrices have the same dimensions before adding or subtracting.
Tip 2: Scalar multiplication affects every element of the matrix equally.
Tip 3: Matrix subtraction is not commutative: A - B ≠ B - A in general.
Solution: Exercises 4 to 5
4 Combined operations
Exercise 4
Calculate \(2A - 3B\) where:
\(A = \begin{bmatrix} 5 & 1 \\ 0 & 3 \end{bmatrix}\) and \(B = \begin{bmatrix} 2 & -1 \\ 4 & 2 \end{bmatrix}\)
Definition:

Combined operations: Performing scalar multiplication followed by matrix addition/subtraction

Scalar Multiplication
\(2A = \begin{bmatrix} 10 & 2 \\ 0 & 6 \end{bmatrix}\), \(3B = \begin{bmatrix} 6 & -3 \\ 12 & 6 \end{bmatrix}\)
Subtraction
\(2A - 3B = \begin{bmatrix} 4 & 5 \\ -12 & 0 \end{bmatrix}\)
Step 1: Calculate 2A

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

Step 2: Calculate 3B

\(3B = 3 \cdot \begin{bmatrix} 2 & -1 \\ 4 & 2 \end{bmatrix} = \begin{bmatrix} 3 \cdot 2 & 3 \cdot (-1) \\ 3 \cdot 4 & 3 \cdot 2 \end{bmatrix} = \begin{bmatrix} 6 & -3 \\ 12 & 6 \end{bmatrix}\)

Step 3: Calculate 2A - 3B

\(2A - 3B = \begin{bmatrix} 10 & 2 \\ 0 & 6 \end{bmatrix} - \begin{bmatrix} 6 & -3 \\ 12 & 6 \end{bmatrix}\)

\(= \begin{bmatrix} 10-6 & 2-(-3) \\ 0-12 & 6-6 \end{bmatrix} = \begin{bmatrix} 4 & 5 \\ -12 & 0 \end{bmatrix}\)

\(2A - 3B = \begin{bmatrix} 4 & 5 \\ -12 & 0 \end{bmatrix}\)
Final answer:

The result of \(2A - 3B\) is \(\begin{bmatrix} 4 & 5 \\ -12 & 0 \end{bmatrix}\)

Applied rules:

• Order of operations: Perform scalar multiplication before addition/subtraction

• Element-wise operations: Apply operations to corresponding elements

• Sign handling: Be careful with negative numbers in subtraction

5 Matrix equation solving
Exercise 5
Solve for matrix X in the equation: \(X + \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 5 & 7 \\ 2 & 1 \end{bmatrix}\)
Definition:

Matrix equation: An equation where the unknown is a matrix

Original Equation
\(X + \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 5 & 7 \\ 2 & 1 \end{bmatrix}\)
Isolated X
\(X = \begin{bmatrix} 4 & 5 \\ -1 & -3 \end{bmatrix}\)
Step 1: Isolate X by subtracting the known matrix

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

Step 2: Perform element-wise subtraction

Position (1,1): \(5 - 1 = 4\)

Position (1,2): \(7 - 2 = 5\)

Position (2,1): \(2 - 3 = -1\)

Position (2,2): \(1 - 4 = -3\)

Step 3: Form the solution matrix

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

Step 4: Verify the solution

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

\(X = \begin{bmatrix} 4 & 5 \\ -1 & -3 \end{bmatrix}\)
Final answer:

The solution to the matrix equation is \(X = \begin{bmatrix} 4 & 5 \\ -1 & -3 \end{bmatrix}\)

Applied rules:

• Matrix equation solving: Use inverse operations to isolate the unknown matrix

• Subtraction method: Subtract the same matrix from both sides

• Verification: Always check the solution by substitution

Comprehensive Guide: Matrix Operations
\(A = [a_{ij}]_{m \times n}, \quad A + B = [a_{ij} + b_{ij}]_{m \times n}, \quad kA = [ka_{ij}]_{m \times n}\)
Matrix Notation and Operations
Key definitions:

Matrix: A rectangular array of numbers arranged in rows and columns, denoted as \(A = [a_{ij}]\) where \(a_{ij}\) represents the element in row i and column j

Dimension: The size of a matrix expressed as (number of rows) × (number of columns)

Zero matrix: A matrix where all elements are zero, serving as the additive identity for matrix addition

Scalar: A single number that can multiply every element of a matrix

Matrix operation methodology:
  1. Compatibility check: Verify that matrices have the same dimensions for addition/subtraction
  2. Element-wise operations: Perform operations on elements in corresponding positions
  3. Scalar multiplication: Multiply every element by the scalar value
  4. Result formation: Place computed values in corresponding positions
  5. Verification: Check that the result has correct dimensions and verify calculations
Tip 1: Always verify that matrices have the same dimensions before performing addition or subtraction.
Tip 2: When subtracting matrices, be careful with negative signs: A - B = A + (-B).
Tip 3: Scalar multiplication distributes over matrix addition: k(A + B) = kA + kB.
Tip 4: Matrix addition is commutative, but subtraction is not: A + B = B + A, but A - B ≠ B - A.
Common errors: Adding/subtracting incompatible matrices, incorrect sign handling, missing elements in scalar multiplication.
Exam preparation: Practice with different matrix sizes, memorize properties, verify all calculations.
Important properties and rules:

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

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

• Scalar multiplication properties: \(k(A + B) = kA + kB\), \((k + l)A = kA + lA\)

• Dimension preservation: Scalar multiplication doesn't change matrix dimensions

Visualization: Matrix Operations Effects
Understanding How Operations Change Matrices
Visualizing the effects of different matrix operations:
1. Matrix addition combining elements
2. Scalar multiplication scaling all elements
3. Matrix subtraction showing differences
4. Combined operations and their effects

Analysis: The visualization shows how matrix operations affect the values and patterns within matrices.

  • Matrix addition creates new values by combining corresponding elements
  • Scalar multiplication uniformly scales all matrix elements
  • Matrix subtraction highlights differences between corresponding elements
  • Combined operations follow order of operations

Questions & Answers

Question: Can I add or subtract matrices of different dimensions?

Answer: No, you cannot add or subtract matrices of different dimensions. Matrix addition and subtraction are only defined for matrices that have the same number of rows and columns.

For example, you can add a 2×3 matrix to another 2×3 matrix, but you cannot add a 2×3 matrix to a 3×2 matrix because there's no way to pair up corresponding elements in the same positions.

This is similar to how you can only add apples to apples, not apples to oranges.

Question: What happens when I multiply a matrix by zero?

Answer: When you multiply any matrix by the scalar 0, you get the zero matrix of the same dimensions. Every element in the resulting matrix will be 0.

For example, if \(A = \begin{bmatrix} 2 & 5 \\ 1 & 3 \end{bmatrix}\), then \(0 \cdot A = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}\).

This is because multiplying any number by 0 gives 0, so every element in the matrix becomes 0.

Question: Is matrix multiplication the same as scalar multiplication?

Answer: No, matrix multiplication and scalar multiplication are completely different operations:

  • Scalar multiplication: A single number multiplies every element of a matrix
  • Matrix multiplication: A more complex operation that combines two matrices to produce a third matrix

In this chapter, we're only covering scalar multiplication (number × matrix). Matrix-to-matrix multiplication is covered in later chapters and involves dot products of rows and columns.