TExcelTAD
Home › School Functions, Exponentials & Logarithms › Introduction to Functions: The Function Machine, Inputs, Outputs & Relations

Introduction to Functions: The Function Machine, Inputs, Outputs & Relations

In mathematics, one of the most powerful ideas you will ever encounter is the concept of a function. Whether predicting the trajectory of a tossed ball, calculating compound interest in a bank account, or tracking temperature changes throughout a day, functions allow us to model how one quantity depends upon another with absolute predictability.

Before touching a calculator, you can understand and analyze functions using simple paper-and-pencil representations: tables of values, mapping diagrams, and sets of ordered pairs.


What Is a Relation?

Before defining a function, we must define a broader mathematical structure: a relation.

A relation is simply any mathematical connection or rule between two sets of numbers or objects:

  • The first set is called the domain (the collection of all possible input values, usually denoted by xx).
  • The second set is called the codomain or target set (which contains the possible output values, usually denoted by yy).

A relation can be presented on paper in several formats:

  1. As a set of ordered pairs: e.g., R={(1,2),(2,4),(3,6)}R = \{(1, 2), (2, 4), (3, 6)\}.
  2. As a table of values with an input column (xx) and an output column (yy).
  3. As an arrow mapping diagram between two ovals.
  4. As an algebraic equation linking xx and yy.

The Definition of a Function: The "Single-Output" Rule

Not every relation is a function. A function is a special type of relation that obeys one strict, non-negotiable rule:

The Function Rule:
A relation is a function if and only if every valid input xx is assigned to exactly one output yy.

Relation:Any pairing of inputs with outputs.Function:Each input x has one, and only one, output y.\begin{aligned} \text{Relation:} \quad &\text{Any pairing of inputs with outputs.} \\ \text{Function:} \quad &\text{Each input } x \text{ has one, and only one, output } y. \end{aligned}

The Function Machine Mental Model

Think of a function as a reliable processing machine:

  1. You drop an input number xx into the top hopper.
  2. The internal mechanism applies a specific mathematical rule (such as "multiply by 22 and add 33").
  3. Exactly one output number yy rolls out of the chute at the bottom.
       Input x
          │
          ▼
    ┌───────────┐
    │  f(x)     │  <-- Rule: "2x + 3"
    └───────────┘
          │
          ▼
       Output y

If you drop the number 55 into a functioning machine, you must get the exact same answer every single time. If dropping 55 into the machine produced 1313 on Monday but could produce both 1313 and 2020 on Tuesday, the machine is broken—it is not a function!


Four Ways to Represent Functions on Paper

Format Paper Representation How to Inspect for Function Validity
Ordered Pairs {(x1,y1),(x2,y2),… }\{(x_1, y_1), (x_2, y_2), \dots\} Scan the first coordinates xx. If any xx-value appears more than once with different yy-values, it is not a function.
Table of Values Columns for xx and yy Scan down the xx-column. No two rows may have the same xx with different yy entries.
Mapping Diagram Two ovals with arrows pointing from XX to YY Exactly one arrow must originate from each element in the input set.
Graph Points (x,y)(x, y) plotted on a Cartesian plane No vertical line may intersect the graph in more than one point (Vertical Line Test).

The Crucial Distinction: Many-to-One vs. One-to-Many

A frequent stumbling block for students on paper is distinguishing between two scenarios:

1. Many-to-One (ALLOWED for Functions)

Multiple different inputs may produce the same output.
Example: Consider f(x)=x2f(x) = x^2.
If x=−3x = -3, then (−3)2=9(-3)^2 = 9.
If x=3x = 3, then (3)2=9(3)^2 = 9.
Two different inputs (−3-3 and 33) yield the identical output (99). This is completely valid. Each individual input still produces exactly one output.

2. One-to-Many (FORBIDDEN for Functions)

A single input produces multiple outputs.
Example: Consider the relation y2=xy^2 = x.
If x=25x = 25, then y=5y = 5 or y=−5y = -5.
Here, the single input 2525 produces two different answers: +5+5 and −5-5. This is NOT a function.

Input −3⟶9Input +3⟶9  ⟹  Valid Function (Many-to-One)\begin{aligned} \text{Input } -3 \longrightarrow 9 \\ \text{Input } +3 \longrightarrow 9 \end{aligned} \quad \implies \quad \textbf{Valid Function (Many-to-One)}
Input 25  ↗+5↘−5  ⟹  NOT a Function (One-to-Many)\text{Input } 25 \; \begin{matrix} \nearrow +5 \\ \searrow -5 \end{matrix} \quad \implies \quad \textbf{NOT a Function (One-to-Many)}

Step-by-Step Paper Notebook Method

