There is a difference between distance and displacement. The following illustration will clearly show the difference between the two.
As you can see in the illustration above, the displacement is the straight-line path between home and school.
The green path or the red path on the other hand is the distance or distance traveled.
Did you notice that the magnitude of the displacement is not always the same as the distance traveled?
In fact, the displacement is the shortest path from one location to another with no left turn, right turn, or going around a curve.
Notice that when something is being displaced, it will have a direction associated with it. Therefore, displacement is a vector.
Displacement is the magnitude and direction of the straight line connecting some initial point to a final point.
To represent displacement, the letter s is used with an arrow of top of the s as shown below.s→
Displacement = final position - initial positionLet Xf = final position and Xi = initial position