Sub topic 6
Position and velocity equations for x and y
What this chapter assumes
You should be comfortable with right-triangle trigonometry, with solving quadratic equations, and with one-dimensional motion under constant acceleration. Earlier chapters established three ideas that this chapter uses directly:
- The ideal model ignores air resistance and treats gravity as a constant downward acceleration of magnitude g ≈ 9.81 m/s².
- The horizontal and vertical motions are independent of each other.
- A launch velocity of speed v0 at angle θ above the horizontal splits into components v0x = v0 cos θ and v0y = v0 sin θ.
This chapter assembles those pieces into a complete set of equations. Every later result in the tutorial (time of flight, maximum height, range, the trajectory equation) comes from the four equations written here.
Choosing a coordinate system
Before writing any equation, fix a coordinate system. The standard choice is:
- The x axis points horizontally in the direction of the launch.
- The y axis points vertically upward.
- The origin sits at the launch point, so x0 = 0 and y0 = 0 unless the problem says otherwise.
- Time t = 0 is the moment of launch.
With y pointing up, the acceleration due to gravity is negative in the y direction. This is the most common source of sign errors, so state it explicitly:
- ax = 0
- ay = −g, where g = 9.81 m/s² is a positive number
If you instead choose y pointing down, then ay = +g, and an upward launch has a negative initial vertical velocity. Both choices work. Pick one and stay with it for the whole problem.
The constant-acceleration equations, applied per axis
For one-dimensional motion with constant acceleration a, the position and velocity at time t are:
- v = v0 + a t
- x = x0 + v0 t + ½ a t²
Because the two axes are independent, you apply these equations once to each axis, using that axis's own initial position, initial velocity, and acceleration.
Horizontal axis
The acceleration is zero, so the velocity never changes:
- vx(t) = v0 cos θ
- x(t) = x0 + (v0 cos θ) t
The horizontal motion is uniform: equal distances in equal times.
Vertical axis
The acceleration is −g, so the velocity changes linearly and the position changes quadratically:
- vy(t) = v0 sin θ − g t
- y(t) = y0 + (v0 sin θ) t − ½ g t²
Summary table
| Quantity | Horizontal (x) | Vertical (y) |
|---|---|---|
| Acceleration | 0 | −g |
| Velocity | v0 cos θ | v0 sin θ − g t |
| Position | x0 + (v0 cos θ) t | y0 + (v0 sin θ) t − ½ g t² |
Time t is the only quantity shared between the two columns. It links the axes, and it is the variable you will solve for or eliminate in later chapters.
Reading the equations
Each equation has a physical meaning worth checking before you use it.
- vx is constant. Nothing pushes the projectile sideways, so the horizontal velocity at impact equals the horizontal velocity at launch.
- vy decreases at a steady rate of g. Every second, the vertical velocity drops by 9.81 m/s. An upward-moving projectile slows, momentarily has vy = 0 at the top, then speeds up downward with negative vy.
- y(t) is a downward-opening parabola in time. The −½ g t² term dominates at large t, which is why every projectile eventually falls.
- x(t) is a straight line in time. Plotting x against t gives a line, and plotting y against t gives a parabola. The path in the x–y plane is a separate matter, covered in the trajectory chapter.
Worked example
A ball is kicked from level ground with speed 20.0 m/s at 30° above the horizontal. Find its position and velocity at t = 1.50 s. Take g = 9.81 m/s², x0 = 0, y0 = 0.
Step 1: components.
- v0x = 20.0 cos 30° = 17.32 m/s
- v0y = 20.0 sin 30° = 10.00 m/s
Step 2: horizontal quantities at t = 1.50 s.
- vx = 17.32 m/s
- x = 17.32 × 1.50 = 25.98 m
Step 3: vertical quantities at t = 1.50 s.
- vy = 10.00 − 9.81 × 1.50 = 10.00 − 14.715 = −4.715 m/s
- y = 10.00 × 1.50 − ½ × 9.81 × 1.50² = 15.00 − 11.036 = 3.964 m
Step 4: interpret. The negative vy means the ball is already descending at 1.50 s. It is still 3.96 m above the ground, so it has not landed. The speed at this instant is the magnitude of the velocity vector:
- speed = √(17.32² + 4.715²) ≈ 17.95 m/s
You can confirm the numbers with a short program that implements the four equations directly.
import math
g = 9.81 # m/s^2
def state_at(t, v0, angle_deg, x0=0.0, y0=0.0):
"""Return (x, y, vx, vy) at time t for an ideal projectile."""
theta = math.radians(angle_deg)
v0x = v0 * math.cos(theta)
v0y = v0 * math.sin(theta)
x = x0 + v0x * t
y = y0 + v0y * t - 0.5 * g * t**2
vx = v0x
vy = v0y - g * t
return x, y, vx, vy
x, y, vx, vy = state_at(1.50, 20.0, 30.0)
print(f"x = {x:.2f} m, y = {y:.2f} m")
print(f"vx = {vx:.2f} m/s, vy = {vy:.3f} m/s")
print(f"speed = {math.hypot(vx, vy):.2f} m/s")Running it prints x = 25.98 m, y = 3.96 m, vx = 17.32 m/s, vy = −4.715 m/s, and speed = 17.95 m/s, matching the hand calculation.
Useful derived relations
The equations above are the foundation. Two relations follow from them and often save a step.
Velocity without time
Solving vy = v0y − g t for t and substituting into the position equation gives the time-independent form for the vertical axis:
- vy² = v0y² − 2 g (y − y0)
This relates vertical speed to height directly. It is the quickest way to find the speed at a given height when you do not need to know when the projectile gets there.
Average velocity
For constant acceleration, the average velocity over an interval is the mean of the start and end velocities. In the vertical direction:
- y − y0 = ½ (v0y + vy) t
This is a handy cross-check on a computed height.
Common errors
- Sign of g. With y up, use −g. Writing +g in y(t) gives a projectile that accelerates upward.
- Applying g to the horizontal axis. Horizontal acceleration is zero. The terms ½ a t² and a t vanish in the x equations.
- Using degrees in a radians function. In Python,
math.sinandmath.costake radians. Convert withmath.radians. - Mixing launch and current velocity. The symbols v0y and vy are different. v0y is fixed at launch, and vy changes with time.
- Treating the speed as a component. Speed is √(vx² + vy²). It is not vy, and it is not v0.
- Forgetting y0. If the launch point is not at y = 0, include y0. The launch-from-height chapter builds on this.
- Using the equations after impact. The formulas describe free flight only. Once the projectile reaches the ground, they no longer apply. A negative y at a time after landing is a mathematical value, not a physical one, when the ground is at y = 0.
Checking your results
Several quick sanity checks catch most mistakes:
- At t = 0, the equations must return x0, y0, v0x, and v0y. If they do not, there is an algebra or code error.
- vx must not change over time.
- When vy = 0, the projectile is at its highest point. Setting vy = 0 gives t = v0y / g, which you will use in the next chapters.
- Energy offers an independent check. Without drag, ½ v² + g y stays constant. For the worked example, at t = 0 this is ½(20²) = 200, and at t = 1.50 s it is ½(17.95²) + 9.81 × 3.964 ≈ 161.1 + 38.9 = 200.0. The match confirms the numbers.
Exercises
Exercise
A stone is thrown from ground level at 25.0 m/s and 53° above the horizontal. Using g = 9.81 m/s², find its horizontal position x, vertical position y, and vertical velocity vy at t = 2.00 s. Is the stone rising or falling?
Show answer
The components are v0x = 25.0 cos 53° ≈ 15.05 m/s and v0y = 25.0 sin 53° ≈ 19.97 m/s. At t = 2.00 s, x = 15.05 × 2.00 ≈ 30.1 m. The height is y = 19.97 × 2.00 − ½ × 9.81 × 2.00² = 39.94 − 19.62 ≈ 20.3 m. The vertical velocity is vy = 19.97 − 9.81 × 2.00 ≈ 0.35 m/s. Because vy is still slightly positive, the stone is still rising, just before its highest point.
Exercise
A projectile launched from y0 = 0 has v0y = 12.0 m/s. Use the time-independent relation vy² = v0y² − 2 g (y − y0) to find the vertical speed when the projectile is at height y = 5.00 m, with g = 9.81 m/s². Why are there two possible signs for vy, and what do they mean?
Show answer
vy² = 12.0² − 2 × 9.81 × 5.00 = 144 − 98.1 = 45.9, so |vy| ≈ 6.77 m/s. The two signs correspond to two different moments. vy = +6.77 m/s is the moment on the way up, and vy = −6.77 m/s is the moment on the way down. The projectile passes through every height below its maximum twice, with the same speed each time.
Exercise
A student writes y(t) = v0 sin θ · t + ½ g t² for a projectile with y pointing upward. Identify the error and state how it changes the predicted motion.
Show answer
The sign of the gravity term is wrong. With y pointing up, acceleration is −g, so the term must be −½ g t². With +½ g t², the projectile would be pushed upward by an extra amount that grows with t², so it would never come back down. The predicted height would increase forever instead of following a downward-opening parabola.