On this post you will find what the Jacobian matrix is and how to calculate it. In addition, you have several solved Jacobian matrix exercises to practice. You will also see why the determinant of the Jacobian matrix, the Jacobian, is so important. Finally, we explain the applications that this type of matrix has.
Table of Contents
What is the Jacobian matrix?
The definition of the Jacobian matrix is as follows:
The Jacobian matrix is a matrix composed of the first-order partial derivatives of a multivariable function.
The formula for the Jacobian matrix is the following:
Therefore, Jacobian matrices will always have as many rows as vector components and the number of columns will match the number of variables of the function.
As a curiosity, the Jacobian matrix was named after Carl Gustav Jacobi, an important 19th century mathematician and professor who made important contributions to mathematics, in particular to the field of linear algebra.
Example of Jacobian matrix
Having seen the meaning of the Jacobian matrix, we are going to see step by step how to compute the Jacobian matrix of a multivariable function.
- Find the Jacobian matrix at the point (1,2) of the following function:
First of all, we calculate all the first-order partial derivatives of the function:
Now we apply the formula of the Jacobian matrix. In this case the function has two variables and two vector components, so the Jacobian matrix will be a 2×2 square matrix:
Once we have found the expression of the Jacobian matrix, we evaluate it at the point (1,2):
And finally, we perform the operations:
Once you have seen how to find the Jacobian matrix of a function, you can practice with several exercises solved step by step.
Practice problems on finding the Jacobian matrix
Problem 1
Compute the Jacobian matrix at the point (0, -2) of the following vector-valued function with 2 variables:
The function has two variables and two vector components, so the Jacobian matrix will be a square matrix of order 2:
Once we have calculated the expression of the Jacobian matrix, we evaluate it at the point (0, -2):
And finally, we perform all the calculations:
Problem 2
Calculate the Jacobian matrix of the following 2-variable function at the point (2, -1):
First, we apply the formula of the Jacobian matrix:
Then we evaluate the Jacobian matrix at the point (2, -1):
So the solution of the problem is:
Problem 3
Determine the Jacobian matrix at the point (2, -2,2) of the following function with 3 variables:
In this case the function has three variables and two scalar functions, therefore, the Jacobian matrix will be a rectangular 2×3 dimension matrix:
Once we have the Jacobian matrix of the multivariable function, we evaluate it at the point (2, -2,2):
We perform all the calculations:
Problem 4
Find the Jacobian matrix of the following multivariable function at the point (π, π):
In this case the function has two variables and vector components, therefore, the Jacobian matrix will be a rectangular matrix of size 3×2:
Secondly, we evaluate the Jacobian matrix at the point (π, π):
We compute all the operations:
So the Jacobian matrix of the vector-valued function at this point is:
Problem 5
Calculate the Jacobian matrix at the point (3,0,π) of the following function with 3 variables:
In this case, the function has three variables and three vector components, therefore, the Jacobian matrix will be a 3×3 square matrix:
Once we have found the Jacobian matrix, we evaluate it at the point (3,0,π):
We calculate all the operations:
And the result of the Jacobian matrix is:
Jacobian matrix determinant
The determinant of the Jacobian matrix is called Jacobian determinant, or simply the Jacobian. Note that the Jacobian determinant can only be calculated if the function has the same number of variables as vector components, since then the Jacobian matrix is a square matrix.
Jacobian determinant example
Let’s see an example of how to calculate the Jacobian determinant of a function with two variables:
First we calculate the Jacobian matrix of the function:
And now we take the determinant of the 2×2 matrix:
The Jacobian and the invertibility of a function
Now that you have seen the concept of the determinant of the Jacobian matrix, you may be wondering… what is it for?
Well, the Jacobian is used to determine whether a function can be inverted. The inverse function theorem states that if the Jacobian is nonzero, this function is invertible.
Note that this condition is necessary but not sufficient, that is, if the determinant is different from zero we can say that the matrix can be inverted, however, if the determinant is equal to 0 we don’t know whether the function has an inverse or not.
For example, in the example seen before, the determinant Jacobian results in In that case we can affirm that the function can always be inverted except at the point (0,0), because this point is the only one in which the Jacobian determinant is equal to zero and, therefore, we do not know whether the inverse function exists in this point.
➤ See also: inverse of a matrix
Applications of the Jacobian matrix
In addition to the utility that we have seen of the Jacobian, which determines whether a function is invertible, the Jacobian matrix has other applications.
The Jacobian matrix is used to calculate the critical points of a multivariate function, which are then classified into maximums, minimums or saddle points using the Hessian matrix. To find the critical points, you have to calculate the Jacobian matrix of the function, set it equal to 0 and solve the resulting equations.
Moreover, another application of the Jacobian matrix is found in the integration of functions with more than one variable, that is, in double, triple integrals, etc. Since the determinant of the Jacobian matrix allows a change of variable in multiple integrals according to the following formula:
Where T is the variable change function that relates the original variables to the new ones.
Finally, the Jacobian matrix can also be used to compute a linear approximation of any function around a point
great
Thanks!