# Jacobian matrix and determinant

__: Matrix of all first-order partial derivatives of a vector-valued function__

**Short description**Part of a series of articles about |

Calculus |
---|

In vector calculus, the **Jacobian matrix** (/dʒəˈkoʊbiən/,^{[1]}^{[2]}^{[3]} /dʒɪ-, jɪ-/) of a vector-valued function of several variables is the matrix of all its first-order partial derivatives. When this matrix is square, that is, when the function takes the same number of variables as input as the number of vector components of its output, its determinant is referred to as the **Jacobian determinant**. Both the matrix and (if applicable) the determinant are often referred to simply as the **Jacobian** in literature.^{[4]}

## Definition

Suppose **f** : **R**^{n} → **R**^{m} is a function such that each of its first-order partial derivatives exist on **R**^{n}. This function takes a point **x** ∈ **R**^{n} as input and produces the vector **f**(**x**) ∈ **R**^{m} as output. Then the Jacobian matrix of **f** is defined to be an *m*×*n* matrix, denoted by **J**, whose (*i*,*j*)th entry is [math]\displaystyle{ \mathbf J_{ij} = \frac{\partial f_i}{\partial x_j} }[/math], or explicitly

- [math]\displaystyle{ \mathbf J = \begin{bmatrix} \dfrac{\partial \mathbf{f}}{\partial x_1} & \cdots & \dfrac{\partial \mathbf{f}}{\partial x_n} \end{bmatrix} = \begin{bmatrix} \nabla^{\mathrm T} f_1 \\ \vdots \\ \nabla^{\mathrm T} f_m \end{bmatrix} = \begin{bmatrix} \dfrac{\partial f_1}{\partial x_1} & \cdots & \dfrac{\partial f_1}{\partial x_n}\\ \vdots & \ddots & \vdots\\ \dfrac{\partial f_m}{\partial x_1} & \cdots & \dfrac{\partial f_m}{\partial x_n} \end{bmatrix} }[/math]

where [math]\displaystyle{ \nabla^{\mathrm T} f_i }[/math] is the transpose (row vector) of the gradient of the [math]\displaystyle{ i }[/math]-th component.

The Jacobian matrix, whose entries are functions of **x**, is denoted in various ways; common notations include *D***f**, **J**_{f}, [math]\displaystyle{ \nabla \mathbf{f} }[/math], and [math]\displaystyle{ \frac{\partial(f_1,..,f_m)}{\partial(x_1, ..,x_n)} }[/math].^{[5]}^{[6]} Some authors define the Jacobian as the transpose of the form given above.

The Jacobian matrix represents the differential of **f** at every point where **f** is differentiable. In detail, if **h** is a displacement vector represented by a column matrix, the matrix product **J**(**x**) ⋅ **h** is another displacement vector, that is the best linear approximation of the change of **f** in a neighborhood of **x**, if **f**(**x**) is differentiable at **x**.^{[lower-alpha 1]} This means that the function that maps **y** to **f**(**x**) + **J**(**x**) ⋅ (**y** – **x**) is the best linear approximation of **f**(**y**) for all points **y** close to **x**. The linear map **h** → **J**(**x**) ⋅ **h** is known as the *derivative* or the *differential* of **f** at **x**.

When *m* = *n*, the Jacobian matrix is square, so its determinant is a well-defined function of **x**, known as the **Jacobian determinant** of **f**. It carries important information about the local behavior of **f**. In particular, the function **f** has a differentiable inverse function in a neighborhood of a point **x** if and only if the Jacobian determinant is nonzero at **x** (see Jacobian conjecture for a related problem of *global* invertibility). The Jacobian determinant also appears when changing the variables in multiple integrals (see substitution rule for multiple variables).

When *m* = 1, that is when *f* : **R**^{n} → **R** is a scalar-valued function, the Jacobian matrix reduces to the row vector [math]\displaystyle{ \nabla^{\mathrm T} f }[/math]; this row vector of all first-order partial derivatives of *f* is the transpose of the gradient of *f*, i.e.
[math]\displaystyle{ \mathbf{J}_{f} = \nabla^T f }[/math]. Specializing further, when *m* = *n* = 1, that is when *f* : **R** → **R** is a scalar-valued function of a single variable, the Jacobian matrix has a single entry; this entry is the derivative of the function *f*.

These concepts are named after the mathematician Carl Gustav Jacob Jacobi (1804–1851).

## Jacobian matrix

