Homework 1 Solutions

ChE 621 — Thermodynamics.

Problem 1

The variation of the density of water with respect to temperature, at \(P = 1\) atm, can be plotted as follows.

A curve of density against temperature that rises to a rounded maximum and then falls, so that one density corresponds to two temperatures.

Figure 1 Density of liquid water against temperature at one atmosphere. A sketch with temperature on the horizontal axis and density on the vertical axis, neither carrying numbers. The curve rises from the melting point, \(T = 0\) °C, reaches a maximum at about 4 °C, and then falls again as temperature increases. The maximum is the point of the sketch: a given density below the peak is reached at two different temperatures.

This indicates a maximum in density at a given \(T\), and so there are two \(T\)’s consistent with a given density.

In order to completely characterize the state of pure water, Postulate I requires that we need to specify the mass and two other independently variable properties, that is \(n + 2\) variables.

Let us replot the \(\rho\)–\(T\) projection as a \(\underline{V}\)–\(T\) projection, for a given mass and \(P\).

A curve of molar volume against temperature that falls to a rounded minimum and then rises, the inverse of the density curve.

Figure 2 Molar volume against temperature, the same information inverted. A sketch with temperature on the horizontal axis and molar volume on the vertical axis, neither carrying numbers. The curve decreases from the melting point, \(T = 0\) °C, reaches a minimum at about 4 °C, and then rises again as temperature increases. The minimum sits at the same temperature as the maximum of Figure 1, since the molar volume is inversely proportional to the density.

Now, we are in the one-phase liquid region of the phase diagram, so \(P\) and \(T\) are independently variable, as are the other pairs \(P\), \(\underline{V}\) and \(T\), \(\underline{V}\).

Are we at liberty to specify any one of these three pairs to determine uniquely all other properties of the system?

The pair \(P\), \(\underline{V}\)

If one specifies \(P = 1\) atm and \(\underline{V}\), the previous plot reveals that there are two temperatures consistent with the same \(P\), \(\underline{V}\) choice. This contradicts Postulates I and II, since the system has reached a unique stable equilibrium state, but cannot be completely characterized by the mass and the two independently variable properties \(P\) and \(\underline{V}\), a total of \(n + 2\) variables, as required by Postulate I. \(P\), \(\underline{V}\), and the mass yield two \(T\)’s, and we apparently need more information in order to distinguish between the two equilibrium states of water. To ensure that the system approaches a unique stable equilibrium state, we appear to need more variables than just \(n + 2\), but which ones?

The pair \(T\), \(\underline{V}\)

Each \(T\), \(\underline{V}\) pair, and the mass, yields only one value for \(P\). Hence Postulates I and II are satisfied, that is, only \(n + 2\) variables are needed to describe the unique stable equilibrium state.

The pair \(P\), \(T\)

Each \(P\), \(T\) pair, and the mass, yields only one value for \(\underline{V}\). Thus Postulates I and II are also satisfied.

Why the first pair fails

Although \(P\) and \(\underline{V}\) are independently variable in the one-phase region, and we can certainly vary \(\underline{V}\) while keeping \(P\) constant and the other way round while staying in the one-phase region, why does this pair fail to satisfy Postulates I and II? What sets it apart from \(T\), \(\underline{V}\) and \(T\), \(P\)?

\(P\) and \(\underline{V}\) are conjugate variables. There are certain instances, the density maximum of water being one example, in which conjugate pairs fail to specify completely the given system.

Thus Postulate I should be modified to read: “characterized completely by two independently variable non-conjugate properties in addition to the masses…”

Problem 2

Take the oxide as the system.

\[\delta w = V \vec{E} \cdot \mathrm{d}\vec{P}\]
\[\vec{P} = \varepsilon_{0} \left(\varepsilon_{r}-1\right) \vec{E}\]

with

\[E = \frac{U}{d} = \frac{3}{10^{-9}}\ \text{V/m}\]
\[\therefore\ W = 0.0025 \times (10^{-9})^{2} \cdot (10^{-9}) \cdot (8.85 \times 10^{-12}) \cdot 2.9 \cdot \tfrac{1}{2} \cdot (3 \times 10^{9})^2\]
\[= 2.88 \times 10^{-22}\ \text{J}\]

