Jump to content

Euclidean space/Distance to subspace/Inner product/Fact/Proof

Proof

Because of fact, we have

d(v,U)=d(v,pU(v)),

and, according to fact, we have

pU(v)=∑i=1m⟨v,ui⟩ui.

The vectors pU(v) and v−pU(v) are orthogonal to each other. Therefore, using the Pythagorean theorem, we have

d(v,U)2=‖v−pU(v)‖2=‖v‖2−‖pU(v)‖2=‖v‖2−‖∑i=1m⟨v,ui⟩ui‖2=‖v‖2−∑i=1m⟨v,ui⟩2.