tezvyn:

The Jacobian Matrix: A Derivative for Multiple Dimensions

AI-drafted, machine-checkedSource: Wikipedia: Jacobian matrix and determinantadvanced

The Jacobian matrix is the multi-dimensional version of a derivative. It's a grid of partial derivatives showing how a small change in each input locally affects each output of a vector function. Don't confuse the matrix with its determinant.

WHY IT EXISTS A single derivative works for functions from one variable to one value (y = f(x)). But what if your function takes multiple inputs and produces multiple outputs, like a robot arm's joint angles (inputs) determining its hand position (outputs)? The Jacobian matrix was created to describe this complex relationship. It generalizes the concept of a derivative to handle these multi-dimensional transformations.

THE MENTAL MODEL The Jacobian matrix is the best linear approximation of a function at a specific point. Imagine a complex, curved surface. If you zoom in far enough on any single point, it looks flat. The Jacobian matrix describes the orientation and scaling of that tiny flat patch. It tells you, 'For a tiny step in this input direction, the output will change by this much in these output directions.'

HOW IT WORKS For a vector-valued function that takes n variables and returns m values, the Jacobian is an m-by-n matrix. The entry in the i-th row and j-th column is the partial derivative of the i-th output component with respect to the j-th input variable. This systematically organizes all the first-order derivative information, capturing the local behavior of the function. If the matrix is square (m=n), its determinant, the Jacobian determinant, has special significance, often relating to how volume changes under the function's transformation.

WHEN TO USE IT Use the Jacobian when you need to understand the local sensitivity of a multi-input, multi-output system. It's fundamental in optimization algorithms (like Newton's method) to find the direction of change, in robotics to relate joint velocities to end-effector velocities, and in calculus for changing variables in multiple integrals.

WHEN NOT TO USE IT The Jacobian is not useful if the function is not differentiable at the point of interest. It also only provides a linear, first-order approximation. If you need to understand the curvature or concavity of the function (is it a peak, a valley, or a saddle point?), you need second-order derivative information, which the Jacobian does not provide.

ONE CANONICAL EXAMPLE Consider converting from polar coordinates (r, θ) to Cartesian coordinates (x, y). The function is f(r, θ) = (x, y) where x = r*cos(θ) and y = r*sin(θ). The Jacobian matrix is a 2x2 matrix of partial derivatives: the first row contains the partials of x with respect to r and θ, and the second row contains the partials of y with respect to r and θ. This matrix tells you exactly how a small change in radius or angle translates to a change in x and y position.

Read the original → en.wikipedia.org

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.