Mathematics for Physics · Chapter 24

Vectors and Scalars

Physics quantities fall into two categories: scalars, which are fully described by a single number with units, and vectors, which require both magnitude and direction. Every force, velocity, and field in this curriculum is a vector.

Learning Goals
  • Distinguish scalars from vectors and represent vectors in component form using unit vectors.
  • Add and subtract vectors algebraically by combining corresponding components.
  • Compute the dot product and use it to find the angle between two vectors or the work done by a force.
  • Compute the cross product using the determinant formula and apply the right-hand rule for direction.
  • Recognize vector fields and compute the gradient of a scalar field.

24.1 Scalars and Vectors

A scalar is a quantity with magnitude but no direction: mass, temperature, time, speed, energy. You can add and multiply scalars with ordinary arithmetic.

A vector is a quantity with both magnitude and direction: displacement, velocity, acceleration, force, momentum, electric field. We write vectors in bold (v) or with an arrow (v⃗).Modern vector notation1901 · Gibbs and Wilson simplify physics notationBefore Gibbs, physicists who needed three-dimensional quantities often used quaternions — Hamilton's four-dimensional algebra. It worked but was clumsy, and the quaternion community guarded it fiercely. Gibbs quietly developed a cleaner vector analysis and circulated his notes informally for years before Edwin Wilson turned them into a textbook in 1901. The dot product, cross product, gradient, divergence, and curl — the notation physics still uses — all come from that book. The quaternionists never quite forgave him.Source: J. Willard Gibbs and Edwin Bidwell Wilson, Vector Analysis.Further reading: History of vector calculus · Josiah Willard Gibbs The magnitude of v is |v| or v.

Definition 24.1 — Vector Components
In 3D Cartesian coordinates, a vector A is written in terms of unit vectors î, ĵ, k̂ along the x, y, z axes:A=Axi^+Ayj^+Azk^A = A_{x} \hat{i} + A_{y} \hat{j} + A_{z} \hat{k}The magnitude is |A∣=Ax2+Ay2+Az2A| = \sqrt{A_{x}^{2} + A_{y}^{2} + A_{z}^{2}}. In 2D from angle θ above x-axis: Ax=∣A∣cos⁡θ,Ay=∣A∣sin⁡θA_{x} = |A| \cos \theta, A_{y} = |A| \sin \theta.

Vector addition follows the parallelogram rule (graphically) or component-wise (algebraically): if C = A + B, then Cx=Ax+Bx, Cy=Ay+By, Cz=Az+BzC_x = A_x + B_x,\ C_y = A_y + B_y,\ C_z = A_z + B_z. Subtraction reverses the direction of the second vector before adding.

Example 24.1 — Resultant Force from Two Applied Forces

Force F1F_{1} = 30 N at 40° above the +x axis. Force F2F_{2} = 50 N at 120° above the +x axis. Find the resultant.

Components of F1F_{1}:F1x=30cos⁡40∘=22.98 NF_{1x} = 30 \cos 40^\circ = 22.98\ \text{N}   F1y=30sin⁡40∘=19.28 NF_{1y} = 30 \sin 40^\circ = 19.28\ \text{N}
Components of F2F_{2}:F2x=50cos⁡120∘=−25.00 NF_{2x} = 50 \cos 120^\circ = -25.00\ \text{N}   F2y=50sin⁡120∘=43.30 NF_{2y} = 50 \sin 120^\circ = 43.30\ \text{N}
Resultant:Fx=22.98−25.00=−2.02 NF_x = 22.98 - 25.00 = -2.02\ \text{N}   Fy=19.28+43.30=62.58 NF_y = 19.28 + 43.30 = 62.58\ \text{N}
Magnitude:|F∣=2.022+62.582=3920.3=62.6NF| = \sqrt{2.02^{2} + 62.58^{2}} = \sqrt 3920.3 = 62.6 N
Direction:θ = arctan(62.58/−2.02) = 180° − 88.1° = 91.8° above +x axis

24.2 The Dot Product

The dot product (scalar product) of two vectors gives a scalar measuring how much one vector projects onto another:

A⋅B=∣A∣∣B∣cos⁡θ=AxBx+AyBy+AzBzA \cdot B = |A||B| \cos \theta = A_{x} B_{x} + A_{y} B_{y} + A_{z} B_{z}(24.1)

Key properties: the dot product is zero when the vectors are perpendicular (cos 90° = 0), maximum when parallel, and negative when the angle exceeds 90°. It is commutative (A·B = B·A) and distributive.

Physical uses of the dot product: work W = F·Δr = FΔr cos θ (only the force component along displacement does work); electric flux Φ = E·A; magnetic flux ΦB=B⋅A\Phi_B = \mathbf{B} \cdot \mathbf{A}.

Definition 24.2 — Finding the Angle Between Vectors
From the dot product formula, the angle θ between two vectors:cos⁡θ=(A⋅B)/(∣A∣∣B∣)\cos \theta = (A \cdot B) / (|A| |B|)If the dot product is positive: θ < 90°. Zero: perpendicular. Negative: θ > 90°.
Example 24.2 — Work Done by a Force

A force F = (3î + 4ĵ) N acts on an object displaced by Δr = (5i^−2j^)m5\hat{i} - 2\hat{j}) m. Find the work done.

Dot product:W=F⋅Δr=(3)(5)+(4)(−2)=15−8=7JW = F \cdot \Delta r = (3)(5) + (4)(-2) = 15 - 8 = 7 J
Alternatively:|F∣=5N,∣Δr∣=29m.cos⁡θ=7/(529)→θ=74.9°F| = 5 N, |\Delta r| = \sqrt 29 m. \cos \theta = 7/(5\sqrt 29) \to \theta = 74.9°. W=FΔrcos⁡θ=529×7/(529)=7J✓W = F\Delta r \cos \theta = 5\sqrt 29 \times 7/(5\sqrt 29) = 7 J ✓

