Function as Mapping Formula

Viewing a function as a mapping means thinking of it as an explicit association from each element of the domain to exactly one element of the codomain.

The Formula

f(x)=one output for each input

Ask yourself: Does any input point to two different outputs?

Quick example

f ⁣:students→grades Each student maps to exactly one grade.

Notation

f(x) names the output assigned to input x.

What this formula means

Viewing a function as a mapping means thinking of it as an explicit association from each element of the domain to exactly one element of the codomain.

A function as a mapping is like a post office sorting letters into mailboxes: each letter goes into exactly one box, though one box can hold many letters. A letter copied into two different boxes would break the system, and that is what a non-function does with an input.

Formal view

f ⁣:X→Y is a mapping such that ∀ x∈X,  ∃! y∈Y:y=f(x). Equivalently, f⊆X×Y is a set of ordered pairs with unique first elements.

Worked examples

Example 1

easy
Let f:{1,2,3}→{a,b,c} be defined by f(1)=a, f(2)=a, f(3)=c. Determine whether f is a valid function, and find its range.
Show solution

Answer

Valid function; range ={a,c}

First step

1.
A function requires every element of the domain to map to exactly one element of the codomain. Check: f(1)=a, f(2)=a, f(3)=c — each domain element has exactly one image. ✓ Valid function.

Full solution

  1. 2.
    The range is the set of actual output values: {a,c} (note b is in the codomain but not in the range).
  2. 3.
    Observe this is many-to-one: both 1 and 2 map to a.
A function maps each domain element to exactly one codomain element, but multiple domain elements may share an output (many-to-one). The range (image) is only the outputs actually achieved, which may be a proper subset of the codomain.

Example 2

medium
Explain why the relation R={(1,2),(1,3),(2,5)} is NOT a function from {1,2} to {2,3,5}.

Example 3

medium
Let f:{1,2,3,4}→{a,b,c} with f(1)=a, f(2)=b, f(3)=a, f(4)=c. Find the range and decide if f is one-to-one.

Common mistakes

  • Rejecting a function because two inputs share an output — repeated outputs are allowed.
  • Accepting a relation with one input and two outputs — that violates the function rule.
  • Thinking every graph is a function — use the vertical line test.

Why this formula matters

The arrow picture turns the function rule into something you can check by counting, and it works even when there is no formula at all: students and bus routes, books and shelves. Once a mapping is a function, 'what does this input go to?' always has exactly one answer, which is what lets you write f(3) and mean something definite.

Frequently asked questions

What is the Function as Mapping formula?

Viewing a function as a mapping means thinking of it as an explicit association from each element of the domain to exactly one element of the codomain.

How do you use the Function as Mapping formula?

Think of a mapping when a relationship is given as a list of pairs, a table or an arrow diagram, especially with names or categories rather than formulas: students to bus routes, products to prices. Check that each input has exactly one output. If the question is whether each output comes from only one input, you are testing one-to-one instead. For a graph, use the vertical line test.

What do the symbols mean in the Function as Mapping formula?

f(x) names the output assigned to input x.

Why is the Function as Mapping formula important in Math?

The arrow picture turns the function rule into something you can check by counting, and it works even when there is no formula at all: students and bus routes, books and shelves. Once a mapping is a function, 'what does this input go to?' always has exactly one answer, which is what lets you write f(3) and mean something definite.

What do students get wrong about Function as Mapping?

The procedure for function as mapping is the easy part; the trap is rejecting a function because two inputs share an output. Asking "Does any input point to two different outputs?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Function as Mapping formula?

Before studying the Function as Mapping formula, you should understand: function definition.

The full guide

This formula is covered in depth in Functions and Graphs: Complete Foundations for Algebra and Calculus.