PHY1001 · Week 2 · Vectors: Vector and Scalar quantities, addition of vectors, substraction of vectors, Vector Multiplication, component of a vector, unit vectors-analytic method.

Vectors: components, unit vectors, dot and cross product

Resolving a vector into components, finding magnitude and direction, addition and subtraction, dot product and cross product. 4-5 questions on the midterm, all mechanical.

vectorscalarcomponentmagnitudedirectionunit vectorresultantdot product (scalar product)cross product (vector product)right-hand rule

Vectors are the language of this course. Velocity and acceleration in kinematics, force in dynamics, work in energy, collisions in momentum: all are written with vectors. The midterm has 4-5 direct questions, and all of them are mechanical operations: take components, add, multiply. If you know the formula, they will not get away.

Golden rules:

  1. Always add vectors by components. Adding magnitudes (6+8=146 + 8 = 14) is correct only for vectors in the same direction.
  2. Do not trust the tan⁡−1\tan^{-1} result, check the quadrant. If Ax<0A_x < 0, add 180∘180^\circ.
  3. The dot product gives a number, the cross product gives a vector.
  4. Order matters in the cross product: B⃗×A⃗=−A⃗×B⃗\vec B\times\vec A = -\vec A\times\vec B.
  5. Keep the calculator in DEG mode. In RAD mode cos⁡35\cos35 comes out negative.

Scalars and vectors

A scalar consists only of a number and a unit: mass, time, temperature, speed, energy. A vector carries magnitude and direction: displacement, velocity, acceleration, force.

Notation: A⃗\vec A is the vector itself, AA or ∣A⃗∣|\vec A| is its magnitude (always ≥0\ge 0).

Geometrically, two vectors are added head-to-tail: R⃗=A⃗+B⃗\vec R = \vec A + \vec B is the arrow from the start of A⃗\vec A to the tip of B⃗\vec B. Subtraction is adding the opposite: A⃗−B⃗=A⃗+(−B⃗)\vec A - \vec B = \vec A + (-\vec B). −B⃗-\vec B is a vector of the same magnitude in the opposite direction.

Components

The projections of a vector onto the xx and yy axes. If the angle θ\theta is measured counterclockwise from the +x axis:

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

The reverse, from components to magnitude and direction:

A=Ax2+Ay2θ=tan⁡−1 ⁣(AyAx)A = \sqrt{A_x^2 + A_y^2} \qquad \theta = \tan^{-1}\!\left(\frac{A_y}{A_x}\right)

Example 1. A⃗\vec A is 20.0 m, in the direction 150∘150^\circ. Ax=20.0cos⁡150∘=−17.3A_x = 20.0\cos150^\circ = -17.3 m, Ay=20.0sin⁡150∘=10.0A_y = 20.0\sin150^\circ = 10.0 m. The signs come out right on their own because we gave the angle from +x.

Quadrant check

The tan⁡−1\tan^{-1} function of the calculator gives results only between −90∘-90^\circ and +90∘+90^\circ. So:

AxA_xAyA_yQuadrantTo the calculator result
++Ido not touch
−+II+180∘+180^\circ
−−III+180∘+180^\circ
+−IV+360∘+360^\circ (or leave it negative)

PITFALL · the “north of west” angle. The question may not give the angle from +x. “40° north of west” means 40° from west (−x) toward north: from +x it is 180∘−40∘=140∘180^\circ - 40^\circ = 140^\circ. “30° east of north” is 30° from north toward east: from +x it is 60∘60^\circ. Draw first, then take components.

Unit vectors

i^,j^,k^\hat i, \hat j, \hat k are unitless vectors of magnitude 1 in the x,y,zx, y, z directions respectively. Every vector is written with them:

A⃗=Ax i^+Ay j^+Az k^\vec A = A_x\,\hat i + A_y\,\hat j + A_z\,\hat k

The unit vector in the direction of any A⃗\vec A: A^=A⃗/A\hat A = \vec A / A.