24.3 The Cross Product

The cross product (vector product) produces a vector perpendicular to both input vectors, with magnitude equal to the area of the parallelogram they span:

∣A×B∣=∣A∣∣B∣sin⁡θ|A \times B| = |A||B| \sin \theta(24.2)

Direction: right-hand rule — curl the fingers from A toward B, and the thumb points in the direction of A × B. Important: the cross product is anti-commutative: B × A = −(A × B).

Theorem 24.1 — Cross Product in Component Form
A×B=(AyBz−AzBy)i^−(AxBz−AzBx)j^+(AxBy−AyBx)k^A \times B = (A_{y} B_{z} - A_{z} B_{y})\hat{i} - (A_{x} B_{z} - A_{z} B_{x})\hat{j} + (A_{x} B_{y} - A_{y} B_{x})\hat{k}The unit vector relations: î ×j^=k^,j^×k^=i^,k^×i^=j^\times \hat{j} = \hat{k}, \qquad \hat{j} \times \hat{k} = \hat{i}, \qquad \hat{k} \times \hat{i} = \hat{j} (cyclic), and î × î = 0 (any vector crossed with itself is zero).

Physical uses of the cross product: torque τ = r × F; angular momentum L = r × p; magnetic force F = qv × B; magnetic field from a current element dB = (μ₀I/4π)(dl × r̂/r²).

Example 24.3 — Torque as a Cross Product

A force F = (2i^+3j^−k^)N2\hat{i} + 3\hat{j} - \hat{k}) N is applied at positionr = (î −2j^+3k^)m- 2\hat{j} + 3\hat{k}) m from the pivot. Find the torque.

Cross product:τ=r×F\tau = r \times F
x-component:= ryFz−rzFy=(−2)(−1)−(3)(3)=2−9=−7N⋅mr_{y} F_{z} - r_{z} F_{y} = (-2)(-1) - (3)(3) = 2 - 9 = -7 N\cdot m
y-component:= rzFx−rxFz=(3)(2)−(1)(−1)=6+1=7N⋅mr_{z} F_{x} - r_{x} F_{z} = (3)(2) - (1)(-1) = 6 + 1 = 7 N\cdot m
z-component:= rxFy−ryFx=(1)(3)−(−2)(2)=3+4=7N⋅mr_{x} F_{y} - r_{y} F_{x} = (1)(3) - (-2)(2) = 3 + 4 = 7 N\cdot m
Result:τ = (−7i^+7j^+7k^)N⋅m∣τ∣=73≈12.1N⋅m-7\hat{i} + 7\hat{j} + 7\hat{k}) N\cdot m \qquad |\tau| = 7\sqrt 3 \approx 12.1 N\cdot m

24.4 Fields as Vector Functions

In physics, a vector field assigns a vector to every point in space. The electric field E(r) and magnetic fieldB(r) are vector fields — at every point in space they have a direction and magnitude. Visualizing vector fields is the key to understanding Maxwell's equations and fluid mechanics.

The gradient of a scalar field φ is a vector field pointing in the direction of steepest increase: ∇φ = (∂φ/∂x)î + (∂φ/∂y)ĵ + (∂φ/∂z)k̂. The electric field is the negative gradient of the potential: E = −∇V.

Definition 24.3 — Common Traps
  • Vectors are not just magnitudes: direction and components matter.
  • Dot products produce scalars: cross products produce vectors perpendicular to both inputs.
  • Components depend on basis: the geometric vector does not.
  • Unit vectors carry direction only: they should have magnitude 1.
Exercises — 24.1–24.4 Vectors
1.
F1=30NF_{1} = 30 N at 40° and F2=50NF_{2} = 50 N at 120° (both above +x axis). Find the magnitude of the resultant.
N
Straightforward
2.
Force F = (3î + 4ĵ) N acts over displacement (5i^−2j^)m5\hat{i} - 2\hat{j}) m. Find the work done.
J
Straightforward
3.
Find the magnitude of torque when r = (î−2j^+3k^)m-2\hat{j}+3\hat{k}) m and F = (2i^+3j^−k^)N2\hat{i}+3\hat{j}-\hat{k}) N.
N·m
Intermediate
4.Find the angle between A = (2i^−3j^+k^2\hat{i} - 3\hat{j} + \hat{k}) and B = (î + 4j^−2k^4\hat{j} - 2\hat{k}).
Intermediate
5.Define the triple scalar product A⋅(B×C)A\cdot(B\times C) and prove it equals the volume of the parallelepiped spanned by A, B, C. What does it mean if this product is zero?
Challenging
Key Takeaways
  • Scalars have magnitude only; vectors have magnitude and direction — add component-wise.
  • Dot product A⋅B=∣A∣∣B∣cos⁡θ=∑AiBi—A\cdot B = |A||B|\cos\theta = \sum A_{i}B_{i} — scalar; measures projection; zero for perpendicular vectors.
  • Cross product A×BA\times B has magnitude |A∣∣B∣sin⁡θA||B|\sin\theta, direction given by right-hand rule — vector; zero for parallel vectors.
  • Cross product is anti-commutative: B×A=−A×BB\times A = -A\times B. Unlike the dot product, order matters.
  • Work = F⋅ΔrF\cdot\Delta r (dot product), torque = r×Fr\times F (cross product), magnetic force F=qv×BF = qv\times B (cross product).
  • Vector fields assign a vector to every point in space; the electric field E=−∇VE = -\nabla V is the negative gradient of potential.