
In
geometry
Geometry (; ) is a branch of mathematics concerned with properties of space such as the distance, shape, size, and relative position of figures. Geometry is, along with arithmetic, one of the oldest branches of mathematics. A mathematician w ...
, a straight line, usually abbreviated line, is an infinitely long object with no width, depth, or
curvature
In mathematics, curvature is any of several strongly related concepts in geometry that intuitively measure the amount by which a curve deviates from being a straight line or by which a surface deviates from being a plane. If a curve or su ...
, an idealization of such physical objects as a
straightedge
A straightedge or straight edge is a tool used for drawing straight lines, or checking their straightness. If it has equally spaced markings along its length, it is usually called a ruler.
Straightedges are used in the automotive service and ma ...
, a taut string, or a
ray of light. Lines are
space
Space is a three-dimensional continuum containing positions and directions. In classical physics, physical space is often conceived in three linear dimensions. Modern physicists usually consider it, with time, to be part of a boundless ...
s of
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coo ...
one, which may be
embedded in spaces of dimension two, three, or higher. The word ''line'' may also refer, in everyday life, to a
line segment
In geometry, a line segment is a part of a line (mathematics), straight line that is bounded by two distinct endpoints (its extreme points), and contains every Point (geometry), point on the line that is between its endpoints. It is a special c ...
, which is a part of a line delimited by two
points
A point is a small dot or the sharp tip of something. Point or points may refer to:
Mathematics
* Point (geometry), an entity that has a location in space or on a plane, but has no extent; more generally, an element of some abstract topologica ...
(its ''endpoints'').
Euclid's ''Elements'' defines a straight line as a "breadthless length" that "lies evenly with respect to the points on itself", and introduced several
postulates as basic unprovable properties on which the rest of geometry was established. ''Euclidean line'' and ''
Euclidean geometry
Euclidean geometry is a mathematical system attributed to ancient Greek mathematics, Greek mathematician Euclid, which he described in his textbook on geometry, ''Euclid's Elements, Elements''. Euclid's approach consists in assuming a small set ...
'' are terms introduced to avoid confusion with generalizations introduced since the end of the 19th century, such as
non-Euclidean,
projective, and
affine geometry
In mathematics, affine geometry is what remains of Euclidean geometry when ignoring (mathematicians often say "forgetting") the metric notions of distance and angle.
As the notion of '' parallel lines'' is one of the main properties that is i ...
.
Properties
In the
Greek
Greek may refer to:
Anything of, from, or related to Greece, a country in Southern Europe:
*Greeks, an ethnic group
*Greek language, a branch of the Indo-European language family
**Proto-Greek language, the assumed last common ancestor of all kno ...
deductive geometry of
Euclid's ''Elements'', a general ''line'' (now called a ''
curve
In mathematics, a curve (also called a curved line in older texts) is an object similar to a line, but that does not have to be straight.
Intuitively, a curve may be thought of as the trace left by a moving point. This is the definition that ...
'') is defined as a "breadthless length", and a ''straight line'' (now called a
line segment
In geometry, a line segment is a part of a line (mathematics), straight line that is bounded by two distinct endpoints (its extreme points), and contains every Point (geometry), point on the line that is between its endpoints. It is a special c ...
) was defined as a line "which lies evenly with the points on itself".
These definitions appeal to readers' physical experience, relying on terms that are not themselves defined, and the definitions are never explicitly referenced in the remainder of the text. In modern geometry, a line is usually either taken as a
primitive notion
In mathematics, logic, philosophy, and formal systems, a primitive notion is a concept that is not defined in terms of previously-defined concepts. It is often motivated informally, usually by an appeal to Intuition (knowledge), intuition or taken ...
with properties given by
axiom
An axiom, postulate, or assumption is a statement that is taken to be true, to serve as a premise or starting point for further reasoning and arguments. The word comes from the Ancient Greek word (), meaning 'that which is thought worthy or ...
s,
or else defined as a
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
of points obeying a linear relationship, for instance when
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s are taken to be primitive and geometry is established
analytically in terms of numerical
coordinates
In geometry, a coordinate system is a system that uses one or more numbers, or coordinates, to uniquely determine and standardize the Position (geometry), position of the Point (geometry), points or other geometric elements on a manifold such as ...
.
In an axiomatic formulation of Euclidean geometry, such as that of
Hilbert
David Hilbert (; ; 23 January 1862 – 14 February 1943) was a German mathematician and philosophy of mathematics, philosopher of mathematics and one of the most influential mathematicians of his time.
Hilbert discovered and developed a broad ...
(modern mathematicians added to Euclid's original axioms to fill perceived logical gaps),
a line is stated to have certain properties that relate it to other lines and
points
A point is a small dot or the sharp tip of something. Point or points may refer to:
Mathematics
* Point (geometry), an entity that has a location in space or on a plane, but has no extent; more generally, an element of some abstract topologica ...
. For example, for any two distinct points, there is a unique line containing them, and any two distinct lines intersect at most at one point.
In two
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coo ...
s (i.e., the Euclidean
plane), two lines that do not intersect are called
parallel. In higher dimensions, two lines that do not intersect are parallel if they are contained in a
plane, or
skew if they are not.
On a
Euclidean plane
In mathematics, a Euclidean plane is a Euclidean space of Two-dimensional space, dimension two, denoted \textbf^2 or \mathbb^2. It is a geometric space in which two real numbers are required to determine the position (geometry), position of eac ...
, a line can be represented as a boundary between two regions. Any collection of finitely many lines partitions the plane into
convex polygon
In geometry, a convex polygon is a polygon that is the boundary of a convex set. This means that the line segment between two points of the polygon is contained in the union of the interior and the boundary of the polygon. In particular, it is ...
s (possibly unbounded); this partition is known as an
arrangement of lines.
In higher dimensions
In
three-dimensional space
In geometry, a three-dimensional space (3D space, 3-space or, rarely, tri-dimensional space) is a mathematical space in which three values ('' coordinates'') are required to determine the position of a point. Most commonly, it is the three- ...
, a
first degree equation in the variables ''x'', ''y'', and ''z'' defines a plane, so two such equations, provided the planes they give rise to are not parallel, define a line which is the intersection of the planes. More generally, in ''n''-dimensional space ''n''−1 first-degree equations in the ''n''
coordinate
In geometry, a coordinate system is a system that uses one or more numbers, or coordinates, to uniquely determine and standardize the position of the points or other geometric elements on a manifold such as Euclidean space. The coordinates are ...
variables define a line under suitable conditions.
In more general
Euclidean space
Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are ''Euclidean spaces ...
, R
''n'' (and analogously in every other
affine space
In mathematics, an affine space is a geometric structure that generalizes some of the properties of Euclidean spaces in such a way that these are independent of the concepts of distance and measure of angles, keeping only the properties relat ...
), the line ''L'' passing through two different points ''a'' and ''b'' is the subset
The
direction of the line is from a reference point ''a'' (''t'' = 0) to another point ''b'' (''t'' = 1), or in other words, in the direction of the vector ''b'' − ''a''. Different choices of ''a'' and ''b'' can yield the same line.
Collinear points
Three or more points are said to be ''collinear'' if they lie on the same line. If three points are not collinear, there is exactly one
plane that contains them.
In
affine coordinates, in ''n''-dimensional space the points ''X'' = (''x''
1, ''x''
2, ..., ''x''
''n''), ''Y'' = (''y''
1, ''y''
2, ..., ''y''
''n''), and ''Z'' = (''z''
1, ''z''
2, ..., ''z''
''n'') are collinear if the
matrix
Matrix (: matrices or matrixes) or MATRIX may refer to:
Science and mathematics
* Matrix (mathematics), a rectangular array of numbers, symbols or expressions
* Matrix (logic), part of a formula in prenex normal form
* Matrix (biology), the m ...
has a
rank less than 3. In particular, for three points in the plane (''n'' = 2), the above matrix is square and the points are collinear if and only if its
determinant
In mathematics, the determinant is a Scalar (mathematics), scalar-valued function (mathematics), function of the entries of a square matrix. The determinant of a matrix is commonly denoted , , or . Its value characterizes some properties of the ...
is zero.
Equivalently for three points in a plane, the points are collinear if and only if the slope between one pair of points equals the slope between any other pair of points (in which case the slope between the remaining pair of points will equal the other slopes). By extension, ''k'' points in a plane are collinear if and only if any (''k''–1) pairs of points have the same pairwise slopes.
In
Euclidean geometry
Euclidean geometry is a mathematical system attributed to ancient Greek mathematics, Greek mathematician Euclid, which he described in his textbook on geometry, ''Euclid's Elements, Elements''. Euclid's approach consists in assuming a small set ...
, the
Euclidean distance
In mathematics, the Euclidean distance between two points in Euclidean space is the length of the line segment between them. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem, and therefore is o ...
''d''(''a'',''b'') between two points ''a'' and ''b'' may be used to express the collinearity between three points by:
:The points ''a'', ''b'' and ''c'' are collinear if and only if ''d''(''x'',''a'') = ''d''(''c'',''a'') and ''d''(''x'',''b'') = ''d''(''c'',''b'') implies ''x'' = ''c''.
However, there are other notions of distance (such as the
Manhattan distance
Taxicab geometry or Manhattan geometry is geometry where the familiar Euclidean distance is ignored, and the distance between two point (geometry), points is instead defined to be the sum of the absolute differences of their respective Cartesian ...
) for which this property is not true.
In the geometries where the concept of a line is a
primitive notion
In mathematics, logic, philosophy, and formal systems, a primitive notion is a concept that is not defined in terms of previously-defined concepts. It is often motivated informally, usually by an appeal to Intuition (knowledge), intuition or taken ...
, as may be the case in some
synthetic geometries, other methods of determining collinearity are needed.
Relationship with other figures

In Euclidean geometry, all lines are
congruent
Congruence may refer to:
Mathematics
* Congruence (geometry), being the same size and shape
* Congruence or congruence relation, in abstract algebra, an equivalence relation on an algebraic structure that is compatible with the structure
* In modu ...
, meaning that every line can be obtained by moving a specific line. However, lines may play special roles with respect to other
geometric objects and can be classified according to that relationship.
For instance, with respect to a
conic
A conic section, conic or a quadratic curve is a curve obtained from a cone's surface intersecting a plane. The three types of conic section are the hyperbola, the parabola, and the ellipse; the circle is a special case of the ellipse, thou ...
(a
circle
A circle is a shape consisting of all point (geometry), points in a plane (mathematics), plane that are at a given distance from a given point, the Centre (geometry), centre. The distance between any point of the circle and the centre is cal ...
,
ellipse
In mathematics, an ellipse is a plane curve surrounding two focus (geometry), focal points, such that for all points on the curve, the sum of the two distances to the focal points is a constant. It generalizes a circle, which is the special ty ...
,
parabola
In mathematics, a parabola is a plane curve which is Reflection symmetry, mirror-symmetrical and is approximately U-shaped. It fits several superficially different Mathematics, mathematical descriptions, which can all be proved to define exactl ...
, or
hyperbola
In mathematics, a hyperbola is a type of smooth function, smooth plane curve, curve lying in a plane, defined by its geometric properties or by equations for which it is the solution set. A hyperbola has two pieces, called connected component ( ...
), lines can be:
*
tangent line
In geometry, the tangent line (or simply tangent) to a plane curve at a given point is, intuitively, the straight line that "just touches" the curve at that point. Leibniz defined it as the line through a pair of infinitely close points o ...
s, which touch the conic at a single point;
*
secant line
In geometry, a secant is a line (geometry), line that intersects a curve at a minimum of two distinct Point (geometry), points..
The word ''secant'' comes from the Latin word ''secare'', meaning ''to cut''. In the case of a circle, a secant inter ...
s, which intersect the conic at two points and pass through its interior;
* exterior lines, which do not meet the conic at any point of the Euclidean plane; or
* a
directrix, whose distance from a point helps to establish whether the point is on the conic.
* a
coordinate line, a linear coordinate dimension
In the context of determining
parallelism in Euclidean geometry, a
transversal is a line that intersects two other lines that may or not be parallel to each other.
For more general
algebraic curve
In mathematics, an affine algebraic plane curve is the zero set of a polynomial in two variables. A projective algebraic plane curve is the zero set in a projective plane of a homogeneous polynomial in three variables. An affine algebraic plane cu ...
s, lines could also be:
* ''i''-secant lines, meeting the curve in ''i'' points counted without multiplicity, or
*
asymptote
In analytic geometry, an asymptote () of a curve is a line such that the distance between the curve and the line approaches zero as one or both of the ''x'' or ''y'' coordinates tends to infinity. In projective geometry and related contexts, ...
s, which a curve approaches arbitrarily closely without touching it.
With respect to
triangles
A triangle is a polygon with three corners and three sides, one of the basic shapes in geometry. The corners, also called ''vertices'', are zero-dimensional points while the sides connecting them, also called ''edges'', are one-dimensiona ...
we have:
* the
Euler line,
* the
Simson lines, and
*
central lines.
For a
convex
Convex or convexity may refer to:
Science and technology
* Convex lens, in optics
Mathematics
* Convex set, containing the whole line segment that joins points
** Convex polygon, a polygon which encloses a convex set of points
** Convex polytop ...
quadrilateral
In Euclidean geometry, geometry a quadrilateral is a four-sided polygon, having four Edge (geometry), edges (sides) and four Vertex (geometry), corners (vertices). The word is derived from the Latin words ''quadri'', a variant of four, and ''l ...
with at most two parallel sides, the
Newton line is the line that connects the midpoints of the two
diagonal
In geometry, a diagonal is a line segment joining two vertices of a polygon or polyhedron, when those vertices are not on the same edge. Informally, any sloping line is called diagonal. The word ''diagonal'' derives from the ancient Greek � ...
s.
[ ()]
For a
hexagon
In geometry, a hexagon (from Greek , , meaning "six", and , , meaning "corner, angle") is a six-sided polygon. The total of the internal angles of any simple (non-self-intersecting) hexagon is 720°.
Regular hexagon
A regular hexagon is de ...
with vertices lying on a conic we have the
Pascal line and, in the special case where the conic is a pair of lines, we have the
Pappus line.
Parallel lines
In geometry, parallel lines are coplanar infinite straight lines that do not intersect at any point. Parallel planes are planes in the same three-dimensional space that never meet. '' Parallel curves'' are curves that do not touch each oth ...
are lines in the same plane that never cross.
Intersecting lines share a single point in common. Coincidental lines coincide with each other—every point that is on either one of them is also on the other.
Perpendicular lines
In geometry, two geometric objects are perpendicular if they intersect at right angles, i.e. at an angle of 90 degrees or π/2 radians. The condition of perpendicularity may be represented graphically using the '' perpendicular symbol'', � ...
are lines that intersect at
right angle
In geometry and trigonometry, a right angle is an angle of exactly 90 Degree (angle), degrees or radians corresponding to a quarter turn (geometry), turn. If a Line (mathematics)#Ray, ray is placed so that its endpoint is on a line and the ad ...
s.
In
three-dimensional space
In geometry, a three-dimensional space (3D space, 3-space or, rarely, tri-dimensional space) is a mathematical space in which three values ('' coordinates'') are required to determine the position of a point. Most commonly, it is the three- ...
,
skew lines
In three-dimensional geometry, skew lines are two Line (geometry), lines that do not Line-line intersection, intersect and are not Parallel (geometry), parallel. A simple example of a pair of skew lines is the pair of lines through opposite edges ...
are lines that are not in the same plane and thus do not intersect each other.
In axiomatic systems
In
synthetic geometry
Synthetic geometry (sometimes referred to as axiomatic geometry or even pure geometry) is geometry without the use of coordinates. It relies on the axiomatic method for proving all results from a few basic properties initially called postulates ...
, the concept of a line is often considered as a
primitive notion
In mathematics, logic, philosophy, and formal systems, a primitive notion is a concept that is not defined in terms of previously-defined concepts. It is often motivated informally, usually by an appeal to Intuition (knowledge), intuition or taken ...
,
meaning it is not being defined by using other concepts, but it is defined by the properties, called
axiom
An axiom, postulate, or assumption is a statement that is taken to be true, to serve as a premise or starting point for further reasoning and arguments. The word comes from the Ancient Greek word (), meaning 'that which is thought worthy or ...
s, that it must satisfy.
However, the
axiomatic definition of a line does not explain the relevance of the concept and is often too abstract for beginners. So, the definition is often replaced or completed by a ''mental image'' or ''intuitive description'' that allows understanding what is a line. Such descriptions are sometimes referred to as definitions, but are not true definitions since they cannot used in
mathematical proof
A mathematical proof is a deductive reasoning, deductive Argument-deduction-proof distinctions, argument for a Proposition, mathematical statement, showing that the stated assumptions logically guarantee the conclusion. The argument may use othe ...
s. The "definition" of line in
Euclid's Elements
The ''Elements'' ( ) is a mathematics, mathematical treatise written 300 BC by the Ancient Greek mathematics, Ancient Greek mathematician Euclid.
''Elements'' is the oldest extant large-scale deductive treatment of mathematics. Drawing on the w ...
falls into this category;
and is never used in proofs of theorems.
Definition
Linear equation

Lines in a Cartesian plane or, more generally, in
affine coordinates, are characterized by linear equations. More precisely, every line
(including vertical lines) is the set of all points whose
coordinates
In geometry, a coordinate system is a system that uses one or more numbers, or coordinates, to uniquely determine and standardize the Position (geometry), position of the Point (geometry), points or other geometric elements on a manifold such as ...
(''x'', ''y'') satisfy a linear equation; that is,
where ''a'', ''b'' and ''c'' are fixed
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s (called
coefficient
In mathematics, a coefficient is a Factor (arithmetic), multiplicative factor involved in some Summand, term of a polynomial, a series (mathematics), series, or any other type of expression (mathematics), expression. It may be a Dimensionless qu ...
s) such that ''a'' and ''b'' are not both zero. Using this form, vertical lines correspond to equations with ''b'' = 0.
One can further suppose either or , by dividing everything by if it is not zero.
There are many variant ways to write the equation of a line which can all be converted from one to another by algebraic manipulation. The above form is sometimes called the ''standard form''. If the constant term is put on the left, the equation becomes
and this is sometimes called the ''general form'' of the equation. However, this terminology is not universally accepted, and many authors do not distinguish these two forms.
These forms are generally named by the type of information (data) about the line that is needed to write down the form. Some of the important data of a line is its slope,
x-intercept
In mathematics, a zero (also sometimes called a root) of a real-, complex-, or generally vector-valued function f, is a member x of the domain of f such that f(x) ''vanishes'' at x; that is, the function f attains the value of 0 at x, or equ ...
, known points on the line and y-intercept.
The equation of the line passing through two different points
and
may be written as
If , this equation may be rewritten as
or
In
two dimensions, the equation for non-vertical lines is often given in the ''
slope–intercept form'':
where:
* ''m'' is the
slope
In mathematics, the slope or gradient of a Line (mathematics), line is a number that describes the direction (geometry), direction of the line on a plane (geometry), plane. Often denoted by the letter ''m'', slope is calculated as the ratio of t ...
or
gradient
In vector calculus, the gradient of a scalar-valued differentiable function f of several variables is the vector field (or vector-valued function) \nabla f whose value at a point p gives the direction and the rate of fastest increase. The g ...
of the line.
* ''b'' is the
y-intercept
In analytic geometry, using the common convention that the horizontal axis represents a variable x and the vertical axis represents a variable y, a y-intercept or vertical intercept is a point where the graph of a function or relation intersects ...
of the line.
* ''x'' is the
independent variable
A variable is considered dependent if it depends on (or is hypothesized to depend on) an independent variable. Dependent variables are studied under the supposition or demand that they depend, by some law or rule (e.g., by a mathematical function ...
of the function .
The slope of the line through points
and
, when
, is given by
and the equation of this line can be written
.
As a note, lines in three dimensions may also be described as the simultaneous solutions of two
linear equation
In mathematics, a linear equation is an equation that may be put in the form
a_1x_1+\ldots+a_nx_n+b=0, where x_1,\ldots,x_n are the variables (or unknowns), and b,a_1,\ldots,a_n are the coefficients, which are often real numbers. The coeffici ...
s
such that
and
are not proportional (the relations
imply
). This follows since in three dimensions a single linear equation typically describes a
plane and a line is what is common to two distinct intersecting planes.
Parametric equation
Parametric equations are also used to specify lines, particularly in those in
three dimensions or more because in more than two dimensions lines ''cannot'' be described by a single linear equation.
In three dimensions lines are frequently described by parametric equations:
where:
* ''x'', ''y'', and ''z'' are all functions of the independent variable ''t'' which ranges over the real numbers.
* (''x''
0, ''y''
0, ''z''
0) is any point on the line.
* ''a'', ''b'', and ''c'' are related to the slope of the line, such that the direction
vector
Vector most often refers to:
* Euclidean vector, a quantity with a magnitude and a direction
* Disease vector, an agent that carries and transmits an infectious pathogen into another living organism
Vector may also refer to:
Mathematics a ...
(''a'', ''b'', ''c'') is parallel to the line.
Parametric equations for lines in higher dimensions are similar in that they are based on the specification of one point on the line and a direction vector.
Hesse normal form

The ''normal form'' (also called the ''Hesse normal form'', after the German mathematician
Ludwig Otto Hesse), is based on the ''
normal segment'' for a given line, which is defined to be the line segment drawn from the
origin perpendicular to the line. This segment joins the origin with the closest point on the line to the origin. The normal form of the equation of a straight line on the plane is given by:
where
is the angle of inclination of the normal segment (the oriented angle from the unit vector of the -axis to this segment), and is the (positive) length of the normal segment. The normal form can be derived from the standard form
by dividing all of the coefficients by
and also multiplying through by
if
Unlike the slope-intercept and intercept forms, this form can represent any line but also requires only two finite parameters,
and , to be specified. If , then
is uniquely defined modulo . On the other hand, if the line is through the origin (), one drops the term to compute
and
, and it follows that
is only defined modulo .
Other representations
Vectors
The vector equation of the line through points A and B is given by
(where λ is a
scalar).
If a is vector OA and b is vector OB, then the equation of the line can be written:
.
A ray starting at point ''A'' is described by limiting λ. One ray is obtained if λ ≥ 0, and the opposite ray comes from λ ≤ 0.
Polar coordinates

In a
Cartesian plane,
polar coordinates
In mathematics, the polar coordinate system specifies a given point (mathematics), point in a plane (mathematics), plane by using a distance and an angle as its two coordinate system, coordinates. These are
*the point's distance from a reference ...
are related to
Cartesian coordinates
In geometry, a Cartesian coordinate system (, ) in a plane is a coordinate system that specifies each point uniquely by a pair of real numbers called ''coordinates'', which are the signed distances to the point from two fixed perpendicular o ...
by the parametric equations:
In polar coordinates, the equation of a line not passing through the
origin—the point with coordinates —can be written
with and
Here, is the (positive) length of the
line segment
In geometry, a line segment is a part of a line (mathematics), straight line that is bounded by two distinct endpoints (its extreme points), and contains every Point (geometry), point on the line that is between its endpoints. It is a special c ...
perpendicular to the line and delimited by the origin and the line, and
is the (oriented) angle from the -axis to this segment.
It may be useful to express the equation in terms of the angle
between the -axis and the line. In this case, the equation becomes
with and
These equations can be derived from the
normal form of the line equation by setting
and
and then applying the
angle difference identity for sine or cosine.
These equations can also be proven
geometrically by applying
right triangle definitions of sine and cosine to the
right triangle
A right triangle or right-angled triangle, sometimes called an orthogonal triangle or rectangular triangle, is a triangle in which two sides are perpendicular, forming a right angle ( turn or 90 degrees).
The side opposite to the right angle i ...
that has a point of the line and the origin as vertices, and the line and its perpendicular through the origin as sides.
The previous forms do not apply for a line passing through the origin, but a simpler formula can be written: the polar coordinates
of the points of a line passing through the origin and making an angle of
with the -axis, are the pairs
such that
Generalizations
In modern mathematics, given the multitude of geometries, the concept of a line is closely tied to the way the geometry is described. For instance, in
analytic geometry
In mathematics, analytic geometry, also known as coordinate geometry or Cartesian geometry, is the study of geometry using a coordinate system. This contrasts with synthetic geometry.
Analytic geometry is used in physics and engineering, and als ...
, a line in the plane is often defined as the set of points whose coordinates satisfy a given
linear equation
In mathematics, a linear equation is an equation that may be put in the form
a_1x_1+\ldots+a_nx_n+b=0, where x_1,\ldots,x_n are the variables (or unknowns), and b,a_1,\ldots,a_n are the coefficients, which are often real numbers. The coeffici ...
, but in a more abstract setting, such as
incidence geometry, a line may be an independent object, distinct from the set of points which lie on it.
When a geometry is described by a set of
axiom
An axiom, postulate, or assumption is a statement that is taken to be true, to serve as a premise or starting point for further reasoning and arguments. The word comes from the Ancient Greek word (), meaning 'that which is thought worthy or ...
s, the notion of a line is usually left undefined (a so-called
primitive object). The properties of lines are then determined by the axioms which refer to them. One advantage to this approach is the flexibility it gives to users of the geometry. Thus in
differential geometry
Differential geometry is a Mathematics, mathematical discipline that studies the geometry of smooth shapes and smooth spaces, otherwise known as smooth manifolds. It uses the techniques of Calculus, single variable calculus, vector calculus, lin ...
, a line may be interpreted as a
geodesic
In geometry, a geodesic () is a curve representing in some sense the locally shortest path ( arc) between two points in a surface, or more generally in a Riemannian manifold. The term also has meaning in any differentiable manifold with a conn ...
(shortest path between points), while in some
projective geometries, a line is a 2-dimensional vector space (all linear combinations of two independent vectors). This flexibility also extends beyond mathematics and, for example, permits physicists to think of the path of a light ray as being a line.
Projective geometry

In many models of
projective geometry
In mathematics, projective geometry is the study of geometric properties that are invariant with respect to projective transformations. This means that, compared to elementary Euclidean geometry, projective geometry has a different setting (''p ...
, the representation of a line rarely conforms to the notion of the "straight curve" as it is visualised in Euclidean geometry. In
elliptic geometry
Elliptic geometry is an example of a geometry in which Euclid's parallel postulate does not hold. Instead, as in spherical geometry, there are no parallel lines since any two lines must intersect. However, unlike in spherical geometry, two lines ...
we see a typical example of this.
In the spherical representation of elliptic geometry, lines are represented by
great circle
In mathematics, a great circle or orthodrome is the circular intersection of a sphere and a plane passing through the sphere's center point.
Discussion
Any arc of a great circle is a geodesic of the sphere, so that great circles in spher ...
s of a sphere with diametrically opposite points identified. In a different model of elliptic geometry, lines are represented by Euclidean
planes passing through the origin. Even though these representations are visually distinct, they satisfy all the properties (such as, two points determining a unique line) that make them suitable representations for lines in this geometry.
The "shortness" and "straightness" of a line, interpreted as the property that the
distance
Distance is a numerical or occasionally qualitative measurement of how far apart objects, points, people, or ideas are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two co ...
along the line between any two of its points is minimized (see
triangle inequality
In mathematics, the triangle inequality states that for any triangle, the sum of the lengths of any two sides must be greater than or equal to the length of the remaining side.
This statement permits the inclusion of Degeneracy (mathematics)#T ...
), can be generalized and leads to the concept of
geodesic
In geometry, a geodesic () is a curve representing in some sense the locally shortest path ( arc) between two points in a surface, or more generally in a Riemannian manifold. The term also has meaning in any differentiable manifold with a conn ...
s in
metric space
In mathematics, a metric space is a Set (mathematics), set together with a notion of ''distance'' between its Element (mathematics), elements, usually called point (geometry), points. The distance is measured by a function (mathematics), functi ...
s.
Related concepts
Ray
Given a line and any point ''A'' on it, we may consider ''A'' as decomposing this line into two parts.
Each such part is called a ray and the point ''A'' is called its ''initial point''. It is also known as half-line (sometimes, a half-axis if it plays a distinct role, e.g., as part of a
coordinate axis
In geometry, a coordinate system is a system that uses one or more numbers, or coordinates, to uniquely determine and standardize the position of the points or other geometric elements on a manifold such as Euclidean space. The coordinates are ...
). It is a one-dimensional
half-space. The point A is considered to be a member of the ray. Intuitively, a ray consists of those points on a line passing through ''A'' and proceeding indefinitely, starting at ''A'', in one direction only along the line. However, in order to use this concept of a ray in proofs a more precise definition is required.
Given distinct points ''A'' and ''B'', they determine a unique ray with initial point ''A''. As two points define a unique line, this ray consists of all the points between ''A'' and ''B'' (including ''A'' and ''B'') and all the points ''C'' on the line through ''A'' and ''B'' such that ''B'' is between ''A'' and ''C''. This is, at times, also expressed as the set of all points ''C'' on the line determined by ''A'' and ''B'' such that ''A'' is not between ''B'' and ''C''. A point ''D'', on the line determined by ''A'' and ''B'' but not in the ray with initial point ''A'' determined by ''B'', will determine another ray with initial point ''A''. With respect to the ''AB'' ray, the ''AD'' ray is called the ''opposite ray''.
Thus, we would say that two different points, ''A'' and ''B'', define a line and a decomposition of this line into the
disjoint union
In mathematics, the disjoint union (or discriminated union) A \sqcup B of the sets and is the set formed from the elements of and labelled (indexed) with the name of the set from which they come. So, an element belonging to both and appe ...
of an open segment and two rays, ''BC'' and ''AD'' (the point ''D'' is not drawn in the diagram, but is to the left of ''A'' on the line ''AB''). These are not opposite rays since they have different initial points.
In Euclidean geometry two rays with a common endpoint form an
angle
In Euclidean geometry, an angle can refer to a number of concepts relating to the intersection of two straight Line (geometry), lines at a Point (geometry), point. Formally, an angle is a figure lying in a Euclidean plane, plane formed by two R ...
.
The definition of a ray depends upon the notion of betweenness for points on a line. It follows that rays exist only for geometries for which this notion exists, typically
Euclidean geometry
Euclidean geometry is a mathematical system attributed to ancient Greek mathematics, Greek mathematician Euclid, which he described in his textbook on geometry, ''Euclid's Elements, Elements''. Euclid's approach consists in assuming a small set ...
or
affine geometry
In mathematics, affine geometry is what remains of Euclidean geometry when ignoring (mathematicians often say "forgetting") the metric notions of distance and angle.
As the notion of '' parallel lines'' is one of the main properties that is i ...
over an
ordered field
In mathematics, an ordered field is a field together with a total ordering of its elements that is compatible with the field operations. Basic examples of ordered fields are the rational numbers and the real numbers, both with their standard ord ...
. On the other hand, rays do not exist in
projective geometry
In mathematics, projective geometry is the study of geometric properties that are invariant with respect to projective transformations. This means that, compared to elementary Euclidean geometry, projective geometry has a different setting (''p ...
nor in a geometry over a non-ordered field, like the
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s or any
finite field
In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field (mathematics), field that contains a finite number of Element (mathematics), elements. As with any field, a finite field is a Set (mathematics), s ...
.
Line segment

A
line segment
In geometry, a line segment is a part of a line (mathematics), straight line that is bounded by two distinct endpoints (its extreme points), and contains every Point (geometry), point on the line that is between its endpoints. It is a special c ...
is a part of a line that is bounded by two distinct end points and contains every point on the line between its end points. Depending on how the line segment is defined, either of the two end points may or may not be part of the line segment. Two or more line segments may have some of the same relationships as lines, such as being parallel, intersecting, or skew, but unlike lines they may be none of these, if they are
coplanar
In geometry, a set of points in space are coplanar if there exists a geometric plane that contains them all. For example, three points are always coplanar, and if the points are distinct and non-collinear, the plane they determine is unique. How ...
and either do not intersect or are
collinear
In geometry, collinearity of a set of Point (geometry), points is the property of their lying on a single Line (geometry), line. A set of points with this property is said to be collinear (sometimes spelled as colinear). In greater generality, t ...
.
Number line

A point on number line corresponds to a
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
and vice versa. Usually,
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s are evenly spaced on the line, with positive numbers are on the right, negative numbers on the left. As an extension to the concept, an
imaginary line
In general, an imaginary line is usually any sort of geometric line (more generally, curves) that has only an abstract definition and does not physically exist. They are often used to properly identify places on a map.
Some outside geograph ...
representing
imaginary number
An imaginary number is the product of a real number and the imaginary unit , is usually used in engineering contexts where has other meanings (such as electrical current) which is defined by its property . The square (algebra), square of an im ...
s can be drawn perpendicular to the number line at zero.
The two lines forms the
complex plane
In mathematics, the complex plane is the plane (geometry), plane formed by the complex numbers, with a Cartesian coordinate system such that the horizontal -axis, called the real axis, is formed by the real numbers, and the vertical -axis, call ...
, a geometrical representation of the set of
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s.
See also
*
Affine transformation
In Euclidean geometry, an affine transformation or affinity (from the Latin, '' affinis'', "connected with") is a geometric transformation that preserves lines and parallelism, but not necessarily Euclidean distances and angles.
More general ...
*
Coordinate axis
In geometry, a coordinate system is a system that uses one or more numbers, or coordinates, to uniquely determine and standardize the position of the points or other geometric elements on a manifold such as Euclidean space. The coordinates are ...
*
Curve
In mathematics, a curve (also called a curved line in older texts) is an object similar to a line, but that does not have to be straight.
Intuitively, a curve may be thought of as the trace left by a moving point. This is the definition that ...
*
Distance between two parallel lines
The distance
Distance is a numerical or occasionally qualitative measurement of how far apart objects, points, people, or ideas are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criter ...
*
Distance from a point to a line
*
Flat (geometry)
In geometry, a flat is an affine subspace, i.e. a subset of an affine space that is itself an affine space. Particularly, in the case the parent space is Euclidean, a flat is a Euclidean subspace which inherits the notion of distance from it ...
*
Incidence (geometry) In geometry, an incidence relation is a heterogeneous relation that captures the idea being expressed when phrases such as "a point ''lies on'' a line" or "a line is ''contained in'' a plane" are used. The most basic incidence relation is that betw ...
*
Line segment
In geometry, a line segment is a part of a line (mathematics), straight line that is bounded by two distinct endpoints (its extreme points), and contains every Point (geometry), point on the line that is between its endpoints. It is a special c ...
*
Generalised circle
*
Locus
*
Plane (geometry)
In mathematics, a Euclidean plane is a Euclidean space of dimension two, denoted \textbf^2 or \mathbb^2. It is a geometric space in which two real numbers are required to determine the position of each point. It is an affine space, which in ...
*
Polyline
In geometry, a polygonal chain is a connected series of line segments. More formally, a polygonal chain is a curve specified by a sequence of points (A_1, A_2, \dots, A_n) called its vertices. The curve itself consists of the line segments co ...
Notes
References
External links
*
Equations of the Straight Lineat
Cut-the-Knot
Alexander Bogomolny (January 4, 1948 July 7, 2018) was a Soviet Union, Soviet-born Israeli Americans, Israeli-American mathematician. He was Professor Emeritus of Mathematics at the University of Iowa, and formerly research fellow at the Moscow ...
{{DEFAULTSORT:Line (Geometry)
Elementary geometry
Analytic geometry
Infinity