Problem 3

Consider the state function \(PV\), whose differential can be written as

\[\mathrm{d}(PV) = P\,\mathrm{d}V + V\,\mathrm{d}P\]

The left-hand side is exact. The two terms on the right are inexact.

Let us now integrate each of the above two inexact differentials along the given arbitrary path beginning at \(P_{1}, V_{1}\) and ending at \(P_{2}, V_{2}\). The integral over \(P\,\mathrm{d}V\) simply yields the area below the curve, where for the direction of the given pathway \(\mathrm{d}V > 0\).

A pressure-volume diagram with an arbitrary path from P1, V1 down to P2, V2. The area beneath the path, between V1 and V2 and down to the volume axis, is hatched and labelled as the integral of P dV, greater than zero.

Figure 3 The integral of \(P\,\mathrm{d}V\) as the area under the path. A pressure-volume diagram. Pressure is on the vertical axis, volume on the horizontal. An arbitrary path runs from a filled point at \(P_{1}, V_{1}\) at the upper left, wanders downward and to the right with a slight shelf in the middle, and ends at a filled point at \(P_{2}, V_{2}\) at the lower right. An arrowhead partway along shows the direction of travel. Dashed guide lines drop from each end point to the axes and mark \(P_{1}\), \(P_{2}\), \(V_{1}\) and \(V_{2}\). The region bounded above by the path, below by the volume axis, and on the sides by \(V_{1}\) and \(V_{2}\) is hatched. It is labelled: area = the integral of \(P\,\mathrm{d}V\), which is greater than zero.

Now, the integral over \(V\,\mathrm{d}P\) yields the area to the left of the curve, shown in Figure 4. Note that for the direction of the given pathway, for which \(\mathrm{d}P < 0\), we have \(V\,\mathrm{d}P < 0\).

The same pressure-volume path, with the area to its left, between P1 and P2 and back to the pressure axis, hatched and labelled as the integral of V dP, less than zero.

Figure 4 The integral of \(V\,\mathrm{d}P\) as the area to the left of the path. The same pressure-volume diagram and the same path. This time the hatched region is bounded on the right by the path, on the left by the pressure axis, and above and below by \(P_{1}\) and \(P_{2}\). It is labelled: the magnitude of the area equals the magnitude of the integral of \(V\,\mathrm{d}P\), and the integral of \(V\,\mathrm{d}P\) is less than zero.

So the sum of the two areas, one positive and one negative, yields the following in Figure 5.

The same path with two hatched rectangles: one from the pressure axis to V1 between P2 and P1 marked minus, and one from V1 to V2 below P2 marked plus.

Figure 5 The sum of the two areas. The same path again, with two hatched rectangles instead of the curved regions. The first spans from the pressure axis out to \(V_{1}\), and from \(P_{2}\) up to \(P_{1}\), and is marked with a minus sign. The second spans from \(V_{1}\) to \(V_{2}\), and from the volume axis up to \(P_{2}\), and is marked with a plus sign. The area inside the shape bounded by the curve itself has cancelled between the two integrals and is not shaded.

Note that the area inside the “triangle”, or the area bounded by the given curve and the lines \(P_{1}, V_{1}\) to \(P_{2}, V_{1}\) and \(P_{2}, V_{1}\) to \(P_{2}, V_{2}\), cancels, or yields a zero net contribution to the sum.

So the final result, regardless of the path taken between \(P_{1}, V_{1}\) and \(P_{2}, V_{2}\), is always equal to the sum of the areas of the two rectangles, one positive and one negative, in the above figure:

\[P_{2}(V_{2} - V_{1}) + V_{1}(P_{2} - P_{1}) = P_{2}V_{2} - P_{2}V_{1} + P_{2}V_{1} - P_{1}V_{1}\]

where the first term is greater than zero and the second is less than zero, so that

So, while \(\int P\,\mathrm{d}V\) and \(\int V\,\mathrm{d}P\) are both path dependent, their sum is path-independent, \(\int \mathrm{d}(PV)\).

Note that the above graphical analysis is still valid even if the given pathway rises above \(P_{1}\) or extends beyond \(V_{2}\).

