Matrix Fundamentals
Matrices are rectangular arrays of numbers that represent linear transformations, systems of equations, and robot configurations. They’re fundamental to describing how robots move and transform through space.
What is a Matrix?
A matrix is a 2D array of numbers arranged in rows and columns:
This is a 2×3 matrix (2 rows, 3 columns). We denote the element in row i and column j as aij.
Matrix Dimensions
- Square matrix: Same number of rows and columns (e.g., 2×2, 3×3)
- Column vector: n×1 matrix (single column)
- Row vector: 1×n matrix (single row)
Robot Configuration Matrix Robotics Application
A 6-DOF robot arm’s joint angles can be represented as a column vector (6×1 matrix):
where θ₁ through θ₆ are the joint angles.
Basic Matrix Operations
Matrix Addition
Add corresponding elements. Matrices must have the same dimensions.
Matrix Subtraction
Subtract corresponding elements (same dimension requirement).
Scalar Multiplication
Multiply every element by a scalar (number):
Transpose
The transpose of a matrix swaps rows and columns:
The element at position (i, j) in A becomes position (j, i) in AT.
Properties of Transpose
- (AT)T = A
- (A + B)T = AT + BT
- (cA)T = c AT (for scalar c)
Special Matrices
Identity Matrix
The identity matrix I is a square matrix with 1s on the diagonal and 0s elsewhere:
It acts like the number 1: AI = IA = A.
Zero Matrix
All elements are zero. Acts like the number 0 in addition.
Diagonal Matrix
Non-zero elements only on the diagonal:
Joint Velocity Limits Robotics Application
A diagonal matrix can represent maximum joint velocities for a robot:
Each joint has independent velocity limits (no coupling between joints).
Interactive Explorer
Try the basic matrix operations below. Adjust the matrix elements and see how operations work in real-time.
Matrix A
Matrix B
Show Operations
Results
A + B
Matrix Operations: Addition and subtraction work element-wise. Scalar multiplication scales all elements. Transpose swaps rows and columns (reflects across diagonal).
Key Takeaways
- Matrices represent linear transformations and store robot configurations
- Addition/subtraction work element-wise (same dimensions required)
- Scalar multiplication scales all elements uniformly
- Transpose reflects the matrix across its diagonal
- Identity matrix acts as “1” in matrix algebra
Next Steps
Now that you understand basic matrix operations, we’ll explore matrix multiplication — the key operation for composing transformations and understanding robot kinematics.