Skip to content

Mathematics · Ch 9 — Straight Lines

Horizontal and Vertical Lines

9.3.1

Horizontal and Vertical Lines

Horizontal and Vertical Lines

When a line is horizontal, every point on it has the same y-coordinate. If a horizontal line L is at a distance aa from the x-axis, then the y-coordinate of every point on L is either aa or −a-a. Which one it is depends on whether the line lies above the x-axis (positive distance) or below it (negative distance).

Similarly, a vertical line has the same x-coordinate for all its points. If a vertical line is at a distance bb from the y-axis, then the x-coordinate of every point on it is either bb or −b-b, depending on whether the line is to the right or left of the y-axis.

Note

The distance is always taken as a positive number. The sign in the equation tells you which side of the axis the line lies on.


Equation of a Horizontal Line

Consider a horizontal line L at a distance aa from the x-axis. The ordinate (y-coordinate) of every point on L is constant. If the line is above the x-axis, the ordinate is aa; if below, it is −a-a.

Therefore, the equation of the horizontal line is:

y=aory=−ay = a \quad \text{or} \quad y = -a

The sign is chosen based on the position of the line relative to the x-axis.

y=±ay = \pm a


Equation of a Vertical Line

Now consider a vertical line at a distance bb from the y-axis. The abscissa (x-coordinate) of every point on this line is constant. If the line is to the right of the y-axis, the abscissa is bb; if to the left, it is −b-b.

Therefore, the equation of the vertical line is:

x=borx=−bx = b \quad \text{or} \quad x = -b

The sign is chosen based on the position of the line relative to the y-axis.

x=±bx = \pm b


Example: Lines Through a Given Point

Example 4: Find the equations of the lines parallel to the axes and passing through the point (−2,3)(-2, 3).

Solution:

We need two lines: one horizontal (parallel to the x-axis) and one vertical (parallel to the y-axis), both passing through (−2,3)(-2, 3).

Horizontal line through (−2,3)(-2, 3):

Every point on a horizontal line has the same y-coordinate. Since the line passes through (−2,3)(-2, 3), the y-coordinate of every point on it is 33. Therefore, the equation is:

y=3y = 3 …

Figure 9.8Horizontal lines y=±a and vertical lines x=±b
Fig. 9.8 — Horizontal lines y=±a and vertical lines x=±b

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

Fig 9.8 is a simple coordinate-plane sketch split into two side-by-side panels, (a) and (b). Its purpose is to show the geometric meaning of the equations of horizontal and vertical lines — the most basic lines after the axes themselves.

Panel (a) shows the xx-axis and yy-axis. Two horizontal lines are drawn: one above the xx-axis, labelled y=ay = a, and one below it, labelled y=−ay = -a. A dashed vertical segment runs from the origin (0,0)(0,0) straight up to the line y=ay = a, and another dashed segment runs straight down to y=−ay = -a. Each dashed segment is marked with the length aa. The idea is immediate: every point on the upper line has yy-coordinate aa; every point on the lower line has yy-coordinate −a-a. The distance of each line from the xx-axis is exactly ∣a∣|a|.

Panel (b) is the same idea rotated. Two vertical lines are drawn: one to the right of the yy-axis, labelled x=bx = b, and one to the left, labelled x=−bx = -b. Dashed horizontal segments from the origin go right to x=bx = b and left to x=−bx = -b, each marked with length bb. Every point on the right-hand line has xx-coordinate bb; every point on the left-hand line has xx-coordinate −b-b. The distance of each line from the yy-axis is ∣b∣|b|.

The physical idea is that a line parallel to an axis is completely described by a single coordinate — the constant value of the other coordinate. A horizontal line never changes its yy; a vertical line never changes its xx. The sign of the constant tells you which side of the origin the line lies on.

Horizontal line at distance ∣a∣ from the x-axis: y=a or y=−a\text{Horizontal line at distance } |a| \text{ from the } x\text{-axis: } y = a \text{ or } y = -a

Vertical line at distance ∣b∣ from the y-axis: x=b or x=−b\text{Vertical line at distance } |b| \text{ from the } y\text{-axis: } x = b \text{ or } x = -b …

Figure 9.9Lines x=−2 and y=3 through (−2,3)
Fig. 9.9 — Lines x=−2 and y=3 through (−2,3)

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

The figure shows a standard Cartesian plane with four quadrants. Two lines are drawn: a vertical line labelled x=−2x = -2 and a horizontal line labelled y=3y = 3. Both lines are shown as double-arrowed indigo lines, meaning they extend infinitely in both directions. The point where they cross is marked as (−2,3)(-2, 3).

The physical idea is straightforward. A horizontal line is defined by the fact that every point on it has the same yy-coordinate. A vertical line is defined by the fact that every point on it has the same xx-coordinate. The figure makes this concrete: the horizontal line through (−2,3)(-2, 3) is the set of all points whose yy-coordinate is 3, regardless of xx. The vertical line through the same point is the set of all points whose xx-coordinate is −2-2, regardless of yy.

The textbook uses this figure to develop the equations of lines parallel to the axes. The key result is:

y=aory=−ay = a \quad \text{or} \quad y = -a

for a horizontal line at distance ∣a∣|a| from the xx-axis, and

x=borx=−bx = b \quad \text{or} \quad x = -b

for a vertical line at distance ∣b∣|b| from the yy-axis.

In the specific case of the point (−2,3)(-2, 3):

  • The horizontal line through it is y=3y = 3 (since the point is above the xx-axis, the sign is positive).
  • The vertical line through it is x=−2x = -2 (since the point is to the left of the yy-axis, the sign is negative). …