Linear Algebra
Chapter 5/Orthogonality

5.1The Scalar Product in ℝⁿ

Adding a scalar product to gives you length, angle, and — most importantly — projection. Projection is the engine behind least squares, Gram–Schmidt, and the whole geometric reading of the four subspaces.

What you must be able to do

  • ; ; .
  • Orthogonal means . The zero vector is orthogonal to everything.
  • Scalar projection ; vector projection .
  • is always orthogonal to — that single fact drives all of §5.3 and §5.6.
Definition · Scalar product, length, distance
For , the scalar (dot) product is . The Euclidean length is , and the distance between and is .

The law of cosines applied to the triangle with sides , , gives the angle formula:

Cauchy–Schwarz
, with equality iff and are linearly dependent.

It's what makes a legitimate cosine — the quotient never leaves .

Definition · Orthogonality
means , i.e. (or one of them is ).

Projection — the workhorse

Key idea
Two checks that catch every projection error: (1) must be a multiple of the vector you projected onto; (2) must be orthogonal to that vector. Verify (2) in one dot product and you're safe.
Worked example

Angle and projection in

0/4 steps
For and , find the angle between them and the vector projection of onto .
Pythagorean law
If then .

Expand and the cross terms vanish. §5.4 shows this needs a norm that comes from an inner product.

Check yourself

Q1
The vector projection of onto is:
T / F
The zero vector is orthogonal to every vector in .
T / F
Equality holds in if and only if and are linearly dependent.