Misplaced Pages

Jacobian matrix and determinant

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Jacobian matrix) Matrix of all first-order partial derivatives of a vector-valued function "Jacobian matrix" redirects here. For the operator, see Jacobi matrix (operator).
Part of a series of articles about
Calculus
a b f ( t ) d t = f ( b ) f ( a ) {\displaystyle \int _{a}^{b}f'(t)\,dt=f(b)-f(a)}
Differential
Definitions
Concepts
Rules and identities
Integral
Definitions
Integration by
Series
Convergence tests
Vector
Theorems
Multivariable
Formalisms
Definitions
Advanced
Specialized
Miscellanea

In vector calculus, the Jacobian matrix (/dʒəˈkoʊbiən/, /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. They are named after Carl Gustav Jacob Jacobi.

Motivation

The Jacobian can be understood by considering a unit area in the new coordinate space; and examining how that unit area transforms when mapped into xy coordinate space in which the integral is visually understood. The process involves taking partial derivatives with respect to the new coordinates, then applying the determinant and hence obtaining the Jacobian.

Definition

Suppose f : RR is a function such that each of its first-order partial derivatives exists on R. This function takes a point xR as input and produces the vector f(x) ∈ R as output. Then the Jacobian matrix of f, denoted JfR, is defined such that its (i,j) entry is f i x j {\textstyle {\frac {\partial f_{i}}{\partial x_{j}}}} , or explicitly J f = [ f x 1 f x n ] = [ T f 1 T f m ] = [ f 1 x 1 f 1 x n f m x 1 f m x n ] {\displaystyle \mathbf {J_{f}} ={\begin{bmatrix}{\dfrac {\partial \mathbf {f} }{\partial x_{1}}}&\cdots &{\dfrac {\partial \mathbf {f} }{\partial x_{n}}}\end{bmatrix}}={\begin{bmatrix}\nabla ^{\mathsf {T}}f_{1}\\\vdots \\\nabla ^{\mathsf {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}}} where T f i {\displaystyle \nabla ^{\mathsf {T}}f_{i}} is the transpose (row vector) of the gradient of the i {\displaystyle i} -th component.

The Jacobian matrix, whose entries are functions of x, is denoted in various ways; other common notations include Df, f {\displaystyle \nabla \mathbf {f} } , and ( f 1 , , f m ) ( x 1 , , x n ) {\textstyle {\frac {\partial (f_{1},\ldots ,f_{m})}{\partial (x_{1},\ldots ,x_{n})}}} . 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. This means that the function that maps y to f(x) + J(x) ⋅ (yx) is the best linear approximation of f(y) for all points y close to x. The linear map hJ(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 inverse function theorem for an explanation of this and 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 : RR is a scalar-valued function, the Jacobian matrix reduces to the row vector T f {\displaystyle \nabla ^{\mathsf {T}}f} ; this row vector of all first-order partial derivatives of f is the transpose of the gradient of f, i.e. J f = T f {\displaystyle \mathbf {J} _{f}=\nabla ^{\mathsf {T}}f} . Specializing further, when m = n = 1, that is when f : RR 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 Jf(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, then its differential is represented by Jf(p). In this case, the linear transformation represented by Jf(p) is the best linear approximation of f near the point p, in the sense that

f ( x ) f ( p ) = J f ( p ) ( x p ) + o ( x p ) ( as  x p ) , {\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} ),}

where o(‖xp‖) 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

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

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 : RR and g : RR satisfy the chain rule, namely J g f ( x ) = J g ( f ( x ) ) J f ( x ) {\displaystyle \mathbf {J} _{\mathbf {g} \circ \mathbf {f} }(\mathbf {x} )=\mathbf {J} _{\mathbf {g} }(\mathbf {f} (\mathbf {x} ))\mathbf {J} _{\mathbf {f} }(\mathbf {x} )} for x in R.

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

A nonlinear map f : R 2 R 2 {\displaystyle f\colon \mathbb {R} ^{2}\to \mathbb {R} ^{2}} sends a small square (left, in red) to a distorted parallelogram (right, in red). The Jacobian at a point gives the best linear approximation of the distorted parallelogram near that point (right, in translucent white), and the Jacobian determinant gives the ratio of the area of the approximating parallelogram to that of the original square.

If m = n, then f is a function from R 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 pR 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 f : RR is the Jacobian matrix of the inverse function. That is, the Jacobian matrix of the inverse function at a point p is:

J f 1 ( p ) = J f 1 ( f 1 ( p ) ) , {\displaystyle \mathbf {J} _{\mathbf {f} ^{-1}}(\mathbf {p} )={\mathbf {J} _{\mathbf {f} }^{-1}(\mathbf {f} ^{-1}(\mathbf {p} ))},}

and the Jacobian determinant is:

det ( J f 1 ( p ) ) = 1 det ( J f ( f 1 ( p ) ) ) . {\displaystyle \det(\mathbf {J} _{\mathbf {f} ^{-1}}(\mathbf {p} ))={\frac {1}{\det(\mathbf {J} _{\mathbf {f} }(\mathbf {f} ^{-1}(\mathbf {p} )))}}.}

If the Jacobian is continuous and nonsingular at the point p in R, then f is invertible when restricted to some neighbourhood of p. In other words, if the Jacobian determinant is not zero at a point, then the function is locally invertible near this point.

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

Main article: Critical point

If f : RR 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 a function f : RR, with (x, y) ↦ (f1(x, y), f2(x, y)), given by:

f ( [ x y ] ) = [ f 1 ( x , y ) f 2 ( x , y ) ] = [ x 2 y 5 x + sin y ] . {\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\\5x+\sin y\end{bmatrix}}.}

Then we have:

f 1 ( x , y ) = x 2 y {\displaystyle f_{1}(x,y)=x^{2}y}

and

f 2 ( x , y ) = 5 x + sin y {\displaystyle f_{2}(x,y)=5x+\sin y}

and the Jacobian matrix of f is

J f ( x , y ) = [ f 1 x f 1 y f 2 x f 2 y ] = [ 2 x y x 2 5 cos y ] {\displaystyle \mathbf {J} _{\mathbf {f} }(x,y)={\begin{bmatrix}{\dfrac {\partial f_{1}}{\partial x}}&{\dfrac {\partial f_{1}}{\partial y}}\\{\dfrac {\partial f_{2}}{\partial x}}&{\dfrac {\partial f_{2}}{\partial y}}\end{bmatrix}}={\begin{bmatrix}2xy&x^{2}\\5&\cos y\end{bmatrix}}}

and the Jacobian determinant is

det ( J f ( x , y ) ) = 2 x y cos y 5 x 2 . {\displaystyle \det(\mathbf {J} _{\mathbf {f} }(x,y))=2xy\cos y-5x^{2}.}

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 with components:

x = r cos φ ; y = r sin φ . {\displaystyle {\begin{aligned}x&=r\cos \varphi ;\\y&=r\sin \varphi .\end{aligned}}}

J F ( r , φ ) = [ x r x φ y r y φ ] = [ cos φ r sin φ sin φ r cos φ ] {\displaystyle \mathbf {J} _{\mathbf {F} }(r,\varphi )={\begin{bmatrix}{\frac {\partial x}{\partial r}}&{\frac {\partial x}{\partial \varphi }}\\{\frac {\partial y}{\partial r}}&{\frac {\partial y}{\partial \varphi }}\end{bmatrix}}={\begin{bmatrix}\cos \varphi &-r\sin \varphi \\\sin \varphi &r\cos \varphi \end{bmatrix}}}

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

F ( A ) f ( x , y ) d x d y = A f ( r cos φ , r sin φ ) r d r d φ . {\displaystyle \iint _{\mathbf {F} (A)}f(x,y)\,dx\,dy=\iint _{A}f(r\cos \varphi ,r\sin \varphi )\,r\,dr\,d\varphi .}

Example 3: spherical-Cartesian transformation

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

x = ρ sin φ cos θ ; y = ρ sin φ sin θ ; z = ρ cos φ . {\displaystyle {\begin{aligned}x&=\rho \sin \varphi \cos \theta ;\\y&=\rho \sin \varphi \sin \theta ;\\z&=\rho \cos \varphi .\end{aligned}}}

The Jacobian matrix for this coordinate change is:

J F ( ρ , φ , θ ) = [ x ρ x φ x θ y ρ y φ y θ z ρ z φ z θ ] = [ sin φ cos θ ρ cos φ cos θ ρ sin φ sin θ sin φ sin θ ρ cos φ sin θ ρ sin φ cos θ cos φ ρ sin φ 0 ] . {\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 }}\\{\dfrac {\partial y}{\partial \rho }}&{\dfrac {\partial y}{\partial \varphi }}&{\dfrac {\partial y}{\partial \theta }}\\{\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}}.}

