← Back to course

Physics — Mechina

Vectors and components

Summary

A scalar is a quantity described by one number: mass, time, energy. A vector is a quantity that has both a magnitude and a direction: displacement, velocity, force, acceleration.

A vector is split into components along the axes. If θ\theta is the angle from the positive xx axis:

Ax=Acos⁡θ,Ay=Asin⁡θA_x=A\cos\theta,\qquad A_y=A\sin\theta

Symbols in the formulas

A⃗\vec{A}
The vector being resolved (for example a force or a velocity)
AA
The magnitude of the vector, A=∣A⃗∣A=|\vec{A}| — always a non-negative number, in the same units as the vector
AxA_x
The component of the vector along the xx axis (with a sign)
AyA_y
The component of the vector along the yy axis (with a sign)
θ\theta
The angle between the vector and the positive direction of the xx axis (measured counterclockwise)∘^\circ
-1123456-112345xyθAₓAᵧA
A⃗=(4,3)\vec{A}=(4,3): magnitude ∣A⃗∣=5|\vec{A}|=5, angle θ≈36.9∘\theta\approx 36.9^\circ.

The other way — from components to magnitude and angle:

∣A⃗∣=Ax2+Ay2,tan⁡θ=AyAx|\vec{A}|=\sqrt{A_x^2+A_y^2},\qquad \tan\theta=\frac{A_y}{A_x}

Symbols in the formulas

∣A⃗∣|\vec{A}|
The magnitude of the vector — the length of the arrow, by the Pythagorean theorem from the components
tan⁡θ\tan\theta
The ratio of the vertical component to the horizontal one; the angle is found from it

Adding vectors: add component to component.

A⃗+B⃗=(Ax+Bx,  Ay+By)\vec{A}+\vec{B}=(A_x+B_x,\;A_y+B_y)

Symbols in the formulas

A⃗, B⃗\vec{A},\ \vec{B}
The two vectors being added
Ax+BxA_x+B_x
The sum of the horizontal components — the horizontal component of the sum
Ay+ByA_y+B_y
The sum of the vertical components — the vertical component of the sum
  • Head to tail: start B⃗\vec{B} at the tip of A⃗\vec{A}. The sum goes from the start of A⃗\vec{A} to the tip of B⃗\vec{B}.
  • −B⃗-\vec{B} is the same vector in the opposite direction, so A⃗−B⃗=A⃗+(−B⃗)\vec{A}-\vec{B}=\vec{A}+(-\vec{B}).

Question types

1

From magnitude and angle to components

A force or velocity is given at an angle, and you need to work along the axes. Almost every dynamics and projectile question starts this way.

Worked example

A force of 10 N10\,\text{N} acts at 30∘30^\circ above the xx axis. Find its components.

Solution

  1. The horizontal component: Fx=Fcos⁡θF_x=F\cos\theta.
  2. Substitute F=10F=10, θ=30∘\theta=30^\circ: Fx=10cos⁡30∘F_x=10\cos30^\circ.
  3. Substitute cos⁡30∘=32\cos30^\circ=\frac{\sqrt3}{2}: Fx=10⋅32F_x=10\cdot\frac{\sqrt3}{2}.
  4. Compute: Fx≈8.66 NF_x\approx8.66\,\text{N}.
  5. The vertical component: Fy=Fsin⁡θF_y=F\sin\theta.
  6. Substitute F=10F=10, θ=30∘\theta=30^\circ: Fy=10sin⁡30∘F_y=10\sin30^\circ.
  7. Substitute sin⁡30∘=12\sin30^\circ=\frac12: Fy=10⋅12=5 NF_y=10\cdot\frac12=5\,\text{N}.
  8. Check: Fx2+Fy2=8.662+52≈10\sqrt{F_x^2+F_y^2}=\sqrt{8.66^2+5^2}\approx10 — it matches.
246810-11234567xy30°FₓFᵧF

Variants of this type · 2

1.1Angle in the second quadrant

Worked example

A vector of magnitude 1010 makes an angle of 120∘120^\circ with the positive xx-axis. Find its components.

Solution

IdeaThe same formulas; the signs come out of the cosine and sine by themselves.
  1. Ax=10cos⁡120∘=10⋅(−12)=−5A_x=10\cos 120^\circ=10\cdot(-\tfrac12)=-5.

    Why: In the second quadrant cos⁡<0\cos<0.

  2. Ay=10sin⁡120∘=10⋅32≈8.66A_y=10\sin 120^\circ=10\cdot\tfrac{\sqrt3}{2}\approx 8.66.
Check25+75=10\sqrt{25+75}=10 ✓.
Common mistakeTaking 60∘60^\circ and forgetting the minus sign of AxA_x.
-7-6-5-4-3-2-1123-112345678910xy120°AAₓ
1.2Angle from the yy-axis

Worked example

A force of 20 N20\,\text{N} acts at 30∘30^\circ to the left of "up" (the yy-axis). Find its components.

Solution

IdeaWhen the angle is measured from the yy-axis, sine and cosine swap. It is safer to convert to an angle from the xx-axis.
  1. The angle from the positive xx-axis: 90∘+30∘=120∘90^\circ+30^\circ=120^\circ.
  2. Fx=20cos⁡120∘=−10 NF_x=20\cos120^\circ=-10\,\text{N}, Fy=20sin⁡120∘≈17.3 NF_y=20\sin120^\circ\approx 17.3\,\text{N}.
CheckThe larger component is the vertical one — the force is close to the yy-axis ✓.
Common mistakeFx=20cos⁡30∘F_x=20\cos30^\circ — using the angle from the wrong axis.
2

From components to magnitude and direction

