A displacement is a relative motion between two points independent of the path taken. The displacement is thus distinct from the distance traveled by the object along given path.
The displacement vector then defines the motion in terms of translation along a straight line. We may compose these acts of motion by adding the displacement vectors. More precisely we define the addition of displacement vectors as the composition of their actions "move this way and then move that way".
A position vector expresses the position at a point in space in terms of displacement from a fixed origin. Namely, it indicates both the distance and direction of a point from the reference position (origin).
In considering motions of objects over time the instantaneous velocity of the object is the rate of change of the displacement as a function of time. The velocity then is distinct from the instantaneous speed which is the time rate of change of the distance traveled along a specific path.
If a fixed origin is defined we may then equivalently define the velocity as the time rate of change of the position vector. However if one considers a time dependent choice of origin as in a moving coordinate system the rate of change of the position vector only defines a relative velocity.
For motion over a given interval of time the net displacement divided by the length of the time interval defines the average velocity. Given an origin point defining position vectors then the net displacement vector is the difference between the final and initial position vectors. This difference, divided by the time needed to perform the motion, then also gives the average velocity of the point or particle.
In dealing with the motion of a rigid body, the term displacement may also include the rotations of the body. In this case, the displacement of a particle of the body is called linear displacement (displacement along a line), while the rotation is called angular displacement.
If the position of an object is described by a vector function
then the distance traveled as a function of t is described by the integral of one with respect to arc length.
The arc length differential is described by the following equation:
On a graph representing the position of a particle with respect to time (position vs. time graph), the slope of the straight line joining two points on the graph is the average velocity of the particle during the corresponding time interval, while the slope of the tangent to the graph at a given point is the instantaneous velocity at the corresponding time (first derivative of the particle position).
To calculate displacement all vectors and scalars must be taken into consideration. The following formulas can be used to calculate displacement for, s, for an object undergoing constant acceleration..
Height displacement is the distance an object peaks in height vertically. If, for example, a ball was thrown up in the air and fell back into the owner's hand, the displacement would be zero, since displacement over a period of time is defined as the distance between an object's starting and finishing points.
However one may use the general equation  to calculate overall vertical height. This is modified to  for the case of a ball in the presence of gravity. The height h is dependent upon the time t at which it is being measured. g is the acceleration caused by Earth's gravity; it stays constant at approximately . The term is preceded by a minus sign because gravity acts in the opposite direction of h and u, which signify a distance and speed, respectively, away from the Earth's center of mass.