Skip to main content

Thomas’ Calculus · Chapter 12 · Section 12.3

By Muhammad Abdullah Athar · SymPy Verified

The Dot Product

❦

Read this page the way you would a book: first the notes, then the key ideas, then every worked example in order — each step explains not only what to do, but why it works.

Part One

Section Notes

❧

Section 12.3: The Dot Product

The dot product (scalar product) produces a scalar from two vectors.


1. Geometric Definition and Properties

For vectors u\mathbf{u} and v\mathbf{v} with angle θ\theta between them: u⋅v=∣u∣∣v∣cos⁡θ=u1v1+u2v2+u3v3\mathbf{u} \cdot \mathbf{v} = |\mathbf{u}| |\mathbf{v}| \cos\theta = u_1 v_1 + u_2 v_2 + u_3 v_3

  • Orthogonality Criterion: u⊥v  ⟺  u⋅v=0\mathbf{u} \perp \mathbf{v} \iff \mathbf{u} \cdot \mathbf{v} = 0.
  • Angle Formula: cos⁡θ=u⋅v∣u∣∣v∣\cos\theta = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{u}| |\mathbf{v}|}.

2. Projections and Work

  • Vector Projection of u\mathbf{u} onto v\mathbf{v}: projvu=(u⋅v∣v∣2)v\text{proj}_{\mathbf{v}} \mathbf{u} = \left( \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|^2} \right) \mathbf{v}

  • Physical Work: When a constant force F\mathbf{F} displaces an object through displacement D\mathbf{D}: W=F⋅D=∣F∣∣D∣cos⁡θW = \mathbf{F} \cdot \mathbf{D} = |\mathbf{F}| |\mathbf{D}| \cos\theta

Part Two

Key Ideas to Remember

2 essential statements for this section, each with a plain-words explanation.

Definition #1Sec 12.3

Dot (Inner) Product

u⋅v=u1v1+u2v2+u3v3=∣u∣∣v∣cos⁡θ\mathbf{u} \cdot \mathbf{v} = u_1 v_1 + u_2 v_2 + u_3 v_3 = |\mathbf{u}| |\mathbf{v}| \cos\theta

The dot product of two vectors u and v is the scalar obtained by summing the products of their corresponding components, equal to the product of their magnitudes and the cosine of the angle theta between them (0 <= theta <= pi).

Conditions: Vectors belong to Euclidean space R^n; 0 <= theta <= pi

In plain words: Connects algebraic component operations directly to geometric angle measurement.

Remember — Two non-zero vectors are orthogonal if and only if their dot product vanishes: u . v = 0.

Formula #2Sec 12.3

Vector Projection and Scalar Component

projvu=(u⋅v∣v∣2)v,compvu=u⋅v∣v∣\text{proj}_{\mathbf{v}} \mathbf{u} = \left( \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|^2} \right) \mathbf{v}, \quad \text{comp}_{\mathbf{v}} \mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|}

The vector projection of u onto non-zero v represents the shadow cast by u along the line containing v, while the scalar component is its signed length.

Conditions: v is non-zero

In plain words: Decomposes u into parallel and orthogonal components: u = proj_v u + (u - proj_v u).

Remember — Fundamental in computing physical work: W = F . D.

Part Three

Worked Examples

5 exercises, solved in full. Every answer has been checked symbolically with SymPy before printing.

Example 01(Section 12.3, Exercise 1)

Warm-up

Problem. Compute the dot product u . v and find cos(theta) for u = <1, -2, 2> and v = <3, 4, 0>.

Step-by-Step Derivation (3 steps)

1

Calculate Dot Product

u⋅v=(1)(3)+(−2)(4)+(2)(0)=3−8+0=−5\mathbf{u} \cdot \mathbf{v} = (1)(3) + (-2)(4) + (2)(0) = 3 - 8 + 0 = -5

Multiply corresponding components and add.

Why this works: Applying algebraic dot product definition.
2

Calculate Vector Magnitudes

∣u∣=1+4+4=3,∣v∣=9+16+0=5|\mathbf{u}| = \sqrt{1 + 4 + 4} = 3, \quad |\mathbf{v}| = \sqrt{9 + 16 + 0} = 5

Compute Euclidean norms for both vectors.

Why this works: Finding denominator for angle formula.
3

Compute Angle Cosine

cos⁡θ=u⋅v∣u∣∣v∣=−5(3)(5)=−13\cos\theta = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{u}| |\mathbf{v}|} = \frac{-5}{(3)(5)} = -\frac{1}{3}

Divide the inner product by the product of norms.

Why this works: Evaluating angle between vectors.

Answer: u⋅v=−5,cos⁡θ=−13\mathbf{u} \cdot \mathbf{v} = -5, \quad \cos\theta = -\frac{1}{3}

✓ Verified by SymPy CAS

Example 02(Section 12.3, Exercise 2)

Warm-up

Problem. Determine whether the vectors a = <2, -3, 4> and b = <6, 8, 3> are orthogonal.

Step-by-Step Derivation (2 steps)

1

Evaluate Inner Product

a⋅b=2(6)+(−3)(8)+4(3)=12−24+12=0\mathbf{a} \cdot \mathbf{b} = 2(6) + (-3)(8) + 4(3) = 12 - 24 + 12 = 0

