Matrix operations
Introduction / Definition
Matrix operations include addition, subtraction, scalar multiplication, and multiplication. Each has precise dimensional rules. Scalar multiplication changes every entry by the same factor. Matrix multiplication uses row-column products and can change the matrix dimensions.
Syntax / Mathematical Form
kA=[kaᵢⱼ]; A−B=[aᵢⱼ−bᵢⱼ]; AB=[Σₖaᵢₖbₖⱼ]
Detailed Explanation
Addition requires equal dimensions. For multiplication, the inner dimensions must agree. These rules make matrix algebra systematic and prevent invalid operations.
Example
A = [ 2 -1 ]
[ 0 4 ]
3A = [ 6 -3 ]
[ 0 12 ].
Output
3A = [ 6 -3 ]
[ 0 12 ].
Important Points / Notes
- Check dimensions first.
- Scalar multiplication is entry-wise.
- Multiplication is not entry-wise.
Mini Practice Question
Find 2A for A = [ 1 3 ] [ -2 4 ].