a) In longitudinal waves, the particles vibrate in the back and forth in the same direction. These waves can be produced in solids, liquids, and gases.
Transverse waves have particles vibrating up and down in the direction in which the wave is moving. These waves can be produced in solids and liquids.
b) Examples of transverse wave:
Waves moving in a spring when pushed and pulled at one end and striking the strings of guitar have transverse waves.
Examples of longitudinal wave:
Production of ripples on the surface of the water and waves production when the spring is move up and down have transverse waves.