The determinant is ρ 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 = ρ sin φ 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:

F ( U ) f ( x , y , z ) d x d y d z = U f ( ρ sin φ cos θ , ρ sin φ sin θ , ρ cos φ ) ρ 2 sin φ d ρ d φ d θ . {\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 .}

Example 4

The Jacobian matrix of the function F : RR with components

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 {\displaystyle {\begin{aligned}y_{1}&=x_{1}\\y_{2}&=5x_{3}\\y_{3}&=4x_{2}^{2}-2x_{3}\\y_{4}&=x_{3}\sin x_{1}\end{aligned}}}

is

J F ( x 1 , x 2 , x 3 ) = [ y 1 x 1 y 1 x 2 y 1 x 3 y 2 x 1 y 2 x 2 y 2 x 3 y 3 x 1 y 3 x 2 y 3 x 3 y 4 x 1 y 4 x 2 y 4 x 3 ] = [ 1 0 0 0 0 5 0 8 x 2 2 x 3 cos x 1 0 sin x 1 ] . {\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}}}\\{\dfrac {\partial y_{2}}{\partial x_{1}}}&{\dfrac {\partial y_{2}}{\partial x_{2}}}&{\dfrac {\partial y_{2}}{\partial x_{3}}}\\{\dfrac {\partial y_{3}}{\partial x_{1}}}&{\dfrac {\partial y_{3}}{\partial x_{2}}}&{\dfrac {\partial y_{3}}{\partial x_{3}}}\\{\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&8x_{2}&-2\\x_{3}\cos x_{1}&0&\sin x_{1}\end{bmatrix}}.}

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

