We set v = C − A {\displaystyle {}v=C-A} , and w = B − C {\displaystyle {}w=B-C} . The vector from A {\displaystyle {}A} to B {\displaystyle {}B} equals v + w {\displaystyle {}v+w} . We write the foot of the altitude as
with λ ∈ R {\displaystyle {}\lambda \in \mathbb {R} } ; the vector of the altitude has the form
The orthogonality condition for the altitude yields
therefore,
Hence, we obtain