Skip to content

Lines, rays and line segmentsGo deeperabout 50 min

Why it must be so: reasoning about lines

Euclid's rules, proofs, counting arguments and the puzzle of parallels

Build geometry from Euclid's postulates, prove key facts about intersecting, parallel and perpendicular lines, count with pairs, and follow the 2,000-year story of the parallel postulate from Alexandria to curved space.

Start at chapter 1

In this part you’ll

  • State Euclid's five postulates in plain words and Playfair's form of the fifth.
  • Write short proofs by contradiction about intersecting and parallel lines.
  • Prove and use pair-counting formulas, including cases with collinear points and polygon diagonals.
  • Explain why the perpendicular is the shortest distance and why the perpendicular bisector is the set of equidistant points.
  • Describe how replacing the parallel postulate leads to spherical and hyperbolic geometry, and how the Sulba Sutras used cords to make lines.

So far we have described lines, drawn them, counted them and measured them. This layer asks a harder question: how do we know? How can we be certain that two lines never meet twice, or that the three perpendicular bisectors of every triangle pass through one point, when nobody can check every triangle that could ever be drawn?

The answer, invented in ancient Greece and India and polished over two thousand years, is proof: start from a few statements everyone accepts, and reason step by step to new ones. Along the way you will meet the most famous controversy in the history of geometry, a rule about parallel lines that took more than 2,000 years to understand.

Chapter 01

Euclid's Elements: geometry from a few rules

Around 300 BCE, in the city of Alexandria in Egypt, a teacher named Euclid wrote the Elements, thirteen books that organised all the geometry known at the time. Its big idea was not any single fact but its structure: a short list of definitions and starting rules, followed by hundreds of results, each proved only from the rules and the results before it.

The Elements opens with definitions that should feel familiar from the Understand layer. In a well-known English translation: "A point is that which has no part." "A line is breadthless length." "The ends of a line are points." Notice that Euclid's "line" is what we now call a segment or a curve, and his "straight line" is closer to our segment that can be extended. Words change over 2,300 years; ideas survive.

Chapter 02

The five postulates, in plain words

A postulate (or axiom) is a starting statement accepted without proof. Euclid chose five about geometry, plus some "common notions" about quantities in general, such as things equal to the same thing are equal to each other and the whole is greater than the part.

TableEuclid's five postulates, simplified
No.Euclid's postulate (simplified)What it lets you doRuler and compass version
1A straight line can be drawn from any point to any point.Join two points with a straight line (modern versions add: only one).Use the straight edge.
2A straight line segment can be extended as far as you like.Turn a segment into a ray or a line.Slide the ruler along.
3A circle can be drawn with any centre and any radius.Mark equal distances.Use the compass.
4All right angles are equal.A right angle is the same size everywhere.Your set square works on every page.
5If a line crosses two lines and the two inside angles on one side add to less than two right angles, those two lines meet on that side.Decide when lines meet; the root of the theory of parallels.Tilted lines eventually meet.

Lab

Connect each of Euclid's starting rules to its plain-words meaning.

Match each postulate to what it says in plain words.

7 pairs are hiding in two mixed-up columns. Pick one from each side to join them.

Text version of this activity

Match each rule with its meaning.

  • Postulate 1: any two points can be joined by a straight line.
  • Postulate 2: a segment can be extended forever (into a line).
  • Postulate 3: a circle can be drawn with any centre and radius.
  • Postulate 4: all right angles are equal.
  • Postulate 5: if two lines are tilted towards each other (inside angles on one side add to less than 180°), they meet on that side.
  • Playfair's axiom: through a point not on a line there is exactly one parallel line.
  • A common notion: things equal to the same thing are equal to each other.

Chapter 03

First proofs about lines

A proof is a chain of statements, each justified by a postulate, a definition or something already proved. One powerful style is proof by contradiction: assume the opposite of what you want, and show that it leads to something impossible.

Worked example

0 / 5 steps shown

Proof: two different lines meet in at most one point

Show that two different straight lines cannot have two points in common.

Worked example

0 / 5 steps shown

Proof: parallel to the same line means parallel to each other

Lines l, m and n lie in one plane. l ∥ m and n ∥ m, and l and n are different lines. Show l ∥ n.

Worked example

0 / 4 steps shown

Proof: two perpendiculars to one line are parallel

In one plane, lines a and b are both perpendicular to line l, at different points. Show a ∥ b.

Try it

Which starting rule is used in the proof that two different lines meet in at most one point?

Chapter 04

