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.
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.
| No. | Euclid's postulate (simplified) | What it lets you do | Ruler and compass version |
|---|---|---|---|
| 1 | A 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. |
| 2 | A straight line segment can be extended as far as you like. | Turn a segment into a ray or a line. | Slide the ruler along. |
| 3 | A circle can be drawn with any centre and any radius. | Mark equal distances. | Use the compass. |
| 4 | All right angles are equal. | A right angle is the same size everywhere. | Your set square works on every page. |
| 5 | If 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 shownProof: 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 shownProof: 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 shownProof: 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
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 | Pairs (segments, lines, crossings) | Diagonals of an n-gon |
|---|---|---|
| 3 | 3 | 0 |
| 4 | 6 | 2 |
| 5 | 10 | 5 |
| 6 | 15 | 9 |
| 8 | 28 | 20 |
| 10 | 45 | 35 |
| 12 | 66 | 54 |
Worked example
0 / 6 steps shownLines 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 shownPoints 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 shownProof: 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 shownCrossing 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 shownCrossing 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 shownProof: 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 shownProof: 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.
Used in
Measuring and constructing anglesThe compass construction of a perpendicular bisector works because both arc crossings are equidistant from A and B.
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
- c. 300 BCEEuclid Writes the Elements, and avoids using the fifth postulate for his first 28 results.
- 5th c. CEProclus Greek commentator argues the fifth postulate should be a theorem and offers a flawed proof.
- c. 1000Ibn 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.
- c. 1077Omar Khayyam The Persian poet-mathematician studies quadrilaterals with two right angles and equal sides.
- 13th c.Nasir al-Din al-Tusi In Maragha, Persia, writes a critique of earlier attempts that later reached Europe.
- 1733Saccheri Italian priest tries to disprove every alternative, and unknowingly proves results of a new geometry.
- 1795Playfair Popularises the neat form: exactly one parallel through a point off a line.
- 1820sGauss Privately convinced a consistent geometry without the fifth postulate exists, but does not publish.
- 1829–1832Lobachevsky, Bolyai Independently publish hyperbolic geometry: many parallels through one point.
- 1854Riemann Describes geometries of curved space, including one with no parallels at all.
- 1915Einstein General relativity describes gravity as curved space-time, using Riemann's geometry.
| Feature | Euclidean (flat) | Spherical (on a globe) | Hyperbolic (saddle-like) |
|---|---|---|---|
| Parallels through a point off a line | Exactly one | None | Infinitely many |
| Angles of a triangle add to | Exactly 180° | More than 180° | Less than 180° |
| "Straight lines" are | Ordinary lines | Great circles, like the equator | Curves that are shortest paths on the saddle |
| Two lines perpendicular to a third | Parallel | Meet (at the poles) | Never meet, and spread apart |
| Everyday picture | A page, a playground | The Earth's surface | A 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.
| Statement | Who used it | Why it seemed obvious |
|---|---|---|
| Through a point off a line there is exactly one parallel | Playfair (1795), Proclus earlier | Try drawing a second one |
| The angles of every triangle add to 180° | Legendre (c. 1800) tried to prove it | It works for every triangle we measure on paper |
| Rectangles exist | Many builders, without thinking | Rooms, pages and courts are rectangles |
| Lines that are parallel stay the same distance apart | Clavius (1574), later Lambert | Railway rails do |
| Similar triangles of different sizes exist | John Wallis (1663) | Scale drawings and maps work |
| Pythagoras' theorem holds for every right triangle | Implicit in the Sulba Sutras and Euclid | It checks out for 3, 4, 5 |
Try it
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)
- Step 01Set a gnomona straight upright stick
Fix a stick vertically on level ground and draw a circle around its foot with a cord.
- Step 02Morning markshadow touches the circle
In the morning, mark the point where the tip of the shadow touches the circle.
- Step 03Afternoon marktouches again
In the afternoon, mark where the shadow tip touches the circle again.
- Step 04Join the markseast–west line
The segment joining the two marks runs east–west.
- Step 05Perpendicularnorth–south
Its perpendicular bisector through the stick runs north–south, giving the altar's axis.
Predict first
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.
| Line's step | Slope (up ÷ across) | A parallel line's step | A perpendicular line's step |
|---|---|---|---|
| 2 across, 1 up | 1 ÷ 2 | 4 across, 2 up (same ratio) | 1 back, 2 up: slope −2 |
| 1 across, 1 up | 1 | 3 across, 3 up | 1 back, 1 up: slope −1 |
| 3 across, 0 up (horizontal) | 0 | Any horizontal line | Vertical lines |
| 1 across, 3 up | 3 | 2 across, 6 up | 3 back, 1 up: slope −1 ÷ 3 |
Worked example
0 / 4 steps shownAre 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
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.
- Never meets? No, it shares every point
- 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 shownProof: 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 shownParallel 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 shownProof: 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
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.
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.
Words to know
All maths vocabulary →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.
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
AnglesThe fifth postulate is about angles made by a transversal; angle facts about parallel lines depend on it.
Related to
Shape and spaceDiagonals of polygons are counted with the same pair-counting argument as segments.
Where this comes from
Sources
Euclid's Elements, Book I: definitions, postulates and common notions (opens another website) — D. E. Joyce, Clark Universityawaiting owner check
Supports the wording of Euclid's definitions ("A point is that which has no part", "A line is breadthless length", "The ends of a line are points"), the five postulates and the common notions, and the idea of building geometry from a few starting assumptions.
Parallel postulate (opens another website) — Wikipediaawaiting owner check
Supports the history of attempts to prove the fifth postulate, Playfair's form of it (named after his 1795 commentary, though known from Proclus), the list of equivalent statements, and the discovery of non-Euclidean geometries.
Shulba Sutras (opens another website) — Wikipediaawaiting owner check
Supports the dating of the Sulba Sutras, the four names (Baudhayana, Manava, Apastamba, Katyayana), the meaning of shulba ("string, cord, rope"), the cord-and-peg altar geometry, and the lists of right-angle cord lengths such as 3-4-5, 5-12-13 and 15-36-39.
Ganita Prakash, Class 6 (textbook): Chapter 2, Lines and Angles (opens another website) — NCERTawaiting owner check
Supports the syllabus treatment of points, line segments, lines and rays, the naming conventions used in Indian schools, and measuring and comparing segments. Replaces the withdrawn Class 6 chapter Basic Geometrical Ideas, which NCERT no longer hosts.
Ganita Prakash, Class 7 (textbook): Chapter 5, Parallel and Intersecting Lines (opens another website) — NCERTawaiting owner check
Supports intersecting lines and the four angles they make, perpendicular lines, parallel lines and transversals, as the Class 7 syllabus presents them. Replaces the withdrawn Class 7 chapter Lines and Angles, which NCERT no longer hosts.
Perpendicular and Parallel (opens another website) — Math is Funawaiting owner check
Supports the definitions of perpendicular ("at right angles (90 degrees) to") and parallel ("always the same distance apart, and will never meet"), the right-angle box, and the railway-line example. The page does not give the parallel and perpendicular symbols.
Kātyāyana Śulvasutra: Some Observations (arXiv:2006.10285) (opens another website) — S. G. Dani, arXivawaiting owner check
Supports the attribution of the gnomon-and-shadow rule for the east-west line to the Katyayana Sulvasutra: "Unlike the earlier Śulvasūtras Kātyāyana gives explicitly a prescription for locating and fixing the cardinal directions", and the rope method for the north-south perpendicular.
Non-Euclidean geometry (opens another website) — MacTutor History of Mathematics Archive, University of St Andrewsawaiting owner check
Supports Wallis's 1663 proposal that "to each triangle, there exists a similar triangle of arbitrary magnitude", Proclus's and Ptolemy's flawed proofs, Saccheri (1733), Playfair (1795), Legendre's forty years of attempts, and Lobachevsky and Bolyai.
A Survey of the Development of Geometry up to 1870 (arXiv:1409.1140) (opens another website) — Eldar Straume, arXivawaiting owner check
Supports the disguised forms of the fifth postulate: "the axioms of Clavius and Clairaut assert the existence of two equidistant lines or a rectangle", and that Lambert too wrongly assumed the curve equidistant from a line is itself a line.
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.
- Next depthGo deeper: ExtendProjects, harder problems, wider contexts and open questions.
- Practise80 questionsHints and a worked solution for every question — or play a 10-question round.
- Step backInvestigateGo back over the ground before this one — you can move up and down as often as you like.
- TopicAll of lines, rays and line segmentsThe whole ladder, the connections and the words to know, on one page.
The web
Explore a connection
Related to
Shape and spaceEvery polygon is built from line segments, and its sides can be parallel or perpendicular.
Helps you understand
AnglesAn angle is two rays that share an end point; intersecting lines make angle pairs.
Helps you understand
Measuring and constructing anglesConstructions rely on drawing straight lines, perpendiculars and bisectors accurately.
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