Welcome to your third lesson. In our last session, we took a significant step by moving from deterministic representations of a robot's state to probabilistic ones. We established that a robot's belief about its position can be elegantly captured by a multivariate Gaussian distribution, defined by a mean vector and a covariance matrix . This allows us to quantify not just our best guess, but also our uncertainty and the correlations within it.
We concluded by asking a critical question: What happens to this probabilistic belief when the robot moves or takes a sensor reading, especially when the underlying physics are non-linear? Simple linear transformations of Gaussians are straightforward, but real robot motion and sensor models are rarely linear.
This lesson provides the answer by introducing a cornerstone of multivariable calculus: the Jacobian matrix. You will learn how the Jacobian serves as the best local linear approximation for a non-linear function. This single mathematical tool unlocks two powerful capabilities in robotics:
- Propagating uncertainty through non-linear models, which is the key to advanced state estimators like the Extended Kalman Filter.
- Relating joint velocities to end-effector velocity in robotic arms, a fundamental task in motion control known as differential kinematics.
By the end of this lesson, you will be able to compute Jacobians and understand their dual role in both state estimation and kinematic chains.
1. Linearizing the Non-Linear World
Most realistic models in robotics are non-linear. For example, the relationship between a robot's wheel velocities and its change in global pose involves trigonometric functions. Similarly, a radar sensor might measure range and bearing, which relate to Cartesian coordinates through non-linear equations.
If our belief is a Gaussian and we pass it through a non-linear function, the result is no longer a Gaussian. This breaks the elegant mathematical machinery we want to use. The solution is not to use the exact non-linear function, but to use a linear approximation of it at the current point of interest (our current best state estimate, ).
For a single-variable function , you know that the best linear approximation around a point is given by the tangent line, whose slope is the derivative . The Jacobian is the generalization of the derivative to vector-valued functions of multiple variables.
The Jacobian Matrix - Explained
The video "The Jacobian Matrix - Explained" provides an excellent, gentle introduction to this concept, building from what you already know.
Watch the first two sections, which cover the transition from single-variable derivatives to partial derivatives and then explains how the Jacobian matrix is simply an organized collection of all the partial derivatives for a function with multiple inputs and outputs.
As the video explains, for a function that maps an n-dimensional input vector to an m-dimensional output vector , the Jacobian matrix is an matrix. Each element is the partial derivative , which measures how the i-th output component changes with a small change in the j-th input component.
2. The Jacobian and the Taylor Series Expansion
The reason the Jacobian provides the best linear approximation is rooted in the multivariate Taylor series expansion. Just as a 1D function can be approximated by , a multivariate function can be approximated as:
Here, is the Jacobian of evaluated at the point . This equation is the foundation for the Extended Kalman Filter (EKF), a topic we will dive into in a future module.
[PDF] The Extended Kalman and Particle Filter
This document formally defines the Jacobian in the context of state estimation and explicitly connects it to the Taylor series expansion.
Please read the following sections: First, look at Section 2.2, "Linearization Using Jacobians," to see how the state transition function f and observation function h are linearized using Jacobian matrices. Then, jump to the appendix and read Section A.2, "Jacobian Matrix," for the formal mathematical definition. Finally, read Section A.3, "Taylor Series Expansion," to see how the Jacobian is used in the multivariate version of the expansion.
The key takeaway is that the Jacobian matrix allows us to treat a non-linear function as a linear one locally, around a specific operating point. This is exactly what we need to propagate the mean and covariance of our belief through a non-linear system model.

3. The Jacobian in Kinematics: Relating Joint and End-Effector Velocity
Now, let's switch gears to a different, but equally important, application of the Jacobian: robot kinematics. Consider a robotic arm. The position of its end-effector (the "hand") is a non-linear function of its joint angles. This is called forward kinematics.
A central question in robot control is: if I move my joints with certain velocities (), what will be the resulting linear and angular velocity of my end-effector ()? This relationship, called differential kinematics, is given by the Jacobian.

The relationship is surprisingly linear:
Where:
- is the velocity vector of the end-effector.
- is the vector of joint velocities.
- is the Robot Jacobian, which is a function of the current joint configuration .
Let's see how this is derived.
Velocity Kinematics & Jacobian Matrix | Robotics 101
This video provides a fantastic, step-by-step derivation of the Jacobian for a simple 2-link (2R) planar robot. It connects directly to the matrix representations you learned in the first lesson.
Watch the following segments: Introduction to the problem of finding end-effector velocity. Review of forward kinematics to find the tip position equations. The crucial step: differentiating the position equations with respect to time to get velocities. This is where the Jacobian emerges. Explanation of the Jacobian as a map from joint space velocity to end-effector (Cartesian) space velocity.
4. Computing the Jacobian for a Kinematic Chain
Let's solidify this by walking through the computation. For the 2-link planar arm with link lengths and , the forward kinematics equations for the end-effector position are:
Here, our function is , where and . The Jacobian is a 2x2 matrix:
Let's compute the elements. Using the chain rule for derivatives:
You can check your work by consulting a formal robotics text.
This chapter from an MIT Introduction to Robotics course provides a formal derivation.
Read section 5.1, "Differential Relationship." Start by looking at Equations 5.1.1 and 5.1.2, which are the forward kinematics. Then, follow the derivation through Equation 5.1.5, which defines the Jacobian relationship. Finally, check the result in Equation 5.1.8, where the author uses A_1, A_2 for the link lengths.
The MIT resource also introduces the important concept of singularity, which occurs when the Jacobian matrix loses rank (its determinant is zero). At a singular configuration (e.g., when the arm is fully stretched out or folded back on itself), there are directions the end-effector cannot move, no matter how the joints move. This is a critical consideration in robot design and path planning.
Conclusion
In this lesson, we've explored the Jacobian matrix, a fundamental tool with a powerful dual identity in robotics. You now understand that this single mathematical object—a matrix of partial derivatives—plays two distinct but equally vital roles.
Key Takeaways:
- The Jacobian matrix is the generalization of the derivative for vector-valued functions. It represents the best local linear approximation of a non-linear function around a specific point.
- In non-linear state estimation, the Jacobian is used to linearize system models (like motion or sensor models). This allows us to propagate a Gaussian belief (a mean and covariance) through the model, forming the basis of algorithms like the Extended Kalman Filter.
- In kinematics, the Jacobian relates the velocities of a robot's joints to the resulting velocity of its end-effector. This is essential for controlling the motion of robotic arms and other articulated mechanisms.
You've now assembled the core mathematical building blocks for the course: homogeneous transforms for poses, Gaussian distributions for uncertainty, and Jacobians for handling non-linear dynamics.
In our next lesson, we will begin to assemble these tools. We will start with the foundational principle of probabilistic inference, Bayes' Rule, and see how it provides a formal recipe for updating our belief in light of new information. This will pave the way for implementing our first full-fledged filter.