Chuyển đến nội dung

Bài 9 · Measurement, Units and Vectors

Vector Components and Addition

Resolve vectors into x and y components with sine and cosine, add vectors by components, and find the magnitude and angle of any resultant.

Drawing arrows is fine for a sketch, but it is slow and imprecise. The reliable method is to split every vector into components along two perpendicular axes, usually x (horizontal) and y (vertical). Then vector addition becomes ordinary addition of numbers.

Resolving a vector

A vector A of magnitude A at an angle θ above the positive x-axis has components:

Aₓ = A cos θ A_y = A sin θ

These come from a right triangle where A is the hypotenuse. To go back:

A = √(Aₓ² + A_y²) θ = tan⁻¹(A_y / Aₓ)

For example, a force of 50 N at 30° above the x-axis has Fₓ = 50 cos 30° ≈ 43.3 N and F_y = 50 sin 30° = 25 N.

flowchart LR
    A["Vector A<br/>50 N at 30°"] --> X["Ax = A cos θ<br/>43.3 N"]
    A --> Y["Ay = A sin θ<br/>25 N"]

A vector splits into a horizontal and a vertical part.

The formulas cos for x and sin for y assume θ is measured from the x-axis. If your angle is measured from the y-axis, the roles swap. Always sketch the triangle and decide which side is adjacent.

Python Resolve a vector into components

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Signs of components

Angles measured counterclockwise from +x give correct signs automatically. A vector pointing left has a negative x component; one pointing down has a negative y component.

Quadrant Angle range Aₓ A_y
I 0° to 90° + +
II 90° to 180° − +
III 180° to 270° − −
IV 270° to 360° + −

Adding vectors by components

To find R = A + B:

  1. Resolve each vector into components.
  2. Add all x components: Rₓ = Aₓ + Bₓ.
  3. Add all y components: R_y = A_y + B_y.
  4. Combine: R = √(Rₓ² + R_y²) and θ = tan⁻¹(R_y / Rₓ), checking the quadrant from the signs.

Example: A = 10 m at 0° and B = 6 m at 90°. Then Rₓ = 10, R_y = 6, R = √136 ≈ 11.66 m, θ = tan⁻¹(0.6) ≈ 31.0°.

Add by components

Resolve each vector
Add x with x, y with y
1 / 2
Python Vector adder

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The function uses atan2, which handles all four quadrants correctly. The plain tan⁻¹(y/x) of a calculator returns an angle in the wrong half-plane when x is negative.

Unit vectors

A unit vector has magnitude 1 and marks a direction. We write î for +x and ĵ for +y. Then any 2D vector can be written A = Aₓ î + A_y ĵ. Example: 3 î + 4 ĵ has magnitude 5. Components make subtraction easy too: A − B = (Aₓ − Bₓ) î + (A_y − B_y) ĵ.

Choosing axes cleverly

The axes are yours to choose. On a ramp, it is often easier to align x with the slope. The physics does not change, only the numbers you write down. You will use this when we study forces on inclined planes.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. A vector of 10 N points 60° above the +x axis. What is its y component?

    A_y = 10 sin 60° ≈ 8.66 N.
  2. 2. Vector A has components (3, -4). What is its magnitude?

    √(3² + 4²) = 5, the sign does not matter for magnitude.
  3. 3. Why is atan2(y, x) preferred over atan(y/x) in code?

    atan2 uses the signs of both x and y to place the angle in the right quadrant.
  4. 4. To add vectors by components you add

    Components along the same axis add as ordinary numbers.

Summary

  • Components: Aₓ = A cos θ and A_y = A sin θ when θ is from the +x axis.
  • Magnitude A = √(Aₓ² + A_y²); angle θ = tan⁻¹(A_y / Aₓ) with the right quadrant.
  • Add vectors by adding their components separately.
  • Unit vectors î and ĵ write vectors compactly.

Next: Position, Distance and Displacement

Theo dõi tiến độ của bạn

Tạo tài khoản miễn phí để đánh dấu bài đã học và tiếp tục từ chỗ bạn dừng lại trên mọi thiết bị.