Solution:
Concept: In an adiabatic process no heat enters or leaves the gas, and for an ideal gas PVγ=K (a constant), where γ=CvCp.
The work done by a gas in a small expansion dV at pressure P is dW=PdV.
Step 1 — Write the work as an integral. Let n moles of an ideal gas expand adiabatically from state (P1,V1,T1) to state (P2,V2,T2). The work done is the area under the adiabatic curve:
W=∫V1V2PdV

Step 2 — Put in P=KV−γ and integrate. We take the constant K outside the integral:
W=K∫V1V2V−γdV
W=1−γK[V1−γ]V1V2
W=1−γ1(KV21−γ−KV11−γ)
Step 3 — Remove K. Since K=P2V2γ, we have KV21−γ=P2V2; similarly, KV11−γ=P1V1:
W=1−γP2V2−P1V1
W=γ−1P1V1−P2V2
Step 4 — Write it in terms of temperature. We use P1V1=nRT1 and P2V2=nRT2:
W=γ−1nR(T1−T2)
Step 5 — Interpret the result. In an adiabatic expansion the work done by the gas comes from its internal energy, so T2<T1 and W is positive; in an adiabatic compression T2>T1 and W is negative (work is done on the gas, which warms up).
Therefore, the work done in an adiabatic process is W=γ−1P1V1−P2V2, or W=γ−1nR(T1−T2).