Addition, subtraction, multiplication by a scalar

These are done component by component:

A⃗±B⃗=(Ax±Bx) i^+(Ay±By) j^+(Az±Bz) k^cA⃗=cAx i^+cAy j^+cAz k^\vec A \pm \vec B = (A_x \pm B_x)\,\hat i + (A_y \pm B_y)\,\hat j + (A_z \pm B_z)\,\hat k \qquad c\vec A = cA_x\,\hat i + cA_y\,\hat j + cA_z\,\hat k

Example 2. A⃗\vec A: 30.0 m, 60.0∘60.0^\circ. B⃗\vec B: 20.0 m, 200∘200^\circ. R⃗=A⃗+B⃗\vec R = \vec A + \vec B?

Ax = 30.0 cos 60.0° = 15.0       Ay = 30.0 sin 60.0° = 26.0
Bx = 20.0 cos 200°  = -18.8      By = 20.0 sin 200°  = -6.84
Rx = 15.0 - 18.8    = -3.79      Ry = 26.0 - 6.84    = 19.1
R  = √(3.79² + 19.1²) = 19.5 m
tan⁻¹(19.1 / -3.79) = -78.8°  (calculator)
Rx < 0, Ry > 0 → quadrant II → θ = -78.8° + 180° = 101°

Common-sense check: RR should be between ∣A−B∣=10|A - B| = 10 and A+B=50A + B = 50. 19.5 m fits.

Dot product (scalar product)

It produces a number from two vectors:

A⃗⋅B⃗=ABcos⁡θ=AxBx+AyBy+AzBz\vec A\cdot\vec B = AB\cos\theta = A_xB_x + A_yB_y + A_zB_z

Here θ\theta is the angle between the two vectors (00 to 180∘180^\circ). Unit vector rules: i^⋅i^=j^⋅j^=k^⋅k^=1\hat i\cdot\hat i = \hat j\cdot\hat j = \hat k\cdot\hat k = 1, and different pairs are zero.

Uses:

  • The angle between two vectors: cos⁡θ=A⃗⋅B⃗AB\cos\theta = \dfrac{\vec A\cdot\vec B}{AB}.
  • Perpendicularity test: A⃗⋅B⃗=0⇔A⃗⊥B⃗\vec A\cdot\vec B = 0 \Leftrightarrow \vec A \perp \vec B.
  • Projection: the component of A⃗\vec A along B⃗\vec B is A⃗⋅B⃗/B\vec A\cdot\vec B / B.
  • Later, work: W=F⃗⋅Δr⃗W = \vec F\cdot\Delta\vec r (week 10).

Example 3. a⃗=2 i^+3 j^−k^\vec a = 2\,\hat i + 3\,\hat j - \hat k, b⃗=i^−2 j^+2 k^\vec b = \hat i - 2\,\hat j + 2\,\hat k. What is the angle between them?

a·b = (2)(1) + (3)(-2) + (-1)(2) = 2 - 6 - 2 = -6
|a| = √(4 + 9 + 1) = √14 = 3.742      |b| = √(1 + 4 + 4) = 3
cos θ = -6 / (3.742 × 3) = -0.5345    →   θ = 122.3°

Sign information: if the dot product is negative, the angle is larger than 90∘90^\circ. Eliminate the acute angles in the options immediately.

Cross product (vector product)

It produces a vector from two vectors. Its magnitude is:

∣A⃗×B⃗∣=ABsin⁡θ|\vec A\times\vec B| = AB\sin\theta

This magnitude is the area of the parallelogram formed by A⃗\vec A and B⃗\vec B. Its direction is perpendicular to both vectors and is found with the right-hand rule: as the fingers of the right hand curl from A⃗\vec A to B⃗\vec B, the thumb points in the direction of A⃗×B⃗\vec A\times\vec B.

The component formula:

