🌱 Tony's Memex Tony's Intertwingled Memex
Digital Garden | OER Curriculum
Core Definition

The dot product (also known as the scalar product) is an algebraic operation that takes two vectors of equal dimension and returns a single scalar number (never a vector):

  1. Algebraic Form (Components): Sum of the products of corresponding components:
    u⃗⋅v⃗=u1v1+u2v2+u3v3\vec{u} \cdot \vec{v} = u_1 v_1 + u_2 v_2 + u_3 v_3
  2. Geometric Form (Magnitudes & Angle):
    uβƒ—β‹…vβƒ—=∣uβƒ—βˆ£βˆ£vβƒ—βˆ£cos⁑θ\vec{u} \cdot \vec{v} = |\vec{u}| |\vec{v}| \cos\theta
    where ΞΈ\theta is the interior angle between the vectors (0≀θ≀π0 \le \theta \le \pi).

Concept Explanation

The fundamental conceptual role of the dot product is to measure directional alignment:

  • Positive Dot Product (uβƒ—β‹…vβƒ—>0\vec{u} \cdot \vec{v} > 0): The vectors point in generally the same direction (ΞΈ<90∘\theta < 90^\circ, acute angle).
  • Zero Dot Product (uβƒ—β‹…vβƒ—=0\vec{u} \cdot \vec{v} = 0): The vectors are strictly orthogonal (perpendicular, ΞΈ=90∘\theta = 90^\circ).
  • Negative Dot Product (uβƒ—β‹…vβƒ—<0\vec{u} \cdot \vec{v} < 0): The vectors oppose each other (ΞΈ>90∘\theta > 90^\circ, obtuse angle).
Common Student Trap: Output Type

The dot product NEVER produces a vector. A common mistake is writing something like ⟨12,10⟩\langle 12, 10 \rangle instead of 12+10=2212 + 10 = 22. The dot product collapses two vectors into a single real number (scalar). If your answer has vector brackets βŸ¨β€¦β€‰βŸ©\langle \dots \rangle or basis vectors i^,j^,k^\hat{i}, \hat{j}, \hat{k}, it is automatically incorrect!

Key Algebraic Properties

For any vectors u⃗,v⃗,w⃗\vec{u}, \vec{v}, \vec{w} and scalar cc:

  1. Commutativity: u⃗⋅v⃗=v⃗⋅u⃗\vec{u} \cdot \vec{v} = \vec{v} \cdot \vec{u}
  2. Distributive Law: u⃗⋅(v⃗+w⃗)=u⃗⋅v⃗+u⃗⋅w⃗\vec{u} \cdot (\vec{v} + \vec{w}) = \vec{u} \cdot \vec{v} + \vec{u} \cdot \vec{w}
  3. Scalar Compatibility: (cu⃗)⋅v⃗=c(u⃗⋅v⃗)=u⃗⋅(cv⃗)(c\vec{u}) \cdot \vec{v} = c(\vec{u} \cdot \vec{v}) = \vec{u} \cdot (c\vec{v})
  4. Magnitude Relation (Self Dot Product): vβƒ—β‹…vβƒ—=∣vβƒ—βˆ£2β€…β€ŠβŸΉβ€…β€Šβˆ£vβƒ—βˆ£=vβƒ—β‹…vβƒ—\vec{v} \cdot \vec{v} = |\vec{v}|^2 \implies |\vec{v}| = \sqrt{\vec{v} \cdot \vec{v}}

Calculating the Angle Between Vectors

Equating the algebraic and geometric definitions allows engineers to calculate the angle between two spatial vectors:

cos⁑θ=uβƒ—β‹…vβƒ—βˆ£uβƒ—βˆ£βˆ£vβƒ—βˆ£β€…β€ŠβŸΉβ€…β€ŠΞΈ=cosβ‘βˆ’1(uβƒ—β‹…vβƒ—βˆ£uβƒ—βˆ£βˆ£vβƒ—βˆ£)\cos\theta = \frac{\vec{u} \cdot \vec{v}}{|\vec{u}| |\vec{v}|} \implies \theta = \cos^{-1}\left(\frac{\vec{u} \cdot \vec{v}}{|\vec{u}| |\vec{v}|}\right)


Engineering Applications

  • Mechanical Work: Calculating energy transferred along a path when a force vector is applied (W=Fβƒ—β‹…dβƒ—W = \vec{F} \cdot \vec{d}).
  • Structural Force Decomposition: Isolating axial compression or tension loads along structural truss members using Vector Projections.
  • Solar Panel Efficiency: Determining solar irradiance flux by taking the dot product of incoming sunlight rays with the surface normal vector.

Example Problems

Example 1: Calculating Angle & Orthogonality

Find the angle between aβƒ—=3i^βˆ’2j^\vec{a} = 3\hat{i} - 2\hat{j} and bβƒ—=4i^βˆ’5j^\vec{b} = 4\hat{i} - 5\hat{j}.

Solution
  1. Compute Dot Product (Scalar Output):
    aβƒ—β‹…bβƒ—=(3)(4)+(βˆ’2)(βˆ’5)=12+10=22\vec{a} \cdot \vec{b} = (3)(4) + (-2)(-5) = 12 + 10 = 22
  2. Compute Magnitudes:
    ∣aβƒ—βˆ£=32+(βˆ’2)2=13β‰ˆ3.606|\vec{a}| = \sqrt{3^2 + (-2)^2} = \sqrt{13} \approx 3.606
    ∣bβƒ—βˆ£=42+(βˆ’5)2=41β‰ˆ6.403|\vec{b}| = \sqrt{4^2 + (-5)^2} = \sqrt{41} \approx 6.403
  3. Find Angle:
    cos⁑θ=221341=22533β‰ˆ2223.087β‰ˆ0.9529\cos\theta = \frac{22}{\sqrt{13}\sqrt{41}} = \frac{22}{\sqrt{533}} \approx \frac{22}{23.087} \approx 0.9529
    ΞΈ=cosβ‘βˆ’1(0.9529)β‰ˆ17.65∘(orΒ 0.308Β rad)\theta = \cos^{-1}(0.9529) \approx 17.65^\circ \quad (\text{or } 0.308\text{ rad})

Connections & References