Mathematically, Boyle's law can be expressed as:
```
P₁V₁ = P₂V₂
```
Where:
- P₁ represents the initial pressure of the gas
- V₁ represents the initial volume of the gas
- P₂ represents the final pressure of the gas
- V₂ represents the final volume of the gas
This equation indicates that if the pressure of a gas increases while the temperature remains constant, the volume of the gas decreases proportionately, and vice versa. Conversely, if the volume of a gas increases at a constant temperature, the pressure decreases proportionally.
To illustrate this principle, consider a scenario where you have a fixed amount of gas trapped inside a container with a movable piston. If you push the piston inward, reducing the volume of the container, the pressure of the gas will increase accordingly to maintain the same product of pressure and volume. Conversely, if you pull the piston outward, increasing the volume of the container, the pressure of the gas will decrease to maintain the same product.
Boyle's law is applicable to ideal gases, which are theoretical gases that exhibit perfect behavior and follow certain simplifying assumptions. However, it holds true to a good approximation for many real gases under various conditions. This law has practical applications in areas such as scuba diving, where understanding gas behavior is crucial, and in industries that use pressurized gases for various operations.