A⃗×B⃗=(AyBz−AzBy) i^+(AzBx−AxBz) j^+(AxBy−AyBx) k^\vec A\times\vec B = (A_yB_z - A_zB_y)\,\hat i + (A_zB_x - A_xB_z)\,\hat j + (A_xB_y - A_yB_x)\,\hat k

Instead of memorizing, use the cycle: x→y→z→xx \to y \to z \to x. For the i^\hat i component, “y z minus z y”, for j^\hat j “z x minus x z”, for k^\hat k “x y minus y x”.

Unit vectors: i^×j^=k^\hat i\times\hat j = \hat k, j^×k^=i^\hat j\times\hat k = \hat i, k^×i^=j^\hat k\times\hat i = \hat j. In reverse order a minus appears (j^×i^=−k^\hat j\times\hat i = -\hat k). The product with the same vector is zero: i^×i^=0\hat i\times\hat i = 0.

Example 4. A⃗=2 i^+j^\vec A = 2\,\hat i + \hat j, B⃗=i^−3 j^+2 k^\vec B = \hat i - 3\,\hat j + 2\,\hat k. A⃗=(2,1,0)\vec A = (2, 1, 0), B⃗=(1,−3,2)\vec B = (1, -3, 2).

î :  AyBz - AzBy = (1)(2) - (0)(-3)  =  2
ĵ :  AzBx - AxBz = (0)(1) - (2)(2)   = -4
k̂ :  AxBy - AyBx = (2)(-3) - (1)(1)  = -7
A × B = 2î - 4ĵ - 7k̂
check: A·(A×B) = (2)(2) + (1)(-4) + 0 = 0   (perpendicular, correct)

TIP · the perpendicularity check. After finding the cross product, take the dot product of the result with A⃗\vec A. If it is not zero, a sign has slipped. This test cannot catch B⃗×A⃗\vec B\times\vec A (it is perpendicular too), so check the order separately.

Common mistakes

Wrong ideaThe truth
tan⁡−1(8/−6)=−53.1∘\tan^{-1}(8/-6) = -53.1^\circ is the answerAx<0A_x < 0: +180∘+180^\circ, that is, 126.9∘126.9^\circ
The magnitude of A⃗+B⃗\vec A + \vec B is A+BA + Bonly if they are in the same direction. Add by components
“40° north of west” = 40° from +x140∘140^\circ from +x
Ax=Asin⁡θA_x = A\sin\theta (when the angle is from +x)cos⁡\cos is the horizontal, sin⁡\sin the vertical component (when the angle is from +x)
The result of the dot product is a vectora scalar, just a number
A⃗×B⃗=B⃗×A⃗\vec A\times\vec B = \vec B\times\vec Athe sign changes: −B⃗×A⃗-\vec B\times\vec A
The j^\hat j component is AxBz−AzBxA_xB_z - A_zB_xit is AzBx−AxBzA_zB_x - A_xB_z (the most common sign error)
$\vec A\times\vec B
Calculator in RAD modework in DEG mode
In 2A⃗−B⃗2\vec A - \vec B, applying the 2 only to xxit is applied to every component

Test yourself

Exam-style questions. Solve them on paper first, then reveal the answer.

Question 1easy

A vector A⃗\vec A has magnitude 12.0 m and points 35.0° counterclockwise from the +x axis. What are its components?

  1. Ax=6.88A_x = 6.88 m, Ay=9.83A_y = 9.83 m
  2. Ax=9.83A_x = 9.83 m, Ay=6.88A_y = 6.88 m
  3. Ax=−10.8A_x = -10.8 m, Ay=−5.14A_y = -5.14 m
  4. Ax=9.83A_x = 9.83 m, Ay=−6.88A_y = -6.88 m
  5. Ax=12.0A_x = 12.0 m, Ay=12.0A_y = 12.0 m
Show answer
B) Ax = 9.83 m, Ay = 6.88 m