Counting arguments that always work

In Investigate you found that n points on a line make n × (n − 1) ÷ 2 segments. Here is why it must be so, for every n.

The handshake argument. Each segment is decided by a pair of points. Each of the n points can pair with the (n − 1) others, giving n × (n − 1) ordered pairs. But the pair (A, B) and the pair (B, A) are the same segment, so every segment has been counted exactly twice. Divide by 2. The same argument counts the handshakes when n people all shake hands once, which is where the name comes from.

n × (n − 1) ÷ 2
Pairs from n things: segments on a line, lines through n points (no three collinear), handshakes.
n × (n − 1) ÷ 2
Most crossing points of n lines: one per pair of lines (no two parallel, no three concurrent).
n(n−1)÷2 − k(k−1)÷2 + 1
Lines through n points when exactly k of them are collinear and no other three are.
n × (n − 3) ÷ 2
Diagonals of an n-sided polygon: all segments between corners minus the n sides.
2 × (n − 1)
Rays on a line with n marked points, each starting at one and passing through another.
TableThe pair count n × (n − 1) ÷ 2, and polygon diagonals n × (n − 3) ÷ 2
nPairs (segments, lines, crossings)Diagonals of an n-gon
330
462
5105
6159
82820
104535
126654

Worked example

0 / 6 steps shown

Lines through 12 points with 5 collinear

Twelve points are marked in a plane. Exactly 5 of them lie on one line, and apart from these no three are collinear. How many different lines pass through at least two of the points? How many triangles have their corners among the points?

Worked example

0 / 4 steps shown

Points on two parallel lines

Five points are marked on line l and four points on line m, with l ∥ m. How many segments join a point of l to a point of m? How many different lines pass through two of the nine points? How many triangles can be formed?

Try it

Try it

Worked example

0 / 6 steps shown

Proof: four lines never cross at exactly two points

In Investigate a computer check found that four lines in a plane can cross at 0, 1, 3, 4, 5 or 6 points, never exactly 2. Prove it.

Worked example

0 / 4 steps shown

Crossing points when some lines are parallel

Seven lines are drawn in a plane. Exactly three of them are parallel to each other, and otherwise no two are parallel and no three pass through one point. How many intersection points are there?

Worked example

0 / 4 steps shown

Crossing points when some lines are concurrent

Six lines are drawn. Exactly three of them pass through one point P; otherwise no two are parallel and no three meet at a point. How many intersection points are there?

Try it

Chapter 05

Why the perpendicular is the shortest

In Understand we measured the gap between parallel lines along a perpendicular. Why a perpendicular? Because the perpendicular segment from a point to a line is the shortest of all segments from that point to the line. Here is a proof using a fold, with no formulas at all.

Worked example

0 / 5 steps shown

Proof: the perpendicular is the shortest path to a line

P is a point not on line l. F is the point of l where the perpendicular from P meets it. Q is any other point of l. Show that PF is shorter than PQ.

Worked example

0 / 5 steps shown

Proof: the perpendicular bisector is exactly the set of equidistant points

Show that (1) every point on the perpendicular bisector of AB is equally far from A and B, and (2) every point equally far from A and B lies on it.

Chapter 06

The 2,000-year puzzle of parallels

The first four postulates are short and obviously true. The fifth is long, complicated and talks about lines meeting "eventually", far away where nobody can check. For centuries mathematicians felt it did not belong among the starting rules and tried to prove it from the other four.

Every attempt failed. Most accidentally assumed something equivalent to the fifth postulate along the way, such as "the angles of a triangle add to 180°", "rectangles exist" or "parallel lines stay the same distance apart". Each of those turns out to be just the fifth postulate in disguise.

The parallel postulate through history

  1. c. 300 BCE
    Euclid Writes the Elements, and avoids using the fifth postulate for his first 28 results.
  2. 5th c. CE
    Proclus Greek commentator argues the fifth postulate should be a theorem and offers a flawed proof.
  3. c. 1000
    Ibn al-Haytham In Cairo, argues by contradiction and brings motion into geometry; the quadrilateral with three right angles he uses, later named after Lambert, already assumes what he set out to prove.
  4. c. 1077
    Omar Khayyam The Persian poet-mathematician studies quadrilaterals with two right angles and equal sides.
  5. 13th c.
    Nasir al-Din al-Tusi In Maragha, Persia, writes a critique of earlier attempts that later reached Europe.
  6. 1733
    Saccheri Italian priest tries to disprove every alternative, and unknowingly proves results of a new geometry.
  7. 1795
    Playfair Popularises the neat form: exactly one parallel through a point off a line.
  8. 1820s
    Gauss Privately convinced a consistent geometry without the fifth postulate exists, but does not publish.
  9. 1829–1832
    Lobachevsky, Bolyai Independently publish hyperbolic geometry: many parallels through one point.
  10. 1854
    Riemann Describes geometries of curved space, including one with no parallels at all.
  11. 1915
    Einstein General relativity describes gravity as curved space-time, using Riemann's geometry.
