Properties of Vertical Lines

Properties of Vertical Lines
Algebra 1

Properties of the Vertical Lines

A vertical line is the straight-up-and-down one: every point shares the same x-value, its equation is \(x = h\), and its slope is undefined (you’d divide by zero). It’s the mirror twin of the horizontal line, and the pair students most often confuse. We’ll make the difference clear, with a solver, practice, and a worksheet maker a tap away.

Tutor-style math help

Properties of the Vertical Lines: what to notice and how to work it

Linear skill
Linear topics are about constant rate of change. The slope tells how fast y changes for each 1-unit change in x, and an intercept anchors the line on an axis.

What to notice first

Find the rate and one reliable point. With those two pieces, the line is determined.

Common student mistake

Do not mix up x-intercepts and y-intercepts. At an x-intercept, y = 0; at a y-intercept, x = 0.

Key formulas and cues

\(m=\frac{y_2-y_1}{x_2-x_1}\)
\(y=mx+b\)
\(y-y_1=m(x-x_1)\)
\(Ax+By=C\)
runrise yx

A reliable path

  1. Find slopeUse two points, a table, or the coefficient of x in slope-intercept form.
  2. Find an anchorUse a point or intercept so the line is in the right location.
  3. Check directionPositive slope rises left to right; negative slope falls left to right.

Worked examples

Find slope from two points

Example: \((1,4)\) and \((3,10)\)
  1. Change in y is 10 – 4 = 6.
  2. Change in x is 3 – 1 = 2.
  3. Divide rise by run.
Answer: \(m=3\)

Write slope-intercept form

Example: slope 3 and y-intercept -2
  1. Use y = mx + b.
  2. Put m = 3 and b = -2.
  3. Write the line.
Answer: \(y=3x-2\)
Try one before moving on
Try: Find the slope through \((2,1)\) and \((6,9)\).
Answer: \(m=\frac{9-1}{6-2}=2\).
Next step: do the matching worksheet or quiz while the method is still fresh, then come back and explain the first step in your own words.
Illustration of students learning Properties of the Vertical Lines

A vertical line is the straight-up-and-down one. It’s the mirror twin of the horizontal line, with three properties to lock in: every point shares the same x-value, its equation is \(x = h\), and its slope is undefined. That last point is the classic trap, a vertical line doesn’t have slope zero; it has no slope at all.

In short: a vertical line has the form \(x = h\) (a constant), every point shares that x-value, and its slope is undefined (you’d divide by zero). For example, \(x = 4\) is a line straight up through every point with \(x = 4\).

The big idea

Why the Slope Is Undefined

On a vertical line you move up and down but never sideways, so the run is always \(0\). Slope is rise over run, and dividing by \(0\) is undefined, so a vertical line has no defined slope. Because \(x\) never changes, the equation just fixes \(x\) at a constant: \(x = h\).

The three properties:

  1. Equation: \(x = h\) (a number; no \(y\)).
  2. Slope: undefined (run is \(0\)).
  3. Points: all share the same x-value.
Tutor tip: Remember the pair: horizontal is “zero slope,” vertical is “no (undefined) slope.” Also, \(x = h\) can’t be written as \(y = mx + b\). There’s no slope to put in.
See it on the grid

The line \(x = 4\)

Every point on it, \((4,-3)\), \((4,0)\), \((4,5)\), has \(x = 4\). Moving up or down changes \(y\) but never \(x\), so there’s no run and the slope is undefined.

Explore a line
x = 4(4, 2)

Worked Examples

Each upright line below has the same \(x\) everywhere, so there’s no run, and the slope is undefined.

Example A, Find the slope

What is the slope of the line through \((4,-3)\) and \((4,5)\)?

  1. Run: \(4 – 4 = 0\).
  2. Slope is rise over run, and dividing by 0 is undefined.
  3. So the slope is undefined. It’s vertical.

Answer: undefined

x = 4(4, 5)

Example B, Write the equation

Write the vertical line through \((2, -1)\).

  1. A vertical line fixes \(x\) only, \(y\) is free.
  2. The shared \(x\)-value here is 2.
  3. Equation: \(x = 2\).

Answer: \(x = 2\)

x = 2(2, -1)

Example C, Identify from an equation

