 #jsDisabledContent { display:none; } My Account |  Register |  Help Flag as Inappropriate This article will be permanently flagged as inappropriate and made unaccessible to everyone. Are you certain this article is inappropriate?          Excessive Violence          Sexual Content          Political / Social Email this Article Email Address:

# Jacobian matrix

Article Id: WHEBN0000201656
Reproduction Date:

 Title: Jacobian matrix Author: World Heritage Encyclopedia Language: English Subject: Collection: Publisher: World Heritage Encyclopedia Publication Date:

### Jacobian matrix

In vector calculus, the Jacobian matrix (, ) is the matrix of all first-order partial derivatives of a vector-valued function. Specifically, suppose is a function (which takes as input real n-tuples and produces as output real m-tuples). Such a function is given by m real-valued component functions, $F_1\left(x_1,\ldots,x_n\right),\ldots,F_m\left(x_1,\ldots,x_n\right)$. The partial derivatives of all these functions with respect to the variables $x_1,\ldots,x_n$ (if they exist) can be organized in an m-by-n matrix, the Jacobian matrix $J$ of $F$, as follows:

$J=\begin\left\{bmatrix\right\} \dfrac\left\{\partial F_1\right\}\left\{\partial x_1\right\} & \cdots & \dfrac\left\{\partial F_1\right\}\left\{\partial x_n\right\} \\ \vdots & \ddots & \vdots \\ \dfrac\left\{\partial F_m\right\}\left\{\partial x_1\right\} & \cdots & \dfrac\left\{\partial F_m\right\}\left\{\partial x_n\right\} \end\left\{bmatrix\right\}.$

This matrix, whose entries are functions of $x_1,\ldots,x_n$, is also denoted by $J_F\left(x_1,\ldots,x_n\right)$ and $\frac\left\{\partial\left(F_1,\ldots,F_m\right)\right\}\left\{\partial\left(x_1,\ldots,x_n\right)\right\}$. (Note that some books define the Jacobian as the transpose of the matrix given above.)

The Jacobian matrix is important because if the function F is differentiable at a point $p=\left(x_1,\ldots,x_n\right)$ (this is a slightly stronger condition than merely requiring that all partial derivatives exist there), then the Jacobian matrix defines a linear map $\mathbb\left\{R\right\}^n \rightarrow \mathbb\left\{R\right\}^m$, which is the best linear approximation of the function F near the point p. This linear map is thus the generalization the usual notion of derivative, and is called the derivative or the differential of F at p.

In the case $m=n$ the Jacobian matrix is a square matrix, and its determinant, a function of $x_1,\ldots,x_n$, is the Jacobian determinant of F. It carries important information about the local behavior of F. In particular, the function F is locally invertible in the neighborhood of a point p if and only if the Jacobian determinant is nonzero at p (see Jacobian conjecture). The Jacobian determinant occurs also when changing the variables in multi-variable integrals (see substitution rule for multiple variables).

If m = 1, the Jacobian matrix has a single row, and may be identified with a vector, which is the gradient.

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

## A simple example

Consider the function given by

$F\left(x,y\right)=\begin\left\{bmatrix\right\} x^2 y \\$
                             5x + \sin(y)


\end{bmatrix}. Then we have

$F_1\left(x,y\right)=x^2 y$

and

$F_2\left(x,y\right)=5x + \sin\left(y\right)$

and the Jacobian matrix of F is

$J_F\left(x,y\right)=\begin\left\{bmatrix\right\} \dfrac\left\{\partial F_1\right\}\left\{\partial x\right\} & \dfrac\left\{\partial F_1\right\}\left\{\partial y\right\}\\$
                               \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\left(J_F\left(x,y\right)\right)=2xy \cos\left(y\right) - 5x^2.$

## Jacobian matrix

The Jacobian generalizes the gradient of a scalar-valued function of multiple variables, which itself generalizes the derivative of a scalar-valued function of a single variable. In other words, the Jacobian for a scalar-valued multivariable function is the gradient and that of a scalar-valued function of single variable is simply its derivative. The Jacobian can also be thought of as describing the amount of "stretching", "rotating" or "transforming" that a transformation imposes locally. For example, if $\left(x_2,y_2\right)=f\left(x_1,y_1\right)$ is used to transform an image, the Jacobian of $f$, $J\left(x_1,y_1\right)$ describes how the image in the neighborhood of $\left(x_1,y_1\right)$ is transformed.

