I am a high school student, and I am very confused about sound waves. My teacher taught me that sound is a pressure wave, i.e the atmospheric pressure varies during the propagation of sound, and all the medium particles perform simple harmonic motion (if amplitude is not so high).
But my confusion is that if all the particles undergo simple harmonic motion in the direction of propagation of sound, what is the restoring force which is acting here? If it is the attractive forces between the molecules then is it necessary that it acts opposite to displacement?