Recent chats

How can I tell whether a graph represents a function?

Quick answer

Imagine sliding a vertical line across the graph. If any vertical line intersects the graph more than once, the graph is not a function: that x-coordinate has multiple y-values. If no vertical line intersects it more than once, it passes the test. For example, an upright parabola passes, while a circle fails. The test checks whether a graph is a function, not whether it is one-to-one. [S1]

LET’S WORK THROUGH IT

The question, the details, the next step.

Question

I have a graph in front of me. What exactly should I do to check whether it represents a function?

Geez

Imagine placing a vertical line—one that goes straight up and down—over the graph, then sliding it from left to right. Check how many points of the graph the line meets at each position. If any vertical line meets the graph more than once, it fails the vertical line test and does not represent a function. That crossing means the same x-coordinate, or input, is associated with more than one y-coordinate, or output. [S1]

If every vertical line meets the graph at most once, it passes: each input shown on the graph has at most one output. A quick sketch of the rule is: one intersection or fewer: passes; two or more: fails.

Follow-up question

Could you compare an example that passes with one that fails? I sometimes get distracted by the shape.

Geez

Try an upright U-shaped parabola and a circle. A vertical line can meet the upright parabola at most once, so it passes. A vertical line through the middle of a circle meets it twice—once above and once below—so the circle fails. The lower and upper points have the same x-coordinate but different y-coordinates. That is precisely the multiple-output problem. [S1]

The shape itself is not the decision rule: follow a vertical line and count its intersections. For a worked check, suppose your sketch has a vertical line at x = 2. If that line crosses the graph at two points, record “fails at x = 2”; the graph is not a function. If it crosses once, that position is okay, but you still need to check the rest of the graph for a line that crosses more than once.

Follow-up question

What does it mean when a graph fails? And is this the same as checking whether a function is one-to-one?

Geez

Failing means at least one input has more than one output: a vertical line at the input’s x-coordinate hits multiple points on the graph. That graph therefore does not define a function. [S1]

It is a different question from whether a function is one-to-one. The vertical line test checks whether each input has at most one output; it does not check whether different inputs can share an output. [S1] For instance, an upright parabola passes the vertical line test even though some horizontal lines can meet it twice. Do not use a horizontal-line test to decide whether a graph is a function.

Follow-up question

Can you give me a short checklist I can use on homework, including what to write if the graph fails?

Geez

Use this routine:

  1. Imagine a vertical line moving across the entire graph.
  2. At each position, count its intersections with the graph.
  3. If any position gives two or more intersections, the graph fails.
  4. Name the x-coordinate where it fails, if you can read it.
  5. Explain that this input has multiple y-values.

Copyable answer: “This graph is not a function. A vertical line at x = [input] intersects the graph at [number] points, so the input [input] has more than one output.” If no vertical line intersects more than once, write: “This graph represents a function because every vertical line intersects it at most once.” The test is based on the graph you are checking; it does not tell you whether a graph is one-to-one. [S1]

A practical checklist

  • Imagine a vertical line moving across the entire graph.

  • Count how many times it intersects the graph at each position.

  • If any line intersects more than once, note that x-coordinate.

  • Explain that the failing input has multiple y-values.

  • If no line intersects more than once, state that the graph passes the test.

A few more useful answers

Does touching the graph at one point count as passing?

Yes. The rule is that a vertical line must intersect the graph at most once; a single intersection is allowed. [S1]

What should I write when I find a vertical line that crosses twice?

Name the x-coordinate if it is clear, then say the graph is not a function because that input has two outputs.

Does passing the vertical line test mean the graph is one-to-one?

No. The vertical line test checks whether each input has at most one output; it does not establish that different inputs have different outputs. [S1]

Sources

References used for this guide.

  1. [S1] OpenStax Precalculus 2e: Functions and Function Notation
    openstax.org · Checked

YOUR QUESTION. YOUR DETAILS.

Let’s work through your situation.

Get a tailored answer or help with your next task. Starts at $1, with a quote before you pay.

Ask your own question
← Back to Geez at Work