Three small pressure-volume diagrams in which the path rises above P1 before falling to P2. They show in turn the area under the path, the area to its left, and the two rectangles marked minus and plus.

Figure 6 The same construction when the path leaves the rectangle. Three small pressure-volume diagrams side by side. In each, the path climbs above \(P_{1}\) shortly after leaving \(P_{1}, V_{1}\) before falling to \(P_{2}, V_{2}\). The first has the area under the path hatched, the second the area to the left of it, and the third the same two rectangles as Figure 5, again marked minus and plus. The rectangles are unchanged by the excursion, which is the point: the construction does not depend on the path staying inside them.

Problem 4

Part a

\[\mathrm{d}w = \frac{y}{x^{2}}\,\mathrm{d}x - \frac{1}{x}\,\mathrm{d}y\]

The above implies that

\[\left(\frac{\partial w}{\partial x}\right)_{y} = \frac{y}{x^{2}} \quad\text{and}\quad \left(\frac{\partial w}{\partial y}\right)_{x} = -\frac{1}{x}\]

Now

\[\frac{\partial}{\partial y}\left[\left(\frac{\partial w}{\partial x}\right)_{y}\right]_{x} = \frac{1}{x^{2}} \quad\text{and}\quad \frac{\partial}{\partial x}\left[\left(\frac{\partial w}{\partial y}\right)_{x}\right]_{y} = \frac{1}{x^{2}}\]

Since these mixed second-order partial derivatives are equal, \(\mathrm{d}w\) is an exact differential. Hence some analytic function \(w(x, y)\) exists whose differential is given by the above expression for \(\mathrm{d}w\).

Since \(\mathrm{d}w\) is an exact differential, the integral of \(\mathrm{d}w\) between the same two end points will be independent of the path taken. So, integrate \(\mathrm{d}w\) from some initial point \(x_{0}, y_{0}\) to the final point \(x, y\) over the following, and convenient, path: go from \(x_{0}\) to \(x\) at constant \(y_{0}\), and then from \(y_{0}\) to \(y\) at constant \(x\).

\[x_{0}, y_{0} \rightarrow x, y_{0} \rightarrow x, y\]

Step 1.

Step 2.

So

\[w(x, y) - w(x_{0}, y_{0}) = -y_{0}\left(\frac{1}{x} - \frac{1}{x_{0}}\right) - \frac{1}{x}(y - y_{0}) = \frac{y_{0}}{x_{0}} - \frac{y}{x}\]

Since \(y_{0}\), \(x_{0}\) and \(w(x_{0}, y_{0})\) are arbitrary constants, \(w(x_{0}, y_{0})\) being simply a constant of integration, the most general form of \(w\) is

\[w(x, y) = a - \frac{y}{x}, \qquad a = \frac{y_{0}}{x_{0}} + w(x_{0}, y_{0}) = \text{constant}\]

The total differential of the above function is, as expected, given by

\[\mathrm{d}w = \frac{y}{x^{2}}\,\mathrm{d}x - \frac{1}{x}\,\mathrm{d}y\]

Part b

\[\mathrm{d}w = \frac{y}{x^{2}}\,\mathrm{d}x + \frac{1}{x}\,\mathrm{d}y\]

The above implies that

\[\left(\frac{\partial w}{\partial x}\right)_{y} = \frac{y}{x^{2}} \quad\text{and}\quad \left(\frac{\partial w}{\partial y}\right)_{x} = \frac{1}{x}\]

Now,

\[\frac{\partial}{\partial y}\left[\left(\frac{\partial w}{\partial x}\right)_{y}\right]_{x} = \frac{1}{x^{2}} \quad\text{and}\quad \frac{\partial}{\partial x}\left[\left(\frac{\partial w}{\partial y}\right)_{x}\right]_{y} = -\frac{1}{x^{2}}\]

Since these mixed second-order partial derivatives are unequal, \(\mathrm{d}w\) is an inexact differential. Hence there is no analytic function of \(x\) and \(y\) that would yield the above total differential. We do know, however, that every Pfaff differential expression in two dimensions possesses an integrating factor, or denominator, which when multiplying, or dividing, the inexact differential renders it exact. In other words, there is some function \(\mu = \mu(x, y)\) such that

