During a quasi-static expansion of a gas in an adiabatic container, the pressure at any moment is given by the equation
$$
P Y^{\top}=K
$$
where $\gamma$ and $K$ are constants. Show that the work done in expanding from a state $\left(P_{i}, V_{i}\right)$ to a state $\left(P_{f}, V_{f}\right)$ is
$$
W=-\frac{P_{i} V_{i}-P_{f} V_{f}}{\gamma-1}
$$
If the initial pressure and volume are $10^{6} \mathrm{~Pa}$ and $10^{-3} \mathrm{~m}^{3}$, respectively, and the final values are $2 \times 10^{5} \mathrm{~Pa}$ and $3.16 \times 10^{-3} \mathrm{~m}^{3}$, respectively, how much work is donc on a gas having $\gamma=1.4 ?$