Since the angle is measured from the +x axis, Ax=Acos⁡θ=12.0cos⁡35.0∘=9.83A_x = A\cos\theta = 12.0\cos35.0^\circ = 9.83 m, Ay=Asin⁡θ=6.88A_y = A\sin\theta = 6.88 m. In (a) sin and cos are swapped. In (c) the calculator is in RAD mode: cos⁡(35 rad)=−0.904\cos(35\,\text{rad}) = -0.904.

Question 2medium

A displacement vector is B⃗=−7.0 i^−24 j^\vec B = -7.0\,\hat i - 24\,\hat j m. What are its magnitude and its direction measured counterclockwise from the +x axis?

  1. 25 m, 73.7°
  2. 25 m, 253.7°
  3. 31 m, 253.7°
  4. 25 m, 196.3°
  5. 25 m, 106.3°
Show answer
B) 25 m, 253.7°

B=7.02+242=25B = \sqrt{7.0^2 + 24^2} = 25 m. The calculator gives tan⁡−1(−24/−7)=tan⁡−1(3.43)=73.7∘\tan^{-1}(-24/-7) = \tan^{-1}(3.43) = 73.7^\circ, but both components are negative and the vector is in quadrant III: θ=73.7∘+180∘=253.7∘\theta = 73.7^\circ + 180^\circ = 253.7^\circ. (a) did not check the quadrant. (c) added the components directly. (d) inverted the ratio (tan⁡−1(7/24)\tan^{-1}(7/24)). (e) placed it in quadrant II.

Question 3medium

Given A⃗=4 i^−3 j^\vec A = 4\,\hat i - 3\,\hat j and B⃗=−2 i^+6 j^\vec B = -2\,\hat i + 6\,\hat j (in meters), what is the magnitude of A⃗−3B⃗\vec A - 3\vec B?

  1. 15.1 m
  2. 10.8 m
  3. 20.5 m
  4. 23.3 m
  5. 31.0 m
Show answer
D) 23.3 m

3B⃗=−6 i^+18 j^3\vec B = -6\,\hat i + 18\,\hat j. A⃗−3B⃗=(4−(−6)) i^+(−3−18) j^=10 i^−21 j^\vec A - 3\vec B = (4-(-6))\,\hat i + (-3-18)\,\hat j = 10\,\hat i - 21\,\hat j. Magnitude 100+441=541=23.3\sqrt{100 + 441} = \sqrt{541} = 23.3 m. (a) is ∣A⃗+3B⃗∣|\vec A + 3\vec B|, (b) forgot the factor 3, (c) is ∣3A⃗−B⃗∣|3\vec A - \vec B|, (e) added the components directly instead of using Pythagoras.

Question 4easy

What is the scalar product of A⃗=3 i^+2 j^−k^\vec A = 3\,\hat i + 2\,\hat j - \hat k and B⃗=2 i^−4 j^+5 k^\vec B = 2\,\hat i - 4\,\hat j + 5\,\hat k?

  1. −7
  2. 7
  3. 19
  4. 6 i^−8 j^−5 k^6\,\hat i - 8\,\hat j - 5\,\hat k
  5. 25.1
Show answer
A) −7

A⃗⋅B⃗=AxBx+AyBy+AzBz=(3)(2)+(2)(−4)+(−1)(5)=6−8−5=−7\vec A\cdot\vec B = A_xB_x + A_yB_y + A_zB_z = (3)(2) + (2)(-4) + (-1)(5) = 6 - 8 - 5 = -7. The result is a number (scalar), not a vector; that rules out (d). (c) dropped the signs. (e) is ∣A⃗∣∣B⃗∣|\vec A||\vec B|, that is, it assumes cos⁡θ=1\cos\theta = 1.

Question 5medium

What is the angle between a⃗=2 i^+2 j^\vec a = 2\,\hat i + 2\,\hat j and b⃗=−i^+3 j^\vec b = -\hat i + 3\,\hat j?

  1. 26.6°
  2. 63.4°
  3. 90.0°
  4. 116.6°
  5. 1.11°
Show answer
B) 63.4°