The Jacobian of a vector-valued function in several variables generalizes the gradient of a scalar-valued function in several variables, which in turn generalizes the derivative of a scalar-valued function of a single variable. In other words, the Jacobian matrix of a scalar-valued function in several variables is (the transpose of) its gradient and the gradient of a scalar-valued function of a single variable is its derivative.

At each point where a function is differentiable, its Jacobian matrix can also be thought of as describing the amount of "stretching", "rotating" or "transforming" that the function imposes locally near that point. For example, if (*x*′, *y*′) = **f**(*x*, *y*) is used to smoothly transform an image, the Jacobian matrix **J**_{f}(*x*, *y*), describes how the image in the neighborhood of (*x*, *y*) is transformed.

If a function is differentiable at a point, its differential is given in coordinates by the Jacobian matrix. However a function does not need to be differentiable for its Jacobian matrix to be defined, since only its first-order partial derivatives are required to exist.

If **f** is differentiable at a point **p** in **R**^{n}, then its differential is represented by **J**_{f}(**p**). In this case, the linear transformation represented by **J**_{f}(**p**) is the best linear approximation of **f** near the point **p**, in the sense that

- [math]\displaystyle{ \mathbf f(\mathbf x) - \mathbf f(\mathbf p) = \mathbf J_{\mathbf f}(\mathbf p)(\mathbf x - \mathbf p) + o(\|\mathbf x - \mathbf p\|) \quad (\text{as } \mathbf{x} \to \mathbf{p}), }[/math]

where *o*(‖**x** − **p**‖) is a quantity that approaches zero much faster than the distance between **x** and **p** does as **x** approaches **p**. This approximation specializes to the approximation of a scalar function of a single variable by its Taylor polynomial of degree one, namely

