The ideal gas law allows for us to determine what will happen to a contained system with an ideal gas inside, based on these different variables. An ideal gas is one that never condenses regardless of the various changes its state variables (pressure, volume, temperature) undergo. For example, if the volume of the system is increased, and all other variables are left alone, the pressure will automatically decrease to compensate for the increase in volume. Conversely, if heat is added to a system, both its volume and pressure will increase to compensate. This latter relationship is the basis for heat engines. For a deeper treatment of the ideal gas law please see hyperphysics, for an extensive treatment please see the UC Davis's chem wiki.
Oftentimes, physics and chemistry's applications seem quite distant. Here's an example of how these sciences can save a life during a car crash.
Vehicle airbags work using the ideal gas law. By reacting Sodium Azide, moles (a unit of amount) of gas in the system. Before the reaction, the sodium azide is a solid, so there is no gas in the system. By reacting the sodium azide to create nitrogen gas, several moles of gas are added to the system. The ideal gas law says the two sides of the equation have to balance; adding moles of nitrogen gas forces the volume of the system to increase dramatically. This inflates the airbag in between 20-40 milliseconds, giving it time to begin deflating before a driver's head hits it. This disperses the force, dramatically improving chances of avoiding serious injury., with excess heat, a large amount of Nitrogen gas ( ) is created. The balanced chemical formula for this is . How does this pertain to the ideal gas law? If you recall, in the ideal gas equation, is equal to the number of