Sub topic 1
Resolving vectors into components
Projectile and relative-velocity problems become easy once you split every vector into perpendicular parts. This chapter shows how to do that and how to avoid the usual sign errors.
Prerequisites
This chapter assumes you know:
- What a vector is, and how to add and subtract vectors.
- The definitions of sine, cosine and tangent in a right triangle.
- The meaning of displacement, velocity and acceleration.
The idea
A vector of magnitude A that makes an angle θ with the x-axis can be replaced by two perpendicular vectors, one along x and one along y. These are its components. Together they have the same effect as the original vector.
The components are:
- Ax = A cosθ
- Ay = A sinθ
The magnitude and direction are recovered with:
- A = √(Ax² + Ay²)
- tanθ = Ay / Ax
Which angle goes with cosine?
The rule is simple: the component adjacent to the angle uses cosine, and the component opposite the angle uses sine. The angle must be measured from the axis you are resolving along.
If you measure the angle from the vertical instead, the roles swap: the vertical component becomes A cosα and the horizontal component becomes A sinα.
Worked example
A ball is thrown at 20 m/s at 30° above the horizontal. Find the initial velocity components.
- ux = 20 cos30° = 20 × 0.866 ≈ 17.3 m/s
- uy = 20 sin30° = 20 × 0.5 = 10 m/s
You can check the result: √(17.3² + 10²) ≈ 20 m/s.
The same calculation in code:
import math
def components(magnitude, angle_deg):
"""Return (x, y) components of a vector at angle_deg from the x-axis."""
theta = math.radians(angle_deg)
return magnitude * math.cos(theta), magnitude * math.sin(theta)
ux, uy = components(20, 30)
print(f"ux = {ux:.2f} m/s, uy = {uy:.2f} m/s")
print(f"magnitude = {math.hypot(ux, uy):.2f} m/s")Signs and choosing axes
Components are signed numbers. Pick a positive direction for each axis and keep it for the whole problem.
| Direction of the vector | Sign of Ax | Sign of Ay |
|---|---|---|
| First quadrant (up and right) | + | + |
| Second quadrant (up and left) | − | + |
| Third quadrant (down and left) | − | − |
| Fourth quadrant (down and right) | + | − |
You may rotate the axes to suit the problem. For motion on an incline, taking x along the slope and y perpendicular to it often removes one component of the acceleration. Later chapters use this for projectiles on an inclined plane.
Common mistakes
- Using the wrong trigonometric function because the angle is from the vertical.
- Forgetting that a component can be negative.
- Adding magnitudes instead of adding components. Vectors add component by component.
- Using degrees on a calculator set to radians, or the reverse.
Exercise
A force of 50 N acts at 37° below the positive x-axis, pointing to the right. Take cos37° = 0.8 and sin37° = 0.6. Find Fx and Fy.
Show answer
The force points right and down, so Fx is positive and Fy is negative. Fx = 50 × 0.8 = +40 N and Fy = −50 × 0.6 = −30 N.
Exercise
A velocity of 10 m/s makes an angle of 60° with the vertical. What are its horizontal and vertical components?
Show answer
The angle is from the vertical, so the horizontal component is opposite the angle and the vertical component is adjacent. Horizontal = 10 sin60° ≈ 8.66 m/s. Vertical = 10 cos60° = 5 m/s.