Shortest Distance between a Point and a Line in 2D

This Demonstration shows how the scalar product (dot product) can be used to find the point of shortest distance between a point P and a line. You can modify the line by dragging points A and B.

SNAPSHOTS

  • [Snapshot]
  • [Snapshot]
  • [Snapshot]

DETAILS

This Demonstration is intended for teachers trying to illustrate how the inner product (dot product) - becomes zero when the point X on the line AB is closest to the point P. The Demonstration can be used as an interactive board; teachers can keep their students' attention on a given element by not displaying other elements.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.