Example 5

The Jacobian determinant of the function F : RR with components

y 1 = 5 x 2 y 2 = 4 x 1 2 2 sin ( x 2 x 3 ) y 3 = x 2 x 3 {\displaystyle {\begin{aligned}y_{1}&=5x_{2}\\y_{2}&=4x_{1}^{2}-2\sin(x_{2}x_{3})\\y_{3}&=x_{2}x_{3}\end{aligned}}}

is

| 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 | = 8 x 1 | 5 0 x 3 x 2 | = 40 x 1 x 2 . {\displaystyle {\begin{vmatrix}0&5&0\\8x_{1}&-2x_{3}\cos(x_{2}x_{3})&-2x_{2}\cos(x_{2}x_{3})\\0&x_{3}&x_{2}\end{vmatrix}}=-8x_{1}{\begin{vmatrix}5&0\\x_{3}&x_{2}\end{vmatrix}}=-40x_{1}x_{2}.}

From this we see that F reverses orientation near those points where x1 and x2 have the same sign; the function is locally invertible everywhere except near points where x1 = 0 or x2 = 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 x ˙ = F ( x ) {\displaystyle {\dot {\mathbf {x} }}=F(\mathbf {x} )} , where x ˙ {\displaystyle {\dot {\mathbf {x} }}} is the (component-wise) derivative of x {\displaystyle \mathbf {x} } with respect to the evolution parameter t {\displaystyle t} (time), and F : R n R n {\displaystyle F\colon \mathbb {R} ^{n}\to \mathbb {R} ^{n}} is differentiable. If F ( x 0 ) = 0 {\displaystyle F(\mathbf {x} _{0})=0} , then x 0 {\displaystyle \mathbf {x} _{0}} 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 J F ( x 0 ) {\displaystyle \mathbf {J} _{F}\left(\mathbf {x} _{0}\right)} , the Jacobian of F {\displaystyle F} at the stationary point. 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.

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.

See also

Notes

  1. 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

  1. "Jacobian - Definition of Jacobian in English by Oxford Dictionaries". Oxford Dictionaries - English. Archived from the original on 1 December 2017. Retrieved 2 May 2018.
  2. "the definition of jacobian". Dictionary.com. Archived from the original on 1 December 2017. Retrieved 2 May 2018.
  3. Team, Forvo. "Jacobian pronunciation: How to pronounce Jacobian in English". forvo.com. Retrieved 2 May 2018.
  4. W., Weisstein, Eric. "Jacobian". mathworld.wolfram.com. Archived from the original on 3 November 2017. Retrieved 2 May 2018.{{cite web}}: CS1 maint: multiple names: authors list (link)
  5. Soh, Caleb (2024-10-20). Jacobian motivation, intuition, derivation/proof. Retrieved 2024-10-22 – via YouTube.
  6. Larson, Ron; Edwards, Bruce H. (2017). Calculus: early transcendental functions (7th ed.). Boston, MA: Cengage Learning. p. 1033. ISBN 978-1-337-55251-6.
  7. Stewart, James (2021). Calculus (9th ed.). Cengage. pp. 1110–1112. ISBN 978-0-357-11351-6.
  8. Holder, Allen; Eichholz, Joseph (2019). An Introduction to computational science. International Series in Operations Research & Management Science. Cham, Switzerland: Springer. p. 53. ISBN 978-3-030-15679-4.
  9. Lovett, Stephen (2019-12-16). Differential Geometry of Manifolds. CRC Press. p. 16. ISBN 978-0-429-60782-0.
  10. Joel Hass, Christopher Heil, and Maurice Weir. Thomas' Calculus Early Transcendentals, 14e. Pearson, 2018, p. 959.
  11. 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.
  12. Hirsch, Morris; Smale, Stephen (1974). Differential Equations, Dynamical Systems and Linear Algebra. ISBN 0-12-349550-4.
  13. 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.
  14. Liu, Shuangzhe; Trenkler, Götz; Kollo, Tõnu; von Rosen, Dietrich; Baksalary, Oskar Maria (2023). "Professor Heinz Neudecker and matrix differential calculus". Statistical Papers. 65 (4): 2605–2639. doi:10.1007/s00362-023-01499-w. S2CID 263661094.

Further reading

External links

Matrix classes
Explicitly constrained entries
Constant
Conditions on eigenvalues or eigenvectors
Satisfying conditions on products or inverses
With specific applications
Used in statistics
Used in graph theory
Used in science and engineering
Related terms
Categories: