## What is an ideal gas?

### An ideal gas is a theoretical model of a gas in which density is low and temperature is high.

## What is happening?

### There is a simple relationship between pressure, temperature, and volume of an ideal gas. Check it out on the right.

$$PV=nRT \rightarrow \frac{PV}{T}=nR$$
$$\therefore \frac{P_1V_1}{T_1}=\frac{P_2V_2}{T_2}$$
Additionally...
$$P=\frac{F}{A}$$
$$R=8.3144598 \frac{J}{Kmol}$$

###
$$T=\frac{PV}{nR}$$
$$V_1P_1=V_2P_2 \rightarrow h_1F_1=h_2F_2$$
$$\therefore h_2 = \frac{h_1F_1}{F_2}$$

## Deriving math in the simulation

### These formulas deduce the change in height of the container when weight is applied above. Note how
changing the number of molecules only changes the temperature, as these are constant in an isothermic process.