\[\mathrm{d}w = \frac{\mu y}{x^{2}}\,\mathrm{d}x + \frac{\mu}{x}\,\mathrm{d}y \text{ is an exact differential}\]

Now,

\[\frac{\partial}{\partial y}\left[\left(\frac{\partial w}{\partial x}\right)_{y}\right]_{x} = \frac{\mu_{y} y}{x^{2}} + \frac{\mu}{x^{2}} \quad\text{and}\quad \frac{\partial}{\partial x}\left[\left(\frac{\partial w}{\partial y}\right)_{x}\right]_{y} = \frac{\mu_{x}}{x} - \frac{\mu}{x^{2}}\]

where \(\mu_{x}\) and \(\mu_{y}\) represent the first partial derivatives of \(\mu\) with respect to \(x\) and \(y\) respectively. If \(\mathrm{d}w\) is exact, the above mixed second-order partial derivatives must be equal. Therefore,

\[y\mu_{y} = x\mu_{x} - 2\mu\]

Let us assume that \(\mu\) can be represented by the product of two separate functions, \(\mu = g(x)h(y)\), which when substituted into the above partial differential equation yields

\[\frac{y h'}{h} = \frac{y g'}{g} - 2 = k\]

The left-hand side is only a function of \(y\), while the right-hand side is only a function of \(x\). Both must therefore be equal to the same constant \(k\). The solutions of the two separate first-order ordinary differential equations are

\[h = c_{1} y^{k} \qquad g = c_{2} x^{k+2}\]

where \(c_{1}\) and \(c_{2}\) are constants. Finally, we note that

\[\mu = A y^{k} x^{k+2} \quad\text{where}\quad A = c_{1} c_{2}\]

And so the integrating denominator is

\[\lambda = \frac{1}{\mu} = \frac{1}{A y^{k} x^{k+2}}\]

Substitution of the above integrating denominator into the original inexact differential yields

\[\mathrm{d}w = A y^{k+1} x^{k}\,\mathrm{d}x + A y^{k} x^{k+1}\,\mathrm{d}y\]

which is now an exact differential. Note that we have in fact found an infinite number of integrating denominators, all dependent upon the choice of \(k\) and \(A\). The function corresponding to the above differential is simply

\[w = \frac{A}{k+1} y^{k+1} x^{k+1} + \text{constant}\]

Part c

\[\mathrm{d}F = -y\,\mathrm{d}x + x\,\mathrm{d}y + z\,\mathrm{d}z\]

Note that

\[\frac{\partial}{\partial y}\left[\left(\frac{\partial F}{\partial x}\right)_{y,z}\right]_{x,z} = -1 \quad\text{and}\quad \frac{\partial}{\partial x}\left[\left(\frac{\partial F}{\partial y}\right)_{x,z}\right]_{y,z} = 1\]

Since these two derivatives are unequal, \(\mathrm{d}F\) is an inexact differential. Hence there is no analytic function of \(x\), \(y\) and \(z\) that would yield the above total differential.

Part d

\[\mathrm{d}U = y\,\mathrm{d}x + x\,\mathrm{d}y + z\,\mathrm{d}z\]

Now,

\[\frac{\partial}{\partial y}\left[\left(\frac{\partial U}{\partial x}\right)_{y,z}\right]_{x,z} = 1 = \frac{\partial}{\partial x}\left[\left(\frac{\partial U}{\partial y}\right)_{x,z}\right]_{y,z}\]
\[\frac{\partial}{\partial y}\left[\left(\frac{\partial U}{\partial z}\right)_{x,y}\right]_{x,z} = 0 = \frac{\partial}{\partial z}\left[\left(\frac{\partial U}{\partial y}\right)_{x,z}\right]_{x,y}\]
\[\frac{\partial}{\partial x}\left[\left(\frac{\partial U}{\partial z}\right)_{x,y}\right]_{y,z} = 0 = \frac{\partial}{\partial z}\left[\left(\frac{\partial U}{\partial x}\right)_{y,z}\right]_{x,y}\]

Hence \(\mathrm{d}U\) is an exact differential. To find \(U\), integrate along the following convenient path: \(x_{0}\) to \(x\) at \(y_{0}, z_{0}\); then \(y_{0}\) to \(y\) at \(x, z_{0}\); then \(z_{0}\) to \(z\) at \(x, y\). So

