MathematicsGeometryEasy

Line (geometry)

Also known as:straight line

A line in geometry is a one-dimensional figure that extends infinitely in both directions and has no endpoints, width, or curvature. It is defined by any two distinct points on it and is the shortest path between those points when considered in a straight path. Lines are foundational to Euclidean geometry and are used to construct angles, polygons, and coordinate systems.

Key Formula

y = mx + b

LaTeX: y = mx + b

SymbolMeaningUnit
yy-coordinate of any point on the lineunitless
mslope of the lineunitless
xx-coordinate of any point on the lineunitless
by-intercept (where line crosses y-axis)unitless

Worked Example

Problem

Find the equation of the line passing through points (2, 3) and (4, 7).

Solution

Step 1: Find the slope: m = (y2 - y1) / (x2 - x1) = (7 - 3) / (4 - 2) = 4 / 2 = 2. Step 2: Use point-slope form with point (2, 3): y - 3 = 2(x - 2). Step 3: Simplify: y - 3 = 2x - 4, so y = 2x - 1.

Answer

y = 2x - 1

Types of Lines in Geometry

TypeSymbolDescriptionExample
Line↔ ABExtends infinitely in both directionsx-axis
Line segmentABHas two definite endpointsSide of a triangle
Ray→ ABOne endpoint, extends infinitely in one directionSun's ray
Parallel linesl ∥ mNever intersect, same slopeRailway tracks
Perpendicular linesl ⊥ mIntersect at 90°Corner of a room
Intersecting linesCross at one pointRoad crossing

Interactive Tools

GeoGebra Geometry

Open Tool

Desmos Graphing Calculator

Open Tool

Khan Academy: Lines

Open Tool
Diagram showing parallel and perpendicular lines

Wikimedia Commons, CC BY-SA

Related Terms

From Latin "linea" meaning a linen thread, string, or boundary line, derived from "linum" meaning flax (from which linen was made). The geometric sense evolved to mean any straight mark or path. Greek geometers used "gramme" for line.

geometryeuclideanfoundationsslopecoordinate