The Wayback Machine - https://web.archive.org/web/20140325015521/http://mathworld.wolfram.com/Line.html

Line

DOWNLOAD Mathematica Notebook EXPLORE THIS TOPIC IN the MathWorld Classroom

A line is a straight one-dimensional figure having no thickness and extending infinitely in both directions. A line is sometimes called a straight line or, more archaically, a right line (Casey 1893), to emphasize that it has no "wiggles" anywhere along its length. While lines are intrinsically one-dimensional objects, they may be embedded in higher dimensional spaces.

Harary (1994) called an edge of a graph a "line."

Line

A line is uniquely determined by two points, and the line passing through points A and B is denoted <->; AB. Similarly, the length of the finite line segment terminating at these points may be denoted AB^_. A line may also be denoted with a single lower-case letter (Jurgensen et al. 1963, p. 22).

Euclid defined a line as a "breadthless length," and a straight line as a line that "lies evenly with the points on itself" (Kline 1956, Dunham 1990).

Consider first lines in a two-dimensional plane. Two lines lying in the same plane that do not intersect one another are said to be parallel lines. Two lines lying in different planes that do not intersect one another are said to be skew lines.

LineIntercepts

The line with x-intercept a and y-intercept b is given by the intercept form

 x/a+y/b=1.
(1)

The line through (x_1,y_1) with slope m is given by the point-slope form

 y-y_1=m(x-x_1).
(2)

The line with y-intercept b and slope m is given by the slope-intercept form

 y=mx+b.
(3)

The line through (x_1,y_1) and (x_2,y_2) is given by the two-point form

 y-y_1=(y_2-y_1)/(x_2-x_1)(x-x_1).
(4)

A parametric form is given by

x=x_0+at
(5)
y=y_0+bt.
(6)

Other forms are

 a(x-x_1)+b(y-y_1)=0
(7)
 ax+by+c=0
(8)
 |x y 1; x_1 y_1 1; x_2 y_2 1|=0.
(9)

A line in two dimensions can also be represented as a vector. The vector along the line

 ax+by=0
(10)

is given by

 t[-b; a],
(11)

where t in R. Similarly, vectors of the form

 t[a; b]
(12)

are perpendicular to the line.

Three points lie on a line if

 |x_1 y_1 1; x_2 y_2 1; x_3 y_3 1|=0.
(13)

The angle between lines

A_1x+B_1y+C_1=0
(14)
A_2x+B_2y+C_2=0
(15)

is

 tantheta=(A_1B_2-A_2B_1)/(A_1A_2+B_1B_2).
(16)

The line joining points with trilinear coordinates alpha_1:beta_1:gamma_1 and alpha_2:beta_2:gamma_2 is the set of point alpha:beta:gamma satisfying

 |alpha beta gamma; alpha_1 beta_1 gamma_1; alpha_2 beta_2 gamma_2|=0
(17)
 (beta_1gamma_2-gamma_1beta_2)alpha+(gamma_1alpha_2-alpha_1gamma_2)beta+(alpha_1beta_2-beta_1alpha_2)gamma=0.
(18)

The line through P_1 in the direction (a_1,b_1,c_1) and the line through P_2 in direction (a_2,b_2,c_2) intersect iff

 |x_2-x_1 y_2-y_1 z_2-z_1; a_1 b_1 c_1; a_2 b_2 c_2|=0.
(19)

The line through a point alpha^':beta^':gamma^' parallel to

 lalpha+mbeta+ngamma=0
(20)

is

 |alpha beta gamma; alpha^' beta^' gamma^'; bn-cm cl-an am-bl|=0.
(21)

The lines

lalpha+mbeta+ngamma=0
(22)
l^'alpha+m^'beta+n^'gamma=0
(23)

are parallel if

 a(mn^'-nm^')+b(nl^'-ln^')+c(lm^'-ml^')=0
(24)

for all (a,b,c), and perpendicular if

 (ll^'+mm^'+nn^')-(mn^'+m^'n)cosA-(nl^'+n^'l)cosB-(lm^'+l^'m)cosC=0
(25)

for all (a,b,c) (Sommerville 1961, Kimberling 1998, p. 29).

The line through a point alpha^':beta^':gamma^' perpendicular to (◇) is given by

 |alpha beta gamma; alpha^' beta^' gamma^'; l-mcosC-ncosB m-ncosA-lcosC n-lcosB-mcosA|=0.
(26)

In three-dimensional space, the line passing through the point (x_0,y_0,z_0) and parallel to the nonzero vector v=(a,b,c) has parametric equations

x=x_0+at
(27)
y=y_0+bt
(28)
z=z_0+ct,
(29)

written concisely as

 x=x_0+vt.
(30)

Similarly, the line in three dimensions passing through (x_1,y_1) and (x_2,y_2) has parametric vector equation

 x=x_1+(x_2-x_1)t,
(31)

where this parametrization corresponds to x(t=0)=x_1 and x(t=1)=x_2.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computable Document Format »

The format that makes Demonstrations (and any information) easy to share and interact with.

STEM initiative »

Programs & resources for educators, schools & students.

Computerbasedmath.org »

Join the initiative for modernizing math education.