how are P waves different from S waves

P waves (primary waves) are compression waves that move through the Earth's interior, causing particles in the rock to vibrate back and forth in the direction of the wave's propagation. P waves can travel through solid and liquid material, and they are faster than S waves.

S waves (secondary waves) are transverse waves that cause particles in the rock to move perpendicular to the direction of the wave's propagation. S waves cannot pass through liquids, and they are slower than P waves. S waves only travel through solid rock material.

In summary, P waves are faster and can travel through both solid and liquid material, while S waves are slower and can only travel through solid rock material.