a⃗⋅b⃗=−2+6=4\vec a\cdot\vec b = -2 + 6 = 4, a=8=2.83a = \sqrt8 = 2.83, b=10=3.16b = \sqrt{10} = 3.16. cos⁡θ=4/(2.83⋅3.16)=0.447\cos\theta = 4/(2.83 \cdot 3.16) = 0.447, θ=63.4∘\theta = 63.4^\circ. The dot product is positive, so the angle must be acute: (c) and (d) are ruled out immediately. (a) is the complementary angle, (e) is the result in radians (1.11 rad) written as degrees.

Question 6medium

For A⃗=3 i^−j^+2 k^\vec A = 3\,\hat i - \hat j + 2\,\hat k and B⃗=i^+2 j^−k^\vec B = \hat i + 2\,\hat j - \hat k, the cross product A⃗×B⃗\vec A\times\vec B is:

  1. 3 i^−5 j^−7 k^3\,\hat i - 5\,\hat j - 7\,\hat k
  2. −3 i^−5 j^+7 k^-3\,\hat i - 5\,\hat j + 7\,\hat k
  3. −3 i^+5 j^+7 k^-3\,\hat i + 5\,\hat j + 7\,\hat k
  4. 3 i^−2 j^−2 k^3\,\hat i - 2\,\hat j - 2\,\hat k
  5. −3 i^+5 j^−7 k^-3\,\hat i + 5\,\hat j - 7\,\hat k
Show answer
C) −3î + 5ĵ + 7k̂

i^\hat i: AyBz−AzBy=(−1)(−1)−(2)(2)=−3A_yB_z - A_zB_y = (-1)(-1) - (2)(2) = -3. j^\hat j: AzBx−AxBz=(2)(1)−(3)(−1)=5A_zB_x - A_xB_z = (2)(1) - (3)(-1) = 5. k^\hat k: AxBy−AyBx=(3)(2)−(−1)(1)=7A_xB_y - A_yB_x = (3)(2) - (-1)(1) = 7. Check: A⃗⋅(A⃗×B⃗)=−9−5+14=0\vec A\cdot(\vec A\times\vec B) = -9 - 5 + 14 = 0. (a) is B⃗×A⃗\vec B\times\vec A (order reversed). (b) has a sign error in the j^\hat j term. (d) is component-by-component multiplication, not a cross product.

Question 7medium

For what value of cc are A⃗=2 i^+c j^−k^\vec A = 2\,\hat i + c\,\hat j - \hat k and B⃗=3 i^−2 j^+4 k^\vec B = 3\,\hat i - 2\,\hat j + 4\,\hat k perpendicular?

  1. −1
  2. 1
  3. 3
  4. 5
  5. 0
Show answer
B) 1

For perpendicular vectors A⃗⋅B⃗=0\vec A\cdot\vec B = 0: 6−2c−4=0⇒c=16 - 2c - 4 = 0 \Rightarrow c = 1. (a) wrote +2c+2c instead of −2c-2c. (c) forgot the zz component (6−2c=06 - 2c = 0). (d) lost the sign of the product (−1)(4)(-1)(4).

Question 8medium

Two sides of a parallelogram are A⃗=4.0 i^\vec A = 4.0\,\hat i m and B⃗=3.0 i^+5.0 j^\vec B = 3.0\,\hat i + 5.0\,\hat j m. What is its area?

  1. 12 m²
  2. 23.3 m²
  3. 20 m²
  4. 10 m²
  5. 15 m²
Show answer
C) 20 m²

Area =∣A⃗×B⃗∣= |\vec A\times\vec B|. A⃗×B⃗=(AxBy−AyBx) k^=(4.0)(5.0) k^=20 k^\vec A\times\vec B = (A_xB_y - A_yB_x)\,\hat k = (4.0)(5.0)\,\hat k = 20\,\hat k, so the area is 20 m². (a) is the dot product, (b) is ∣A⃗∣∣B⃗∣|\vec A||\vec B| (sin⁡θ\sin\theta forgotten), (d) is the triangle area (half).