TableThree geometries compared
FeatureEuclidean (flat)Spherical (on a globe)Hyperbolic (saddle-like)
Parallels through a point off a lineExactly oneNoneInfinitely many
Angles of a triangle add toExactly 180°More than 180°Less than 180°
"Straight lines" areOrdinary linesGreat circles, like the equatorCurves that are shortest paths on the saddle
Two lines perpendicular to a thirdParallelMeet (at the poles)Never meet, and spread apart
Everyday pictureA page, a playgroundThe Earth's surfaceA lettuce leaf, some coral

Here are some statements that turned out to be the parallel postulate in disguise. Each one can be proved from the other four postulates plus the parallel postulate, and each one, if assumed, is enough to prove the parallel postulate back.

TableStatements equivalent to the parallel postulate
StatementWho used itWhy it seemed obvious
Through a point off a line there is exactly one parallelPlayfair (1795), Proclus earlierTry drawing a second one
The angles of every triangle add to 180°Legendre (c. 1800) tried to prove itIt works for every triangle we measure on paper
Rectangles existMany builders, without thinkingRooms, pages and courts are rectangles
Lines that are parallel stay the same distance apartClavius (1574), later LambertRailway rails do
Similar triangles of different sizes existJohn Wallis (1663)Scale drawings and maps work
Pythagoras' theorem holds for every right triangleImplicit in the Sulba Sutras and EuclidIt checks out for 3, 4, 5

Try it

Which statement is not equivalent to the parallel postulate?

Chapter 07

Lines on a ball: the Earth's surface

On the surface of a ball, what is the "straightest" path between two points? Stretch a rubber band tightly between two points on a football: it settles along a great circle, a circle whose centre is the centre of the ball. The equator is a great circle; so is every line of longitude together with its partner on the far side.

Great circles behave like lines in some ways: they are the shortest paths, and they never bend left or right as you walk along them. But any two great circles meet, and in two points, exactly opposite each other. Lines of longitude are all perpendicular to the equator, yet they all meet at the North and South Poles. So on a sphere there are no parallel "lines" at all.

Lab

Sort statements about lines by whether they hold only on a flat plane or also on a sphere.

Is each statement true on a flat plane only, or true on both a plane and a sphere (using great circles as lines)?

8 cards, 2 bins. Tap a card, then tap its bin. You can also drag, or press a bin’s number key.

Text version of this activity

Eight statements to sort, using great circles as the "lines" of a sphere.

True on a flat plane only: lines that never meet exist; exactly one line through any two points (fails for opposite points on a sphere); two lines meet at most once (great circles meet twice); triangle angles add to exactly 180° (a globe triangle can have three right angles); two perpendiculars to the same line never meet (longitudes meet at the poles).

True on both: lines are shortest paths between nearby points; circles can be drawn with any centre and a small radius; all right angles are equal.

The first four postulates mostly survive on a sphere; the parallel postulate does not.

Chapter 08

Ropes and pegs: straight lines in ancient India

Long before Euclid, priests in India needed exact geometry for building fire altars (vedi) of precise shapes and sizes. Their rules survive in the Sulba Sutras, texts of the first millennium BCE attached to the names of Baudhayana, Apastamba, Katyayana and Manava. Baudhayana's is the oldest, usually dated to roughly 800–500 BCE; Katyayana's is the latest. Sulba (or shulba) means cord or rope.

The tools were a stretched cord (rajju) and pegs (sanku). A cord pulled tight between two pegs gives a straight segment, exactly the idea of "two points fix a line". Marks on the cord allowed equal lengths to be copied, like a divider.

Only the latest of these texts, the Katyayana Sulvasutra, actually writes down a rule for finding the directions; the earlier ones start from an east–west line without saying how to get it.

