Determinants & Inverses
The determinant is a scalar value computed from a square matrix that reveals crucial properties: whether the matrix is invertible, how it scales area/volume, and whether it reverses orientation.
In robotics, determinants help identify singular configurations where a robot loses degrees of freedom.
What is a Determinant?
The determinant of a square matrix A is denoted det(A) or |A|.
2×2 Determinant
Example:
3×3 Determinant
Use cofactor expansion (more complex):
Larger Matrices
For n×n matrices, determinants can be computed using:
- Cofactor expansion (recursive, slow for large n)
- Row reduction to triangular form (more efficient)
- Library functions (what we actually use in practice)
In this course, we’ll focus on understanding what determinants mean rather than hand-calculating large ones.
Geometric Interpretation
The determinant represents how much the transformation scales area (2D) or volume (3D).
Area Scaling in 2D
Consider the unit square with corners at (0,0), (1,0), (1,1), (0,1). It has area = 1.
When transformed by matrix A, it becomes a parallelogram with area = |det(A)|.
Scaling Example
This matrix scales x by 2 and y by 3. The unit square (area 1) becomes a rectangle with area 2 × 3 = 6. ✓
Sign of the Determinant
- det(A) > 0: Transformation preserves orientation (no flip)
- det(A) < 0: Transformation reverses orientation (reflection)
- det(A) = 0: Transformation collapses space (singular)
Singular Matrices
A matrix is singular if det(A) = 0. This means:
- The matrix collapses space into a lower dimension
- 2D → 1D (squashes to a line)
- 3D → 2D (squashes to a plane) or 3D → 1D (squashes to a line)
- The matrix is not invertible (no inverse exists)
- The columns/rows are linearly dependent
Why Singular Matrices Matter in Robotics
When a robot’s Jacobian matrix has determinant ≈ 0, the robot is in a singular configuration:
- Loses control in certain directions
- Cannot generate forces/velocities in some directions
- Infinite joint velocities may be needed for certain end-effector motions
- Numerical instability in inverse kinematics
Avoiding singularities is critical for robot control!
Singular Configuration Robotics Application
A 2-link planar robot arm is singular when:
-
Fully extended (elbow angle θ₂ = 0° or 180°)
- Cannot move perpendicular to the arm direction
- Jacobian determinant = 0
-
Fully folded (elbow angle θ₂ = ±180°)
- Workspace shrinks to a point
- Jacobian determinant = 0
Try these configurations in the interactive demo below!
Matrix Inverse
If det(A) ≠ 0, the matrix is invertible and has an inverse A-1 such that:
where I is the identity matrix.
2×2 Inverse Formula
Note: The inverse only exists if det(A) = ad - bc ≠ 0.
Example:
Properties of Inverses
- (A-1)-1 = A
- (AB)-1 = B-1A-1 (order reverses!)
- (AT)-1 = (A-1)T
- det(A-1) = 1 / det(A)
Inverse Kinematics Robotics Application
In robotics, we often need to solve for joint angles given a desired end-effector position:
If the transformation T is invertible:
This is inverse kinematics (IK) — finding joint angles that achieve a target pose.
Problem: When the Jacobian is singular, we cannot invert it directly. Advanced techniques (pseudoinverse, numerical optimization) are needed.
Interactive Exploration
Part 1: Determinant and Area Scaling
Adjust the transformation matrix and observe how the unit square transforms. The area of the transformed shape equals |det(A)|.
Part 2: Robot Singularities
Toggle to “Show robot arm” to see a 2-link planar arm. Adjust the joint angles to find singular configurations where det(J) ≈ 0.
Transformation Matrix
Determinant Analysis
Determinant Intuition: The determinant tells you how much a transformation stretches or shrinks space. When det = 0, the matrix squashes space into a lower dimension (singular). In robotics, a singular Jacobian means the robot loses control in some direction.
Key Takeaways
- Determinant measures area/volume scaling factor
- det(A) = 0 means the matrix is singular (not invertible, collapses space)
- Negative determinant means the transformation reverses orientation
- Matrix inverse undoes the transformation: A A-1 = I
- Robot singularities occur when the Jacobian determinant ≈ 0, causing loss of control
Identifying Singularities
Common robot singularities:
- Alignment singularities: Multiple joints aligned (e.g., fully extended arm)
- Wrist singularities: Wrist axes align (certain orientations)
- Workspace boundary: At the edge of reachable space
Strategy: Monitor det(J) during motion planning and avoid regions where |det(J)| < ε (small threshold).
Practice Problems
-
Calculate det(A) for:
-
Is this matrix singular?
-
Find the inverse of matrix A from problem 1.
Answers
-
det(A) = (2)(4) - (3)(1) = 8 - 3 = 5
-
det(B) = (2)(2) - (4)(1) = 4 - 4 = 0. Yes, singular! (Second row is 0.5 × first row)
Next Steps
Now that you understand matrices, their properties, and when they’re invertible, we’re ready to explore linear transformations — how matrices represent rotations, translations, and scaling in 2D and 3D space.