\[U(x, y, z) - U(x_{0}, y_{0}, z_{0}) = y_{0}(x - x_{0}) + x(y - y_{0}) + \tfrac{1}{2}(z^{2} - z_{0}^{2})\]
\[= -y_{0}x_{0} - \frac{z_{0}^{2}}{2} + xy + \frac{z^{2}}{2}\]

or

\[U(x, y, z) = a + xy + \frac{z^{2}}{2}\]

Problem 5

Throughout, gas A and gas B are the same diatomic ideal gas with \(\tilde{C}_{V} = \tfrac{5}{2}R\), the cylinder is 0.5 m long, and initially \(V_{A0} = 2V_{B0}\), \(T_{A0} = T_{B0} = T_{0} = 300\) K, \(P_{A0} = 10\) bar and \(P_{B0} = 1\) bar.

Part a: no reservoir, diathermal piston

Since the piston is diathermal, the final temperature of gas A and gas B should be the same, \(T_{A1} = T_{B1} = T_{1}\). And we also have \(P_{A1} = P_{B1} = P_{1}\). So

\[\frac{P_{A1}V_{A1}}{P_{B1}V_{B1}} = \frac{n_{A}RT_{A1}}{n_{B}RT_{B1}} \implies \frac{V_{A1}}{V_{B1}} = \frac{n_{A}}{n_{B}}\]

and

\[\frac{P_{A0}V_{A0}}{P_{B0}V_{B0}} = \frac{n_{A}RT_{0}}{n_{B}RT_{0}} \implies \frac{n_{A}}{n_{B}} = 2 \times 10 = 20\]

so that

\[\frac{V_{A1}}{V_{B1}} = \frac{L_{A1}}{L_{B1}} = \frac{20}{1}, \qquad L_{A1} + L_{B1} = 0.5\ \text{m}\]
\[\implies L_{A1} = 0.4762\ \text{m}, \qquad L_{B1} = 0.0238\ \text{m}\]

Apply the first law for the A plus B system:

\[\mathrm{d}U = \mathrm{d}U_{A} + \mathrm{d}U_{B} = \delta W + \delta Q = 0\]
\[n_{A}\tilde{C}_{V}\,\mathrm{d}T_{A} + n_{B}\tilde{C}_{V}\,\mathrm{d}T_{B} = 0\]
\[\implies n_{A}\tilde{C}_{V}(T_{A1} - T_{0}) + n_{B}\tilde{C}_{V}(T_{1} - T_{0}) = 0\]
\[\implies T_{A1} = T_{B1} = T_{1} = T_{0} = 300\ \text{K}\]
\[P_{A1} = P_{B1} = P_{A0}\cdot\frac{V_{A0}}{V_{A1}} = 10 \times 10^{5} \times \frac{2/3}{20/21} = 7 \times 10^{5}\ \text{Pa}\]

Part b: no reservoir, adiabatic piston

Let \(V_{A0} = \tfrac{2}{3}V_{0}\) and \(V_{B0} = \tfrac{1}{3}V_{0}\). Apply the first law for A plus B:

\[\Delta U = \Delta U_{A} + \Delta U_{B} = n_{A}\tilde{C}_{V}(T_{A1} - T_{0}) + n_{B}\tilde{C}_{V}(T_{B1} - T_{0}) = Q + W = 0\]
(1)\[\implies 20T_{A1} + T_{B1} - 21T_{0} = 0\]

If we assume all the friction heat goes back entirely to A, then B undergoes a reversible, adiabatic pathway.

\[\mathrm{d}U_{B} = \delta W_{B} + \delta Q_{B}, \text{ with } \delta Q_{B} = 0 \implies n_{B}\tilde{C}_{V}\,\mathrm{d}T_{B} = -P_{B}\,\mathrm{d}V_{B} = -\frac{n_{B}RT_{B}}{V_{B}}\,\mathrm{d}V_{B}\]
(2)\[\implies T_{B1} = T_{0}\left(\frac{V_{B1}}{V_{B0}}\right)^{-R/\tilde{C}_{V}}\]

