Calculus IIIFree · No sign-up

Jacobian Calculator with Steps & Visual Grid Transformation

This Jacobian calculator finds the Jacobian matrix and determinant of up to 4 functions in 4 variables, with every partial derivative shown step by step. A moving grid shows how the map stretches area near your point.

See the grid move
  • Symbolic partial derivatives with steps
  • Determinant, rank and inverse at a point
  • 2 × 2, 3 × 3, 4 × 4 and non-square
4 × 4
largest matrix
20
built-in functions
14
ready-made examples
Jacobian engine
(…)

Use x, y, z, u, v, w, s, t, r, theta, rho, phi or eta.

Functions one row of J each
p =
Preview
—Full solution ↓

Results

Your Jacobian, on a moving grid and step by step

The grid view bends a square window around your point into its image. The orange cell shows the local stretch: its area changes by the factor |det J| at that point.

Interactive diagram

Grid transformation

r held fixedθ held fixedCell at p
Slide to morph the domain into its image
morphimage
cell area ratio—
|det J(p)|—

Jacobian matrix

Jacobian determinant

Step-by-step solution

—

    Step by step

    How to Use the Jacobian Calculator

    To use the Jacobian calculator, follow these 6 steps. The preview, the matrix and the grid update as you type.

    1. 1

      Pick a matrix size

      2 × 2, 3 × 3 or 4 × 4 loads a starter map. Edit it into any shape up to 4 functions and 4 variables.

    2. 2

      List the variables in order

      Type them comma-separated, for example r, theta. The order sets the column order and the sign of the determinant.

    3. 3

      Enter one function per row

      Put the name on the left and the formula on the right, for example x = r*cos(theta). + Add function adds a row.

    4. 4

      Add a point (optional)

      Enter one value per variable, such as 2, pi/4. The calculator evaluates J, det J, the rank and the inverse Jacobian there.

    5. 5

      Compute the Jacobian

      Press Compute Jacobian or Enter. Results refresh on their own while you type.

    6. 6

      Read the steps and watch the grid

      Open the step-by-step solution, then press Animate the map to see the square grid bend into its image.

    iThe input accepts + − * / ^, the constants pi and e, and 20 functions: sin, cos, tan, sec, csc, cot, asin, acos, atan, sinh, cosh, tanh, sech, csch, coth, exp, ln, sqrt, cbrt and abs. Implicit multiplication works too: 2r cos(theta) reads as 2·r·cos θ.

    Definition

    What Is a Jacobian?

    A Jacobian is the matrix of all first-order partial derivatives of a vector-valued function, and the determinant of that matrix is the Jacobian determinant. A map F with n input variables and m output functions has an m × n Jacobian matrix, with ∂fᵢ/∂xⱼ in row i, column j.

    The second formula is the reason the Jacobian matters. Near a point p, a curved map acts like the matrix J(p). The Jacobian determinant then tells you 3 things about that matrix:

    • |det J| is the local scale factor for area with 2 variables and for volume with 3. det J = 2 turns 1 cm² into 2 cm² (0.155 in² into 0.31 in²).
    • The sign of det J is the orientation. A positive sign keeps counterclockwise order; a negative sign mirrors it.
    • det J = 0 marks a singular point, where the map has no local inverse.

    The name comes from Carl Gustav Jacob Jacobi, the German mathematician who published a study of these "functional determinants" in 1841. Jacobians belong to multivariable calculus (Calculus III) and link it to linear algebra: the derivative of a map between spaces is a matrix.

    Linear map explorer: the unit square under J = [a b; c d]
    det J1.35
    area of image1.35
    orientationkept
    inverseexists

    The columns of J, (a, c) and (b, d), are the images of the 2 unit arrows. The area of the parallelogram they span is |ad − bc|.

    Where the Jacobian matrix is used

    The Jacobian matrix has 4 main uses outside the classroom: robotics, economics, physics and engineering, and solving systems of equations.

    01 · Robotics

    Robotic arm velocity

    A two-link robotic arm with 1 m (3.28 ft) links places its hand at x = cos u + cos(u + v), y = sin u + sin(u + v). J turns joint speeds in rad/s into hand speed in m/s. det J = sin v, so the arm loses a direction of motion when fully stretched (v = 0). Inverse kinematics (IK) solvers invert J to pick joint speeds.

    02 · Economics

    Supply and demand shifts

    A market model writes equilibrium as F(P, Q; t) = 0, with price P, quantity Q and a tax t. The Jacobian with respect to P and Q decides whether the equilibrium moves smoothly with t, and the implicit function theorem gives the rate of change.

    03 · Physics & engineering

    Coordinates and deformation

    Physics problems switch to polar, cylindrical or spherical coordinates through the Jacobian. In solid mechanics, det of the deformation gradient is the volume ratio: det = 1 means the material keeps its volume, and rubber stays close to 1.

    04 · Systems of equations

    Newton–Raphson method

    Newton's method solves F(x) = 0 for n equations in n unknowns. Near a root with det J ≠ 0, the number of correct digits roughly doubles each step.

    Formula

    Jacobian Formula

    The Jacobian formula puts the partial derivative of output i with respect to input j in row i, column j. For F = (f₁, …, fm) of the variables (x₁, …, xn), the Jacobian matrix is:

    2 × 2 Jacobian formula

    For x = x(u, v) and y = y(u, v), the 2 × 2 Jacobian determinant is the product of the main diagonal minus the product of the other diagonal:

    3 × 3 Jacobian formula

    For 3 functions of u, v, w, expand along the first row with the signs + − +:

    Here xu is shorthand for ∂x/∂u. A 4 × 4 determinant expands the same way into 4 cofactors, each a 3 × 3 determinant.

    Partial derivative map: hover or tap a cell
    uvwxyz

    Row 1 is the gradient of x. Column 1 shows how x, y and z all change when u moves.

    Jacobian matrix sizes
    Functions × variablesJacobian shapeDeterminantExampleResult
    1 × 31 × 3 row: the gradient ∇fNof = x²y + sin z
    2 × 2squareYes: ad − bcpolar to Cartesian
    3 × 22 tangent vectors of a surfaceNohelicoid (u cos v, u sin v, v)rank 2
    3 × 3squareYes: 3 cofactorsspherical coordinates
    4 × 4squareYes: 4 cofactors(xy, yz, zw, w + x)

    3 ways to compute a Jacobian

    There are 3 ways to compute a Jacobian matrix: symbolic differentiation, finite differences and automatic differentiation.

    Symbolic

    Exact formulas

    Differentiation rules produce exact expressions. This calculator, SymPy, Mathematica and Maple work this way.

    Numeric

    Finite differences

    To calculate a Jacobian numerically, nudge one input at a time. h = 10⁻⁵ gives about 10 correct digits in double precision.

    Automatic

    Automatic differentiation (AD)

    AD tools such as JAX jax.jacobian and PyTorch torch.autograd.functional.jacobian return values exact to machine precision without a printed formula.

    iLarge engineering models give sparse Jacobians: most entries are 0. A 1,000-equation circuit model has 1,000,000 entries but often fewer than 10,000 nonzeros, and solvers store only the sparsity pattern.

    Worked examples

    Jacobian Calculator Examples With Solutions

    Here are 6 Jacobian examples with solutions: polar to Cartesian, custom functions, a circle map, 3D functions, a hyperbolic angle map and a robotic arm. Each picture shows the grid around the point bending into its image, and each button loads the problem into the Jacobian calculator.

    2 × 2 · polar

    Example 1: polar to Cartesian

    Find the Jacobian of x = r cos θ, y = r sin θ with variables (r, θ).

    Answer: ; at (2, π/4) it equals 2.

    2 × 2 · polynomial

    Example 2: custom functions

    Find the Jacobian of f = u² − v, g = v² + u.

    Answer: ; at (1, 1) it equals 5.

    2 × 2 · circle

    Example 3: circle map

    Find the Jacobian of f = x² + y², g = sin(xy). The first function measures the squared distance from the origin.

    Answer: , zero on the lines y = ±x; at (1, 0.5) about 1.3164.

    3 × 3 · 3D functions

    Example 4: 3D functions

    Find the 3 × 3 Jacobian of f = x², g = y², h = z².

    Answer: ; at (1, 2, 3) it equals 48. A diagonal matrix has the product of its diagonal as its determinant.

    2 × 2 · chain rule

    Example 5: hyperbolic angle map

    Find the Jacobian of x = r cos(tanh η), y = r sin(tanh η) with variables (η, r). The chain rule gives d/dη tanh η = sech² η. Write S = sin(tanh η) and C = cos(tanh η).

    Answer: ; at (0.5, 2) about −1.5729. The order (η, r) flips orientation, hence the minus sign.

    2 × 2 · robotics

    Example 6: two-link robotic arm

    Find the Jacobian of x = cos u + cos(u + v), y = sin u + sin(u + v), the hand position of an arm with 1 m links. Robotics shorthand: s₁ = sin u, c₁ = cos u, s₁₂ = sin(u + v), c₁₂ = cos(u + v).

    Answer: ; 1 at v = π/2 (90°), 0 at v = 0 and v = π.

    More problems to load:

    Check a Jacobian with a second tool

    6 other tools compute Jacobians, and each one uses its own syntax. The emathhelp.net Jacobian calculator, part of its Calculus III collection, shows the matrix and determinant with steps and sends the derivatives to its derivative calculator. The calculators.sg Jacobian calculator by Henrick Yau loads 4 examples: Circle, Polar to Cartesian, 3D Functions and Custom Functions, which match Examples 1 to 4 here. Wolfram Alpha accepts plain text such as jacobian of (r cos t, r sin t) with respect to (r, t), and Symbolab's partial derivative calculator checks single entries with steps.

    For a Jacobian calculator in Python, use SymPy. MATLAB uses jacobian from the Symbolic Math Toolbox, Mathematica uses D[{f, g}, {{r, t}}], Maple uses VectorCalculus:-Jacobian, and SageMath uses jacobian(f, vars). Compare decimals at one point, not the printed form: −r sech² η and −r/cosh² η are the same answer.

    Jacobian in Python with SymPy
    from sympy import symbols, cos, sin, Matrix, simplify
    
    r, t = symbols('r theta')
    F = Matrix([r*cos(t), r*sin(t)])
    J = F.jacobian([r, t])
    
    print(J)                    # Matrix([[cos(theta), -r*sin(theta)],
                                #         [sin(theta),  r*cos(theta)]])
    print(simplify(J.det()))    # r
    print(J.inv().subs({r: 2, t: 0}))   # inverse Jacobian at a point

    Coordinate systems

    Jacobian of Coordinate Transformations

    The Jacobian of a coordinate transformation is the factor that converts the area or volume element from the new coordinates to Cartesian ones. There are 6 standard transformations, and each has a short Jacobian determinant.

    Jacobians of common coordinate transformations
    TransformationFormulasJacobian determinantElement
    Polar
    Cylindrical
    Spherical
    Elliptical
    Linear
    Cartesian to polar
    PolarA rectangle in (r, θ) becomes a slice of a ring. Cells farther out grow by the factor r.
    Elliptical, a = 3, b = 2The polar slice stretches by 3 in x and 2 in y, so each cell grows 6 times more: 6r.
    Linear, x = 2u + v, y = u − vStraight lines stay straight. Every cell has the same area factor, |−3| = 3, and the minus sign mirrors the grid.
    SphericalA box in (ρ, φ, θ) becomes a piece of a thick shell. Its volume factor ρ² sin φ vanishes on the z-axis, where sin φ = 0.

    iInverse transformations have reciprocal Jacobians: ∂(x, y)/∂(r, θ) = r, so ∂(r, θ)/∂(x, y) = 1/r. The inverse Jacobian matrix is the matrix inverse, J⁻¹, at matching points.

    Change of variables

    How Is the Jacobian Used in Double and Triple Integrals?

    The Jacobian is used in double and triple integrals as the scale factor in a change of variables. A substitution x = x(u, v), y = y(u, v) maps a simple region S onto the region R, and |det J| converts du dv into dA.

    To change variables in an integral, follow 4 steps:

    1. Pick the substitution that turns the region into a rectangle or box, such as polar coordinates for a disc.
    2. Compute the Jacobian determinant ∂(x, y)/∂(u, v) with the calculator above.
    3. Take the absolute value. An area element is never negative, whatever the variable order.
    4. Rewrite f and the limits in the new variables, then integrate.

    Worked example: the area of an ellipse

    The ellipse x²/9 + y²/4 ≤ 1 becomes the unit disc under x = 3r cos θ, y = 2r sin θ, with det J = 6r:

    With lengths in cm, the area is 18.85 cm² (about 2.92 in²). The same idea gives the volume of a ball of radius 2 m with dV = ρ² sin φ dρ dφ dθ: 32π/3 ≈ 33.51 m³, or about 33,510 liters.

    Area element explorer: one polar cell at radius r
    exact cell area—
    r Δr Δθ—
    Δr Δθ (no r)—
    error without r—

    The exact area of a ring slice, (r₂² − r₁²)Δθ/2, equals r Δr Δθ when r is the middle radius. Dropping the Jacobian r is wrong by a factor of r.

    Rules

    Properties of the Jacobian Matrix and Determinant

    The Jacobian matrix and determinant have 8 main properties: the chain rule, the inverse function theorem, the inverse determinant, orientation, linear approximation, constant Jacobians of linear maps, the gradient and Hessian link, and the implicit function theorem.

    01

    Chain rule

    The Jacobian of a composition is a matrix product, so determinants multiply: det JF∘G = det JF · det JG.

    02

    Inverse function theorem

    A nonzero determinant at p guarantees a smooth local inverse near p. The inverse Jacobian is the matrix inverse.

    03

    Inverse determinant

    Polar coordinates give r one way and 1/r the other way.

    04

    Sign and orientation

    Swapping 2 variables or 2 functions swaps 2 columns or rows, which flips the sign and leaves |det J| unchanged.

    05

    Linear approximation

    J(p) is the derivative of F at p. The tangent plane of a surface comes from the same formula with 1 output.

    06

    Linear maps

    An affine map has a constant Jacobian, so every cell of the grid scales by the same factor |det A|.

    07

    Gradient and Hessian

    A scalar function has a 1 × n Jacobian, the gradient. The Jacobian of the gradient is the symmetric Hessian matrix.

    08

    Implicit function theorem

    F(x, y) = 0 defines y as a function of x near a point, if the Jacobian block ∂F/∂y is invertible there.

    iSome textbooks write the Jacobian as the transpose, with each function in a column. The determinant stays the same, but the matrix-vector product J·h then needs Jᵀ. This calculator uses rows for functions, the convention of most Calculus III courses.

    Avoid these

    Common Mistakes When Calculating Jacobians

    There are 8 common mistakes when calculating Jacobians. Each card pairs the mistake with its fix.

    Rows and columns swapped

    Row i belongs to function i; column j belongs to variable j. The transpose has the same determinant, but J·h gives the wrong vector.

    Ignoring variable order

    (η, r) and (r, η) give −r sech² η and r sech² η. Fix the order first, then read the sign.

    Dropping the absolute value

    Integrals use |det J|. A negative Jacobian would turn an area negative.

    Using the inverse Jacobian

    dA needs ∂(x, y)/∂(u, v), not ∂(u, v)/∂(x, y). The two are reciprocals: r versus 1/r.

    Missing the chain rule

    ∂/∂η cos(tanh η) = −sin(tanh η)·sech² η. The inner derivative sech² η is easy to forget.

    Treating other variables as changing

    In ∂/∂r, θ is a constant: ∂(r sin θ)/∂r = sin θ.

    A determinant of a non-square matrix

    Only m = n gives a determinant. A 3 × 2 Jacobian has a rank instead, and a pseudoinverse.

    Angles in degrees

    Point values are radians: 45° is pi/4 (about 0.7854), not 45.

    Questions

    Frequently Asked Questions

    How do you find the Jacobian of a function?

    To find the Jacobian of a function, take the partial derivative of every output with respect to every input and place ∂fᵢ/∂xⱼ in row i, column j. Then take the determinant of that matrix, if it is square. For x = r cos θ, y = r sin θ the rows are (cos θ, −r sin θ) and (sin θ, r cos θ), and the determinant is r.

    What is the difference between a Jacobian matrix and determinant?

    The difference between a Jacobian matrix and determinant is that the matrix is the full m × n table of first partial derivatives, while the determinant is a single expression computed from a square matrix. The matrix gives the best linear approximation of the map near a point. The determinant gives the local area or volume scale factor, and its sign gives the orientation.

    Can a Jacobian be a 3×3 matrix?

    Yes, a Jacobian is a 3 × 3 matrix for every map of 3 functions in 3 variables. Spherical coordinates x = ρ sin φ cos θ, y = ρ sin φ sin θ, z = ρ cos φ give a 3 × 3 Jacobian matrix with determinant ρ² sin φ. Cylindrical coordinates give a 3 × 3 matrix with determinant r.

    Can you calculate a Jacobian for three variables?

    Yes, you can calculate a Jacobian for three variables: list 3 variables, such as x, y, z, and enter 1 to 4 functions. 3 functions give a square 3 × 3 matrix with a determinant. 1 function gives the 1 × 3 gradient row, and 2 or 4 functions give a non-square matrix with no determinant.

    What happens when the Jacobian determinant is zero?

    When the Jacobian determinant is zero, the map squeezes a small neighborhood into a lower-dimensional set, so the matrix has no inverse and the map has no local inverse at that point. Small areas or volumes shrink to 0 there. Polar coordinates have det J = r = 0 at the origin, where every angle θ lands on the same point. A two-link robotic arm has det J = sin v = 0 when the arm is fully stretched or fully folded.

    What is the Jacobian used for in integration?

    The Jacobian is used in integration to change variables: |det J| converts du dv into dA, or du dv dw into dV. Polar coordinates give dA = r dr dθ. Spherical coordinates give dV = ρ² sin φ dρ dφ dθ. Without |det J|, the area of the unit disc comes out as 2π instead of π.

    This Jacobian calculator builds the Jacobian matrix from every partial derivative, takes the Jacobian determinant step by step, and shows the grid transformation at your point. Use it for coordinate transformations, change of variables in double and triple integrals, and systems of equations.