Fixing the east–west line with a shadow stick (Katyayana's rule)

  1. Step 01Set a gnomona straight upright stick

    Fix a stick vertically on level ground and draw a circle around its foot with a cord.

  2. Step 02Morning markshadow touches the circle

    In the morning, mark the point where the tip of the shadow touches the circle.

  3. Step 03Afternoon marktouches again

    In the afternoon, mark where the shadow tip touches the circle again.

  4. Step 04Join the markseast–west line

    The segment joining the two marks runs east–west.

  5. Step 05Perpendicularnorth–south

    Its perpendicular bisector through the stick runs north–south, giving the altar's axis.

Predict first

A builder marks 60 cm along one wall from a corner and 80 cm along the other. For the walls to be perpendicular, how far apart should the two marks be?

Chapter 09

Lines on graph paper

Draw a line on squared graph paper and walk along it from one crossing point of the grid to the next. You might go 2 squares across and 1 square up, again and again. That repeated step describes the line's steepness, often called its slope or gradient: here 1 up for every 2 across, a slope of 1 ÷ 2.

This gives quick tests that work without a protractor. Parallel lines have the same step (the same slope). Perpendicular lines have steps that are the first one turned through a quarter turn: (2 across, 1 up) turned becomes (1 back, 2 up). And three points are collinear exactly when the steps between them are in the same ratio.

TableSteps and slopes on graph paper
Line's stepSlope (up ÷ across)A parallel line's stepA perpendicular line's step
2 across, 1 up1 ÷ 24 across, 2 up (same ratio)1 back, 2 up: slope −2
1 across, 1 up13 across, 3 up1 back, 1 up: slope −1
3 across, 0 up (horizontal)0Any horizontal lineVertical lines
1 across, 3 up32 across, 6 up3 back, 1 up: slope −1 ÷ 3

Worked example

0 / 4 steps shown

Are the points collinear?

On graph paper, A is at (1, 1), B at (3, 2) and C at (7, 4), where the first number counts squares across and the second counts squares up. Are A, B and C collinear? What about P (0, 0), Q (2, 3) and R (4, 7)?

Try it

Line l goes 3 squares across for every 1 square up. Which step gives a line perpendicular to l?

Chapter 10

Edge cases and conventions

Careful thinkers ask what happens at the edges of a definition. The answers are sometimes a matter of convention: an agreement about how to use a word, rather than a fact to be discovered.

Explore

Five questions at the edge of the definitions

Pick a question to see how mathematicians handle it.

  1. Never meets? No, it shares every point
  2. Same direction? Yes

Depends on the book

School books in India define parallel lines as lines that never meet, so a line is not parallel to itself. Many university books define parallel as having the same direction, so every line is parallel to itself, which makes rules like "parallel to the same line means parallel to each other" work without exceptions. Both are fine; just be consistent.

Chapter 11

More counting proofs and a hexagon puzzle

In Investigate the segment count appeared as 1 + 2 + 3 + … + (n − 1). In this chapter's first proof it appeared as n × (n − 1) ÷ 2. Why are these equal? The answer uses a trick often told about the young Carl Friedrich Gauss.

Worked example

0 / 5 steps shown

Proof: 1 + 2 + … + (n − 1) = n × (n − 1) ÷ 2

Show that the sum of the whole numbers from 1 to n − 1 always equals n × (n − 1) ÷ 2.

Try it

Worked example

0 / 5 steps shown

Parallel pairs in a regular hexagon

Draw a regular hexagon and all of its diagonals, so every pair of corners is joined. How many segments are there? How many pairs of them are parallel, and how many pairs are perpendicular?

Worked example

0 / 4 steps shown

Proof: a line perpendicular to one of two parallels is perpendicular to the other

In a plane, l ∥ m, and line t is perpendicular to l at point A. Show that t is perpendicular to m.

Try it

The two side rails of a ladder are parallel. A rung is perpendicular to the left rail. What must be true?

Try it

Try it

Chapter 12

Summary and self-test

Lab

Play a long mixed round of line/ray/segment and parallel/perpendicular/intersecting spotting, aiming for a perfect streak.

Getting ready…
Round 1 / 16★ 0 ptsBest: 0

Line: arrows at both ends. Ray: one start point and one arrow. Segment: two end points.

Text version of this activity

A long mixed round of sixteen questions, for speed and accuracy.

Kinds: read the ends. Two end points: segment. One end point and an arrow: ray. Two arrows: line.

Pairs: parallel if the perpendicular gap is constant and they never meet; perpendicular if they meet at 90°; intersecting if they meet at any other angle.

Use this layer's reasoning while you play: two lines meeting once can never meet again; if one angle at a crossing is 90°, all four are; and a ray is always named from its end point.

Vocabulary for reasoning about lines

Postulate (axiom)
A starting statement accepted without proof.
Example: Two points fix exactly one line
Theorem
A statement proved from postulates and earlier theorems.
Example: Two lines meet at most once
Proof by contradiction
Assume the opposite of what you want, and show it leads to something impossible.
Example: Assuming two lines share two points
Playfair's axiom
Through a point not on a line there is exactly one parallel to it.
Example: The modern parallel postulate
Euclidean geometry
The geometry of a flat plane, built on Euclid's five postulates.
Example: Triangle angles add to 180°
Non-Euclidean geometry
A consistent geometry where the parallel postulate is replaced.
Example: Spherical and hyperbolic geometry
Great circle
A circle on a sphere whose centre is the sphere's centre; the sphere's version of a line.
Example: The equator
Circular reasoning
An argument that assumes what it is trying to prove.
Example: "They are parallel because they never meet"
Degenerate case
A squashed or collapsed version of a figure.
Example: A segment of length 0
Diagonal
A segment joining two corners of a polygon that are not next to each other.
Example: A hexagon has 9
Sulba Sutras
Ancient Indian texts on geometry for altar building using cords and pegs.
Example: Fixing an east–west line

Quick check

Reasoning about lines

11 questions · answer what you can, then check. Getting one wrong is useful.

  1. Q17 lines, exactly 3 parallel, otherwise general. How many intersection points?
  2. Q2About when did Euclid write the Elements?
  3. Q3Playfair's axiom says that through a point not on a line there is…
  4. Q412 points, exactly 5 collinear, no other three collinear. How many lines?
  5. Q5How many diagonals does a hexagon have?
  6. Q6On a sphere, two different great circles meet at…
  7. Q7The shortest segment from a point to a line is the one that…
  8. Q8Point Q is 6 cm from A and 6 cm from B. Where must Q lie?
  9. Q9Who independently published hyperbolic geometry around 1830?
  10. Q10Four lines in a plane cannot have exactly how many crossing points?
  11. Q11What does the word sulba refer to?

Reflect

This stays on this page only. It isn’t saved or sent anywhere.

Keep this

Cheat sheet

  • Euclid's Elements (c. 300 BCE): definitions, 5 postulates, common notions, then proofs.
  • Modern view: point, line, plane are undefined; only their relationships matter (Hilbert, 1899).
  • Playfair's axiom: through a point not on a line, exactly one parallel.
  • Proved: two lines meet at most once; parallel to the same line ⇒ parallel; two perpendiculars to one line ⇒ parallel.
  • Counting pairs: n(n − 1) ÷ 2 segments, lines (no three collinear), handshakes, crossings (general position).
  • With k collinear points: lines = n(n−1)÷2 − k(k−1)÷2 + 1. Diagonals of an n-gon: n(n − 3) ÷ 2.
  • Four lines cross at 0, 1, 3, 4, 5 or 6 points, never 2 (proof by cases).
  • Perpendicular = shortest path to a line (fold proof). Points equidistant from A and B = the perpendicular bisector.
  • The fifth postulate can't be proved from the others; replacing it gives spherical and hyperbolic geometry.
  • On a sphere: great circles are the lines; any two meet twice; there are no parallels.
  • Sulba Sutras: cord-and-peg geometry; Katyayana's shadow method for east–west; 3-4-5 and other cords for right angles.

Helps you understand

Angles

The fifth postulate is about angles made by a transversal; angle facts about parallel lines depend on it.

Related to

Shape and space

Diagonals of polygons are counted with the same pair-counting argument as segments.

Where this comes from

Sources

End of Go deeper

What you just read

  • State Euclid's five postulates in plain words and Playfair's form of the fifth.
  • Write short proofs by contradiction about intersecting and parallel lines.
  • Prove and use pair-counting formulas, including cases with collinear points and polygon diagonals.
  • Explain why the perpendicular is the shortest distance and why the perpendicular bisector is the set of equidistant points.
  • Describe how replacing the parallel postulate leads to spherical and hyperbolic geometry, and how the Sulba Sutras used cords to make lines.

The web

Explore a connection

  • Related to

    Shape and space

    Every polygon is built from line segments, and its sides can be parallel or perpendicular.

  • Helps you understand

    Angles

    An angle is two rays that share an end point; intersecting lines make angle pairs.

Want to save topics or ask for new ones? Invited families can connect a learning device. Everything here stays free to read without signing in.

Revision 1 · release preview-7e1cbbcc4f · accepted 20/09/2026