β—€ Back to Note

Tony's Intertwingled Memex β€’ Reference Manual

Dot Product

Formulas & Definitions
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_3uβ‹…v=u1​v1​+u2​v2​+u3​v3​
  2. Geometric Form (Magnitudes & Angle):
    uβƒ—β‹…vβƒ—=∣uβƒ—βˆ£βˆ£vβƒ—βˆ£cos⁑θ\vec{u} \cdot \vec{v} = |\vec{u}| |\vec{v}| \cos\thetauβ‹…v=∣u∣∣v∣cosΞΈ
    where ΞΈ\thetaΞΈ is the interior angle between the vectors (0≀θ≀π0 \le \theta \le \pi0≀θ≀π).

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} > 0uβ‹…v>0): The vectors point in generally the same direction (ΞΈ<90∘\theta < 90^\circΞΈ<90∘, acute angle).
  • Zero Dot Product (uβƒ—β‹…vβƒ—=0\vec{u} \cdot \vec{v} = 0uβ‹…v=0): The vectors are strictly orthogonal (perpendicular, ΞΈ=90∘\theta = 90^\circΞΈ=90∘).
  • Negative Dot Product (uβƒ—β‹…vβƒ—<0\vec{u} \cdot \vec{v} < 0uβ‹…v<0): The vectors oppose each other (ΞΈ>90∘\theta > 90^\circΞΈ>90∘, 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⟨12,10⟩ instead of 12+10=2212 + 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}i^,j^​,k^, it is automatically incorrect!

Key Algebraic Properties

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

  1. Commutativity: u⃗⋅v⃗=v⃗⋅u⃗\vec{u} \cdot \vec{v} = \vec{v} \cdot \vec{u}u⋅v=v⋅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}u⋅(v+w)=u⋅v+u⋅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})(cu)⋅v=c(u⋅v)=u⋅(cv)
  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}}vβ‹…v=∣v∣2⟹∣v∣=vβ‹…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)cosΞΈ=∣u∣∣v∣uβ‹…vβ€‹βŸΉΞΈ=cosβˆ’1(∣u∣∣v∣uβ‹…v​)


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}W=Fβ‹…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}a=3i^βˆ’2j^​ and bβƒ—=4i^βˆ’5j^\vec{b} = 4\hat{i} - 5\hat{j}b=4i^βˆ’5j^​.

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 = 22aβ‹…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∣a∣=32+(βˆ’2)2​=13β€‹β‰ˆ3.606
    ∣bβƒ—βˆ£=42+(βˆ’5)2=41β‰ˆ6.403|\vec{b}| = \sqrt{4^2 + (-5)^2} = \sqrt{41} \approx 6.403∣b∣=42+(βˆ’5)2​=41β€‹β‰ˆ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.9529cosΞΈ=13​41​22​=533​22β€‹β‰ˆ23.08722β€‹β‰ˆ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})ΞΈ=cosβˆ’1(0.9529)β‰ˆ17.65∘(orΒ 0.308Β rad)

Connections & References

  • Parent Concepts: Vectors in 2D and 3D | Dot and Cross Products
  • Related Notes: Vector Projections | Mechanical Work | Cross Product
  • Course Sessions: Calc-3 Session 03