> For the complete documentation index, see [llms.txt](https://ee16a.gitbook.io/studee16a/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ee16a.gitbook.io/studee16a/linear-algebra/gram-schmidt/description.md).

# Description

Geometrically, the intuition behind Gram-Schmidt is that the difference vector, also called the error vector in least squares, between a vector and its projection onto a subspace are orthogonal to each other.

![Projection](http://i.imgur.com/rTscl4C.png)

In this image, the dotted red line represents the error vector between $$\vec{x}$$ and its projection on the subspace. Note that the projection of $$\vec{x}$$ and the error vector are orthogonal to each other.

Using this property, we can then construct an orthogonal basis given a set of vectors.
