Displacement in calculus is the change in an object’s position over a time interval. If an object has a position function x(t), its displacement from time t₁ to t₂ is simply x(t₂) − x(t₁). This value can be positive, negative, or zero, and it’s calculated using a definite integral when you’re given a velocity function instead of a position function.
The concept shows up constantly in calculus courses because it connects two big ideas: derivatives and integrals. Understanding displacement also means understanding how it differs from total distance traveled, which trips up many students on exams.
The Position Function and Basic Formula
In calculus, you describe a particle’s location along a line using a position function, typically written as x(t) or s(t), where t represents time. At any moment, the function outputs a number telling you where the object is relative to some reference point (like the origin on a number line).
Displacement over an interval is the difference between the ending position and the starting position:
Displacement = x(t₂) − x(t₁)
That’s it. If a particle starts at position 3 and ends at position 7, the displacement is 4. If it starts at 7 and ends at 3, the displacement is −4. The sign tells you direction: positive means the object ended up farther in the positive direction from where it started, and negative means it moved in the negative direction overall. An object that returns to its starting point has zero displacement regardless of how far it traveled along the way.
Why Displacement Is a Vector
Displacement carries both a magnitude (how far) and a direction (which way), making it a vector quantity. In one-dimensional problems, direction is captured by the sign. A displacement of +12 meters means 12 meters in the positive direction. A displacement of −12 meters means 12 meters in the negative direction. Both represent the same magnitude of movement, but they describe fundamentally different outcomes.
This vector nature is what separates displacement from total distance. Distance is a scalar: it’s always positive and simply accumulates. If you walk 5 meters east and then 5 meters west, your total distance is 10 meters, but your displacement is zero.
Calculating Displacement With an Integral
In many calculus problems, you aren’t given the position function directly. Instead, you’re given a velocity function v(t) and asked to find displacement over some interval. This is where integration comes in.
Since velocity is the derivative of position (v(t) = x′(t)), the Fundamental Theorem of Calculus tells you that integrating velocity gives you back the change in position:
Displacement = ∫ from a to b of v(t) dt = x(b) − x(a)
This is sometimes called the Net Change Theorem applied to motion. You’re summing up all the tiny changes in position over the interval, and the result is the net shift from start to finish.
The key detail here is that when velocity is negative (the object is moving backward), those portions of the integral subtract from the total. The integral naturally accounts for direction, which is exactly why it gives displacement rather than distance.
Displacement vs. Total Distance Traveled
This distinction is one of the most commonly tested concepts in introductory calculus. Both use the velocity function, but the integrals look different.
- Displacement: ∫ from t₁ to t₂ of v(t) dt
- Total distance: ∫ from t₁ to t₂ of |v(t)| dt
The absolute value in the distance formula prevents any backward movement from canceling out forward movement. In practice, computing total distance by hand requires extra steps: you find where v(t) = 0 (the points where the object changes direction), split the interval at those roots, evaluate each piece separately, and add up the absolute values of each result.
For example, suppose a particle has velocity v(t) = t − 3 over the interval [0, 5]. The velocity is zero at t = 3, meaning the particle changes direction there. From t = 0 to t = 3, the velocity is negative (the particle moves backward), and from t = 3 to t = 5, the velocity is positive. The displacement integral gives a single number reflecting the net effect. The distance calculation splits at t = 3, takes the absolute value of each piece, and sums them.
A Worked Example
Suppose a particle moves along a line with velocity v(t) = t² − 4 (in meters per second) and you want the displacement from t = 0 to t = 3.
Set up the integral: ∫ from 0 to 3 of (t² − 4) dt.
Find the antiderivative: (t³/3) − 4t.
Evaluate at the bounds: [(27/3) − 12] − [(0) − 0] = 9 − 12 = −3.
The displacement is −3 meters. The particle ended up 3 meters behind where it started. Notice that the negative result doesn’t mean something went wrong. It simply means the net movement was in the negative direction. During parts of the interval the particle may have moved forward, but the backward movement dominated overall.
If the problem asked for total distance instead, you’d need to find where v(t) = 0 (at t = 2, since t² − 4 = 0 gives t = ±2 and only t = 2 falls in the interval), split the integral at t = 2, and sum the absolute values of each piece.
How Position, Velocity, and Acceleration Connect
Displacement sits within a hierarchy of related quantities that calculus links through derivatives and integrals:
- Position x(t): where the object is
- Velocity v(t) = x′(t): the derivative of position, describing how fast position changes
- Acceleration a(t) = v′(t) = x″(t): the derivative of velocity, describing how fast velocity changes
Going the other direction, you integrate acceleration to get velocity (plus an initial condition), and you integrate velocity to get displacement. If you need the actual position function rather than just the displacement, you need to know the starting position so you can solve for the constant of integration. Displacement, though, requires no initial condition because the constant cancels out when you subtract x(a) from x(b).
When Displacement Equals Zero
A displacement of zero means the object returned to its starting position by the end of the interval. This happens whenever the integral of velocity over the interval equals zero, meaning the positive and negative contributions exactly cancel. The object may have traveled a significant total distance during that time. A ball thrown straight up and caught at the same height has zero displacement but has traveled the height of its arc twice over.
Recognizing this scenario matters in word problems. If a question asks “how far did the particle travel,” it wants total distance (the absolute value integral). If it asks “what is the particle’s displacement,” it wants the net change, which could be zero even for a particle that moved constantly throughout the interval.

