Compute the Jacobian matrix of any 2D/3D vector function. Choose analytic presets or define your own expressions (numerical Jacobian via central differences).
The Jacobian matrix is a fundamental concept in multivariable calculus, named after Carl Gustav Jacob Jacobi. For a differentiable function F: ℝⁿ → ℝᵐ, the Jacobian is an m × n matrix of all first-order partial derivatives. In this interactive tool we support planar (2D) and spatial (3D) cases:
If \( F(x,y) = \begin{bmatrix} f_1(x,y) \\ f_2(x,y) \end{bmatrix} \), then the Jacobian matrix is
\( J_F(x,y) = \begin{bmatrix} \frac{\partial f_1}{\partial x} & \frac{\partial f_1}{\partial y} \\ \frac{\partial f_2}{\partial x} & \frac{\partial f_2}{\partial y} \end{bmatrix} \).
For 3D: \( J_F(x,y,z) = \begin{bmatrix} \frac{\partial f_1}{\partial x} & \frac{\partial f_1}{\partial y} & \frac{\partial f_1}{\partial z} \\ \frac{\partial f_2}{\partial x} & \frac{\partial f_2}{\partial y} & \frac{\partial f_2}{\partial z} \\ \frac{\partial f_3}{\partial x} & \frac{\partial f_3}{\partial y} & \frac{\partial f_3}{\partial z} \end{bmatrix} \).
The Jacobian encodes the best linear approximation of F near a given point. It is the workhorse of nonlinear analysis: Newton's method for systems, sensitivity analysis, and the change of variables formula for multiple integrals all rely on the Jacobian. In engineering, the Jacobian determinant reveals local invertibility: if det(J) ≠ 0, the Inverse Function Theorem guarantees that F is locally invertible.
Our algorithm uses either analytic differentiation (for built‑in presets) or finite‑difference numerical approximation (for custom functions). For each preset, the tool computes exact partial derivative expressions and evaluates them at the given point. For custom functions, we employ a central difference scheme with step h=1e-6 to estimate the Jacobian matrix. This provides second-order accuracy (error O(h²)) and handles arbitrary user‑defined functions without requiring manual derivatives.
Features include:
Consider a 2‑link planar robotic arm where the end‑effector position (x,y) is a function of joint angles θ₁, θ₂. The Jacobian matrix maps joint velocities to end‑effector velocities. At singular configurations (det(J)=0), the robot loses degrees of freedom — a critical phenomenon for motion planning. Our Jacobian calculator, although using (x,y) variables, illustrates the same mathematical structure: singularities appear when rows/columns become linearly dependent. Engineers rely on Jacobian analysis to avoid singularities, design dexterous manipulators, and compute force/torque relationships.
Math.sin(x)*y + Math.cos(z).