# Why the difference vector is orthogonal at the points of closest approach

> The visualization is designed to dynamically demonstrate the geometric principle of finding the shortest distance between two skew lines in 3D space. The animation achieves this by synchronously oscillating the parameters $$t$$ and $$s$$ around their calculated optimal values ( $$t\_{\text {opt }}$$ and $$s\_{\text {opt }}$$ ), which causes the points $$X\_1$$ and $$X\_2$$ to sweep along their respective lines. The key takeaway is the direct causal link between the minimum distance and vector orthogonality: the difference vector $$d$$ connecting $$X\_1$$ and $$X\_2$$ achieves its shortest length only at the single instant when it becomes perpendicular to both line direction vectors, $$v\_1$$ and $$v\_2$$. This critical state is confirmed mathematically by the dynamic display showing both dot products ( $$\left|d \cdot v\_1\right|$$ and $$\left|d \cdot v\_2\right|$$ ) simultaneously approaching zero, and visually by the $$d$$ vector changing color, illustrating that minimum distance necessitates orthogonality.

### :clapper:Narrated Video

{% embed url="<https://youtu.be/3PVGKwnhExw>" %}

### :thread:Related Derivation

{% content-ref url="../proof-and-derivation/finding-the-shortest-distance-and-proving-orthogonality-for-skew-lines-sdo-sl" %}
[finding-the-shortest-distance-and-proving-orthogonality-for-skew-lines-sdo-sl](https://via-dean.gitbook.io/all/~/revisions/WYsapCOkHSgcDPhymfq8/multifaceted-viewpoint/mathematical-structures-underlying-physical-laws/proof-and-derivation/finding-the-shortest-distance-and-proving-orthogonality-for-skew-lines-sdo-sl)
{% endcontent-ref %}

### :hammer\_pick:Compound Page

{% embed url="<https://viadean.notion.site/Why-the-difference-vector-is-orthogonal-at-the-points-of-closest-approach-VOP-2de1ae7b9a328094b1a2db64c8e6de19?source=copy_link>" %}
