Sub topic 1
What makes lines parallel
Prerequisites
This chapter assumes you can do the following:
- Plot points on the coordinate plane and read their coordinates.
- Use basic angle vocabulary: right, supplementary, and congruent angles.
- Solve a linear equation in one variable.
- Add, subtract, multiply, and divide fractions.
You do not need to know slope or line equations in detail yet. Later chapters review them. Here we only need the geometric idea of parallel lines and a first look at how it shows up in coordinates.
The definition
Two lines are parallel if they lie in the same plane and never meet, no matter how far you extend them. Each line goes on forever in both directions, so "never meet" is a claim about the entire lines, not just the parts you can see in a drawing.
We write "line l is parallel to line m" as l ∥ m.
Three details in this definition matter.
- Same plane. In three-dimensional space, two lines can fail to meet without being parallel. These are called skew lines. For example, one line along the floor of a room and another along the ceiling, pointing in a different direction, never touch, but they are not parallel. This tutorial stays in a single plane, so skew lines do not come up again.
- Never meet. If the lines share even one point, they are not parallel, unless they are the same line (see the next section).
- Whole lines, not segments. Two segments can fail to touch while their lines would cross if extended. Those segments are not parallel.
Is a line parallel to itself?
Conventions differ here, and you will see both in textbooks.
- Strict convention: parallel lines must be distinct. A line is not parallel to itself.
- Inclusive convention: a line counts as parallel to itself, because it is "never crossed" by itself in a single point. This makes parallelism an equivalence relation, which is useful in higher mathematics.
Most school geometry courses use the strict convention. The code later in this tutorial reports "parallel (or the same line)" so that you can see when the two cases need separating.
Why parallel lines exist: the parallel postulate
In a flat plane, there is a fact about parallel lines that cannot be proved from simpler facts about points and lines. It is taken as an assumption (a postulate). One common form is called Playfair's axiom:
> Given a line and a point not on that line, there is exactly one line through the point that is parallel to the given line.
Two parts of that statement are worth separating.
- Existence: at least one parallel line passes through the point.
- Uniqueness: there is no second one.
Existence can be proved from the other axioms. Uniqueness is the part that must be assumed. Geometries that drop uniqueness exist. On a sphere, for instance, "lines" are great circles, and any two of them meet, so no parallels exist at all. In the flat plane geometry used here, uniqueness holds, and this is what makes the slope test in the next chapters work.
Seeing parallel lines in coordinates
On a graph, parallel lines look like they rise or fall at the same rate and keep a constant gap between them. The constant gap is the key property: the distance from any point on one line to the other line is the same everywhere. A later chapter turns that into a formula.
The rate at which a line rises is its slope, which is the change in y divided by the change in x between any two points on the line. A later chapter reviews slope in detail. For now, take one fact as a preview:
- Two non-vertical lines are parallel exactly when they have the same slope and different y-intercepts.
Here are two lines to test:
- Line l: y = 2x + 1
- Line m: y = 2x − 3
Both have slope 2. The y-intercepts are 1 and −3, which differ, so the lines are distinct. If they met, there would be an x with 2x + 1 = 2x − 3. Subtracting 2x from both sides gives 1 = −3, which is false for every x. So there is no meeting point, and the lines are parallel.
That short algebra check is the general method for proving two lines are parallel: assume they share a point, and see whether the equations allow it.
Now compare these:
- Line p: y = 2x + 1
- Line q: y = 3x + 1
Setting 2x + 1 = 3x + 1 gives x = 0, so they meet at (0, 1). They are not parallel.
And these:
- Line r: y = 2x + 1
- Line s: 2y = 4x + 2
Dividing the second equation by 2 gives y = 2x + 1, which is the same equation as line r. Every point is shared, so these are the same line, not two parallel lines under the strict convention.
| Pair | Slopes | Intercepts | Shared points | Verdict |
|---|---|---|---|---|
| y = 2x + 1 and y = 2x − 3 | 2 and 2 | 1 and −3 | none | parallel |
| y = 2x + 1 and y = 3x + 1 | 2 and 3 | 1 and 1 | one: (0, 1) | intersecting |
| y = 2x + 1 and 2y = 4x + 2 | 2 and 2 | 1 and 1 | all | same line |
Vertical lines
A vertical line, such as x = 4, has no slope because the change in x is zero and you cannot divide by zero. The slope shortcut does not apply to it. Two vertical lines, such as x = 4 and x = 7, are still parallel, since they never meet. A vertical line is never parallel to a non-vertical line, because a non-vertical line eventually reaches every x value, including the one where the vertical line sits. The chapter on vertical and horizontal lines treats this fully.
Checking parallelism with code
The function below takes each line in the form Ax + By = C and decides whether the two lines are parallel, intersecting, or the same. It avoids slope entirely, so vertical lines need no special handling. The idea is that two lines are parallel when their coefficient pairs (A, B) point in the same direction, which is true when A1·B2 − A2·B1 equals 0.
def relation(line1, line2):
# Each line is (A, B, C) meaning Ax + By = C, with A and B not both 0.
a1, b1, c1 = line1
a2, b2, c2 = line2
if a1 * b2 - a2 * b1 != 0:
return "intersecting"
# Same direction. Check whether the equations describe the same line.
same = (a1 * c2 - a2 * c1 == 0) and (b1 * c2 - b2 * c1 == 0)
return "same line" if same else "parallel"
print(relation((2, -1, -1), (2, -1, 3))) # y = 2x + 1 vs y = 2x - 3 -> parallel
print(relation((2, -1, -1), (3, -1, -1))) # y = 2x + 1 vs y = 3x + 1 -> intersecting
print(relation((2, -1, -1), (4, -2, -2))) # 2y = 4x + 2 -> same line
print(relation((1, 0, 4), (1, 0, 7))) # x = 4 vs x = 7 -> parallelThe expected output is:
parallel
intersecting
same line
parallelThe test works because the two equations form a system. When A1·B2 − A2·B1 is not 0, the system has exactly one solution, so the lines cross once. When it is 0, there is either no solution (parallel) or infinitely many (same line), and the second check tells these apart.
Common errors
- Judging by a picture. Two lines can look parallel on a small graph and still cross far away. A drawing suggests parallelism but does not prove it. Compare equations or slopes.
- Treating segments as lines. Parallelism is about the full lines. Two segments that do not touch are not necessarily parallel.
- Calling skew lines parallel. This only matters in three dimensions, but the definition requires a shared plane.
- Comparing slopes in the wrong form. In 2y = 4x + 2, the slope is 2, not 4. Rewrite as y = mx + b first.
- Forgetting the same-line case. Equal slopes alone do not prove two distinct parallel lines. Compare intercepts too.
- Applying slope to vertical lines. Equal "slopes" of undefined do not need computing. Check whether both equations have the form x = constant.
What comes next
The next chapter defines perpendicular lines in the same way: first geometrically, then with a preview of the algebra. After that, the tutorial reviews slope and line equations, and then proves the slope test for parallel lines that this chapter previewed.
Exercise
Decide whether each pair is parallel, intersecting, or the same line: (a) y = −3x + 5 and y = −3x − 2; (b) 6x + 2y = 10 and y = −3x + 5; (c) x = 1 and y = 1.
Show answer
(a) Both slopes are −3 and the intercepts 5 and −2 differ, so the lines are parallel. (b) Rewrite 6x + 2y = 10 as y = −3x + 5. This is the same equation as the second line, so they are the same line. (c) x = 1 is vertical and y = 1 is horizontal, so they cross at (1, 1) and are intersecting.
Exercise
Explain why two segments that do not touch might still not be parallel, and give a concrete example with coordinates.
Show answer
Parallelism is a property of whole lines. Take the segment from (0, 0) to (1, 1) and the segment from (3, 0) to (4, −1). They share no point. Their lines are y = x and y = −x + 3, which have slopes 1 and −1 and meet at (1.5, 1.5). Because the lines cross, the segments are not parallel.
Exercise
Use the function relation from this chapter on the lines x + 2y = 4 and 3x + 6y = 5. What does it return, and why?
Show answer
The coefficient pairs are (1, 2) and (3, 6). The test value is 1·6 − 3·2 = 0, so the lines have the same direction. Then a1·c2 − a2·c1 = 1·5 − 3·4 = −7, which is not 0, so the lines are not the same. The function returns "parallel".