Imagine a map app that ignores your route and draws just one arrow from where you started to where you are now. That arrow is your displacement. Walk 3 m east and then 4 m north: the arrow is the hypotenuse of a 3-4-5 right triangle, so it is 5 m long and points about 53∘ north of east. Your feet covered 7 m; the arrow is 5 m.
Along a straight road, the arrow becomes a signed number. Put a number line on the road with east positive. A cyclist rides from xi=2 km to x=9 km, so that leg is Δx=9−2=+7 km, 7 km east. She then rides back to xf=4 km: that leg is 4−9=−5 km, 5 km west, and the whole trip is 4−2=+2 km. Only the two endpoints enter the subtraction, always final minus initial.
Distance traveled looks similar but answers a different question. For the cyclist it is 7+5=12 km, while the displacement is +2 km. Distance adds the length of every leg and never decreases; displacement can shrink, change sign or return to zero. The two agree only for a one-way trip along a straight line, which is why they are so easy to mix up. Wording like "how far from the start" or "in what direction" asks for displacement; "how far did it travel" or an odometer reading asks for distance.
Think of it like this. Displacement is the crow's flight compared with the road's winding route: one straight arrow from start to finish, with no memory of the turns, stops or backtracking in between. Like the crow's line, it can be much shorter than the trip, and it shrinks to nothing if you end where you began.
Core idea. Displacement is final position minus initial position: an arrow from start to finish whose length and direction ignore the path taken in between.