Question 9hard

A hiker walks 250 m due east, then 180 m in a direction 40.0° north of west. What is the magnitude of the hiker's total displacement?

  1. 430 m
  2. 405 m
  3. 192 m
  4. 161 m
  5. 70 m
Show answer
D) 161 m

"40° north of west": 40° from west toward north. Components: (−180cos⁡40∘, 180sin⁡40∘)=(−137.9, 115.7)(-180\cos40^\circ,\ 180\sin40^\circ) = (-137.9,\ 115.7) m. Total: Rx=250−137.9=112.1R_x = 250 - 137.9 = 112.1, Ry=115.7R_y = 115.7, R=161R = 161 m. (a) added the magnitudes directly. (b) took 40° to be measured from +x. (c) took the angle to be measured from north (sin⁡\sin and cos⁡\cos swapped).

Question 10easy

Find the unit vector in the direction of A⃗=3 i^−4 j^\vec A = 3\,\hat i - 4\,\hat j.

Show answer
0.6î − 0.8ĵ

A^=A⃗/A\hat A = \vec A / A. A=9+16=5A = \sqrt{9 + 16} = 5. A^=35 i^−45 j^=0.6 i^−0.8 j^\hat A = \tfrac35\,\hat i - \tfrac45\,\hat j = 0.6\,\hat i - 0.8\,\hat j. Check: 0.62+0.82=10.6^2 + 0.8^2 = 1.

Question 11hard

What is the scalar component of A⃗=5 i^+2 j^\vec A = 5\,\hat i + 2\,\hat j along the direction of B⃗=3 i^+4 j^\vec B = 3\,\hat i + 4\,\hat j?

Show answer
4.6

The component of A⃗\vec A along B⃗\vec B is Acos⁡θ=A⃗⋅B⃗B=15+85=4.6A\cos\theta = \dfrac{\vec A\cdot\vec B}{B} = \dfrac{15 + 8}{5} = 4.6.

Question 12easy

Vector A has magnitude 6 units and vector B has magnitude 8 units. Which of the following CANNOT be the magnitude of A + B?

  1. 1 unit
  2. 2 units
  3. 10 units
  4. 12 units
  5. 14 units
Show answer
A) 1 unit

∣A−B∣≤∣A⃗+B⃗∣≤A+B|A - B| \le |\vec A + \vec B| \le A + B, that is, 2≤R≤142 \le R \le 14. In the same direction it is 14, in opposite directions 2, at a right angle 36+64=10\sqrt{36+64} = 10. 1 is outside the range.

Verification: All component, magnitude, angle, dot product and cross product results and distractors were computed with node (verify/PHY1001/02.mjs); angles were checked by quadrant with atan2.

Review card

Components (θ from +x, counterclockwise): Ax = A cos θ, Ay = A sin θ Magnitude A = √(Ax² + Ay²) Direction θ = tan⁻¹(Ay/Ax) → if Ax < 0 add 180° "θ north of west" = 180° − θ (from +x) "θ east of north" = 90° − θ Addition/subtraction is ALWAYS by components: Rx = Ax + Bx, Ry = Ay + By |A − B| ≤ |A + B| ≤ A + B Unit vector:  = A / |A| (magnitude 1) Dot: A·B = AB cos θ = AxBx + AyBy + AzBz → SCALAR cos θ = A·B / (AB) perpendicular ⇔ A·B = 0 negative ⇒ obtuse angle î·î = 1, î·ĵ = 0 Cross: A×B = (AyBz − AzBy) î + (AzBx − AxBz) ĵ + (AxBy − AyBx) k̂ |A×B| = AB sin θ = parallelogram area; the result is perpendicular to both î×ĵ = k̂, ĵ×k̂ = î, k̂×î = ĵ; reverse order gives a minus; î×î = 0; B×A = −A×B Keep the calculator in DEG mode