Why does pressure increase as temperature rises with a constant volume? pressure if you increased the temperature and volume at the same rate but gas constant?

According to the ideal gas law, which states that pressure is directly proportional to temperature when volume and amount of gas are held constant (P ∝ T), an increase in temperature with a constant volume will result in an increase in pressure.

If you were to increase the temperature and volume at the same rate while keeping the gas constant, the pressure would not change (P = nRT/V). This is because the increase in volume would offset the increase in pressure from the rise in temperature, resulting in a stable pressure.