Matrices are not just a way to store data; they can be added, subtracted, and multiplied, much like numbers. This section covers the fundamental operations of matrix algebra, which form the basis for solving complex systems and performing transformations.
1. Addition of Matrices
Matrix addition is the simplest operation. It's just like adding corresponding elements together.
The Golden Rule: Two matrices can be added only if they have the exact same order (same number of rows and same number of columns). You can't add a 2x3 matrix to a 2x2 matrix because their elements wouldn't line up.
Rule: If A=[aij] and B=[bij] are two matrices, both of order m x n, then their sum A+B is a new m x n matrix C=[cij], where each new element is the sum of the corresponding old elements: cij=aij+bij
Example:
If A=[1324] and B=[5768], then:
A+B=[1+53+72+64+8]=[610812]
Properties of Matrix Addition
Matrix addition behaves just like regular addition of numbers.
Commutative:A+B=B+A. (The order you add them in doesn't matter).
Associative:(A+B)+C=A+(B+C). (The way you group them doesn't matter).
Existence of Additive Identity:A+O=O+A=A. The Zero Matrix (O), which is a matrix of all zeros, acts like the number '0' in regular addition.
Existence of Additive Inverse: For any matrix A, there is a matrix −A (its negative) such that A+(−A)=O. The matrix −A is found by negating every single element of A.
If A=[13−20], then −A=[−1−320].
2. Multiplication of a Matrix by a Scalar
A scalar is just a regular number (like 3, -1, or 0.5). To multiply a matrix by a scalar, you simply multiply every element in the matrix by that number. Think of it as scaling the entire matrix up or down.
Rule: If A=[aij] is an m x n matrix and k is a scalar, then kA is the m x n matrix where each element is k×aij.
Example: If A=[1310−4], then 5A is:
5A=5[1310−4]=[5(1)5(3)5(10)5(−4)]=[51550−20]
3. Matrix Multiplication
This is the most complex operation. It is not element-by-element multiplication. It's a row-by-column operation.
The Golden Rule: Two matrices A and B can be multiplied to find the product AB only if the number of columns in the first matrix (A) is equal to the number of rows in the second matrix (B).
Rule for Order: If A is an m x n matrix and B is an n x p matrix, the inner dimensions (n) must match. The resulting matrix, AB, will have the outer dimensions: m x p.
(2 x 3) × (3 x 4) ⟹ Result is a 2 x 4 matrix. (OK)
(2 x 3) × (2 x 2) ⟹ Result is undefined. (Mismatch)
How to Calculate: To find the element in the i-th row and j-th column of AB, you take the i-th row of A and the j-th column of B. You multiply their corresponding elements, and then add up the results.
Example: Let A=[1324]2×2 and B=[5768]2×2. Find AB.
Order Check: A is 2x2, B is 2x2. The inner dimensions match. The result AB will be a 2x2 matrix: [c11c21c12c22].
Calculate c11 (Row 1 of A, Column 1 of B):[1324][5768]⟹c11=(1)(5)+(2)(7)=5+14=19.
Calculate c12 (Row 1 of A, Column 2 of B):[1324][5768]⟹c12=(1)(6)+(2)(8)=6+16=22.
Calculate c21 (Row 2 of A, Column 1 of B):[1324][5768]⟹c21=(3)(5)+(4)(7)=15+28=43.
Calculate c22 (Row 2 of A, Column 2 of B):[1324][5768]⟹c22=(3)(6)+(4)(8)=18+32=50.
Final Result:AB=[19432250].
Properties of Matrix Multiplication
Not Commutative (Crucial!): In general, AB=BA. Order matters!
In our example, BA=[5768][1324]=[23313446], which is not equal to AB.
Associative:(AB)C=A(BC). (As long as the orders are compatible).
Distributive:A(B+C)=AB+AC. (The distributive law holds).
Existence of Multiplicative Identity: For any square matrix A, AI=IA=A, where I is the identity matrix of the same order. I acts like the number '1' in matrix multiplication.
Example 1: Matrix Addition
Question: If A=[1324] and B=[5768], find A+B.
Explanation:
Check Order: Both matrices are 2x2. Since they have the same order, they can be added.
Add Corresponding Elements: We add the element in the i-th row and j-th column of A to the element in the i-th row and j-th column of B.
a11+b11=1+5=6
a12+b12=2+6=8
a21+b21=3+7=10
a22+b22=4+8=12
Construct the Result Matrix:A+B=[610812].
Answer:[610812]
Example 2: Scalar Multiplication and Subtraction
Question: If A=[840−2] and B=[24−22], find the matrix X such that 2A+3X=5B.
Explanation:
Isolate X: Start by algebraically solving for the matrix X.
2A+3X=5B⟹3X=5B−2A⟹X=31(5B−2A)
Now, add the results: AB+AC=[11−1−1]+[1111]=[1+11+1−1+1−1+1]=[2200]
3. Conclusion: Since LHS = RHS, the distributive property is verified.
Answer: LHS = [2200] and RHS = [2200].
Example 10: Special Matrix Product
Question: If A=[cosθ−sinθsinθcosθ], show that A2=[cos2θ−sin2θsin2θcos2θ].
Explanation:
This matrix is a rotation matrix by an angle θ. Squaring it should be equivalent to applying the rotation twice, resulting in a rotation by 2θ.
Set up the multiplication A2=A⋅A:A2=[cosθ−sinθsinθcosθ][cosθ−sinθsinθcosθ]
Calculate each element:
Element (1,1):(cosθ)(cosθ)+(sinθ)(−sinθ)=cos2θ−sin2θ
Element (1,2):(cosθ)(sinθ)+(sinθ)(cosθ)=2sinθcosθ
Element (2,1):(−sinθ)(cosθ)+(cosθ)(−sinθ)=−2sinθcosθ
Element (2,2):(−sinθ)(sinθ)+(cosθ)(cosθ)=cos2θ−sin2θ
Form the resulting matrix:A2=[cos2θ−sin2θ−2sinθcosθ2sinθcosθcos2θ−sin2θ]
Apply Double Angle Identities:
Using the identities cos2θ=cos2θ−sin2θ and sin2θ=2sinθcosθ, we get:
A2=[cos2θ−sin2θsin2θcos2θ]
Answer: The statement is verified.
Ready to test your knowledge?
Take a quick interactive quiz on this topic —
free, works without login.