Solved thermodynamics exercise

Integrating a differential form along a path

Exercise 6 · Lesson 4The First Law of Thermodynamics

  • differential form
  • exact differential
  • Schwarz criterion
  • line integral

Draft version — this exercise is still under review.

Statement

Consider the two differential forms

ω1=ydx+xdy,ω2=ydx,\omega_1 = y\,\mathrm{d}x + x\,\mathrm{d}y, \qquad \omega_2 = y\,\mathrm{d}x,

and three paths joining the origin O(0,0)O(0,0) to the point M(1,1)M(1,1): path γ1\gamma_1, consisting of the horizontal segment O(1,0)O\to(1,0) followed by the vertical segment (1,0)M(1,0)\to M; path γ2\gamma_2, consisting of the vertical segment O(0,1)O\to(0,1) followed by the horizontal segment (0,1)M(0,1)\to M; and path γ3\gamma_3, the straight-line segment joining OO directly to MM.

  1. Show that ω1\omega_1 is exact by finding a function ff such that ω1=df\omega_1 = \mathrm{d}f.
  2. Calculate γ1ω1\int_{\gamma_1}\omega_1 and γ2ω1\int_{\gamma_2}\omega_1 by parametrizing each segment. Recover the result without calculation.
  3. Apply Schwarz's criterion to ω2\omega_2. What can be concluded?
  4. Calculate γ1ω2\int_{\gamma_1}\omega_2, γ2ω2\int_{\gamma_2}\omega_2, and γ3ω2\int_{\gamma_3}\omega_2. Comment on the results.

Hint

Hint
On a horizontal segment dy=0\mathrm{d}y = 0, and on a vertical segment dx=0\mathrm{d}x = 0: each integral reduces to an ordinary single integral.

Detailed solution

Solution
Question 1. The function f(x,y)=xyf(x,y) = xy works, since f/x=y\partial f/\partial x = y and f/y=x\partial f/\partial y = x.

Question 2. For a curve parametrized by t(x(t),y(t))t\mapsto\bigl(x(t),y(t)\bigr), we have

γω1=[y(t)x(t)+x(t)y(t)]dt.\int_\gamma\omega_1 = \int \left[y(t)x'(t)+x(t)y'(t)\right]\,\mathrm{d}t.

Path γ1\gamma_1 is the union of two segments. On the first, x(t)=tx(t)=t and y(t)=0y(t)=0, with t[0,1]t\in[0,1]; hence dx=dt\mathrm{d}x=\mathrm{d}t and dy=0\mathrm{d}y=0. On the second, x(t)=1x(t)=1 and y(t)=ty(t)=t, again with t[0,1]t\in[0,1]; hence dx=0\mathrm{d}x=0 and dy=dt\mathrm{d}y=\mathrm{d}t. Therefore,

I1=γ1ω1=01(0×1+t×0)dt+01(t×0+1×1)dt=0+01dt=1.\begin{aligned} I_1 = \int_{\gamma_1}\omega_1 &= \int_0^1\left(0\times 1+t\times 0\right)\,\mathrm{d}t + \int_0^1\left(t\times 0+1\times 1\right)\,\mathrm{d}t \\ &= 0+\int_0^1\mathrm{d}t = 1. \end{aligned}

For γ2\gamma_2, the first segment is parametrized by x(t)=0x(t)=0, y(t)=ty(t)=t, and the second by x(t)=tx(t)=t, y(t)=1y(t)=1, with t[0,1]t\in[0,1] in both cases. We therefore obtain

I2=γ2ω1=01(t×0+0×1)dt+01(1×1+t×0)dt=0+01dt=1.\begin{aligned} I_2 = \int_{\gamma_2}\omega_1 &= \int_0^1\left(t\times 0+0\times 1\right)\,\mathrm{d}t + \int_0^1\left(1\times 1+t\times 0\right)\,\mathrm{d}t \\ &= 0+\int_0^1\mathrm{d}t = 1. \end{aligned}

The two values agree. This could have been predicted without calculation: because ω1=df\omega_1=\mathrm{d}f with f(x,y)=xyf(x,y)=xy, its integral depends only on the endpoints,

γω1=f(M)f(O)=f(1,1)f(0,0)=1.\int_\gamma\omega_1=f(M)-f(O)=f(1,1)-f(0,0)=1.

Question 3. Write ω2=A(x,y)dx+B(x,y)dy\omega_2=A(x,y)\,\mathrm{d}x+B(x,y)\,\mathrm{d}y. Here A(x,y)=yA(x,y)=y and B(x,y)=0B(x,y)=0. If the form were exact, Schwarz's criterion would give

Ay=Bx.\frac{\partial A}{\partial y}=\frac{\partial B}{\partial x}.

However, A/y=1\partial A/\partial y=1, whereas B/x=0\partial B/\partial x=0. The mixed derivatives differ, so ω2\omega_2 is not exact. Its integral may therefore depend on the path followed between OO and MM, as the following calculation confirms.

Question 4. Since ω2=ydx\omega_2=y\,\mathrm{d}x, only a change in xx at a nonzero value of yy can contribute to the integral. Using the previous parametrizations, on γ1\gamma_1 we find

J1=γ1ω2=010×1dt+01t×0dt=0.\begin{aligned} J_1 =\int_{\gamma_1}\omega_2 &=\int_0^1 0\times 1\,\mathrm{d}t +\int_0^1 t\times 0\,\mathrm{d}t \\ &=0. \end{aligned}

On γ2\gamma_2, the first segment satisfies x(t)=0x(t)=0, so dx=0\mathrm{d}x=0; on the second, x(t)=tx(t)=t, y(t)=1y(t)=1, and dx=dt\mathrm{d}x=\mathrm{d}t. Thus

J2=γ2ω2=01t×0dt+011×1dt=1.\begin{aligned} J_2 =\int_{\gamma_2}\omega_2 &=\int_0^1 t\times 0\,\mathrm{d}t +\int_0^1 1\times 1\,\mathrm{d}t \\ &=1. \end{aligned}

Finally, the diagonal segment γ3\gamma_3 is explicitly parametrized by

x(t)=t,y(t)=t,t[0,1],x(t)=t,\qquad y(t)=t,\qquad t\in[0,1],

so dx=dt\mathrm{d}x=\mathrm{d}t and dy=dt\mathrm{d}y=\mathrm{d}t. Hence

J3=γ3ω2=01y(t)x(t)dt=01tdt=12.J_3 =\int_{\gamma_3}\omega_2 =\int_0^1 y(t)x'(t)\,\mathrm{d}t =\int_0^1 t\,\mathrm{d}t =\frac12.

The three paths have the same endpoints but yield three different values: J1=0J_1=0, J2=1J_2=1, and J3=1/2J_3=1/2. This is precisely the path dependence characteristic of a non-exact differential form.