When given a relation in your notebook and asked to determine whether it is a function:

  1. List the Input Set (Domain Candidates): Write down all the first coordinates (xx-values).
  2. Highlight Duplicate Inputs: Underline any xx-value that appears more than once.
  3. Compare Corresponding Outputs:
    • If a duplicated xx-value pairs with different yy-values, write: "Not a function: input x=cx = c produces multiple outputs."
    • If every xx-value appears only once (or identical pairs are repeated), write: "Valid function: every input has exactly one unique output."
  4. Draw an Arrow Diagram (if requested): Draw two vertical ovals, write domain elements in the left oval, range elements in the right oval, and draw arrows from input to output. Check that no element in the left oval has two or more outgoing arrows.

Worked Examples

Example 1: Analyzing Sets of Ordered Pairs

Problem: Determine whether each of the following relations is a function. Explain your reasoning using paper-and-pencil criteria.

A={(1,4),(2,7),(3,10),(4,13)}B={(−2,5),(0,3),(2,5),(4,9)}C={(3,1),(5,2),(3,8),(7,4)}\begin{aligned} A &= \{(1, 4), (2, 7), (3, 10), (4, 13)\} \\ B &= \{(-2, 5), (0, 3), (2, 5), (4, 9)\} \\ C &= \{(3, 1), (5, 2), (3, 8), (7, 4)\} \end{aligned}

Step-by-Step Paper Analysis:

  1. Relation AA:

    • Extract inputs: {1,2,3,4}\{1, 2, 3, 4\}.
    • All inputs are distinct: each appears exactly once.
    • Conclusion: AA is a function.
  2. Relation BB:

    • Extract inputs: {−2,0,2,4}\{-2, 0, 2, 4\}.
    • All inputs are distinct.
    • Notice that both −2-2 and 22 pair with 55. This is a many-to-one relationship, which is completely permitted.
    • Conclusion: BB is a function.
  3. Relation CC:

    • Extract inputs: {3,5,3,7}\{3, 5, 3, 7\}.
    • The input 33 appears twice!
    • In the first pair, x=3  ⟹  y=1x = 3 \implies y = 1.
    • In the third pair, x=3  ⟹  y=8x = 3 \implies y = 8.
    • The single input 33 produces two distinct outputs (11 and 88).
    • Conclusion: CC is NOT a function.

Example 2: Verifying a Table of Values on Paper

Problem: A science student records the height hh (in meters) of a weather balloon at various elapsed times tt (in minutes) in her laboratory notebook:

Time tt (min\text{min}) 00 55 1010 1515 1010 2020
Height hh (m\text{m}) 120120 250250 380380 510510 420420 640640

Does this recorded table represent height hh as a function of time tt? Justify your answer.

Step-by-Step Paper Analysis:

  1. Identify the independent variable (input) and dependent variable (output):

    • Input: Elapsed time tt.
    • Output: Balloon height hh.
  2. Scan the input row for duplicates:

    • Looking across the time values: 0,5,10,15,10,200, 5, \mathbf{10}, 15, \mathbf{10}, 20.
    • The value t=10 mint = 10\text{ min} appears in column 3 and column 5.
  3. Compare the corresponding outputs for the duplicate input:

    • At t=10 mint = 10\text{ min}, the third column lists h=380 mh = 380\text{ m}.
    • At t=10 mint = 10\text{ min}, the fifth column lists h=420 mh = 420\text{ m}.
  4. Formulate the written mathematical justification:

    At t=10 min,h∈{380 m,420 m}\text{At } t = 10\text{ min}, \quad h \in \{380\text{ m}, 420\text{ m}\}

    A physical balloon cannot be at two different altitudes at the very same moment. Because the single input t=10t = 10 corresponds to two distinct outputs, this table violates the single-output rule.

Final Answer: This table does not represent a function.


Example 3: Generating Ordered Pairs from a Function Rule

Problem: Given the function rule f(x)=2x−5f(x) = 2x - 5 defined on the discrete input set D={−1,0,2,4}D = \{-1, 0, 2, 4\}:

  1. Calculate each output on paper.
  2. Write the function as a set of ordered pairs.
  3. Verify that the result satisfies the definition of a function.

Step-by-Step Paper Calculation:

  1. Substitute each input x∈Dx \in D into the formula:
For x=−1:f(−1)=2(−1)−5=−2−5=−7For x=0:f(0)=2(0)−5=0−5=−5For x=2:f(2)=2(2)−5=4−5=−1For x=4:f(4)=2(4)−5=8−5=3\begin{aligned} \text{For } x = -1: \quad f(-1) &= 2(-1) - 5 = -2 - 5 = -7 \\ \text{For } x = 0: \quad f(0) &= 2(0) - 5 = 0 - 5 = -5 \\ \text{For } x = 2: \quad f(2) &= 2(2) - 5 = 4 - 5 = -1 \\ \text{For } x = 4: \quad f(4) &= 2(4) - 5 = 8 - 5 = 3 \end{aligned}
  1. Collect the pairs (x,y)(x, y) where y=f(x)y = f(x):
