Solved thermodynamics exercise

Entropy of a gas: when the heat capacity depends on TT

Exercise 19 · Lesson 6 — The Second Law of Thermodynamics

  • gas
  • variable heat capacity
  • internal energy
  • entropy
  • isochoric heating
  • integration

Statement

Consider nn moles of a gas with equation of state PV=nRTPV=nRT. Over the temperature range studied, its molar heat capacity at constant volume is cV(T)=A+BTc_V(T)=A+BT, where AA and BB are positive constants. Assume that, for a fixed amount of substance, its internal energy depends only on temperature. Denote by UrefU_{\mathrm{ref}} its value at a reference temperature Tref>0T_{\mathrm{ref}}>0 within this range.

  1. Calculate the internal energy U(T)U(T), then its change between temperatures TiT_i and TfT_f.
  2. For a locally reversible infinitesimal process, express the heat received, then calculate dS\mathrm dS in terms of TT, VV, dT\mathrm dT and dV\mathrm dV.
  3. Calculate the entropy change ΔS\Delta S between equilibrium states (Ti,Vi)(T_i,V_i) and (Tf,Vf)(T_f,V_f). Does the result depend on whether the process connecting these states is reversible or irreversible?
  4. The gas is heated at constant volume from TiT_i to Tf>TiT_f>T_i by a reservoir at TfT_f. The combined gas—reservoir system is isolated and no work is exchanged. Calculate the heat received by the gas and by the reservoir, then the entropy produced. Express the latter as an integral whose sign can be determined.

Hint

Hint
Start from dU=ncV(T) dT\mathrm dU=nc_V(T)\,\mathrm dT and integrate each term separately. For question 2, use the first law and dS=δQrev/T\mathrm dS=\delta Q_{\mathrm{rev}}/T. For question 3, choose a reversible path consisting of an isochore followed by an isotherm. The reservoir remains at constant temperature during the actual heating.

Detailed solution

Solution
Question 1. The heat capacity is molar: for nn moles, the total heat capacity is ncV(T)nc_V(T). Since UU depends only on TT,

dU=ncV(T) dT=n(A+BT) dT.\mathrm dU=nc_V(T)\,\mathrm dT=n(A+BT)\,\mathrm dT.

Integrate from TrefT_{\mathrm{ref}} to TT, using τ\tau as the integration variable:

U(T)−Uref=n∫TrefT(A+Bτ) dτ=n[Aτ+B2τ2]TrefT=nA(T−Tref)+nB2(T2−Tref2).\begin{aligned} U(T)-U_{\mathrm{ref}} &=n\int_{T_{\mathrm{ref}}}^{T}(A+B\tau)\,\mathrm d\tau\\ &=n\left[A\tau+\frac B2\tau^2\right]_{T_{\mathrm{ref}}}^{T}\\ &=nA(T-T_{\mathrm{ref}})+\frac{nB}{2}(T^2-T_{\mathrm{ref}}^2). \end{aligned}

Adding UrefU_{\mathrm{ref}} gives U(T)U(T). When calculating ΔU=U(Tf)−U(Ti)\Delta U=U(T_f)-U(T_i), the reference terms cancel:

ΔU=nA(Tf−Ti)+nB2(Tf2−Ti2).\boxed{\Delta U=nA(T_f-T_i)+\frac{nB}{2}(T_f^2-T_i^2).}

We cannot write ΔU=ncV(Tf)(Tf−Ti)\Delta U=nc_V(T_f)(T_f-T_i): the heat capacity varies during heating and must remain inside the integral.

Question 2. During the locally reversible process, the work received is δW=−P dV\delta W=-P\,\mathrm dV. The first law gives

dU=δQrev−P dV,δQrev=dU+P dV.\mathrm dU=\delta Q_{\mathrm{rev}}-P\,\mathrm dV, \qquad \delta Q_{\mathrm{rev}}=\mathrm dU+P\,\mathrm dV.

Replace dU\mathrm dU by the previous result and PP by nRT/VnRT/V:

δQrev=n(A+BT) dT+nRTV dV.\delta Q_{\mathrm{rev}}=n(A+BT)\,\mathrm dT+\frac{nRT}{V}\,\mathrm dV.

Local reversibility allows us to write dS=δQrev/T\mathrm dS=\delta Q_{\mathrm{rev}}/T. Dividing each term by TT gives

dS=n(AT+B)dT+nRV dV.\boxed{\mathrm dS=n\left(\frac AT+B\right)\mathrm dT +\frac{nR}{V}\,\mathrm dV.}

