The figure shows a graph of the position of a moving object…