v1 · padrão canônico
Lesson 27 — Dot Product
Inner product (dot product). Angle between vectors, projection, orthogonality. Mechanical work.
Used in: 1.º ano EM (15 anos) · Equiv. Math II japonês · Equiv. Klasse 11 alemã · Precalculus §11.8 (US)
Choose your door
Rigorous notation, full derivation, hypotheses
Definition and properties
Properties
- Commutative: .
- Distributive: .
- Linear in scalar: .
- Positive: , with equality .
Sign and geometry
| Angle | ||
|---|---|---|
| acute | ||
| right, (orthogonal) | ||
| obtuse |
Orthogonality
.
Angle
Projection
Projection of onto the direction of :
Magnitude (scalar) of the projection: .
Central application — mechanical work
— work done by a force is its dot product with the displacement.
Exercise list
35 exercises · 8 with worked solution (25%)
Application 20Modeling 12Challenge 2Proof 1
- Ex. 27.1ApplicationAnswer key. (Ans: 11.)
- Ex. 27.2Application. (Ans: 1.)
- Ex. 27.3Applicationfor any . (Ans: 0.)
- Ex. 27.4ApplicationVerify whether and are perpendicular. (Ans: yes, dot = 0.)
- Ex. 27.5ApplicationFor which is ? (Ans: .)
- Ex. 27.6ApplicationAnswer keyAngle between and . (Ans: 45°.)
- Ex. 27.7ApplicationAngle between and .
- Ex. 27.8ApplicationShow for .
- Ex. 27.9ApplicationProjection of onto . (Ans: .)
- Ex. 27.10ApplicationProjection of onto .
- Ex. 27.11ApplicationProjection of onto .
- Ex. 27.12ApplicationDecomposition of into parallel + perpendicular to .
- Ex. 27.13ApplicationAnswer keyFor : angle between them?
- Ex. 27.14ApplicationAnswer keyUnit vector orthogonal to . (Ans: .)
- Ex. 27.15ApplicationFind a vector of magnitude 5 perpendicular to .
- Ex. 27.16ApplicationCosine of the angle between and . (Ans: 0.)
- Ex. 27.17ApplicationAnswer keyis always non-negative. Prove.
- Ex. 27.18ApplicationFor : .
- Ex. 27.19ApplicationFor : orthogonal? Angle? (Ans: yes, 90°.)
- Ex. 27.20ApplicationFor which between non-zero vectors is ?
- Ex. 27.21ModelingWork done by force N over displacement m: . (Ans: 50 J.)
- Ex. 27.22ModelingAnswer keyForce N pulls a box through m. Useful work = projection of onto times .
- Ex. 27.23ModelingOn a ramp, gravitational force projected onto the ramp direction . Component parallel to the plane = .
- Ex. 27.24ModelingIn ML, cosine similarity between two embeddings: . For and , compute.
- Ex. 27.25ModelingIn recommendation, two users have rating vectors and . Cosine?
- Ex. 27.26ModelingIn a digital filter, correlation between signal and template via dot product. (Ans: 3.)
- Ex. 27.27ModelingNon-trivial work: a force perpendicular to motion does zero work (, ).
- Ex. 27.28ModelingLambert's law (illumination): intensity — dot product of normal with light direction.
- Ex. 27.29ModelingIn GPS, projection of radial error onto tangential direction via dot product.
- Ex. 27.30ModelingIn a Transformer (attention mechanism), score = . For , compute.
- Ex. 27.31ModelingAnswer keyIn quant finance, portfolio return is with weights and returns . For and , compute.
- Ex. 27.32ModelingElectric flux . For N/C and m², compute.
- Ex. 27.33ChallengeAnswer keyProve the Cauchy-Schwarz inequality . (Use for all .)
- Ex. 27.34ProofProve the vector law of cosines: .
- Ex. 27.35ChallengeShow that using the law of cosines.
Sources
- Linear Algebra Done Right — Sheldon Axler · 2024, 4th ed · EN · CC-BY-NC · ch. 6: inner products. Primary source.
- A First Course in Linear Algebra — Robert A. Beezer · 2022 · EN · GFDL · ch. O: orthogonality.
- University Physics (Volume 1) — OpenStax · 2016 · EN · CC-BY · ch. 7: mechanical work. Source for Block B.
- Mathematics for Machine Learning — Deisenroth, Faisal, Ong · 2020 · EN · free · ch. 3: dot product and similarity.