Why does the pressure of gas enclosed in a rigid container increase as the temperature increases?

Solution Step 1 of 2 The gas inside the rigid container can be considered as ideal gas, The state of the ideal gas can be determined by the ideal gas equation, Given by PV=nRT Where P, V and T are the pressure , volume and temperature of the gas respectively, R is the universal gas constant and n is the number of moles of gas. Since here the container is Rigid container, volume and mass of the gas remains constant. Hence here it is given;volume is constant, temperature and pressure is related as.(R is constant and n are constant) Therefore, T P at constant V That is, the pressure of the gas is directly proportional to the temperature at constant volume, which is referred as Charles's Law.