Orthogonal projection

5.4. Orthogonal projection#

An interesting problem is to find the point of a subset that is located at the smallest possible distance from a given point. The solution to this particular type of constrained optimization problem is called orthogonal projection. It generalizes the notion of projection from linear algebra, and it is a building block of many constrained optimization algorithms.

1 - Definition. The orthogonal projection of a point \({\bf u}\in\mathbb{R}^N\) onto a subset \(\mathcal{C}\subset \mathbb{R}^N\) is formally defined as

\[ \mathcal{P}_{\mathcal{C}}({\bf u}) \in \operatorname*{Argmin}_{{\bf w}\in\mathcal{C}}\; \|{\bf w}-{\bf u}\|^2. \]

In general, there may exist several orthogonal projections of a point onto a set, provided that the latter is nonempty and closed. The above \(\operatorname{Argmin}\) (with uppercase ‘A’) denotes the set of all the points of \(\mathcal{C}\) at the same smallest distance from \({\bf u}\), and the inclusion symbol (\(\in\)) is there to remind that the orthogonal projection \(\mathcal{P}_{\mathcal{C}}({\bf u})\) can be any of those points.

2 - Convexity. The orthogonal projection is unique when the set \(\mathcal{C}\) is convex. In this case, the projection can be precisely defined as the unique point of \(\mathcal{C}\) at the smallest distance from \({\bf u}\) (note the \(\operatorname{argmin}\) is now with lowercase ‘a’):

\[ \textrm{$\mathcal{C}\,$ is convex} \qquad\implies\qquad \mathcal{P}_{\mathcal{C}}({\bf u}) = \operatorname*{argmin}_{{\bf w}\in\mathcal{C}}\; \|{\bf w}-{\bf u}\|^2 \;\; \textrm{is unique}. \]

3 - Geometrical optimality. In any case, the necessary optimality condition states that the direction from the projection \(\mathcal{P}_{\mathcal{C}}({\bf u})\) to the original point \({\bf u}\) is orthogonal to the set \(\mathcal{C}\) at \(\mathcal{P}_{\mathcal{C}}({\bf u})\):

\[ {\bf u} - \mathcal{P}_{\mathcal{C}}({\bf u}) \in \mathcal{N}_{\mathcal{C}}\big(\mathcal{P}_{\mathcal{C}}({\bf u})\big). \]

This explains why it is called “orthogonal projection”. Some examples are illustrated below.

../../_images/6dd575758b1c0bf5757de8c9b706d01659c54d80772e0ca58445299575406e79.png

4 - Properties. Open the sections below to learn more about the orthogonal projection and its various properties.