Sub topic 12
Deriving the Equations with Calculus
This chapter derives the constant-acceleration equations by integration. It assumes you know the earlier chapters: displacement, velocity and acceleration in one dimension, sign conventions, and the four equations in their final form. It also assumes basic calculus: you can differentiate and integrate polynomials and you know what a definite integral is.
Earlier chapters built the equations from the definition of acceleration and from the area under a velocity-time graph. Calculus gives the same results in one pass. It also shows exactly where the assumption "acceleration is constant" enters, which makes it clear what changes when that assumption fails.
Starting point: the definitions
In one dimension, position is a function of time, x(t). The two rates of change are defined by derivatives:
- Velocity is v = dx/dt.
- Acceleration is a = dv/dt = d²x/dt².
Displacement is the change in position, s = x(t) − x(0). The symbol u is the velocity at t = 0 (the initial velocity), and v is the velocity at time t.
Going from acceleration back to velocity and position means undoing differentiation, which is integration. The whole derivation is two integrations in a row, with one choice of limits each time.
Step 1: velocity from acceleration
Start from a = dv/dt and separate the variables:
dv = a dt
Integrate both sides from the start of the motion (t = 0, velocity u) to a general time t (velocity v). Use a dummy variable t′ inside the integral so it is not confused with the upper limit:
∫ from u to v of dv′ = ∫ from 0 to t of a dt′
The left side is v − u. Now the assumption enters: a is constant, so it comes out of the integral.
v − u = a ∫ from 0 to t of dt′ = at
Therefore:
v = u + at
If a were a function of time, a(t′), it could not be pulled out, and the result would be different. This is the only place where constancy is used so far.
Step 2: displacement from velocity
Now use v = dx/dt, where v(t′) = u + at′ is the expression just found. Separate the variables again:
dx = v dt′ = (u + at′) dt′
Integrate from t′ = 0 (position x₀) to t′ = t (position x):
x − x₀ = ∫ from 0 to t of (u + at′) dt′
Integrate term by term:
x − x₀ = [u t′ + a t′²/2] from 0 to t = ut + at²/2
The left side is the displacement s, so:
s = ut + ½at²
The factor ½ comes from integrating t′, which is the algebraic form of the triangle area in the velocity-time graph. The graph method and the calculus method are the same calculation: the area under the line is the definite integral.
Step 3: eliminating time
The third equation, v² = u² + 2as, needs no new integration. One way is algebraic: solve v = u + at for t, then substitute into s = ut + ½at². This works but is messy.
A cleaner route uses the chain rule to change the variable of integration from time to position. Since v = dx/dt,
a = dv/dt = (dv/dx)(dx/dt) = v dv/dx
Now separate variables with a constant:
v dv = a dx
Integrate from (velocity u, position x₀) to (velocity v, position x):
∫ from u to v of v′ dv′ = a ∫ from x₀ to x of dx′
(v² − u²)/2 = a(x − x₀) = as
Multiply by 2:
v² = u² + 2as
This route shows why the equation holds without referring to time at all. It relates velocity to position directly, and it is a statement about energy in disguise: multiplying by m/2 gives the work-energy theorem for a constant force, ½mv² − ½mu² = (ma)s = Fs.
Step 4: the average-velocity form
The equation s = (u + v)t/2 also follows from the integral. Because v(t′) = u + at′ is linear in t′, its average over the interval is the midpoint value:
average velocity = (1/t) ∫ from 0 to t of (u + at′) dt′ = u + at/2 = (u + v)/2
since v = u + at. Multiplying by t gives s = (u + v)t/2. This step needs linearity of v(t), which holds only because a is constant. For non-constant acceleration the average velocity is generally not (u + v)/2.
Summary of the derivation
| Step | Starting relation | Integrate over | Result |
|---|---|---|---|
| 1 | a = dv/dt | t from 0 to t | v = u + at |
| 2 | v = dx/dt | t from 0 to t | s = ut + ½at² |
| 3 | a = v dv/dx | x from x₀ to x | v² = u² + 2as |
| 4 | average of linear v(t) | t from 0 to t | s = (u + v)t/2 |
Each result uses the same fact: a does not depend on t or x, so it leaves the integral as a constant factor.
Indefinite integrals and the constants
Many textbooks use indefinite integrals and fix the constants afterward. The two methods give identical results, but the constants carry meaning, so it is worth seeing both.
Integrating a = constant gives
v(t) = at + C₁
At t = 0 this reads v(0) = C₁, so C₁ = u. The first constant of integration is the initial velocity.
Integrating v(t) = u + at gives
x(t) = ut + at²/2 + C₂
At t = 0 this reads x(0) = C₂, so C₂ = x₀. The second constant is the initial position.
So a constant-acceleration problem has exactly two free constants beyond a itself: where the object starts and how fast it starts. Once u, x₀ and a are given, the whole motion is determined. This is why most problems need three known quantities to find the rest.
Checking the result with a computer algebra system
You can confirm the derivation symbolically. The following program uses the SymPy library (install it with pip install sympy). It integrates a constant acceleration twice, applies the initial conditions, and checks the third equation.
import sympy as sp
t = sp.symbols("t", real=True)
a, u, x0 = sp.symbols("a u x0", real=True)
# Step 1: integrate a once, with v(0) = u.
tp = sp.symbols("tp", real=True) # dummy variable of integration
v = u + sp.integrate(a, (tp, 0, t))
print("v(t) =", v)
# Step 2: integrate v once, with x(0) = x0.
x = x0 + sp.integrate(v.subs(t, tp), (tp, 0, t))
print("x(t) =", sp.expand(x))
# Step 3: check v^2 = u^2 + 2 a s, where s = x - x0.
s = sp.expand(x - x0)
difference = sp.simplify(v**2 - (u**2 + 2 * a * s))
print("v^2 - (u^2 + 2as) =", difference) # 0The output is:
v(t) = a*t + u
x(t) = a*t**2/2 + t*u + x0
v^2 - (u^2 + 2as) = 0The zero in the last line confirms that the time-independent equation follows from the first two for any a, u and x₀.
What changes when acceleration is not constant
Because the derivation isolates the single assumption, you can see how to generalise it. Suppose the acceleration grows linearly with time, a(t) = kt. Then
v(t) = u + ∫ from 0 to t of kt′ dt′ = u + kt²/2
x(t) = x₀ + ut + kt³/6
The terms are different, and the equations from this chapter no longer hold. In particular:
- v is no longer linear in t, so the average velocity is not (u + v)/2.
- The displacement has a t³ term, so s = ut + ½at² gives the wrong answer for any single value of "a".
- The time-independent relation changes too. Using v dv = a dx gives a dependence on how a varies with x, which here is not simply a constant.
The method still works: integrate the actual a(t). The memorised formulas are only the special case where a is a constant.
# Compare the constant-acceleration formula with the exact result
# for a(t) = k t, using the same final velocity to define an "equivalent" a.
u, k, T = 2.0, 3.0, 4.0
v_final = u + k * T**2 / 2 # exact velocity at T
s_exact = u * T + k * T**3 / 6 # exact displacement
a_equiv = (v_final - u) / T # average acceleration over [0, T]
s_formula = u * T + 0.5 * a_equiv * T**2
print(round(s_exact, 2), round(s_formula, 2)) # 40.0 32.0Even with the average acceleration, the constant-acceleration formula underestimates the displacement by 8 m, a 20% error. The next chapter covers the practical limits of the model in more detail.
Common errors
- Reusing t as the integration variable. Writing ∫ from 0 to t of (u + at) dt makes the variable of integration and the upper limit the same symbol. Use t′ inside the integral, or state clearly that you mean the integral up to t.
- Forgetting the constants of integration. Dropping C₁ and C₂ gives v = at and s = at²/2, which describe an object starting from rest at the origin. Always apply initial conditions.
- Pulling a out when it is not constant. This is the most important check. Before moving a outside an integral, confirm it does not depend on the integration variable.
- Mixing limits and variables in the v dv = a dx step. When integrating over position, the limits are on x (x₀ to x), not on time.
- Treating s as position. The result s = ut + ½at² gives displacement. Position is x = x₀ + s.
Worked check: a braking car
Use the numbers from the braking example earlier in the tutorial: u = 25 m/s, a = −5 m/s², and the car stops (v = 0).
- From v = u + at: 0 = 25 − 5t, so t = 5 s.
- From x(t) = ut + at²/2: s = 25(5) − 2.5(25) = 125 − 62.5 = 62.5 m.
- From the integrated form of v dv = a dx: (0 − 625)/2 = −5s, so s = 62.5 m.
Two different integrations give the same braking distance. That agreement is what you should expect, since the three equations are consequences of one assumption.
Exercise
A particle starts at x₀ = 3 m with velocity u = −2 m/s and has constant acceleration a = 4 m/s². Using integration with the initial conditions (not the memorised formulas), find v(t) and x(t). Then find the time at which the particle is momentarily at rest and its position at that time.
Show answer
Integrate a = 4: v(t) = 4t + C₁. Since v(0) = −2, C₁ = −2, so v(t) = −2 + 4t. Integrate v: x(t) = −2t + 2t² + C₂. Since x(0) = 3, C₂ = 3, so x(t) = 3 − 2t + 2t². The particle is at rest when v = 0: −2 + 4t = 0, so t = 0.5 s. Then x(0.5) = 3 − 1 + 0.5 = 2.5 m. The particle first moves backward from 3 m to 2.5 m, then turns around.
Exercise
An object has acceleration a(t) = 6t m/s² (not constant). It starts at x₀ = 0 with u = 0. (a) Find v(t) and x(t). (b) Find the displacement at t = 2 s. (c) What would s = ut + ½at² give if you used the final acceleration a = 12 m/s² at t = 2 s, and why is it wrong?
Show answer
(a) v(t) = ∫6t dt = 3t² (with v(0) = 0), and x(t) = ∫3t² dt = t³ (with x(0) = 0). (b) x(2) = 8 m. (c) The formula gives ½(12)(4) = 24 m, which is three times too large. It is wrong because it assumes the acceleration of 12 m/s² acted for the whole interval, but the real acceleration rose from 0 to 12 m/s². The formula only holds when a is constant.
Exercise
Starting from a = v dv/dx with constant a, derive v² = u² + 2a(x − x₀). State which step uses the assumption that a is constant.
Show answer
Separate variables: v dv = a dx. Integrate from (u, x₀) to (v, x): ∫ v′ dv′ from u to v equals a ∫ dx′ from x₀ to x. This gives (v² − u²)/2 = a(x − x₀), so v² = u² + 2a(x − x₀). The constant-acceleration assumption is used when a is taken outside the integral on the right-hand side.