Lesson 6 of 15

Isothermal Process

Isothermal Process

An isothermal process occurs at constant temperature. For an ideal gas, since TT is constant, the product PVPV is also constant:

PV=nRT=constPV = nRT = \text{const}

Work Done in an Isothermal Process

When a gas expands isothermally from volume V1V_1 to V2V_2, the work done by the gas is found by integrating PdVP\,dV with P=nRT/VP = nRT/V:

W=V1V2PdV=nRTV1V2dVV=nRTln ⁣(V2V1)=P1V1ln ⁣(V2V1)W = \int_{V_1}^{V_2} P\,dV = nRT \int_{V_1}^{V_2} \frac{dV}{V} = nRT \ln\!\left(\frac{V_2}{V_1}\right) = P_1 V_1 \ln\!\left(\frac{V_2}{V_1}\right)

If V2>V1V_2 > V_1 (expansion), W>0W > 0 — the gas does positive work. If V2<V1V_2 < V_1 (compression), W<0W < 0.

Heat and Internal Energy

For an ideal gas, internal energy depends only on temperature. Since TT is constant:

ΔU=0    Q=W\Delta U = 0 \implies Q = W

All heat absorbed from the surroundings is converted entirely into work.

Boyle's Law

At constant temperature, pressure and volume are inversely proportional:

P1V1=P2V2    P2=P1V1V2P_1 V_1 = P_2 V_2 \implies P_2 = \frac{P_1 V_1}{V_2}

So doubling the volume halves the pressure — and vice versa.

Your Task

Implement the two functions below.

Python runtime loading...
Loading...
Click "Run" to execute your code.