If a function is differentiable at a point, its derivative is given in coordinates by the Jacobian, but a function doesn't need to be differentiable for the Jacobian to be defined, since only the partial derivatives are required to exist.

If p is a point in Rn and F is differentiable at p, then its derivative is given by JF(p). In this case, the linear map described by JF(p) is the best linear approximation of F near the point p, in the sense that

$F\left(\mathbf\left\{x\right\}\right) = F\left(\mathbf\left\{p\right\}\right) + J_F\left(\mathbf\left\{p\right\}\right)\left(\mathbf\left\{x\right\}-\mathbf\left\{p\right\}\right) + o\left(\|\mathbf\left\{x\right\}-\mathbf\left\{p\right\}\|\right)$

for x close to p and where o is the little o-notation (for $x\to p$) and $\|\mathbf\left\{x\right\}-\mathbf\left\{p\right\}\|$ is the distance between x and p.

Compare this to a Taylor series for a scalar function of a scalar argument, truncated to first order:

$f\left(x\right) = f\left(p\right) + f\text{'}\left(p\right) \left( x - p \right) + o\left(x-p\right).$

In a sense, both the gradient and Jacobian are "first derivatives" Template:Mdash the former the first derivative of a scalar function of several variables, the latter the first derivative of a vector function of several variables.

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.

### 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 : RnRn is continuous and nonsingular at the point p in Rn, then F is invertible when restricted to some neighborhood of p and

$\left(J_\left\{F^\left\{-1\right\}\right\}\right)\left(F\left(p\right)\right) = \left[ \left(J_F\right)\left(p\right) \right]^\left\{-1\right\}.\$

### Uses

#### Dynamical systems

Consider a dynamical system of the form x' = F(x), where x' is the (component-wise) time derivative of x, and F : RnRn is continuous and differentiable. If F(x0) = 0, then x0 is a stationary point (also called a critical point, not to be confused with a fixed point). The behavior of the system near a stationary point is related to the eigenvalues of JF(x0), the Jacobian of F at the stationary point. Specifically, if the eigenvalues all have real parts that are less than 0, then the system is stable near the stationary point, if any eigenvalue has a real part that is greater than 0, then the point is unstable. If the largest real part of the eigenvalues is equal to 0, the Jacobian matrix does not allow for an evaluation of the stability.

#### Newton's method

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

The following is the detail code in MATLAB (although there is a built in 'jacobian' command)

   function s = newton(f, x, tol)
% f is a multivariable function handle, x is a starting point, both given as row vectors
% s is solution of f(s)=0 found by Newton's method
if nargin == 2
tol = 10^(-5);
end
while 1
% if x and f(x) are row vectors, we need transpose operations here
y = x' - jacob(f, x)\f(x)';             % get the next point
if norm(f(y))
function j = jacob(f, x)            % approximately calculate Jacobian matrix
k = length(x);
j = zeros(k, k);
x2 = x;
dx = 0.001;
for m = 1: k
x2(m) = x(m)+dx;
j(m, :) = (f(x2)-f(x))/dx;      % partial derivatives in m-th row
x2(m) = x(m);
end

Jacobian determinant
If m = n, then F is a function from n-space to n-space 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 called "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 ∈ Rn 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 rectilinear n-dimensional dV element is in general a parallelapiped 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 solve systems of differential equations at an equilibrium point or approximate solutions near an equilibrium point.

Further examples
Example 1. The transformation from spherical coordinates (r, θ, φ) to Cartesian coordinates (x1, x2, x3), is given by the function F : R+ × [0,π] × [0,2π) → R3 with components:

$x_1 = r\, \sin\theta\, \cos\phi \,$

$x_2 = r\, \sin\theta\, \sin\phi \,$

$x_3 = r\, \cos\theta. \,$

The Jacobian matrix for this coordinate change is

$J_F\left(r,\theta,\phi\right) =\begin\left\{bmatrix\right\}$

\dfrac{\partial x_1}{\partial r} & \dfrac{\partial x_1}{\partial \theta} & \dfrac{\partial x_1}{\partial \phi} \\[3pt]
\dfrac{\partial x_2}{\partial r} & \dfrac{\partial x_2}{\partial \theta} & \dfrac{\partial x_2}{\partial \phi} \\[3pt]
\dfrac{\partial x_3}{\partial r} & \dfrac{\partial x_3}{\partial \theta} & \dfrac{\partial x_3}{\partial \phi} \\
\end{bmatrix}=\begin{bmatrix}
\sin\theta\, \cos\phi &  r\, \cos\theta\, \cos\phi  & -r\, \sin\theta\, \sin\phi \\
\sin\theta\, \sin\phi &  r\, \cos\theta\, \sin\phi  &  r\, \sin\theta\, \cos\phi \\
\cos\theta            &  -r\, \sin\theta            &             0
\end{bmatrix}.
The determinant is r2 sin θ.  As an example, since dV = dx1 dx2  dx3 this determinant implies that the differential volume element dV = r2 sin θ dr dθ dϕ. Nevertheless this determinant varies with coordinates.
Example 2. The Jacobian matrix of the function F : R3 → R4 with components

$y_1 = x_1 \,$

$y_2 = 5x_3 \,$

$y_3 = 4x_2^2 - 2x_3 \,$

$y_4 = x_3 \sin\left(x_1\right) \,$

is

$J_F\left(x_1,x_2,x_3\right) =\begin\left\{bmatrix\right\}$

\dfrac{\partial y_1}{\partial x_1} & \dfrac{\partial y_1}{\partial x_2} & \dfrac{\partial y_1}{\partial x_3} \\[3pt]
\dfrac{\partial y_2}{\partial x_1} & \dfrac{\partial y_2}{\partial x_2} & \dfrac{\partial y_2}{\partial x_3} \\[3pt]
\dfrac{\partial y_3}{\partial x_1} & \dfrac{\partial y_3}{\partial x_2} & \dfrac{\partial y_3}{\partial x_3} \\[3pt]
\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 need not be a square matrix.
Example 3.

$x\,=r\,\cos\,\phi;$

$y\,=r\,\sin\,\phi.$

$J\left(r,\phi\right)=\begin\left\{bmatrix\right\} \left\{\partial x\over\partial r\right\} & \left\{\partial x\over \partial\phi\right\} \\ \left\{\partial y\over \partial r\right\} & \left\{\partial y\over \partial\phi\right\} \end\left\{bmatrix\right\}=\begin\left\{bmatrix\right\} \left\{\partial \left(r\cos\phi\right)\over \partial r\right\} & \left\{\partial \left(r\cos\phi\right)\over \partial \phi\right\} \\ \left\{\partial\left(r\sin\phi\right)\over \partial r\right\} & \left\{\partial \left(r\sin\phi\right)\over \partial\phi\right\} \end\left\{bmatrix\right\}=\begin\left\{bmatrix\right\} \cos\phi & -r\sin\phi \\ \sin\phi & r\cos\phi \end\left\{bmatrix\right\}$
The Jacobian determinant is equal to $r$.
This shows how an integral in the Cartesian coordinate system is transformed into an integral in the polar coordinate system:

$\iint_A dx\, dy= \iint_B r \,dr\, d\phi.$

Example 4.
The Jacobian determinant of the function F : R3 → R3 with components

\begin\left\{align\right\}

y_1 &= 5x_2 \\
y_2 &= 4x_1^2 - 2 \sin (x_2x_3) \\
y_3 &= x_2 x_3

\end{align}
is

$\begin\left\{vmatrix\right\}$

0 & 5 & 0 \\
8 x_1 & -2 x_3 \cos(x_2 x_3) & -2x_2\cos(x_2 x_3) \\
0 & x_3 & x_2

\end{vmatrix} = -8 x_1 \cdot \begin{vmatrix}

5 & 0 \\
x_3 & x_2

\end{vmatrix} = -40 x_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 you start with a tiny object around the point (1,2,3) and apply F to that object, you will get a resulting object with approximately 40×1×2=80 times the volume of the original one.