Describe \(x = -3\).

  1. There’s no \(y\) term, so \(x\) is fixed at \(-3\).
  2. Every point has \(x = -3\), so the line is upright.
  3. It’s a vertical line with undefined slope.

Answer: vertical line, undefined slope

x = −3(-3, 0)

Example D, Don’t confuse with horizontal

Compare \(x = 4\) and \(y = 4\).

  1. \(x = 4\) is vertical, undefined slope.
  2. \(y = 4\) is horizontal, slope 0.
  3. They meet at \((4,4)\) at a right angle.

Answer: \(x=4\) upright, \(y=4\) flat

x = 4y = 4

Where You’ll See It

Vertical lines mark a fixed input: a deadline on a timeline, a boundary at a specific x-value, an asymptote where a function “blows up.” They’re also a quick test of whether a graph is a function, if any vertical line hits a curve twice, it isn’t one (the vertical-line test).

Slip-Ups That Cost Easy Points

  • Calling the slope zero. A vertical line’s slope is undefined; zero slope is the horizontal line.
  • Writing it with a \(y\). The equation is just \(x = h\); there is no \(y\) term.
  • Forcing it into \(y = mx + b\). Vertical lines can’t be written that way. There’s no slope to use.
  • Confusing \(x = h\) with \(y = h\). \(x = h\) is up-and-down; \(y = h\) is flat.

Your Turn

Answer each, then reveal.

  1. Slope of the line through \((-2, 1)\) and \((-2, 7)\)?
  2. Equation of the vertical line through \((5, 3)\)?
  3. Is \(x = 0\) horizontal or vertical?
  4. Equation of the vertical line through \((-1, -4)\)?
Show answers
  1. \(\color{blue}{\text{undefined}}\)
  2. \(\color{blue}{x = 5}\)
  3. \(\color{blue}{\text{vertical (it’s the y-axis)}}\)
  4. \(\color{blue}{x = -1}\)
Keep practicing

Make Your Own Lines Worksheet

Generate fresh line problems with a full answer key, print or save as a PDF.

New problems every click, never the same sheet twice
Step-by-step answer key so you can self-check
|

Frequently Asked Questions

What is the equation of a vertical line?

A vertical line has the equation x = h, where h is the x-value every point on the line shares. For example, the line through (4, −1), (4, 0) and (4, 7) is x = 4. There is no y in the equation because y can be anything; only x stays fixed. That is why the line goes straight up and down.

Is a vertical line slope 0 or undefined?

A vertical line has an undefined slope, not 0. Using two points like (3, 1) and (3, 5), slope = (5 − 1)/(3 − 3) = 4/0, and division by zero is undefined. A slope of 0 belongs to a horizontal line such as y = 2, where the rise is zero. A quick memory trick: horizontal is zero, vertical is undefined.

Can the equation of a vertical line be written in slope intercept form?

No. Slope-intercept form is y = mx + b, and it needs a number for the slope m. A vertical line’s slope is undefined, so there is no value of m to plug in, and you cannot solve x = 5 for y. Write vertical lines as x = h instead, or in standard form as 1x + 0y = h.

How do you find the equation of a vertical line with two points?

First check that both points have the same x-coordinate; if they do, the line is vertical and its equation is x equals that value. For (−2, 3) and (−2, 9), both x-values are −2, so the line is x = −2. If the x-values differ, the line is not vertical, and you would find the slope with (y₂ − y₁)/(x₂ − x₁) instead.

What is the equation of a vertical line through (2, 3)?

The equation is x = 2. A vertical line keeps the same x-value at every point, so you only need the x-coordinate of the given point. The 3 tells you one point on the line, but the line also passes through (2, 0), (2, −5) and every other point with x = 2. Compare this with the horizontal line through (2, 3), which is y = 3.

What is the equation of a vertical line in standard form?

In standard form Ax + By = C, a vertical line has B = 0, so it looks like Ax = C. For example, 3x = 12 is a vertical line, and dividing both sides by 3 gives the simpler x = 4. Any standard-form equation with no y-term graphs as a vertical line crossing the x-axis at C/A.

Related Topics

Continue Your Study

Ready for the next step? Pick up right where this lesson leaves off:

Related to This Article

What people say about "Vertical Line: Equation x = h, Undefined Slope, Examples"?

No one replied yet.

Leave a Reply