]> 5.3 Representations of a Line in Two and Three Dimensions

5.3 Representations of a Line in Two and Three Dimensions

Two points P 1 and P 2 on a line, L , determine L .

L can be described parametrically as the set of points with coordinates those of O P 1 + s * P 1 P 2 for some number s .

P 1 P 2 is a vector which points in the direction of L .

In two dimensions so that the vectors here are 2-vectors, there is only one direction perpendicular to L , and that direction can be obtained by switching the coordinates of P 1 P 2 and changing one sign, (thus ( 7 , 4 ) is perpendicular to ( 4 , 7 ) ).
With N the perpendicular vector, the equation of the line becomes N · r = N · P 1 .

We do this out explicitly L consists of the points obeying

x = P 1 x + s * ( P 2 x P 1 x )
y = P 1 y + s * ( P 2 y P 1 y )

and the equation for L is

( P 2 y P 1 y ) x ( P 2 x P 1 x ) y = ( P 2 y P 1 y ) P 1 x ( P 2 x P 1 x ) P 1 y

which when solved for y is

y = ( P 2 y P 1 y P 2 x P 1 x ) x + C for some constant C .

The ratio ( P 2 y P 1 y P 2 x P 1 x ) , the coefficient of x in the equation for the line, is the difference of y coordinates of the two points divided by the difference in x coordinates. It is called the slope of the line L .

The constant C is called the y-intercept of the line L . It is the value of y on L where L meets the y axis.

 

 

In three dimensions, a line is determined by two equations. You can describe it as above parametrically (though now all points and vectors have three components), but you must find two vectors normal to P 1 P 2 to find equations that characterize it. You have infinite choice in doing so, but two convenient choices are

i ^ × P 1 P 2

and

j ^ × P 1 P 2

and you can require that the dot product of each of these with r (recall r = ( x , y , z ) ) is what it is with P 1 . This gives you two equations which together determine the line.

To find a point on a line from equations you fix one coordinate arbitrarily and solve the two equations for the other two coordinates.

The following applet allows you two enter two arbitrary points. It then shows you the line in 3 space that your points determine, and the parametric representation of that line.

 

 

Exercises 5.1 Find two equations for the default line in this applet. Then choose two random points, and find two equations for the line they lie on.