Robert Boyle discovered Boyle's Law, which states that for a fixed mass of gas kept at constant temperature, the product of the gas's pressure and volume will remain constant. Boyle established this by carefully controlling temperature while compressing gases and observing that doubling the pressure halved the volume. Temperature also affects gas pressure and volume in a direct, linear relationship described by the equation that the ratio of the pressures is equal to the ratio of the absolute temperatures.