- [math]\displaystyle{ f(x) - f(p) = f'(p) (x - p) + o(x - p) \quad (\text{as } x \to p) }[/math].

In this sense, the Jacobian may be regarded as a kind of "first-order derivative" of a vector-valued function of several variables. In particular, this means that the gradient of a scalar-valued function of several variables may too be regarded as its "first-order derivative".

Composable differentiable functions **f** : **R**^{n} → **R**^{m} and **g** : **R**^{m} → **R**^{k} satisfy the chain rule, namely [math]\displaystyle{ \mathbf{J}_{\mathbf{g} \circ \mathbf{f}}(\mathbf{x}) = \mathbf{J}_{\mathbf{g}}(\mathbf{f}(\mathbf{x})) \mathbf{J}_{\mathbf{f}}(\mathbf{x}) }[/math] for **x** in **R**^{n}.

The Jacobian of the gradient of a scalar function of several variables has a special name: the Hessian matrix, which in a sense is the "second derivative" of the function in question.

## Jacobian determinant

If *m* = *n*, then **f** is a function from **R**^{n} to itself and the Jacobian matrix is a square matrix. We can then form its determinant, known as the **Jacobian determinant**. The Jacobian determinant is sometimes simply referred to as "the Jacobian".

The Jacobian determinant at a given point gives important information about the behavior of **f** near that point. For instance, the continuously differentiable function **f** is invertible near a point **p** ∈ **R**^{n} if the Jacobian determinant at **p** is non-zero. This is the inverse function theorem. Furthermore, if the Jacobian determinant at **p** is positive, then **f** preserves orientation near **p**; if it is negative, **f** reverses orientation. The absolute value of the Jacobian determinant at **p** gives us the factor by which the function **f** expands or shrinks volumes near **p**; this is why it occurs in the general substitution rule.

The Jacobian determinant is used when making a change of variables when evaluating a multiple integral of a function over a region within its domain. To accommodate for the change of coordinates the magnitude of the Jacobian determinant arises as a multiplicative factor within the integral. This is because the *n*-dimensional *dV* element is in general a parallelepiped in the new coordinate system, and the *n*-volume of a parallelepiped is the determinant of its edge vectors.

The Jacobian can also be used to determine the stability of equilibria for systems of differential equations by approximating behavior near an equilibrium point.

## Inverse

According to the inverse function theorem, the matrix inverse of the Jacobian matrix of an invertible function is the Jacobian matrix of the *inverse* function. That is, if the Jacobian of the function **f** : **R**^{n} → **R**^{n} is continuous and nonsingular at the point **p** in **R**^{n}, then **f** is invertible when restricted to some neighborhood of **p** and

- [math]\displaystyle{ \mathbf J_{\mathbf f^{-1}}(x) = 1/{\mathbf J_{\mathbf f}(f^{-1}(x))}. }[/math]

In other words, if the Jacobian determinant is not zero at a point, then the function is *locally invertible* near this point, that is, there is a neighbourhood of this point in which the function is invertible.

The (unproved) Jacobian conjecture is related to global invertibility in the case of a polynomial function, that is a function defined by *n* polynomials in *n* variables. It asserts that, if the Jacobian determinant is a non-zero constant (or, equivalently, that it does not have any complex zero), then the function is invertible and its inverse is a polynomial function.

## Critical points

If **f** : **R**^{n} → **R**^{m} is a differentiable function, a *critical point* of **f** is a point where the rank of the Jacobian matrix is not maximal. This means that the rank at the critical point is lower than the rank at some neighbour point. In other words, let *k* be the maximal dimension of the open balls contained in the image of **f**; then a point is critical if all minors of rank *k* of **f** are zero.

In the case where *m* = *n* = *k*, a point is critical if the Jacobian determinant is zero.

## Examples

### Example 1

Consider the function **f** : **R**^{2} → **R**^{2}, with (*x*, *y*) ↦ (*f*_{1}(*x*, *y*), *f*_{2}(*x*, *y*)), given by

- [math]\displaystyle{ \mathbf f\left(\begin{bmatrix} x\\y\end{bmatrix}\right) = \begin{bmatrix} f_1(x,y)\\f_2(x,y)\end{bmatrix} = \begin{bmatrix} x^2 y \\5 x + \sin y \end{bmatrix}. }[/math]

Then we have

- [math]\displaystyle{ f_1(x, y) = x^2 y }[/math]

and

- [math]\displaystyle{ f_2(x, y) = 5 x + \sin y }[/math]

and the Jacobian matrix of **f** is

- [math]\displaystyle{ \mathbf J_{\mathbf f}(x, y) = \begin{bmatrix} \dfrac{\partial f_1}{\partial x} & \dfrac{\partial f_1}{\partial y}\\[1em] \dfrac{\partial f_2}{\partial x} & \dfrac{\partial f_2}{\partial y} \end{bmatrix} = \begin{bmatrix} 2 x y & x^2 \\ 5 & \cos y \end{bmatrix} }[/math]

and the Jacobian determinant is

- [math]\displaystyle{ \det(\mathbf J_{\mathbf f}(x, y)) = 2 x y \cos y - 5 x^2 . }[/math]

### Example 2: polar-Cartesian transformation

The transformation from polar coordinates (*r*, *φ*) to Cartesian coordinates (*x*, *y*), is given by the function **F**: **R**^{+} × [0, 2π) → **R**^{2} with components:

- [math]\displaystyle{ \begin{align} x &= r \cos \varphi ; \\ y &= r \sin \varphi . \end{align} }[/math]
- [math]\displaystyle{ \mathbf J_{\mathbf F}(r, \varphi) = \begin{bmatrix} \dfrac{\partial x}{\partial r} & \dfrac{\partial x}{\partial\varphi}\\[1em] \dfrac{\partial y}{\partial r} & \dfrac{\partial y}{\partial\varphi} \end{bmatrix} = \begin{bmatrix} \cos\varphi & - r\sin \varphi \\ \sin\varphi & r\cos \varphi \end{bmatrix} }[/math]

The Jacobian determinant is equal to *r*. This can be used to transform integrals between the two coordinate systems:

- [math]\displaystyle{ \iint_{\mathbf F(A)} f(x, y) \,dx \,dy = \iint_A f(r \cos \varphi, r \sin \varphi) \, r \, dr \, d\varphi . }[/math]

### Example 3: spherical-Cartesian transformation

The transformation from spherical coordinates (*ρ*, *φ*, *θ*)^{[7]} to Cartesian coordinates (*x*, *y*, *z*), is given by the function **F**: **R**^{+} × [0, *π*) × [0, 2*π*) → **R**^{3} with components:

- [math]\displaystyle{ \begin{align} x &= \rho \sin \varphi \cos \theta ; \\ y &= \rho \sin \varphi \sin \theta ; \\ z &= \rho \cos \varphi . \end{align} }[/math]

The Jacobian matrix for this coordinate change is

- [math]\displaystyle{ \mathbf J_{\mathbf F}(\rho, \varphi, \theta) = \begin{bmatrix} \dfrac{\partial x}{\partial \rho} & \dfrac{\partial x}{\partial \varphi} & \dfrac{\partial x}{\partial \theta} \\[1em] \dfrac{\partial y}{\partial \rho} & \dfrac{\partial y}{\partial \varphi} & \dfrac{\partial y}{\partial \theta} \\[1em] \dfrac{\partial z}{\partial \rho} & \dfrac{\partial z}{\partial \varphi} & \dfrac{\partial z}{\partial \theta} \end{bmatrix} = \begin{bmatrix} \sin \varphi \cos \theta & \rho \cos \varphi \cos \theta & -\rho \sin \varphi \sin \theta \\ \sin \varphi \sin \theta & \rho \cos \varphi \sin \theta & \rho \sin \varphi \cos \theta \\ \cos \varphi & - \rho \sin \varphi & 0 \end{bmatrix}. }[/math]

The determinant is *ρ*^{2} sin *φ*. Since *dV* = *dx* *dy* *dz* is the volume for a rectangular differential volume element (because the volume of a rectangular prism is the product of its sides), we can interpret *dV* = *ρ*^{2} sin *φ* *dρ* *dφ* *dθ* as the volume of the spherical differential volume element. Unlike rectangular differential volume element's volume, this differential volume element's volume is not a constant, and varies with coordinates (*ρ* and *φ*). It can be used to transform integrals between the two coordinate systems:

- [math]\displaystyle{ \iiint_{\mathbf F(U)} f(x, y, z) \,dx \,dy \,dz = \iiint_U f(\rho \sin \varphi \cos \theta, \rho \sin \varphi\sin \theta, \rho \cos \varphi) \, \rho^2 \sin \varphi \, d\rho \, d\varphi \, d\theta . }[/math]

### Example 4

The Jacobian matrix of the function **F** : **R**^{3} → **R**^{4} with components

- [math]\displaystyle{ \begin{align} y_1 &= x_1 \\ y_2 &= 5 x_3 \\ y_3 &= 4 x_2^2 - 2 x_3 \\ y_4 &= x_3 \sin x_1 \end{align} }[/math]

is

- [math]\displaystyle{ \mathbf J_{\mathbf F}(x_1, x_2, x_3) = \begin{bmatrix} \dfrac{\partial y_1}{\partial x_1} & \dfrac{\partial y_1}{\partial x_2} & \dfrac{\partial y_1}{\partial x_3} \\[1em] \dfrac{\partial y_2}{\partial x_1} & \dfrac{\partial y_2}{\partial x_2} & \dfrac{\partial y_2}{\partial x_3} \\[1em] \dfrac{\partial y_3}{\partial x_1} & \dfrac{\partial y_3}{\partial x_2} & \dfrac{\partial y_3}{\partial x_3} \\[1em] \dfrac{\partial y_4}{\partial x_1} & \dfrac{\partial y_4}{\partial x_2} & \dfrac{\partial y_4}{\partial x_3} \end{bmatrix} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 0 & 5 \\ 0 & 8 x_2 & -2 \\ x_3\cos x_1 & 0 & \sin x_1 \end{bmatrix}. }[/math]

This example shows that the Jacobian matrix need not be a square matrix.

### Example 5

The Jacobian determinant of the function **F** : **R**^{3} → **R**^{3} with components

- [math]\displaystyle{ \begin{align} y_1 &= 5x_2 \\ y_2 &= 4x_1^2 - 2 \sin (x_2x_3) \\ y_3 &= x_2 x_3 \end{align} }[/math]

is

- [math]\displaystyle{ \begin{vmatrix} 0 & 5 & 0 \\ 8 x_1 & -2 x_3 \cos(x_2 x_3) & -2 x_2 \cos (x_2 x_3) \\ 0 & x_3 & x_2 \end{vmatrix} = -8 x_1 \begin{vmatrix} 5 & 0 \\ x_3 & x_2 \end{vmatrix} = -40 x_1 x_2. }[/math]

From this we see that **F** reverses orientation near those points where *x*_{1} and *x*_{2} have the same sign; the function is locally invertible everywhere except near points where *x*_{1} = 0 or *x*_{2} = 0. Intuitively, if one starts with a tiny object around the point (1, 2, 3) and apply **F** to that object, one will get a resulting object with approximately 40 × 1 × 2 = 80 times the volume of the original one, with orientation reversed.

## Other uses

### Dynamical systems

Consider a dynamical system of the form [math]\displaystyle{ \dot{\mathbf{x}} = F(\mathbf{x}) }[/math], where [math]\displaystyle{ \dot{\mathbf{x}} }[/math] is the (component-wise) derivative of [math]\displaystyle{ \mathbf{x} }[/math] with respect to the evolution parameter [math]\displaystyle{ t }[/math] (time), and [math]\displaystyle{ F \colon \mathbb{R}^{n} \to \mathbb{R}^{n} }[/math] is differentiable. If [math]\displaystyle{ F(\mathbf{x}_{0}) = 0 }[/math], then [math]\displaystyle{ \mathbf{x}_{0} }[/math] is a stationary point (also called a steady state). By the Hartman–Grobman theorem, the behavior of the system near a stationary point is related to the eigenvalues of [math]\displaystyle{ \mathbf{J}_{F} \left( \mathbf{x}_{0} \right) }[/math], the Jacobian of [math]\displaystyle{ F }[/math] at the stationary point.^{[8]} Specifically, if the eigenvalues all have real parts that are negative, then the system is stable near the stationary point. If any eigenvalue has a real part that is positive, then the point is unstable. If the largest real part of the eigenvalues is zero, the Jacobian matrix does not allow for an evaluation of the stability.^{[9]}

### Newton's method

A square system of coupled nonlinear equations can be solved iteratively by Newton's method. This method uses the Jacobian matrix of the system of equations.

### Regression and least squares fitting

The Jacobian serves as a linearized design matrix in statistical regression and curve fitting; see non-linear least squares. The Jacobian is also used in random matrices, moments, local sensitivity and statistical diagnostics.^{[10]}^{[11]}

## See also

## Notes

- ↑ Differentiability at
**x**implies, but is not implied by, the existence of all first-order partial derivatives at**x**, and hence is a stronger condition.

## References

- ↑ "Jacobian - Definition of Jacobian in English by Oxford Dictionaries". https://en.oxforddictionaries.com/definition/jacobian.
- ↑ "the definition of jacobian". http://www.dictionary.com/browse/jacobian.
- ↑ Team, Forvo. "Jacobian pronunciation: How to pronounce Jacobian in English". https://forvo.com/word/jacobian/.
- ↑ W., Weisstein, Eric. "Jacobian". http://mathworld.wolfram.com/Jacobian.html.
- ↑ Holder, Allen; Eichholz, Joseph (2019).
*An Introduction to computational science*. International Series in Operations Research & Management Science. Cham, Switzerland: Springer. pp. 53. ISBN 978-3-030-15679-4. - ↑ Lovett, Stephen (2019-12-16) (in en).
*Differential Geometry of Manifolds*. CRC Press. pp. 16. ISBN 978-0-429-60782-0. https://books.google.com/books?id=G1bGDwAAQBAJ. - ↑ Joel Hass, Christopher Heil, and Maurice Weir.
*Thomas' Calculus Early Transcendentals, 14e*. Pearson, 2018, p. 959. - ↑ Arrowsmith, D. K.; Place, C. M. (1992). "The Linearization Theorem".
*Dynamical Systems: Differential Equations, Maps, and Chaotic Behaviour*. London: Chapman & Hall. pp. 77–81. ISBN 0-412-39080-9. https://books.google.com/books?id=8qCcP7KNaZ0C&pg=PA77. - ↑ Hirsch, Morris; Smale, Stephen (1974).
*Differential Equations, Dynamical Systems and Linear Algebra*. ISBN 0-12-349550-4. - ↑ Liu, Shuangzhe; Leiva, Victor; Zhuang, Dan; Ma, Tiefeng; Figueroa-Zúñiga, Jorge I. (March 2022). "Matrix differential calculus with applications in the multivariate linear model and its diagnostics".
*Journal of Multivariate Analysis***188**: 104849. doi:10.1016/j.jmva.2021.104849. - ↑ Liu, Shuangzhe; Trenkler, Götz; Kollo, Tõnu; von Rosen, Dietrich; Baksalary, Oskar Maria (2023). "Professor Heinz Neudecker and matrix differential calculus" (in en).
*Statistical Papers*. doi:10.1007/s00362-023-01499-w.

## Further reading

- Gandolfo, Giancarlo (1996). "Comparative Statics and the Correspondence Principle".
*Economic Dynamics*(Third ed.). Berlin: Springer. pp. 305–330. ISBN 3-540-60988-1. https://books.google.com/books?id=ZMwXi67nhHQC&pg=PA305. - Protter, Murray H.; Morrey, Charles B. Jr. (1985). "Transformations and Jacobians".
*Intermediate Calculus*(Second ed.). New York: Springer. pp. 412–420. ISBN 0-387-96058-9.

## External links

- Hazewinkel, Michiel, ed. (2001), "Jacobian",
*Encyclopedia of Mathematics*, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=p/j054080 - Mathworld A more technical explanation of Jacobians

Original source: https://en.wikipedia.org/wiki/Jacobian matrix and determinant.
Read more |