Exercise 2.1 — Question 4
Perform the indicated matrix operations. (Typical Q4 problems involve addition, subtraction, and/or multiplication of matrices with real or complex entries.)
Two matrices A and B can be added or subtracted only if they have the same order (m×n). The result is computed element-wise:
(A±B)ij=aij±bij
Example: If A=(1+i324−i) and B=(2−11+i3i), then:
A+B=(3+i23+i4+2i)
A−B=(−1+i41−i4−4i)
Matrix A of order m×n can be multiplied by matrix B of order n×p (inner dimensions must match). The product AB has order m×p, and its (i,j)-th element is:
(AB)ij=∑k=1naikbkj
Example: If A=(1324) (order 2×2) and B=(5768) (order 2×2), then:
AB=(1⋅5+2⋅73⋅5+4⋅71⋅6+2⋅83⋅6+4⋅8)=(19432250)
The same rules apply when matrix entries are complex numbers. Apply standard complex arithmetic (i2=−1) when computing each element.
Example: If A=(i1) and B=(i2), then:
AB=i⋅i+1⋅2=i2+2=−1+2=1
- Identify the order of each matrix involved.
- Check compatibility: same order for addition/subtraction; inner dimensions match for multiplication.
- Compute element-wise for addition/subtraction, or use the dot-product row-by-column rule for multiplication.
- Simplify any complex number arithmetic (i2=−1, combine real and imaginary parts).