Drawing perperdicular to existing coordinates

  • Context: High School 
  • Thread starter Thread starter VCVCVC
  • Start date Start date
  • Tags Tags
    Coordinates Drawing
Click For Summary

Discussion Overview

The discussion revolves around the mathematical approach to drawing a perpendicular line from a given point to a line defined by two coordinates in both two-dimensional and three-dimensional contexts. Participants explore formulas and methods for calculating the perpendicular distance from the point to the line.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant seeks a formula for drawing a perpendicular line from a point (x3,y3) to a line defined by two points (x1,y1) and (x2,y2), expressing uncertainty about the mathematical approach.
  • Another participant provides the slope of the line between (x1,y1) and (x2,y2) and explains how to derive the slope of the perpendicular line, along with the equation of that line through (x3,y3).
  • A different participant requests a brief example to clarify the mathematical concepts, indicating a lack of confidence in their mathematical skills.
  • One participant extends the discussion to three dimensions, presenting a more complex formulation for the line and the perpendicular distance, including vector normalization and dot products.
  • An example is provided with specific coordinates to illustrate the calculation of the slope, the perpendicular line, and the intersection point, ultimately leading to the calculation of the distance from the point to the line.

Areas of Agreement / Disagreement

Participants present various methods and examples for calculating perpendicular lines and distances, but there is no consensus on a single approach, particularly between two-dimensional and three-dimensional contexts.

Contextual Notes

The discussion includes assumptions about the familiarity with mathematical concepts and the applicability of the methods across different dimensions. Some steps in the mathematical reasoning are not fully resolved, particularly in the transition from two-dimensional to three-dimensional explanations.

VCVCVC
Messages
2
Reaction score
0
Hi ,

I have drawn a line between two co-ordinates say (x1,y1) and (x2,y2). I have a point called (x3,y3) . From the point (x3,y3) i need to draw a perpendicular line to (x1,y1) and (x2,y2). so that i will be able to find the perpendicular distance . Is there any formula for calculating or drawing this perpendicular line. Any equations for finding this? I have depicted the question in terms of diagram which is attached along with this message.
pls help.


Thanks in advance
 

Attachments

  • untitled2.JPG
    untitled2.JPG
    4.9 KB · Views: 473
Mathematics news on Phys.org
The slope of the line from (x1,y1) to (x2,y2) is m= (y2-y1)/(x2-x1). The slope of a line perpendicular to that is -1/m (the slopes of two perpendicular lines always have a product of -1). Finally, the line through (x3,y3) with slope -1/m is y= -1/m(x- x3)+ y3.
 
Hi,

Thanks for the very prompt response. Will you please brief with one small example ? I am sorry and i am not much good in mathematics. your help will be greatly appreciated.
 
The following is for three (or more) dimensions. If you have two points p1 and p2, the equation of a line going through p1 and p2 is generally given by:

p(t) = p1 + (p2-p1)*t

We normalize the direction vector (p2-p1) of this line and obtain the equation:

p(t) = p1 + e*t with e = (p2-p1)/||p2-p1||

Then the equation of the line perpendicular to |p1p2| going through p3 is given by:

p(t) = p3 + v3*t with v3 = (p3-p2) - (e*(p3-p2))*e

If you normalize v3 obtaining the normal vector e3 = v3/||v3||, the distance d3 of the point p3 to the line defined by p1,p2 is given by:

d3 = (p3-p2)*e3

With the dot product of two vector v1(x1,y1,z1) and v2(x2,y2,z2) given by:

v1*v2 = x1*x2 + y1*y2 + z1*z2

For two dimensions, just take the z component zero.
 
Last edited:
An example: Let (x1,y1)= (1, 1), (x2,y2)= (5,3) and (x3,31)= (0,3). (Made up pretty much at random.)

The slope of the line through (1,1) and (5,3) is (3-1)/(5-1)= 2/4= 1/2. (In fact, it is easy to see that the line through those two points is given by y= (1/2)(x-1)+ 1.)

The slope of any line perpendicular to that is -2 (since -2(1/2)= 1). The line with slope -2 passing through (0,3) is y= -2(x-0)+ 3 or y= -2x+ 3.

To find the "perpendicular distance" you would now find the point where the two lines y= y= (1/2)(x-1)+ 1= (1/2)x+ 1/2 and y= -2x+ 3 intersect. That gives, of course, (1/2)x+ 1/2= -2x+ 3 or (2+ 1/2)x= 3- 1/2. That is, (5/2)x= 5/2 so x= 1 and then y= 1 (I swear! I picked the numbers "at random"!) Finally, the distance from (0,3) to (1,1) (the intersection) is sqrt(12+ 22)= sqrt(5).
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K