Skip to main content
Sandbox Physics

Motion Graph Studio

How are motion graphs connected? Position’s slope is velocity, and velocity’s slope is acceleration. Integrating each step needs its own starting value.

Draw the position, velocity or acceleration curve and watch a 3D cart follow it. Slopes and areas, with their signs, show when the cart turns back and why distance and displacement differ.

Interactive modelMotion Graph Studio
Position3.98 m3.98\,\mathrm{m}
Signed velocity1.35 m s−11.35\,\mathrm{m\,s^{-1}}
Signed acceleration−1.97 m s−2-1.97\,\mathrm{m\,s^{-2}}
Distance travelled3.98 m3.98\,\mathrm{m}

Read motion from slopes and areas

BackgroundA cart can pass the same position while travelling in opposite directions. The position graph’s slope tells the difference.

Why it mattersDraw one motion quantity, then watch its derivatives and integrals move the same cart.

Focus question
How do three motion graphs describe one trip?
One-sentence intuition
Slope gives a rate of change; signed area gives an accumulated change. Each integration needs its starting value.

Core mathematical model

Velocity and acceleration are slopes

v=dxdt,a=dvdtv=\frac{\mathrm dx}{\mathrm dt},\qquad a=\frac{\mathrm dv}{\mathrm dt}

Position is the height of its graph; velocity is its slope. The velocity graph’s slope gives acceleration.

Integrals carry starting values

v(t)=v0+∫0ta(s) dsx(t)=x0+∫0tv(s) ds\begin{aligned}v(t)&=v_0+\int_0^t a(s)\,\mathrm ds\\x(t)&=x_0+\int_0^t v(s)\,\mathrm ds\end{aligned}

Velocity determines changes in position; acceleration determines changes in velocity. Starting values place those curves.

Distance counts a return journey

D(t)=∫0t∣v(s)∣ ds≥∣x(t)−x(0)∣D(t)=\int_0^t|v(s)|\,\mathrm ds\geq|x(t)-x(0)|

Split the motion at velocity zeros. Each one-way piece adds a positive travelled length.

Smooth joins of the selected input

q∈{x,v,a},q′′(0)=q′′(T)=0q(ti−)=q(ti+)q′(ti−)=q′(ti+)q′′(ti−)=q′′(ti+)\begin{gathered}q\in\{x,v,a\},\quad q''(0)=q''(T)=0\\q(t_i^-)=q(t_i^+)\\q'(t_i^-)=q'(t_i^+)\\q''(t_i^-)=q''(t_i^+)\end{gathered}

The input is a natural cubic spline. Its value and first two derivatives match at joins; its outer second derivatives are zero. Endpoint speed can still be nonzero.

Common difficulties

A negative acceleration can increase speed

Typical misconceptionNegative acceleration always means slowing down.

Better mental modelWhen velocity and acceleration point the same way, speed grows. After the cart turns left, a negative acceleration makes it move left faster.

Run the experiment

  1. 01

    Predict before drawing

    Choose Draw velocity and sketch positive values followed by negative ones. Predict the direction before pressing Play.

    What to observe: The cart changes direction where velocity crosses zero. The moving cursor links that event across all three graphs.
  2. 02

    Compare the trip with the chapter

    Choose Four metres out and back. Inspect two seconds, then the four-second endpoint.

    What to observe: At two seconds velocity is zero but acceleration is not. At the end the signed velocity area is zero and distance is eight metres.
  3. 03

    Shift the start without changing velocity

    Choose Steady motion, then add two metres to Starting position. Compare the position and velocity graphs.

    What to observe: Position shifts upward by two metres. Velocity, displacement and distance stay the same.
Curve model, numerical limits and sources

The cart marks a prescribed point on one straight axis, measured in metres, with right positive and time in seconds. Its body, wheels, rail and supports have schematic dimensions. The scene computes no force, contact dynamics or measured record.

Choose position, velocity or acceleration as the input. Presets begin with seven equally spaced values joined by a natural cubic spline. The chosen input and its first two derivatives are continuous between pieces. Natural end conditions apply to the chosen input: q∈{x,v,a},q′′(0)=q′′(T)=0q\in\{x,v,a\},\qquad q''(0)=q''(T)=0. This condition does not require zero endpoint speed. The curve can overshoot its knot values.

Drawing refines the clock grid to 25 points. The original six intervals divide into four parts each, so refinement alone preserves the original spline and its integrated motion, within floating-point error. The pointer stroke replaces the values it crosses; the resulting curve is a smooth interpolation of those values, not an exact copy of every pointer sample.

Seven-point inputs stay within four units of zero; the fine grid allows eight to retain interpolated overshoot. Those units are the selected quantity’s units. Choosing another input reuses the numerical profile in its new units and defines a different motion. Drawing velocity needs a starting position; drawing acceleration also needs a starting velocity.

Each polynomial piece is differentiated or integrated analytically, carrying integration constants across joins. All three motion quantities remain continuous. Distance is computed by splitting position at isolated velocity zeros and summing absolute changes. Root isolation and evaluation use finite precision; they are not symbolic guarantees for ill-conditioned profiles.

Blue velocity and gold acceleration arrows are raised above the cart and use separate display gains fixed for the whole motion. Larger ranges rescale the family together. Trail points mark earlier model positions at equal time intervals. Dragging the cart selects the nearest-time analytic branch of its position; it does not apply a force. Each playback repeats one finite motion.

The CSV contains 481 model times with position, velocity and acceleration. The collapsed comparison uses a separate 480-interval trapezoid integral, retaining its error against the analytic position. Smooth interpolation is an assumption: finite position samples alone do not determine a unique instantaneous velocity.

Related experiments and articles

What this page links to directly

You are hereMotion Graph Studio

Articles

See every article series on the content map →

Interactive Physics Textbook · Reading path

Motion, Force and Energy

Articles on this path that use this experiment, followed by the other experiments they suggest.

  1. ArticleHow do we describe a motion?
Something broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy