# Vertical Line Test

The vertical line test is used to determine if a given graph represents a function. The vertical line test states that any given vertical line can only intersect the graph of a function, at most, at one point for it to represent a function. If the graph of the equation is cut by the vertical line at more than one point for any possible vertical line, the graph can not represent a function.

The graph below does not represent a function because the vertical line, $x=1$ , intersects the graph shown in red at 3 points.

Next, let's consider the graph of the function $f\left(x\right)=\frac{1}{x}$ . This passes the vertical line test because there is no vertical line we can draw that intercepts the graph more than once.

Consider the piecewise graph below.

You can see that no vertical line passes through two points on the graph.

Note that $\left(-2,0\right)$ and $\left(1,-2\right)$ are open points and are not on the graph. So the vertical line $x=-2$ and $x=1$ passes through only one point on each of the line segments.

Therefore, the graph shown is a function.

The piecewise function can be defined as:

$y=\frac{1}{2}x+1$

-6 less than or equal to $x<-2$

$y=-x\u20131$

-2 less than or equal to $x<1$

$y=5$

1 less than or equal to x less than or equal to 6

The domain of the function is -6 less than or equal to x less than or equal to 6 and its range is -2 less than or equal to y less than or equal to 5.

## How to apply a vertical line test

The following steps are necessary to apply the vertical line test to see if the given expression is a function or not.

**Geometrically**

Draw the graph of $y=f\left(x\right)$ , with respect to the coordinate axis. Now draw the line x = a, and observe the number of places it cuts the curve $y=f\left(x\right)$ . If the vertical line cuts the curve at more than one point, it does not represent a function. If it cuts the curve one time only, it represents a function.

**Algebraically**

The equation of a vertical line is $x=a$ . Substituting it in the equation of a curve $y=f\left(x\right)$ , we get $y=f\left(a\right)$ . If we get more than one value for y, then it proves the equation $y=f\left(x\right)$ does not represent a function. On the other hand, if we get only a single value, or no value for y, by substituting $x=a$ in $y=f\left(x\right)$ for all x, then $y=f\left(x\right)$ represents a function.

## Topics related to the Vertical Line Test

## Flashcards covering the Vertical Line Test

## Practice tests covering the Vertical Line Test

College Algebra Diagnostic Tests

## Get help learning about the vertical line test

It can be confusing to learn about the vertical line test, functions, and non-function equations. If your student is finding this topic or other algebraic topics confusing, they should work with an expert tutor who can make the concepts clear to them. A private tutor can work 1-on-1 with your student until they are able to solve the vertical line test every time. Contact the Educational Directors at Varsity Tutors today to learn how tutoring can help your student conquer the vertical line test.

- CRISC - Certified in Risk and Information Systems Control Courses & Classes
- PARCC Test Prep
- IB Physics HL Tutors
- SHRM - Society for Human Resource Management Training
- Mental Math Tutors
- OAT Physics Courses & Classes
- California Proficiency Program (CPP) Test Prep
- AU- Associate in Commercial Underwriting Test Prep
- SAT Subject Test in Japanese with Listening Courses & Classes
- GMAT Test Prep
- Political History Tutors
- IB Computer Science SL Tutors
- GCSE French Tutors
- Series 82 Test Prep
- MAP Tutors
- Series 82 Courses & Classes
- Odia Tutors
- Cross-Cultural Studies Tutors
- CompTIA A+ Training
- Clinical Psychiatry Tutors

- Reading Tutors in Dallas Fort Worth
- Math Tutors in San Diego
- Chemistry Tutors in San Francisco-Bay Area
- Algebra Tutors in New York City
- Chemistry Tutors in Seattle
- French Tutors in New York City
- English Tutors in New York City
- GRE Tutors in Houston
- Algebra Tutors in Los Angeles
- Statistics Tutors in Los Angeles