Exact differential

From HandWiki
Revision as of 18:58, 6 February 2024 by John Stpola (talk | contribs) (fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Type of infinitesimal in calculus


In multivariate calculus, a differential or differential form is said to be exact or perfect (exact differential), as contrasted with an inexact differential, if it is equal to the general differential [math]\displaystyle{ dQ }[/math] for some differentiable function [math]\displaystyle{ Q }[/math] in an orthogonal coordinate system (hence [math]\displaystyle{ Q }[/math] is a multivariable function whose variables are independent, as they are always expected to be when treated in multivariable calculus).

An exact differential is sometimes also called a total differential, or a full differential, or, in the study of differential geometry, it is termed an exact form.

The integral of an exact differential over any integral path is path-independent, and this fact is used to identify state functions in thermodynamics.

Overview

Definition

Even if we work in three dimensions here, the definitions of exact differentials for other dimensions are structurally similar to the three dimensional definition. In three dimensions, a form of the type

[math]\displaystyle{ A(x,y,z) \,dx + B(x,y,z) \,dy + C(x,y,z) \,dz }[/math]

is called a differential form. This form is called exact on an open domain [math]\displaystyle{ D \subset \mathbb{R}^3 }[/math] in space if there exists some differentiable scalar function [math]\displaystyle{ Q = Q(x,y,z) }[/math] defined on [math]\displaystyle{ D }[/math] such that

[math]\displaystyle{ dQ \equiv \left ( \frac{\partial Q}{\partial x} \right )_{y,z} \, dx + \left ( \frac{\partial Q}{\partial y} \right )_{x,z} \, dy + \left ( \frac{\partial Q}{\partial z} \right )_{x,y} \, dz, }[/math]   [math]\displaystyle{ dQ = A \, dx + B \, dy + C \, dz }[/math]

throughout [math]\displaystyle{ D }[/math], where [math]\displaystyle{ x,y,z }[/math] are orthogonal coordinates (e.g., Cartesian, cylindrical, or spherical coordinates). In other words, in some open domain of a space, a differential form is an exact differential if it is equal to the general differential of a differentiable function in an orthogonal coordinate system.

Note: In this mathematical expression, the subscripts outside the parenthesis indicate which variables are being held constant during differentiation. Due to the definition of the partial derivative, these subscripts are not required, but they are explicitly shown here as reminders.

Integral path independence

The exact differential for a differentiable scalar function [math]\displaystyle{ Q }[/math] defined in an open domain [math]\displaystyle{ D \subset \mathbb{R}^n }[/math] is equal to [math]\displaystyle{ dQ = \nabla Q \cdot d \mathbf{r} }[/math], where [math]\displaystyle{ \nabla Q }[/math] is the gradient of [math]\displaystyle{ Q }[/math], [math]\displaystyle{ \cdot }[/math] represents the scalar product, and [math]\displaystyle{ d \mathbf{r} }[/math] is the general differential displacement vector, if an orthogonal coordinate system is used. If [math]\displaystyle{ Q }[/math] is of differentiability class [math]\displaystyle{ C^1 }[/math] (continuously differentiable), then [math]\displaystyle{ \nabla Q }[/math] is a conservative vector field for the corresponding potential [math]\displaystyle{ Q }[/math] by the definition. For three dimensional spaces, expressions such as [math]\displaystyle{ d \mathbf{r} = (dx, dy, dz) }[/math] and [math]\displaystyle{ \nabla Q = (\frac{\partial Q}{\partial x}, \frac{\partial Q}{\partial y},\frac{\partial Q}{\partial z}) }[/math] can be made.

The gradient theorem states

[math]\displaystyle{ \int _{i}^{f} dQ = \int _{i}^{f}\nabla Q (\mathbf {r} )\cdot d \mathbf {r} = Q \left(f \right) - Q \left(i \right) }[/math]

that does not depend on which integral path between the given path endpoints [math]\displaystyle{ i }[/math] and [math]\displaystyle{ f }[/math] is chosen. So it is concluded that the integral of an exact differential is independent of the choice of an integral path between given path endpoints (path independence).

For three dimensional spaces, if [math]\displaystyle{ \nabla Q }[/math] defined on an open domain [math]\displaystyle{ D \subset \mathbb{R}^3 }[/math] is of differentiability class [math]\displaystyle{ C^1 }[/math] (equivalently [math]\displaystyle{ Q }[/math] is of [math]\displaystyle{ C^2 }[/math]), then this integral path independence can also be proved by using the vector calculus identity [math]\displaystyle{ \nabla \times ( \nabla Q ) = \mathbf{0} }[/math] and the Stokes' theorem.

[math]\displaystyle{ \oint _{\partial \Sigma }\nabla Q \cdot d \mathbf {r} = \iint _{\Sigma }(\nabla \times \nabla Q)\cdot d \mathbf {a} = 0 }[/math]

for a simply closed loop [math]\displaystyle{ \partial \Sigma }[/math] with the smooth oriented surface [math]\displaystyle{ \Sigma }[/math] in it. If the open domain [math]\displaystyle{ D }[/math] is simply connected open space (roughly speaking, a single piece open space without a hole within it), then any irrotational vector field (defined as a [math]\displaystyle{ C^1 }[/math] vector field [math]\displaystyle{ \mathbf{v} }[/math] which curl is zero, i.e., [math]\displaystyle{ \nabla \times \mathbf{v} = \mathbf{0} }[/math]) has the path independence by the Stokes' theorem, so the following statement is made; In a simply connected open region, any [math]\displaystyle{ C^1 }[/math] vector field that has the path-independence property (so it is a conservative vector field.) must also be irrotational and vise versa. The equality of the path independence and conservative vector fields is shown here.

Thermodynamic state function

In thermodynamics, when [math]\displaystyle{ dQ }[/math] is exact, the function [math]\displaystyle{ Q }[/math] is a state function of the system: a mathematical function which depends solely on the current equilibrium state, not on the path taken to reach that state. Internal energy [math]\displaystyle{ U }[/math], Entropy [math]\displaystyle{ S }[/math], Enthalpy [math]\displaystyle{ H }[/math], Helmholtz free energy [math]\displaystyle{ A }[/math], and Gibbs free energy [math]\displaystyle{ G }[/math] are state functions. Generally, neither work [math]\displaystyle{ W }[/math] nor heat [math]\displaystyle{ Q }[/math] is a state function. (Note: [math]\displaystyle{ Q }[/math] is commonly used to represent heat in physics. It should not be confused with the use earlier in this article as the parameter of an exact differential.)

One dimension

In one dimension, a differential form

[math]\displaystyle{ A(x) \, dx }[/math]

is exact if and only if [math]\displaystyle{ A }[/math] has an antiderivative (but not necessarily one in terms of elementary functions). If [math]\displaystyle{ A }[/math] has an antiderivative and let [math]\displaystyle{ Q }[/math] be an antiderivative of [math]\displaystyle{ A }[/math] so [math]\displaystyle{ \frac{dQ}{dx} = A }[/math], then [math]\displaystyle{ A(x) \, dx }[/math] obviously satisfies the condition for exactness. If [math]\displaystyle{ A }[/math] does not have an antiderivative, then we cannot write [math]\displaystyle{ dQ = \frac{dQ}{dx}dx }[/math] with [math]\displaystyle{ A = \frac{dQ}{dx} }[/math] for a differentiable function [math]\displaystyle{ Q }[/math] so [math]\displaystyle{ A(x) \, dx }[/math] is inexact.

Two and three dimensions

By symmetry of second derivatives, for any "well-behaved" (non-pathological) function [math]\displaystyle{ Q }[/math], we have

[math]\displaystyle{ \frac{\partial ^2 Q}{\partial x \, \partial y} = \frac{\partial ^2 Q}{\partial y \, \partial x}. }[/math]

Hence, in a simply-connected region R of the xy-plane, where [math]\displaystyle{ x,y }[/math] are independent,[1] a differential form

[math]\displaystyle{ A(x, y)\,dx + B(x, y)\,dy }[/math]

is an exact differential if and only if the equation

[math]\displaystyle{ \left( \frac{\partial A}{\partial y} \right)_x = \left( \frac{\partial B}{\partial x} \right)_y }[/math]

holds. If it is an exact differential so [math]\displaystyle{ A=\frac{\partial Q}{\partial x} }[/math] and [math]\displaystyle{ B=\frac{\partial Q}{\partial y} }[/math], then [math]\displaystyle{ Q }[/math] is a differentiable (smoothly continuous) function along [math]\displaystyle{ x }[/math] and [math]\displaystyle{ y }[/math], so [math]\displaystyle{ \left( \frac{\partial A}{\partial y} \right)_x = \frac{\partial ^2 Q}{\partial y \partial x} = \frac{\partial ^2 Q}{\partial x \partial y} = \left( \frac{\partial B}{\partial x} \right)_y }[/math]. If [math]\displaystyle{ \left( \frac{\partial A}{\partial y} \right)_x = \left( \frac{\partial B}{\partial x} \right)_y }[/math] holds, then [math]\displaystyle{ A }[/math] and [math]\displaystyle{ B }[/math] are differentiable (again, smoothly continuous) functions along [math]\displaystyle{ y }[/math] and [math]\displaystyle{ x }[/math] respectively, and [math]\displaystyle{ \left( \frac{\partial A}{\partial y} \right)_x = \frac{\partial ^2 Q}{\partial y \partial x} = \frac{\partial ^2 Q}{\partial x \partial y} = \left( \frac{\partial B}{\partial x} \right)_y }[/math] is only the case.

For three dimensions, in a simply-connected region R of the xyz-coordinate system, by a similar reason, a differential

[math]\displaystyle{ dQ = A(x, y, z) \, dx + B(x, y, z) \, dy + C(x, y, z) \, dz }[/math]

is an exact differential if and only if between the functions A, B and C there exist the relations

[math]\displaystyle{ \left( \frac{\partial A}{\partial y} \right)_{x,z} \!\!\!= \left( \frac{\partial B}{\partial x} \right)_{y,z} }[/math]; [math]\displaystyle{ \left( \frac{\partial A}{\partial z} \right)_{x,y} \!\!\!= \left( \frac{\partial C}{\partial x} \right)_{y,z} }[/math]; [math]\displaystyle{ \left( \frac{\partial B}{\partial z} \right)_{x,y} \!\!\!= \left( \frac{\partial C}{\partial y} \right)_{x,z}. }[/math]

These conditions are equivalent to the following sentence: If G is the graph of this vector valued function then for all tangent vectors X,Y of the surface G then s(XY) = 0 with s the symplectic form.

These conditions, which are easy to generalize, arise from the independence of the order of differentiations in the calculation of the second derivatives. So, in order for a differential dQ, that is a function of four variables, to be an exact differential, there are six conditions (the combination [math]\displaystyle{ C(4,2)=6 }[/math]) to satisfy.

Partial differential relations

If a differentiable function [math]\displaystyle{ z(x,y) }[/math] is one-to-one (injective) for each independent variable, e.g., [math]\displaystyle{ z(x,y) }[/math] is one-to-one for [math]\displaystyle{ x }[/math] at a fixed [math]\displaystyle{ y }[/math] while it is not necessarily one-to-one for [math]\displaystyle{ (x,y) }[/math], then the following total differentials exist because each independent variable is a differentiable function for the other variables, e.g., [math]\displaystyle{ x(y,z) }[/math].

[math]\displaystyle{ d x = {\left ( \frac{\partial x}{\partial y} \right )}_z \, d y + {\left ( \frac{\partial x}{\partial z} \right )}_y \,dz }[/math]
[math]\displaystyle{ d z = {\left ( \frac{\partial z}{\partial x} \right )}_y \, d x + {\left ( \frac{\partial z}{\partial y} \right )}_x \,dy. }[/math]

Substituting the first equation into the second and rearranging, we obtain

[math]\displaystyle{ d z = {\left ( \frac{\partial z}{\partial x} \right )}_y \left [ {\left ( \frac{\partial x}{\partial y} \right )}_z d y + {\left ( \frac{\partial x}{\partial z} \right )}_y dz \right ] + {\left ( \frac{\partial z}{\partial y} \right )}_x dy, }[/math]
[math]\displaystyle{ d z = \left [ {\left ( \frac{\partial z}{\partial x} \right )}_y {\left ( \frac{\partial x}{\partial y} \right )}_z + {\left ( \frac{\partial z}{\partial y} \right )}_x \right ] d y + {\left ( \frac{\partial z}{\partial x} \right )}_y {\left ( \frac{\partial x}{\partial z} \right )}_y dz, }[/math]
[math]\displaystyle{ \left [ 1 - {\left ( \frac{\partial z}{\partial x} \right )}_y {\left ( \frac{\partial x}{\partial z} \right )}_y \right ] dz = \left [ {\left ( \frac{\partial z}{\partial x} \right )}_y {\left ( \frac{\partial x}{\partial y} \right )}_z + {\left ( \frac{\partial z}{\partial y} \right )}_x \right ] d y. }[/math]

Since [math]\displaystyle{ y }[/math] and [math]\displaystyle{ z }[/math] are independent variables, [math]\displaystyle{ d y }[/math] and [math]\displaystyle{ d z }[/math] may be chosen without restriction. For this last equation to generally hold, the bracketed terms must be equal to zero.[2] The left bracket equal to zero leads to the reciprocity relation while the right bracket equal to zero goes to the cyclic relation as shown below.

Reciprocity relation

Setting the first term in brackets equal to zero yields

[math]\displaystyle{ {\left ( \frac{\partial z}{\partial x} \right )}_y {\left ( \frac{\partial x}{\partial z} \right )}_y = 1. }[/math]

A slight rearrangement gives a reciprocity relation,

[math]\displaystyle{ {\left ( \frac{\partial z}{\partial x} \right )}_y = \frac{1}{{\left ( \frac{\partial x}{\partial z} \right )}_y}. }[/math]

There are two more permutations of the foregoing derivation that give a total of three reciprocity relations between [math]\displaystyle{ x }[/math], [math]\displaystyle{ y }[/math] and [math]\displaystyle{ z }[/math].

Cyclic relation

The cyclic relation is also known as the cyclic rule or the Triple product rule. Setting the second term in brackets equal to zero yields

[math]\displaystyle{ {\left ( \frac{\partial z}{\partial x} \right )}_y {\left ( \frac{\partial x}{\partial y} \right )}_z = - {\left ( \frac{\partial z}{\partial y} \right )}_x. }[/math]

Using a reciprocity relation for [math]\displaystyle{ \tfrac{\partial z}{\partial y} }[/math] on this equation and reordering gives a cyclic relation (the triple product rule),

[math]\displaystyle{ {\left ( \frac{\partial x}{\partial y} \right )}_z {\left ( \frac{\partial y}{\partial z} \right )}_x {\left ( \frac{\partial z}{\partial x} \right )}_y = -1. }[/math]

If, instead, reciprocity relations for [math]\displaystyle{ \tfrac{\partial x}{\partial y} }[/math] and [math]\displaystyle{ \tfrac{\partial y}{\partial z} }[/math] are used with subsequent rearrangement, a standard form for implicit differentiation is obtained:

[math]\displaystyle{ {\left ( \frac{\partial y}{\partial x} \right )}_z = - \frac { {\left ( \frac{\partial z}{\partial x} \right )}_y }{ {\left ( \frac{\partial z}{\partial y} \right )}_x }. }[/math]

Some useful equations derived from exact differentials in two dimensions

(See also Bridgman's thermodynamic equations for the use of exact differentials in the theory of thermodynamic equations)

Suppose we have five state functions [math]\displaystyle{ z,x,y,u }[/math], and [math]\displaystyle{ v }[/math]. Suppose that the state space is two-dimensional and any of the five quantities are differentiable. Then by the chain rule

[math]\displaystyle{ dz = \left(\frac{\partial z}{\partial x}\right)_y dx+ \left(\frac{\partial z}{\partial y}\right)_x dy = \left(\frac{\partial z}{\partial u}\right)_v du +\left(\frac{\partial z}{\partial v}\right)_u dv }[/math]

 

 

 

 

(1)

but also by the chain rule:

[math]\displaystyle{ dx = \left(\frac{\partial x}{\partial u}\right)_v du +\left(\frac{\partial x}{\partial v}\right)_u dv }[/math]

 

 

 

 

(2)

and

[math]\displaystyle{ dy= \left(\frac{\partial y}{\partial u}\right)_v du +\left(\frac{\partial y}{\partial v}\right)_u dv }[/math]

 

 

 

 

(3)

so that (by substituting (2) and (3) into (1)):

[math]\displaystyle{ \begin{align} dz = & \left[ \left(\frac{\partial z}{\partial x}\right)_y \left(\frac{\partial x}{\partial u}\right)_v + \left(\frac{\partial z}{\partial y}\right)_x \left(\frac{\partial y}{\partial u}\right)_v \right] du \\ + & \left[ \left(\frac{\partial z}{\partial x}\right)_y \left(\frac{\partial x}{\partial v}\right)_u + \left(\frac{\partial z}{\partial y}\right)_x \left(\frac{\partial y}{\partial v}\right)_u \right] dv \end{align} }[/math]

 

 

 

 

(4)

which implies that (by comparing (4) with (1)):

[math]\displaystyle{ \left(\frac{\partial z}{\partial u}\right)_v = \left(\frac{\partial z}{\partial x}\right)_y \left(\frac{\partial x}{\partial u}\right)_v + \left(\frac{\partial z}{\partial y}\right)_x \left(\frac{\partial y}{\partial u}\right)_v }[/math]

 

 

 

 

(5)

Letting [math]\displaystyle{ v=y }[/math] in (5) gives:

[math]\displaystyle{ \left(\frac{\partial z}{\partial u}\right)_y = \left(\frac{\partial z}{\partial x}\right)_y \left(\frac{\partial x}{\partial u}\right)_y }[/math]

 

 

 

 

(6)

Letting [math]\displaystyle{ u=y }[/math] in (5) gives:

[math]\displaystyle{ \left(\frac{\partial z}{\partial y}\right)_v = \left(\frac{\partial z}{\partial x}\right)_y \left(\frac{\partial x}{\partial y}\right)_v + \left(\frac{\partial z}{\partial y}\right)_x }[/math]

 

 

 

 

(7)

Letting [math]\displaystyle{ u=y }[/math] and [math]\displaystyle{ v=z }[/math] in (7) gives:

[math]\displaystyle{ \left(\frac{\partial z}{\partial y}\right)_x = - \left(\frac{\partial z}{\partial x}\right)_y \left(\frac{\partial x}{\partial y}\right)_z }[/math]

 

 

 

 

(8)

using ([math]\displaystyle{ \partial a/\partial b)_c = 1/(\partial b/\partial a)_c }[/math] gives the triple product rule:

[math]\displaystyle{ \left(\frac{\partial z}{\partial x}\right)_y \left(\frac{\partial x}{\partial y}\right)_z \left(\frac{\partial y}{\partial z}\right)_x =-1 }[/math]

 

 

 

 

(9)

See also

References

  1. If the pair of independent variables [math]\displaystyle{ (x,y) }[/math] is a (locally reversible) function of dependent variables [math]\displaystyle{ (u,v) }[/math], all that is needed for the following theorem to hold, is to replace the partial derivatives with respect to [math]\displaystyle{ x }[/math] or to [math]\displaystyle{ y }[/math], by the partial derivatives with respect to [math]\displaystyle{ u }[/math] and to [math]\displaystyle{ v }[/math] involving their Jacobian components. That is: [math]\displaystyle{ A(u, v)du + B(u, v)dv, }[/math] is an exact differential, if and only if: [math]\displaystyle{ \frac{\partial A}{\partial u}\frac{\partial u}{\partial y} + \frac{\partial A}{\partial v}\frac{\partial v}{\partial y} = \frac{\partial B}{\partial u}\frac{\partial u}{\partial x} + \frac{\partial B}{\partial v}\frac{\partial v}{\partial x}. }[/math]
  2. Çengel, Yunus A.; Boles, Michael A.; Kanoğlu, Mehmet (2019). "Thermodynamics Property Relations" (in English). Thermodynamics - An Engineering Approach (9th ed.). New York: McGraw-Hill Education. pp. 647-648. ISBN 978-1-259-82267-4. 

External links