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 ).
- The second set is called the codomain or target set (which contains the possible output values, usually denoted by ).
A relation can be presented on paper in several formats:
- As a set of ordered pairs: e.g., .
- As a table of values with an input column () and an output column ().
- As an arrow mapping diagram between two ovals.
- As an algebraic equation linking and .
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 is assigned to exactly one output .
The Function Machine Mental Model
Think of a function as a reliable processing machine:
- You drop an input number into the top hopper.
- The internal mechanism applies a specific mathematical rule (such as "multiply by and add ").
- Exactly one output number rolls out of the chute at the bottom.
Input x
│
▼
┌───────────┐
│ f(x) │ <-- Rule: "2x + 3"
└───────────┘
│
▼
Output yIf you drop the number into a functioning machine, you must get the exact same answer every single time. If dropping into the machine produced on Monday but could produce both and 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 | Scan the first coordinates . If any -value appears more than once with different -values, it is not a function. | |
| Table of Values | Columns for and | Scan down the -column. No two rows may have the same with different entries. |
| Mapping Diagram | Two ovals with arrows pointing from to | Exactly one arrow must originate from each element in the input set. |
| Graph | Points 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 .
If , then .
If , then .
Two different inputs ( and ) yield the identical output (). 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 .
If , then or .
Here, the single input produces two different answers: and . This is NOT a function.
Step-by-Step Paper Notebook Method
When given a relation in your notebook and asked to determine whether it is a function:
- List the Input Set (Domain Candidates): Write down all the first coordinates (-values).
- Highlight Duplicate Inputs: Underline any -value that appears more than once.
- Compare Corresponding Outputs:
- If a duplicated -value pairs with different -values, write: "Not a function: input produces multiple outputs."
- If every -value appears only once (or identical pairs are repeated), write: "Valid function: every input has exactly one unique output."
- 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.
Step-by-Step Paper Analysis:
Relation :
- Extract inputs: .
- All inputs are distinct: each appears exactly once.
- Conclusion: is a function.
Relation :
- Extract inputs: .
- All inputs are distinct.
- Notice that both and pair with . This is a many-to-one relationship, which is completely permitted.
- Conclusion: is a function.
Relation :
- Extract inputs: .
- The input appears twice!
- In the first pair, .
- In the third pair, .
- The single input produces two distinct outputs ( and ).
- Conclusion: is NOT a function.
Example 2: Verifying a Table of Values on Paper
Problem: A science student records the height (in meters) of a weather balloon at various elapsed times (in minutes) in her laboratory notebook:
| Time () | ||||||
|---|---|---|---|---|---|---|
| Height () |
Does this recorded table represent height as a function of time ? Justify your answer.
Step-by-Step Paper Analysis:
Identify the independent variable (input) and dependent variable (output):
- Input: Elapsed time .
- Output: Balloon height .
Scan the input row for duplicates:
- Looking across the time values: .
- The value appears in column 3 and column 5.
Compare the corresponding outputs for the duplicate input:
- At , the third column lists .
- At , the fifth column lists .
Formulate the written mathematical justification:
A physical balloon cannot be at two different altitudes at the very same moment. Because the single input 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 defined on the discrete input set :
- Calculate each output on paper.
- Write the function as a set of ordered pairs.
- Verify that the result satisfies the definition of a function.
Step-by-Step Paper Calculation:
- Substitute each input into the formula:
- Collect the pairs where :
- Verification on paper:
- Inputs used: .
- Outputs obtained: .
- Each input is associated with exactly one real number.
Final Answer: The function as a set of ordered pairs is .
Common Mistakes & Paper Traps
| Paper Trap | What Goes Wrong | Correct Paper Habit |
|---|---|---|
| Confusing and Duplicates | Rejecting a relation because an output repeats (e.g., and ). | Remember: outputs may repeat (horizontal sharing). Only inputs cannot split into multiple outputs. |
| Overlooking Repeated Input with Same Output | Thinking 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: . |
| Assuming All Equations are Functions | Assuming is a function because it has an equal sign. | Test algebraically: isolate . If , a single positive produces two -values, so it is not a function of . |
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 is a function. State its domain and range.
Practice 2
A relation is defined by the set of pairs:
For what value of (if any) could fail to be a function?
Practice 3
Consider the algebraic relation . By testing the input , demonstrate on paper why this relation cannot be a function where is expressed in terms of .
Worked Solutions
Solution 1
- Domain (inputs): .
- Range (outputs): .
- Every input in the domain is distinct and points to a single output (). Even though all inputs share the same output (a constant function), no input has more than one output.
- Result: is a function.
Solution 2
- Looking at the inputs of : .
- The input appears twice, paired with and .
- Since , whenever is any real number, the single input will map to two distinct outputs ( and ).
- Result: fails to be a function for all real values of , because the input generates two conflicting outputs ().
Solution 3
- Substitute the input into the equation:
- The single input yields two distinct outputs: and .
- Result: Because one input produces two outputs, is not a function of .
Test yourself
Which of the following sets of ordered pairs represents a valid mathematical function?
Why is the equation NOT considered a function when is the input and is the output?
- Because negative numbers have no square roots in real numbers
- Because positive values of yield two outputs: and
- Because can never equal
- Because the equation contains an exponent greater than
In an arrow mapping diagram, what visual pattern indicates that a relation is definitely NOT a function?
- Two arrows arrive at the exact same element in the output oval
- An element in the output oval has no arrows pointing to it
- Two or more arrows originate from the same element in the input oval
- All arrows point horizontally to the right