Let F:Ω⊆Rn→Rm be a vector-valued function, written F(x)=(f1(x),f2(x),…,fm(x)), where each fi:Ω→R is a scalar function.
Definition. The function F is differentiable at x0∈Ω if each of its components fi is differentiable at x0. In that case the differential of F at x0 is the linear map represented by the Jacobian matrix JF(x0).
Example.F(x,y)=(x2y,x+y) has JF=(2xy1x21); at (1,2) it equals (4111).
Each row i of the Jacobian matrix is the gradient of the component fi. Rows = components of F (how many outputs, m), columns = variables (how many inputs, n).
As in the scalar case, differentiability means F(x)=F(x0)+JF(x0)(x−x0)+o(∥x−x0∥), with x−x0 written as a column vector: the Jacobian is the "derivative" of F.
Example.F(x,y)=(xy,x+y2,ex), from R2 to R3:
JF(x,y)=y1exx2y0
a 3×2 matrix. For m=1 the Jacobian is the gradient written as a row; for n=1 (a curve γ(t)) it is the column of derivatives γ′(t).
Chain rule
Let g:Rn→Rk and f:Rk→Rm be differentiable functions. The composite function H=f∘g (defined by H(x)=f(g(x))) has Jacobian matrix equal to the product of the Jacobian matrices of the individual functions:
JH(x)=Jf(g(x))⋅Jg(x)
The product of an m×k by a k×n matrix gives an m×n matrix, as it must for a function from Rn to Rm. It generalizes (f∘g)′(x)=f′(g(x))g′(x): the Jacobian of f must be evaluated at the point g(x), not at x.
Special cases
Derivative along a curve: if g(t)=γ(t) is a curve in Rn and f is scalar (m=1), the rule becomes:
dtdf(γ(t))=∇f(γ(t))⋅γ′(t)
This is the dot product of the gradient of f and the velocity vector of the curve.
Example.f(x,y)=x2y along the circle γ(t)=(cost,sint). ∇f=(2xy,x2), γ′(t)=(−sint,cost):
dtdf(γ(t))=2costsint(−sint)+cos2tcost=cos3t−2costsin2t
Direct check: f(γ(t))=cos2tsint, whose derivative is −2costsint⋅sint+cos2tcost, the same result.
Functions of two variables: if f=f(u,v) with u=u(x,y) and v=v(x,y), the matrix Jf is 1×2 and Jg is 2×2. The derivative with respect to x is:
∂x∂f=∂u∂f∂x∂u+∂v∂f∂x∂v
(and the same with y in place of x): one sums over all the "routes" through which x influences f.
Example (derivatives in polar coordinates). If g(ρ,θ)=f(ρcosθ,ρsinθ), with x=ρcosθ and y=ρsinθ:
∂ρ∂g=fxcosθ+fysinθ,∂θ∂g=−fxρsinθ+fyρcosθ
with fx,fy evaluated at (ρcosθ,ρsinθ). For f=x2+y2: gρ=2xcosθ+2ysinθ=2ρ and gθ=0, consistent with g=ρ2.
Changes of coordinates and invertibility
A change of coordinates F:Ω⊆Rn→Rn is regulara C^1 function whose Jacobian determinant is nonzero (except at most on a set of measure zero).
Local invertibility theorem. Let F be a regular transformation. If det(JF(x0))=0, then there locally exists an inverse function F−1 whose Jacobian matrix is:
JF−1(y)=[JF(x)]−1with y=F(x)
Example.F(x,y)=(x+y,x−y) has detJF=−2=0 and JF−1=JF−1=(1/21/21/2−1/2).
Example: polar coordinates in R2
Given x=ρcosθ and y=ρsinθ, the Jacobian is:
JF(ρ,θ)=(cosθsinθ−ρsinθρcosθ)
The determinant is det(JF)=ρcos2θ+ρsin2θ=ρ. It is nonzero where ρ=0: there the transformation is locally invertible; all points with ρ=0 go to the origin.
Cylindrical and spherical coordinates in R3
Cylindrical:x=ρcosθ, y=ρsinθ, z=z. The Jacobian has the polar block and a 1 at the bottom right, so detJ=ρ; singular on the z axis.
Spherical:x=ρsinφcosθ, y=ρsinφsinθ, z=ρcosφ, with ρ≥0, φ∈[0,π] (angle from the z axis), θ∈[0,2π]. With the variables in the order (ρ,φ,θ) the determinant equals ρ2sinφ (swapping the order of two variables only changes the sign); in absolute value, which is what is needed in integrals, ∣detJ∣=ρ2sinφ. Singular for ρ=0 and for sinφ=0, i.e. on the z axis.
Local does not mean global
F(x,y)=(excosy,exsiny) has
JF=(excosyexsiny−exsinyexcosy),detJF=e2x(cos2y+sin2y)=e2x>0
at every point, so it is locally invertible everywhere. But it is not injective: F(x,y)=F(x,y+2π). The theorem guarantees an inverse only in a neighbourhood of each point.
Common mistakes
Order of the product: remember that the Jacobian of the composite follows the order Jf⋅Jg (outer-inner). Reversing the order leads to incompatible dimensions or wrong results.
Confusing singular points and globality:det(JF)=0 guarantees only local invertibility. For instance, in polar coordinates the origin (ρ=0) is not invertible and the map is not globally injective (because of the periodicity of θ).
Matrix dimensions: getting the number of rows and columns wrong. If f:Rn→Rm, the matrix must always be m×n.
Versione ripasso
Jacobian. For F=(f1,…,fm):Ω⊆Rn→Rm the m×n matrix is
JF(x)=(∂xj∂fi(x))ij
Each row is the gradient of a component. Example: F=(x2y,x+y) has JF=(2xy1x21), which at (1,2) equals (4111). With n=1 (a curve) it is the column of the γ′(t).
Chain rule. For H=f∘g:
JH(x)=Jf(g(x))⋅Jg(x)
The Jacobian of f is evaluated at the point g(x), and the product is m×k times k×n.
Along a curve: dtdf(γ(t))=∇f(γ(t))⋅γ′(t). Example: f=x2y on (cost,sint) gives cos3t−2costsin2t, which matches the derivative of cos2tsint.
Two variables: ∂x∂f=∂u∂f∂x∂u+∂v∂f∂x∂v, summing over all the routes through which x acts.
Polar: if g(ρ,θ)=f(ρcosθ,ρsinθ), then gρ=fxcosθ+fysinθ and gθ=ρ(−fxsinθ+fycosθ). For f=x2+y2 we get gρ=2ρ, gθ=0.
Local invertibility. If F:Ω→Rn is C1 and detJF(x0)=0, there is locally an inverse with JF−1(y)=[JF(x)]−1, y=F(x).
Example: F=(x+y,x−y) has det=−2 and JF−1=(212121−21).
Jacobians of the coordinate systems.
Polar: detJ=ρ, vanishing only at the origin.
Cylindrical: detJ=ρ, singular on the z axis.
Spherical, with order (ρ,φ,θ): ∣detJ∣=ρ2sinφ, singular for ρ=0 and on the z axis.
Local does not mean global.F=(excosy,exsiny) has detJ=e2x>0 everywhere, but F(x,y)=F(x,y+2π): it is not injective. The theorem gives an inverse only in a neighbourhood of each point.
Typical mistakes.
Reversing the order of the product: it is Jf(g(x))⋅Jg(x), not the opposite.