Linear Algebra – Dot & Cross Product Lecture Notes
Administrative & Logistical Notes
All material is provided under Section 113P of the Australian Copyright Act 1968 – do not redistribute.
Maths Drop-in Centre: Mon–Fri, Weeks 1-12, 2-4 pm, ground floor of the Mathematical Sciences Institute building.
Bring any mathematics question; staff are waiting to help.
Slides policy
Un-annotated slides go up before lecture; annotated slides (cleaned-up for typos/drawing quality) uploaded afterwards.
Recap: Vector Addition & Scaling
Previously learnt how to add vectors and multiply by scalars.
Today: two ways to multiply vectors:
Dot product () – produces a scalar.
Cross product () – produces a vector (and works only in ).
Dot Product (Stewart 10.3)
Definition
For
Extends to any equal dimension by summing component-wise products.
Output is a scalar (number).
Basic Algebraic Properties (usable facts)
(commutative).
(distributive).
for any scalar .
– links dot product with length.
Geometric Interpretation: Angle Formula
If is the smaller angle () between non-zero then
Equivalently,Because is injective on , the ratio determines a unique .
Cauchy–Schwarz (special case here)
Ensures the above formula always legitimate.
Signs & Orthogonality
Using the cosine graph on :
\mathbf a\cdot\mathbf b>0 ⟺ 0<\theta<\tfrac\pi2 (acute).
⟺ or one vector is .
Definition: vectors are orthogonal / perpendicular ⇔ their dot product is zero.
\mathbf a\cdot\mathbf b<0 ⟺ \tfrac\pi2<\theta<\pi (obtuse).
Worked Examples
Example 1:
Example 2 (orthogonality test):
Projection Concepts
Scalar (signed) Projection
Component of along :
Positive if pointing roughly same way as , negative if opposite.
Vector Projection
Actual shadow vector on the line spanned by :
Obtained by multiplying scalar projection by the unit vector .
Quick geometric cases
Parallel, same direction → projection equals .
Parallel, opposite direction → projection equals .
Orthogonal → projection is zero vector.
Interpretations & Uses
measures how much points along (or vice-versa, symmetry).
In physics: determines work done, component of a force along a direction, etc.
Computation-friendly: only adds/multiplies; ideal for programming.
Cross Product (Stewart 10.4)
Definition (works only in )
For ,
Output is a vector.
Also defined in (advanced topic), not in other dimensions.
Determinant Mnemonic (cofactor expansion)
\mathbf a\times\mathbf b = \begin{vmatrix}
\mathbf\hat i & \mathbf\hat j & \mathbf\hat k\
a1 & a2 & a3\ b1 & b2 & b3\end{vmatrix}
(Caveat: matrix contains basis vectors – purely a memory aid, not rigorous matrix algebra.)
Key Properties
Orthogonality: and
Anti-commutative:
Distributive:
Scalar interaction:
Length & Angle Relationship
If is the smaller angle between non-zero :
HenceConsequences
Cross‐product magnitude is maximal when (vectors orthogonal).
Zero when vectors are parallel or anti-parallel.
Right-Hand Rule (orientation)
Point fingers along , curl towards ; thumb indicates
Reversing order reverses direction.
Area Interpretation
Parallelogram spanned by has area
Useful for computing surface normals, torque, magnetic force, etc.
Example Sketch (exercise)
Let Compute using determinant mnemonic.
Dot vs Cross – Comparative Table
Dot → scalar, cos angle, measures alignment.
Cross → vector, sin angle, produces perpendicular direction & area.
Dot zero ⇒ orthogonal; Cross magnitude maximal ⇒ orthogonal.
Dot commutative; Cross anti-commutative.
Additional Observations & Star Tasks ★
★ Geometric proofs: verify each dot-product property using the parallelogram law & cosine rule.
★ Planes in : show two non-collinear vectors define one plane; collinear vectors define infinitely many – connect to angle discussion.
★ Why swapping in projection formulas still holds (dot symmetry).
★ Research: why only and admit a binary vector product with similar properties.
Practical Tips for Assignments & MATLAB Grader
Enter exact symbolic answers (e.g. ) – avoid intermediate decimal rounding.
Remember may be negative; indicate sign explicitly.
Always check “zero” answers: is it numeric 0 or the zero vector? (MATLAB distinguishes.)
Quick Reference Formula Sheet
Suggested Practice
Compute angles between random 3-D vectors using dot-product formula.
Given a triangle in , find normal vector via cross product.
Verify Cauchy–Schwarz numerically on several vector pairs.
Decompose a force vector into components parallel and perpendicular to a surface normal.
Happy studying – master these tools; they recur in multivariable calculus, physics, computer graphics, and beyond!