In geometry, a line segment is a part of a straight line that is bounded by two distinct end points, and contains every point on the line that is between its endpoints. It is a special case of an arc, with zero curvature. The length of a line segment is given by the Euclidean distance between its endpoints. A closed line segment includes both endpoints, while an open line segment excludes both endpoints; a half-open line segment includes exactly one of the endpoints. In geometry, a line segment is often denoted using a line above the symbols for the two endpoints (such as ).

Examples of line segments include the sides of a triangle or square. More generally, when both of the segment's end points are vertices of a polygon or polyhedron, the line segment is either an edge (of that polygon or polyhedron) if they are adjacent vertices, or a diagonal. When the end points both lie on a curve (such as a circle), a line segment is called a chord (of that curve).

Line segment

In real or complex vector spaces

If is a vector space over or and is a subset of , then is a line segment if can be parameterized as

Line segment

for some vectors where is nonzero. The endpoints of are then the vectors and .

Line segment

Sometimes, one needs to distinguish between "open" and "closed" line segments. In this case, one would define a closed line segment as above, and an open line segment as a subset that can be parametrized as

for some vectors

Equivalently, a line segment is the convex hull of two points. Thus, the line segment can be expressed as a convex combination of the segment's two end points.

In geometry, one might define point to be between two other points and , if the distance added to the distance is equal to the distance . Thus in the line segment with endpoints and is the following collection of points:

Properties

A line segment is a connected, non-empty set. If is a topological vector space, then a closed line segment is a closed set in . However, an open line segment is an open set in if and only if is one-dimensional. More generally than above, the concept of a line segment can be defined in an ordered geometry. A pair of line segments can be any one of the following: intersecting, parallel, skew, or none of these. The last possibility is a way that line segments differ from lines: if two nonparallel lines are in the same Euclidean plane then they must cross each other, but that need not be true of segments.

In proofs

In an axiomatic treatment of geometry, the notion of betweenness is either assumed to satisfy a certain number of axioms, or defined in terms of an isometry of a line (used as a coordinate system).

Segments play an important role in other theories. For example, in a convex set, the segment that joins any two points of the set is contained in the set. This is important because it transforms some of the analysis of convex sets, to the analysis of a line segment. The segment addition postulate can be used to add congruent segment or segments with equal lengths, and consequently substitute other segments into another statement to make segments congruent.

As a degenerate ellipse

A line segment can be viewed as a degenerate case of an ellipse, in which the semiminor axis goes to zero, the foci go to the endpoints, and the eccentricity goes to one. A standard definition of an ellipse is the set of points for which the sum of a point's distances to two foci is a constant; if this constant equals the distance between the foci, the line segment is the result. A complete orbit of this ellipse traverses the line segment twice. As a degenerate orbit, this is a radial elliptic trajectory.

In other geometric shapes

In addition to appearing as the edges and diagonals of polygons and polyhedra, line segments also appear in numerous other locations relative to other geometric shapes.

Triangles

Some very frequently considered segments in a triangle to include the three altitudes (each perpendicularly connecting a side or its extension to the opposite vertex), the three medians (each connecting a side's midpoint to the opposite vertex), the perpendicular bisectors of the sides (perpendicularly connecting the midpoint of a side to one of the other sides), and the internal angle bisectors (each connecting a vertex to the opposite side). In each case, there are various equalities relating these segment lengths to others (discussed in the articles on the various types of segment), as well as various inequalities.

Other segments of interest in a triangle include those connecting various triangle centers to each other, most notably the incenter, the circumcenter, the nine-point center, the centroid and the orthocenter.