Also, \(n_{A}RT_{A1} = P_{A1}V_{A1}\) and \(n_{B}RT_{B1} = P_{B1}V_{B1}\) with \(P_{A1} = P_{B1} = P_{1}\), so

(3)\[\frac{V_{A1}}{V_{B1}} = 20\,\frac{T_{A1}}{T_{B1}}\]

And

(4)\[V_{A1} + V_{B1} = V_{A0} + V_{B0} = V_{0}\]

Solving Equation (1), Equation (2), Equation (3) and Equation (4) yields

\[V_{B1} = \left(\frac{1}{7}\right)^{\tilde{C}_{V}/(R + \tilde{C}_{V})}\cdot\frac{1}{3}V_{0}\]
\[V_{A1} = \left[1 - \frac{1}{3}\left(\frac{1}{7}\right)^{\tilde{C}_{V}/(R + \tilde{C}_{V})}\right]V_{0}\]
\[\implies L_{B1} = 0.0415\ \text{m}, \qquad L_{A1} = 0.4585\ \text{m}\]
\[P_{A1} = P_{B1} = P_{1} = 7 \times 10^{5}\ \text{Pa}, \qquad T_{B1} = 523.17\ \text{K}, \qquad T_{A1} = 288.84\ \text{K}\]

If instead we assume all the friction returns back entirely to B as heat, then A undergoes a reversible, adiabatic pathway. So

(5)\[T_{A1} = T_{0}\left(\frac{V_{A0}}{V_{A1}}\right)^{R/\tilde{C}_{V}}\]

Solving Equation (1), Equation (5), Equation (3) and Equation (4) simultaneously gives

\[V_{A1} = V_{0}\cdot\left(\frac{20}{7}\right)^{5/7}\cdot 2^{2/7}\cdot\frac{1}{3}\]
\[V_{B1} = \left[1 - \frac{1}{3}\cdot 2^{2/7}\left(\frac{20}{7}\right)^{5/7}\right]V_{0}\]
\[\implies L_{A1} = 0.4301\ \text{m}, \qquad L_{B1} = 0.0699\ \text{m}\]
\[T_{A1} = T_{0}\left(\frac{V_{A0}}{V_{A1}}\right)^{R/\tilde{C}_{V}} = 300 \times \left(\frac{2/3}{0.4301/0.5}\right)^{2/5} = 270.92\ \text{K}\]
\[T_{B1} = 21T_{0} - 20T_{A1} = 881.55\ \text{K}\]
\[P_{A1} = P_{B1} = P_{A0}\cdot\frac{T_{A1}}{T_{0}}\cdot\frac{V_{A0}}{V_{A1}} = 6.9989 \times 10^{5}\ \text{Pa}\]

So, on average,

\[\overline{L}_{A1} = 0.4443\ \text{m}, \qquad \overline{L}_{B1} = 0.0557\ \text{m}\]
\[\overline{T}_{A1} = 279.88\ \text{K}, \qquad \overline{T}_{B1} = 702.36\ \text{K}\]
\[\overline{P}_{A1} = \overline{P}_{B1} = 7 \times 10^{5}\ \text{Pa}\]

Part c: reservoir, diathermal piston

\[L_{A1} = 0.4762\ \text{m}, \qquad L_{B1} = 0.0238\ \text{m} \text{ as in part a}\]
\[P_{A1} = P_{B1} = 7 \times 10^{5}\ \text{Pa}, \qquad T_{A1} = T_{B1} = 300\ \text{K}\]

Part d: reservoir, adiabatic piston

Assume all the friction returns to A, so that B follows an adiabatic pathway. Then

(6)\[T_{B1} = T_{0}\left(\frac{V_{B0}}{V_{B1}}\right)^{R/\tilde{C}_{V}}\]
(7)\[n_{A}RT_{A1} = P_{A1}V_{A1}, \qquad n_{B}RT_{B1} = P_{B1}V_{B1}\]
(8)\[V_{A1} + V_{B1} = V_{A0} + V_{B0} = V_{0}\]

Solving Equation (6), Equation (7) and Equation (8), we get

\[T_{B1} = 528.44\ \text{K}, \qquad T_{A1} = 300\ \text{K}\]
\[L_{B1} = 0.0405\ \text{m}, \qquad L_{A1} = 0.4595\ \text{m}, \qquad P_{A1} = P_{B1} = 7.25 \times 10^{5}\ \text{Pa}\]

