Dimethyl ether is often used as a propellant in aerosol products, such as hairsprays and shaving creams, to help deliver the product in a fine mist form. It provides a smooth application and allows for easy dispersion of the cosmetic product.