f={(−1,−7),(0,−5),(2,−1),(4,3)}f = \{(-1, -7), (0, -5), (2, -1), (4, 3)\}
  1. Verification on paper:
    • Inputs used: {−1,0,2,4}\{-1, 0, 2, 4\}.
    • Outputs obtained: {−7,−5,−1,3}\{-7, -5, -1, 3\}.
    • Each input is associated with exactly one real number.

Final Answer: The function as a set of ordered pairs is {(−1,−7),(0,−5),(2,−1),(4,3)}\{(-1, -7), (0, -5), (2, -1), (4, 3)\}.


Common Mistakes & Paper Traps

Paper Trap What Goes Wrong Correct Paper Habit
Confusing xx and yy Duplicates Rejecting a relation because an output yy repeats (e.g., f(−1)=3f(-1) = 3 and f(1)=3f(1) = 3). Remember: outputs may repeat (horizontal sharing). Only inputs cannot split into multiple outputs.
Overlooking Repeated Input with Same Output Thinking {(2,5),(2,5)}\{(2, 5), (2, 5)\} is not a function. If an ordered pair is written twice, it is the same point, not two different outputs. However, in standard set notation, duplicate elements are redundant: {(2,5)}={(2,5),(2,5)}\{(2, 5)\} = \{(2, 5), (2, 5)\}.
Assuming All Equations are Functions Assuming x=y2x = y^2 is a function because it has an equal sign. Test algebraically: isolate yy. If y=±xy = \pm \sqrt{x}, a single positive xx produces two yy-values, so it is not a function of xx.

Pencil & Paper Practice

Grab your notebook and a pencil. Complete these three problems on paper before reading the worked solutions.

Practice 1

Determine whether the relation R1={(2,8),(4,8),(6,8),(8,8)}R_1 = \{(2, 8), (4, 8), (6, 8), (8, 8)\} is a function. State its domain and range.

Practice 2

A relation R2R_2 is defined by the set of pairs:

R2={(k,3),(4,7),(9,−1),(k,11)}R_2 = \{(k, 3), (4, 7), (9, -1), (k, 11)\}

For what value of kk (if any) could R2R_2 fail to be a function?

Practice 3

Consider the algebraic relation x2+y2=16x^2 + y^2 = 16. By testing the input x=0x = 0, demonstrate on paper why this relation cannot be a function where yy is expressed in terms of xx.


Worked Solutions

Solution 1

  • Domain (inputs): {2,4,6,8}\{2, 4, 6, 8\}.
  • Range (outputs): {8}\{8\}.
  • Every input in the domain is distinct and points to a single output (88). Even though all inputs share the same output (a constant function), no input has more than one output.
  • Result: R1R_1 is a function.

Solution 2

  • Looking at the inputs of R2R_2: k,4,9,kk, 4, 9, k.
  • The input kk appears twice, paired with y=3y = 3 and y=11y = 11.
  • Since 3≠113 \neq 11, whenever kk is any real number, the single input kk will map to two distinct outputs (33 and 1111).
  • Result: R2R_2 fails to be a function for all real values of kk, because the input kk generates two conflicting outputs (3≠113 \neq 11).

Solution 3

  1. Substitute the input x=0x = 0 into the equation:
02+y2=16y2=16y=±16y=4ory=−4\begin{aligned} 0^2 + y^2 &= 16 \\ y^2 &= 16 \\ y &= \pm \sqrt{16} \\ y &= 4 \quad \text{or} \quad y = -4 \end{aligned}
  1. The single input x=0x = 0 yields two distinct outputs: y=4y = 4 and y=−4y = -4.
  2. Result: Because one input produces two outputs, x2+y2=16x^2 + y^2 = 16 is not a function of xx.

Test yourself

Which of the following sets of ordered pairs represents a valid mathematical function?

  1. {(1,2),(2,3),(1,4),(3,5)}\{(1, 2), (2, 3), (1, 4), (3, 5)\}
  2. {(0,5),(2,5),(4,5),(6,5)}\{(0, 5), (2, 5), (4, 5), (6, 5)\}
  3. {(4,−2),(4,2),(9,−3),(9,3)}\{(4, -2), (4, 2), (9, -3), (9, 3)\}
  4. {(5,1),(5,2),(5,3),(5,4)}\{(5, 1), (5, 2), (5, 3), (5, 4)\}

Why is the equation y2=xy^2 = x NOT considered a function when xx is the input and yy is the output?

  1. Because negative numbers have no square roots in real numbers
  2. Because positive values of xx yield two outputs: y=+xy = +\sqrt{x} and y=−xy = -\sqrt{x}
  3. Because xx can never equal 00
  4. Because the equation contains an exponent greater than 11

In an arrow mapping diagram, what visual pattern indicates that a relation is definitely NOT a function?

  1. Two arrows arrive at the exact same element in the output oval
  2. An element in the output oval has no arrows pointing to it
  3. Two or more arrows originate from the same element in the input oval
  4. All arrows point horizontally to the right