PhysicsLibrary

An open source physics library

Newton's laws of motion

Constant Acceleration

A constant net force. Two integrations. One trajectory fixed by its initial position and velocity.

One-dimensional motion in an inertial frame, with constant mass and no drag. All three cases start at clock time t0 = 2 s with x0 = 1 m and v0 = 3 m/s. Mass m = 2 kg.

@@PLOTS@@

From force to position

1. Newton's second law

F0 = m dv/dt,   a0 = F0/m

2. Integrate once and apply the initial velocity

v(t) = a0t + C1

At t = t0, we require v = v0. Therefore C1 = v0a0t0.

v(t) = v0 + a0(tt0)

3. Integrate again and apply the initial position

x(t) = ½a0t² + C1t + C2

Requiring x(t0) = x0 gives C2 = x0v0t0 + ½a0t0².

x(t) = x0 + v0τ + ½a0τ²,   τ = tt0

The constant position is where we start. The linear term is the motion we already had. The quadratic term is the additional displacement caused by the force. Its factor ½ comes from integrating the linear velocity increment.

A checkpoint at clock time 5 s

With +4 N, only 3 s have elapsed: v = 9 m/s and x = 19 m. With −2 N, the particle is momentarily at rest at x = 5.5 m, but its acceleration remains −1 m/s². It then reverses. After 6 s elapsed it returns to 1 m: zero displacement, yet 9 m traveled.

In the coasting case, zero net force leaves velocity unchanged. The equal and opposite third-law force acts on the force-producing agent, not on this particle.

Full LaTeX derivation includes the double definite integral, the two constants, dimensions, work–energy checks and the computational method.

Reproduce this example

Julia @@VERSION@@ · Matrix-exponential solution checked against the integrated formulas. 121 saved samples per case, every 0.05 s. Controls read saved values; no server computation.

Download Julia project · Provenance · License

Speeding up CSV · Coasting CSV · Turning CSV

Software: GPLv3 or later. Mathematical text, plots and data: Physics Library CC BY-SA.