Question 3. Choose a reversible path from (Ti,Vi)(T_i,V_i) to (Tf,Vi)(T_f,V_i) at constant volume, followed by a path from (Tf,Vi)(T_f,V_i) to (Tf,Vf)(T_f,V_f) at constant temperature. In the first step, dV=0\mathrm dV=0; in the second, dT=0\mathrm dT=0. Adding the two entropy changes gives

ΔS=n∫TiTf(AT+B)dT+nR∫ViVfdVV=nA[ln⁡T]TiTf+nB[T]TiTf+nR[ln⁡V]ViVf=nA(ln⁡Tf−ln⁡Ti)+nB(Tf−Ti)+nR(ln⁡Vf−ln⁡Vi).\begin{aligned} \Delta S &=n\int_{T_i}^{T_f}\left(\frac AT+B\right)\mathrm dT +nR\int_{V_i}^{V_f}\frac{\mathrm dV}{V}\\ &=nA\left[\ln T\right]_{T_i}^{T_f} +nB\left[T\right]_{T_i}^{T_f} +nR\left[\ln V\right]_{V_i}^{V_f}\\ &=nA(\ln T_f-\ln T_i)+nB(T_f-T_i) +nR(\ln V_f-\ln V_i). \end{aligned}

Using ln⁡a−ln⁡b=ln⁡(a/b)\ln a-\ln b=\ln(a/b), we obtain

ΔS=nAln⁡TfTi+nB(Tf−Ti)+nRln⁡VfVi.\boxed{\Delta S=nA\ln\frac{T_f}{T_i}+nB(T_f-T_i) +nR\ln\frac{V_f}{V_i}.}

Entropy is a state function: its change depends only on the initial and final states. The reversible path is used to calculate this change, but the result also applies to an actual irreversible process between the same states.

Question 4. The volume is constant: the gas receives no work. The first law and question 1 therefore give

Qgas=ΔU=nA(Tf−Ti)+nB2(Tf2−Ti2).Q_{\mathrm{gas}}=\Delta U =nA(T_f-T_i)+\frac{nB}{2}(T_f^2-T_i^2).

The combined gas—reservoir system is isolated, so ΔUgas+ΔUth=0\Delta U_{\mathrm{gas}}+\Delta U_{\mathrm{th}}=0. With no work exchanged, this implies Qth=−QgasQ_{\mathrm{th}}=-Q_{\mathrm{gas}}. For the gas, Vf=ViV_f=V_i makes the volume term from question 3 vanish:

ΔSgas=nAln⁡TfTi+nB(Tf−Ti).\Delta S_{\mathrm{gas}}=nA\ln\frac{T_f}{T_i}+nB(T_f-T_i).

The reservoir remains at TfT_f, hence

ΔSth=QthTf=−QgasTf.\Delta S_{\mathrm{th}}=\frac{Q_{\mathrm{th}}}{T_f} =-\frac{Q_{\mathrm{gas}}}{T_f}.

The isolated combined system exchanges no entropy with the rest of the universe: the entropy produced is the sum of the two changes,

Si=ΔSgas+ΔSth=nAln⁡TfTi+nB(Tf−Ti)−nA(Tf−Ti)Tf−nB(Tf2−Ti2)2Tf.\begin{aligned} S_{\mathrm{i}} &=\Delta S_{\mathrm{gas}}+\Delta S_{\mathrm{th}}\\ &=nA\ln\frac{T_f}{T_i}+nB(T_f-T_i)\\ &\quad-\frac{nA(T_f-T_i)}{T_f}-\frac{nB(T_f^2-T_i^2)}{2T_f}. \end{aligned}

To determine the sign, return to the integral expressions for the two terms:

ΔSgas=n∫TiTfA+BTT dT,QgasTf=n∫TiTfA+BTTf dT.\Delta S_{\mathrm{gas}}=n\int_{T_i}^{T_f}\frac{A+BT}{T}\,\mathrm dT, \qquad \frac{Q_{\mathrm{gas}}}{T_f} =n\int_{T_i}^{T_f}\frac{A+BT}{T_f}\,\mathrm dT.

The limits are identical, so the integrands can be subtracted:

Si=n∫TiTf(A+BT)(1T−1Tf)dT>0.S_{\mathrm{i}}=n\int_{T_i}^{T_f}(A+BT) \left(\frac1T-\frac1{T_f}\right)\mathrm dT>0.

Indeed, A+BT>0A+BT>0 and 1/T−1/Tf>01/T-1/T_f>0 for Ti≤T<TfT_i\leq T<T_f. The integral is therefore strictly positive when Tf>TiT_f>T_i: heating by contact with this reservoir is irreversible.