In the ocean where salinity is important, or in fresh water lakes near freezing, where density is not a linear function of temperature:where , the potential density, depends on both temperature and salinity. An example of Brunt–Väisälä oscillation in a density stratified liquid can be observed in the Magic Cork movie [https://www.youtube.com/watch?v=_DqOyvWwqWI here] .