Sub topic 1
Vectors and components: the toolkit
Prerequisites
This chapter assumes you can solve basic algebra, use sine and cosine in a right triangle, and apply the constant-acceleration equations for motion in one direction. The code example uses basic Python.
Vectors and components
A vector has a size (magnitude) and a direction. Velocity is a vector. A component is the part of a vector that points along one axis. For a velocity of magnitude $v$ at angle $\theta$ above the horizontal $x$-axis, the components are:
- $v_x = v\cos\theta$
- $v_y = v\sin\theta$
In this tutorial, right and up are positive.
Review: one-dimensional motion with constant acceleration
Along one axis with constant acceleration $a$, starting at position $x0$ with velocity $v0$:
- $v = v_0 + at$
- $x = x0 + v0 t + \tfrac{1}{2} a t^2$
- $v^2 = v0^2 + 2a(x - x0)$
The ideal projectile model: what we assume
The ideal model makes four assumptions:
- Air resistance is zero.
- Gravity is a constant downward acceleration, $g = 9.81\ \text{m/s}^2$, near Earth's surface.
- The projectile is treated as a point with constant mass.
- The ground is flat, and the launch and landing points are known.
Two independent motions in one path
A projectile moves in two directions at once, but the two motions do not affect each other in the ideal model. Horizontal velocity stays constant because no horizontal force acts. Vertical acceleration stays at $-g$. Each axis follows its own one-dimensional equations, and time is the shared variable that links them.
Splitting the launch velocity into components
For launch speed $v0$ at angle $\theta$, the initial components are $v{x0} = v0\cos\theta$ and $v{y0} = v_0\sin\theta$. The position at time $t$ is then:
- $x(t) = v_{x0}\,t$
- $y(t) = v_{y0}\,t - \tfrac{1}{2} g t^2$
Run this to check the components for a 20 m/s launch at 30 degrees:
import math
v0 = 20.0
theta = math.radians(30)
vx0 = v0 * math.cos(theta)
vy0 = v0 * math.sin(theta)
print(f"vx0 = {vx0:.2f} m/s, vy0 = {vy0:.2f} m/s")The output is vx0 = 17.32 m/s, vy0 = 10.00 m/s.
Exercise
A ball is launched at 10 m/s at 60 degrees above the horizontal. What are its horizontal and vertical velocity components?
Show answer
vx = 10 cos 60° = 5.00 m/s, and vy = 10 sin 60° ≈ 8.66 m/s.