ASCENTLEARNING
Join a weekly class
Skip to learning content
YEAR 11 · FUNCTIONS AND STRAIGHT-LINE GRAPHS · 20 MIN

Functions versus relations and the vertical-line test

Distinguish a general relation from a function and test the connection between inputs and outputs.

In this lesson

Before you start
  • Domain and range
  • Coordinate pairs
01 / LEARN

Understand the idea.

A relation need not be a function

A relation is a set of ordered pairs. It is a function of x when every permitted input x is assigned exactly one output y. Several different inputs may share an output; the restriction concerns conflicting outputs for the same input.

For a finite relation, group pairs by their first coordinate. Repeated identical pairs add no conflict, but (2,1) and (2,5) do. Always identify the input variable: reversing the roles of the coordinates can change whether a relation is a function.

A graphical test

A vertical line fixes one input x. Two intersection points mean that input has two outputs, so the graph fails the vertical-line test. Horizontal lines instead check repeated outputs and are relevant to whether a function is one-to-one.

An entire circle fails because an interior input can have an upper and a lower output. Selecting its upper semicircle removes that ambiguity. A finite sample of a curve cannot prove the test holds at all other inputs; use the rule or full graph.

The relation x squared plus y squared equals 9 on equal axes from -5 to 5. The upper semicircle is sage and the lower semicircle is gold, joining at x=-3 and x=3.
02 / WORKED EXAMPLES

See the method in action.

EXAMPLE 01

Repeated outputs are allowed

Does (−1,4),(0,4),(2,7) define a function of x?

Worked solution

  1. 1

    List each distinct input and its assigned output.

    −1↦40↦42↦7

    These are all pairs in the supplied finite relation.

  2. 2

    Check for conflicting outputs.

    Each input appears with exactly one output, so the relation is a function of its first coordinate.

  3. 3

    Interpret the repeated output.

    f⁡(−1)=f⁡(0)=4

    Two different inputs sharing four is allowed; it only shows this function is not one-to-one.

Answer

Yes.

EXAMPLE 02

A circle and a semicircle

Compare x2+y2=9 with y=9−x2.

Worked solution

  1. 1

    Test the full circle at a single input.

    02+y2=9y=±3

    The input zero has two outputs, which is enough to show the full circle is not a function of x.

  2. 2

    Find the square-root rule’s permitted inputs.

    9−x2≥0x2≤9−3≤x≤3

    The radicand must be non-negative for the output to be real.

  3. 3

    Identify the selected branch.

    y=9−x2≥0

    The principal square root gives exactly one non-negative output at every permitted input, so the upper semicircle is a function.

Answer

The full circle is not a function of x; the upper semicircle is, on −3≤x≤3.

03 / YOUR TURN

Try it yourself.

Check your understanding

Is (1,2),(1,3),(2,4) a function of its first coordinate?

Show answer & reasoning

No.

The pairs (1,2) and (1,3) assign different outputs to the same first coordinate 1. Therefore the given relation is not a function of its first coordinate.

Keep practising

6 worksheet questions · 12 marks

Read the questions online
  1. Decide whether {(0,1),(1,1),(2,1)} is a function of x.
    2 marks
  2. Decide whether {(−2,0),(−2,4),(3,5)} is a function of x.
    2 marks
  3. Is the relation x=3 a function of x? Explain.
    2 marks
  4. Is y=x2 a function of x, and is each output produced by only one input?
    2 marks
  5. Restrict x2+y2=16 to give a function with non-positive outputs.
    2 marks
  6. A table lists f⁡(0)=1, f⁡(1)=3 and f⁡(2)=5. Does it prove f⁡(x)=2⁢x+1 for every real x?
    2 marks
Read the worked solutions

Equivalent correct methods earn the corresponding marks. Include units where asked.

  1. Decide whether {(0,1),(1,1),(2,1)} is a function of x.
    2 marks

    Every input has exactly one output, although all outputs coincide.

    Yes.
  2. Decide whether {(−2,0),(−2,4),(3,5)} is a function of x.
    2 marks

    Input -2 has two different outputs.

    No.
  3. Is the relation x=3 a function of x? Explain.
    2 marks

    The same x-value 3 permits every real y-value, so a vertical line overlaps it at many points.

    No.
  4. Is y=x2 a function of x, and is each output produced by only one input?
    2 marks

    Every x has one square.

    For example, inputs 2 and -2 both produce 4.

    It is a function of x, but it is not one-to-one on all real inputs.
  5. Restrict x2+y2=16 to give a function with non-positive outputs.
    2 marks

    Select the lower semicircle, which assigns one non-positive y-value to each allowed x.

    y=−16−x2, −4≤x≤4.
  6. A table lists f⁡(0)=1, f⁡(1)=3 and f⁡(2)=5. Does it prove f⁡(x)=2⁢x+1 for every real x?
    2 marks

    It agrees with that rule at the listed inputs, but many other rules have those same three values.

    No.
Checking saved progress…
Curriculum reference & lesson scope

SACE Board of South Australia

Stage 1 Mathematics, Topic 1: Functions and graphs. Prerequisite algebra and coordinate geometry are embedded as supporting lessons.

Official curriculum source ↗

Save your next step.

Create a free account to save your learning progress. Lessons and downloads stay free, with or without an account.

Create free account