# A calculus of the absurd

##### 20.8.6 Orthogonal projection

If you’ve done any physics (shivers) then you’ve probably come across the idea of “resolving” forces. If you haven’t, then the basic idea is that if we have some vector $$v$$ in $$\mathbb {R}^2$$, then for example we can split it into two components: a perpendicular one and a parallel one. One way we can do this (which is quite natural) is to resolve any vector parallel and perpendicular to the “axes”, for example we could have the vector in the diagram below which can be resolved into a component parallel to $$\uvec {i}$$ and $$\uvec {j}$$ (note that $$\uvec {i}$$ and $$\uvec {j}$$ are orthogonal). But perpendicular and parallel to what? Usually in secondary school mathematics this is not very well-defined, but we can now use some of our previous definitions to define this notion of “splitting up a vector” and generalise it to vector spaces where we don’t have a ready geometric interpretation.

This definition encodes a lot of the intuitive notions about orthogonality and perpendicularity.

• Definition 20.8.3 Let $$\textsf {V}$$ be a vector space, and $$E$$ be a subspace of $$V$$.

We say that $$\textbf {w}$$ is the orthogonal projection of $$\textbf {v}$$ onto $$E$$ if

• 1. The vector $$\textbf {w}$$ is in $$E$$.

• 2. The vector obtained by subtracting $$\textbf {w}$$ from $$\textbf {v}$$ is orthogonal to all the vectors in $$E$$ (which we can write as $$\textbf {v} - \textbf {w} \bot E$$)

A very key property is that the orthogonal projection is the vector in $$E$$ which is the closest vector to $$\textbf {w}$$. This makes the orthogonal projection useful in some optimisation problems!

Now that we have defined the object, we can ask some questions that (at least to me) it makes sense to ask. For example, we can ask if the orthogonal projection always exists! This seems to be intuitively true.