Components are given (or you computed a sum), and you need the magnitude and angle. Here it is easy to get the quadrant wrong.

Worked example

Find the magnitude and direction of A⃗=(−3,4)\vec{A}=(-3,4).

Solution

  1. The magnitude — Pythagoras: ∣A⃗∣=Ax2+Ay2|\vec A|=\sqrt{A_x^2+A_y^2}.
  2. Substitute Ax=−3A_x=-3, Ay=4A_y=4: ∣A⃗∣=(−3)2+42|\vec A|=\sqrt{(-3)^2+4^2}.
  3. Compute: ∣A⃗∣=9+16=5|\vec A|=\sqrt{9+16}=5.
  4. Reference angle (ignoring signs): tan⁡α=∣Ay∣∣Ax∣\tan\alpha=\frac{|A_y|}{|A_x|}.
  5. Substitute ∣Ay∣=4|A_y|=4, ∣Ax∣=3|A_x|=3: tan⁡α=43\tan\alpha=\frac43.
  6. Compute: α≈53.1∘\alpha\approx53.1^\circ.
  7. Find the quadrant from the signs: Ax<0A_x<0 and Ay>0A_y>0, so the vector is in the second quadrant.
  8. In the second quadrant: θ=180∘−α\theta=180^\circ-\alpha.
  9. Substitute α=53.1∘\alpha=53.1^\circ: θ=180∘−53.1∘=126.9∘\theta=180^\circ-53.1^\circ=126.9^\circ.
-5-4-3-2-1123-112345xyθA

Variants of this type · 1

2.1Vector in the third quadrant

Worked example

Find the magnitude and direction of A⃗=(−3,−4)\vec{A}=(-3,-4).

Solution

Ideatan⁡θ\tan\theta gives an angle in the first quadrant — correct it using the signs of the components.
  1. ∣A⃗∣=9+16=5|\vec A|=\sqrt{9+16}=5.
  2. tan⁡α=43\tan\alpha=\frac{4}{3}, α≈53.1∘\alpha\approx 53.1^\circ.
  3. Third quadrant: θ=180∘+53.1∘=233.1∘\theta=180^\circ+53.1^\circ=233.1^\circ.

    Why: Both components are negative.

Check5cos⁡233.1∘≈−35\cos233.1^\circ\approx-3 ✓.
Common mistakeAnswering 53.1∘53.1^\circ — that is the direction of (3,4)(3,4).
3

Adding vectors

Several forces on a body, or several displacements in a row. Add by components, and compute the magnitude only at the end.

Worked example

A⃗=(2,1)\vec{A}=(2,1), B⃗=(1,3)\vec{B}=(1,3). Calculate C⃗=A⃗+B⃗\vec{C}=\vec{A}+\vec{B} and its magnitude.

Solution

  1. Adding by components: C⃗=(Ax+Bx,  Ay+By)\vec C=(A_x+B_x,\;A_y+B_y).
  2. Substitute Ax=2A_x=2, Bx=1B_x=1, Ay=1A_y=1, By=3B_y=3: C⃗=(2+1,  1+3)\vec C=(2+1,\;1+3).
  3. Compute: C⃗=(3,4)\vec C=(3,4).
  4. The magnitude — Pythagoras: ∣C⃗∣=Cx2+Cy2|\vec C|=\sqrt{C_x^2+C_y^2}.
  5. Substitute Cx=3C_x=3, Cy=4C_y=4: ∣C⃗∣=32+42|\vec C|=\sqrt{3^2+4^2}.
  6. Compute: ∣C⃗∣=25=5|\vec C|=\sqrt{25}=5.
-112345-112345xyABC

Variants of this type · 2

3.1Subtracting vectors

Worked example

A⃗=(2,5)\vec{A}=(2,5), B⃗=(4,1)\vec{B}=(4,1). Find A⃗−B⃗\vec{A}-\vec{B} and its magnitude.

Solution

IdeaSubtract component by component; A⃗−B⃗\vec A-\vec B is the vector from the tip of B⃗\vec B to the tip of A⃗\vec A.
  1. (2−4,  5−1)=(−2,4)(2-4,\;5-1)=(-2,4).
  2. ∣A⃗−B⃗∣=4+16=20≈4.47|\vec A-\vec B|=\sqrt{4+16}=\sqrt{20}\approx 4.47.
CheckB⃗+(A⃗−B⃗)=(4−2,1+4)=(2,5)=A⃗\vec B+(\vec A-\vec B)=(4-2,1+4)=(2,5)=\vec A ✓.
Common mistakeComputing ∣A⃗∣−∣B⃗∣|\vec A|-|\vec B| — magnitudes do not subtract like that.
3.2Three forces in equilibrium

Worked example

Forces F⃗1=(3,0)\vec F_1=(3,0) and F⃗2=(0,4)\vec F_2=(0,4) (in N\text{N}) act on a body. What third force keeps it in equilibrium?

Solution

IdeaEquilibrium: the sum of all forces is 0⃗\vec 0, so F⃗3=−(F⃗1+F⃗2)\vec F_3=-(\vec F_1+\vec F_2).
  1. F⃗1+F⃗2=(3,4)\vec F_1+\vec F_2=(3,4).
  2. F⃗3=(−3,−4)\vec F_3=(-3,-4), of magnitude 5 N5\,\text{N}.
Check(3,0)+(0,4)+(−3,−4)=(0,0)(3,0)+(0,4)+(-3,-4)=(0,0) ✓.
Common mistakeAnswering (3,4)(3,4) — that is the resultant, not the balancing force.

Exam-style problems

One problem with several parts on the same data, as on the exam. Each part adds something to the drawing.

Practice · 20

Test yourself with problems and full solutions.

Go to practice