The figure represents a longitudinal wave travelling in positive x-direction. Then

Know your College Admission Chances Based on your Rank/Percentile, Category and Home State.
Get your JEE Main Personalised Report with Top Predicted Colleges in JoSA
has negative slope hence, represent compression, while CDE has positive slope hence, represents rarefaction