Compute the sum of component products.

Why this works: Checking the vanishing of the dot product.
2

State Conclusion

a⋅b=0  ⟺  a⊥b\mathbf{a} \cdot \mathbf{b} = 0 \iff \mathbf{a} \perp \mathbf{b}

Since the dot product is exactly 0, the vectors meet at a 90 degree angle.

Why this works: Applying orthogonality criterion.

Answer: Yes, a⋅b=0  ⟹  a⊥b\text{Yes, } \mathbf{a} \cdot \mathbf{b} = 0 \implies \mathbf{a} \perp \mathbf{b}

✓ Verified by SymPy CAS

Example 03(Section 12.3, Exercise 3)

Core practice

Problem. Find the vector projection of u = <2, 1, -1> onto v = <1, 0, -2>.

Step-by-Step Derivation (2 steps)

1

Compute u . v and |v|^2

u⋅v=2(1)+1(0)+(−1)(−2)=2+0+2=4;∣v∣2=12+02+(−2)2=5\mathbf{u} \cdot \mathbf{v} = 2(1) + 1(0) + (-1)(-2) = 2 + 0 + 2 = 4; \quad |\mathbf{v}|^2 = 1^2 + 0^2 + (-2)^2 = 5

Calculate scalar numerator and squared denominator.

Why this works: Formulating scalar projection factor.
2

Multiply Scalar Factor by v

projvu=45⟨1,0,−2⟩=⟨45,0,−85⟩\text{proj}_{\mathbf{v}} \mathbf{u} = \frac{4}{5} \langle 1, 0, -2 \rangle = \left\langle \frac{4}{5}, 0, -\frac{8}{5} \right\rangle

Scale the vector v by (u . v) / |v|^2.

Why this works: Constructing projection vector.

Answer: projvu=⟨45,0,−85⟩\text{proj}_{\mathbf{v}} \mathbf{u} = \left\langle \frac{4}{5}, 0, -\frac{8}{5} \right\rangle

✓ Verified by SymPy CAS

Example 04(Section 12.3, Exercise 4)

Core practice

Problem. A constant force F = 5i + 2j - k moves an object along a straight line from P(1, 0, 2) to Q(4, 3, 8). Find the total work done.

Step-by-Step Derivation (2 steps)

1

Determine Displacement Vector

D=PQ⃗=⟨4−1,3−0,8−2⟩=⟨3,3,6⟩\mathbf{D} = \vec{PQ} = \langle 4 - 1, 3 - 0, 8 - 2 \rangle = \langle 3, 3, 6 \rangle

Subtract initial point P from destination point Q.

Why this works: Finding the displacement vector D.
2

Calculate Work as F . D

W=F⋅D=(5)(3)+(2)(3)+(−1)(6)=15+6−6=15W = \mathbf{F} \cdot \mathbf{D} = (5)(3) + (2)(3) + (-1)(6) = 15 + 6 - 6 = 15

Compute the inner product of force and displacement.

Why this works: Applying physical definition of work.

Answer: 15 units15 \text{ units}

✓ Verified by SymPy CAS

Example 05(Section 12.3, Exercise 5)

Core practice

Problem. Find the direction cosines of the vector v = <2, 1, -2> and verify that cos^2(alpha) + cos^2(beta) + cos^2(gamma) = 1.

Step-by-Step Derivation (3 steps)

1

Compute Vector Magnitude

∣v∣=22+12+(−2)2=4+1+4=9=3|\mathbf{v}| = \sqrt{2^2 + 1^2 + (-2)^2} = \sqrt{4 + 1 + 4} = \sqrt{9} = 3

Evaluate the length of vector v.

Why this works: Obtaining normalizer for direction cosines.
2

Extract Direction Cosines

cos⁡α=v1∣v∣=23,cos⁡β=v2∣v∣=13,cos⁡γ=v3∣v∣=−23\cos\alpha = \frac{v_1}{|\mathbf{v}|} = \frac{2}{3}, \quad \cos\beta = \frac{v_2}{|\mathbf{v}|} = \frac{1}{3}, \quad \cos\gamma = \frac{v_3}{|\mathbf{v}|} = -\frac{2}{3}

Direction cosines are the components of the normalized unit vector.

Why this works: Identifying directional projections.
3

Verify Sum of Squares Identity

cos⁡2α+cos⁡2β+cos⁡2γ=(23)2+(13)2+(−23)2=49+19+49=99=1\cos^2\alpha + \cos^2\beta + \cos^2\gamma = \left(\frac{2}{3}\right)^2 + \left(\frac{1}{3}\right)^2 + \left(-\frac{2}{3}\right)^2 = \frac{4}{9} + \frac{1}{9} + \frac{4}{9} = \frac{9}{9} = 1

Sum the squares of the direction cosines.

Why this works: Proving unit length constraint.

Answer: cos⁡α=23,  cos⁡β=13,  cos⁡γ=−23;Σcos⁡2=1\cos\alpha = \frac{2}{3}, \; \cos\beta = \frac{1}{3}, \; \cos\gamma = -\frac{2}{3}; \quad \Sigma\cos^2 = 1

✓ Verified by SymPy CAS