Assume instead that all the friction returns to B, so that A follows an isothermal process. Apply the first law on gas A plus B, with \(\mathrm{d}U_{A} = 0\) and \(W = 0\):

\[\mathrm{d}U = \mathrm{d}U_{A} + \mathrm{d}U_{B} = Q + W\]

Apply the first law on A, for which \(\mathrm{d}U_{A} = Q + W_{A} = 0\), so that

\[\mathrm{d}U_{B} = -W_{A} \implies P_{A}\,\mathrm{d}V_{A} = n_{B}\tilde{C}_{V}\,\mathrm{d}T_{B} = \frac{n_{A}RT_{0}}{V_{A}}\,\mathrm{d}V_{A}\]
(9)\[\implies \tfrac{5}{2}(T_{B1} - T_{0}) = 20T_{0}\ln\frac{V_{A1}}{V_{A0}}\]

Solving Equation (7), Equation (8) and Equation (9) gives

\[T_{B1} = 928.08\ \text{K}, \qquad T_{A1} = 300\ \text{K}\]
\[L_{A1} = 0.433\ \text{m}, \qquad L_{B1} = 0.067\ \text{m}, \qquad P_{A1} = P_{B1} = 7.698 \times 10^{5}\ \text{Pa}\]

On average,

\[\overline{L}_{A1} = 0.4463\ \text{m}, \qquad \overline{L}_{B1} = 0.0537\ \text{m}\]
\[\overline{T}_{A1} = 300\ \text{K}, \qquad \overline{T}_{B1} = 728.26\ \text{K}\]
\[\overline{P}_{A1} = \overline{P}_{B1} = 7.474 \times 10^{5}\ \text{Pa}\]

Part d, worked the other way: isothermal reversible expansion in A

Alternatively, if we assume isothermal reversible expansion in A:

If we take A plus B as the system, then \(\mathrm{d}U_{A} + \mathrm{d}U_{B} = \delta Q + \delta W\), in which \(\mathrm{d}U_{A} = 0\) because A is isothermal and \(\delta W = 0\).

If we take A as the system, then \(\mathrm{d}U_{A} = \delta Q_{A} + \delta W = 0\).

We also have \(\delta Q = \delta Q_{A}\), as only A is in contact with the heat reservoir. Therefore

\[\mathrm{d}U_{B} = \delta Q = \delta Q_{A} = -\delta W\]
\[\implies \Delta U_{B} = n_{B}\tilde{C}_{V_{B}}(T_{B} - T_{B0}) = W = -nRT_{A}\ln\frac{V_{A}}{V_{A0}}\]

At equilibrium, \(n_{A}RT_{A} = P_{A}V_{A}\) and \(n_{B}RT_{B} = P_{B}V_{B}\), so that

\[\frac{T_{B}}{T_{A}} = \frac{n_{A}}{n_{B}}\cdot\frac{V_{B}}{V_{A}} = \frac{n_{A}}{n_{B}}\cdot\frac{L - L_{A}}{L_{A}}\]
\[\implies n_{B}\tilde{C}_{V_{B}}\left(\frac{n_{A}}{n_{B}}\cdot\frac{L - L_{A}}{L_{A}}\cdot T_{A} - T_{B0}\right) = -nRT_{A}\ln\frac{L_{A}}{L_{A0}}\]
\[\therefore\ L_{A} = 0.374\ \text{m} \quad\text{and}\quad L_{B} = 0.126\ \text{m}\]
\[P_{A} = P_{A0}\frac{V_{A0}}{V_{A}} = P_{A0}\frac{L_{A0}}{L_{A}} = 8.9\ \text{bar}\]
\[T_{B} = T_{B0}\frac{P_{B}V_{B}}{P_{B0}V_{B0}} = T_{B0}\cdot\frac{P_{B}}{P_{B0}}\cdot\frac{L_{B}}{L_{B0}} = 2014\ \text{K}\]

Note how different these answers are depending on our assumptions about the path. For parts b and d, since A is at a higher pressure and expands against B, it appears more reasonable to assume B is adiabatic and reversible.