Mathematical Foundations for Robotics
The study of autonomous robotics rests upon a robust mathematical framework that enables precise representation, reasoning, and control of robotic systems operating in complex environments. Without this foundation, the translation of physical phenomena into computational models—and the subsequent synthesis of autonomous behavior—would remain intractable. The mathematical tools developed in this chapter serve as the lingua franca through which robot state representation, perception, decision-making, and control are formulated, analyzed, and implemented. As we progress through subsequent chapters examining perception algorithms, planning methodologies, and control strategies, the concepts introduced here will reappear as essential components of more sophisticated techniques. This chapter therefore establishes not merely prerequisite knowledge, but a fundamental perspective on how mathematical abstraction captures the structure of robotic problems.
Vector Spaces and Linear Transformations
The concept of a vector space provides the algebraic structure within which robot configurations, velocities, forces, and sensor measurements find natural representation. A vector space $V$ over a field $\mathbb{F}$ (typically $\mathbb{R}$ for robotics applications) is defined as a set equipped with two operations—vector addition and scalar multiplication—that satisfy ten axioms: closure under addition and scalar multiplication, commutativity and associativity of addition, the existence of an additive identity (zero vector) and additive inverses, distributivity of scalar multiplication over vector addition and field addition, associativity of scalar multiplication, and the existence of a multiplicative identity. These axioms guarantee that vectors can be meaningfully added, subtracted, and scaled while preserving algebraic structure essential for linear reasoning.
For robotics applications, the most frequently encountered vector spaces are $\mathbb{R}^n$, the space of $n$-dimensional real column vectors, and $\mathbb{R}^{m \times n}$, the space of real matrices. The configuration space of a robot with $n$ degrees of freedom is naturally modeled as $\mathbb{R}^n$ (or as a subset thereof when constraints such as joint limits apply). A robot's pose in three-dimensional space, comprising position and orientation, resides in the special Euclidean group $SE(3)$, which is not itself a vector space but can be locally parameterized using vector spaces through tangent spaces and exponential coordinates. This distinction between linear spaces and nonlinear manifolds proves central to understanding robot kinematics and the nature of configuration spaces.
Linear transformations between vector spaces preserve the essential algebraic structure through their adherence to additivity ($T(\mathbf{u} + \mathbf{v}) = T(\mathbf{u}) + T(\mathbf{v})$) and homogeneity ($T(c\mathbf{u}) = cT(\mathbf{u})$ for scalar $c$). In the context of robotics, linear transformations arise through matrix multiplication representing coordinate transformations, Jacobian mappings from joint velocities to task-space velocities, and state transition matrices in linear dynamical systems. The set of all linear transformations from $V$ to $W$ is itself a vector space denoted $\mathcal{L}(V, W)$, and when $V$ and $W$ are finite-dimensional, each such transformation corresponds uniquely to a matrix once bases are chosen for both spaces.
The choice of basis profoundly affects the computational representation of linear transformations. While any basis serves equally well from a theoretical standpoint, practical computation requires bases that reveal structure or yield numerical stability. For $\mathbb{R}^n$, the standard basis $\{\mathbf{e}_1, \mathbf{e}_2, \ldots, \mathbf{e}_n\}$ where $\mathbf{e}_i$ has 1 in position $i$ and 0 elsewhere provides the default coordinate representation. However, bases aligned with problem-specific structure often yield sparse or diagonal representations that dramatically reduce computational cost. This observation motivates the eigenvalue and singular value decompositions discussed in subsequent sections.
Matrix Algebra and Computational Considerations
Matrices serve dual roles in robotics: as containers for collections of vectors (columns of a matrix may represent data points, basis vectors, or system states) and as representations of linear transformations. The matrix product $\mathbf{C} = \mathbf{A}\mathbf{B}$ where $\mathbf{A} \in \mathbb{R}^{m \times k}$ and $\mathbf{B} \in \mathbb{R}^{k \times n}$ yields $\mathbf{C} \in \mathbb{R}^{m \times n}$ with entries $c_{ij} = \sum_{l=1}^{k} a_{il}b_{lj}$. This composition of linear transformations underlies the chaining of robot coordinate transformations, cascade connections in control systems, and propagation of uncertainty through sensing pipelines.
Several matrix types recur throughout robotics literature. A square matrix $\mathbf{A} \in \mathbb{R}^{n \times n}$ has equal numbers of rows and columns. The determinant $\det(\mathbf{A})$ measures the signed volume scaling induced by the corresponding linear transformation and provides a criterion for invertibility: $\mathbf{A}$ is invertible (nonsingular) if and only if $\det(\mathbf{A}) \neq 0$. Symmetric matrices satisfy $\mathbf{A} = \mathbf{A}^\top$ and possess real eigenvalues; positive definite symmetric matrices additionally satisfy $\mathbf{x}^\top \mathbf{A}\mathbf{x} > 0$ for all nonzero $\mathbf{x}$, a property that characterizes covariance matrices and Hessian matrices of convex functions. Skew-symmetric matrices satisfying $\mathbf{A}^\top = -\mathbf{A}$ parameterize infinitesimal rotations and appear in the matrix representations of cross products.
Computational complexity of matrix operations becomes critical when dealing with high-dimensional systems. Matrix multiplication of two $n \times n$ matrices requires $O(n^3)$ operations under standard algorithms, though Strassen's algorithm reduces this to $O(n^{2.81})$ and Coppersmith-Winograd type algorithms achieve $O(n^{2.37})$ at the cost of large constant factors. For sparse matrices—those with few nonzero entries—exploiting sparsity yields substantial speedups. Many robotics problems involve structured sparsity patterns that enable $O(n)$ or $O(n^2)$ algorithms where dense methods would require $O(n^3)$. The Kalman filter, for example, exploits the banded structure of state estimation problems to achieve linear complexity in the state dimension.
Numerical stability considerations often outweigh raw computational speed in practical robotics applications. The condition number $\kappa(\mathbf{A}) = \sigma_{\max}(\mathbf{A}) / \sigma_{\min}(\mathbf{A})$ where $\sigma$ denotes singular values quantifies how errors in the input propagate through linear solves $\mathbf{A}\mathbf{x} = \mathbf{b}$. For $\kappa \gg 1$, the system is ill-conditioned, and small measurement errors or rounding errors can produce large solution errors. Regularization techniques such as adding $\lambda \mathbf{I}$ to $\mathbf{A}$ before solving (Tikhonov regularization) improve conditioning at the cost of introducing bias.
Eigenvalues, Eigenvectors, and Their Applications
Given a square matrix $\mathbf{A} \in \mathbb{R}^{n \times n}$, an eigenvector $\mathbf{v} \neq \mathbf{0}$ and its corresponding eigenvalue $\lambda$ satisfy the eigenequation $\mathbf{A}\mathbf{v} = \lambda\mathbf{v}$. Rearranging yields $(\mathbf{A} - \lambda\mathbf{I})\mathbf{v} = \mathbf{0}$, which has nontrivial solutions precisely when $\det(\mathbf{A} - \lambda\mathbf{I}) = 0$. This characteristic polynomial equation generates $n$ eigenvalues (counting multiplicities), and the spectrum of $\mathbf{A}$—the set of all eigenvalues—encodes fundamental properties of the corresponding linear transformation.
For symmetric matrices, the spectral theorem guarantees that $\mathbf{A}$ can be diagonalized by an orthogonal matrix: $\mathbf{A} = \mathbf{Q}\mathbf{\Lambda