Physical context: Given graph can be a graph of a ball rebounding between two walls situated at position 0 cm and 2 cm. The ball is rebounding from one wall to the another time and again every 2 s with uniform velocity.
Note : Negative sign indicates the universal direction of motion. We can visualize the balls getting rebounded repeatedly on striking against the wall. The linear momentum changes after every collision.