Function as Mapping Formula

The Formula

f\colon X \to Y where each x \in X maps to exactly one f(x) \in Y

When to use: Like a dictionary: every word maps to a definition. Every input maps to an output.

Quick Example

f\colon \text{students} \to \text{grades} Each student maps to exactly one grade.

Notation

f\colon X \to Y denotes a mapping from set X to set Y. x \mapsto f(x) shows what each element maps to.

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.

Like a dictionary: every word maps to a definition. Every input maps to an output.

Worked Examples

Example 1

easy
Let f: \{1,2,3\} \to \{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.

Solution

  1. 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.
  2. 2
    The range is the set of actual output values: \{a, c\} (note b is in the codomain but not in the range).
  3. 3
    Observe this is many-to-one: both 1 and 2 map to a.

Answer

Valid function; range = \{a, c\}
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\}.

Common Mistakes

  • Thinking every mapping needs a formula โ€” a function can be defined by a table, a list of pairs, or a verbal rule
  • Confusing one-to-one with function โ€” a function requires each input to have ONE output, but different inputs CAN share the same output
  • Forgetting that the domain and codomain are part of the function's definition โ€” the same rule on different domains gives different functions

Why This Formula Matters

The mapping view is the most powerful โ€” it applies to functions between any sets, not just numbers, enabling functions between geometric shapes, matrices, or abstract structures.

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?

Like a dictionary: every word maps to a definition. Every input maps to an output.

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

f\colon X \to Y denotes a mapping from set X to set Y. x \mapsto f(x) shows what each element maps to.

Why is the Function as Mapping formula important in Math?

The mapping view is the most powerful โ€” it applies to functions between any sets, not just numbers, enabling functions between geometric shapes, matrices, or abstract structures.

What do students get wrong about Function as Mapping?

A mapping must be well-defined: each input must produce exactly one output โ€” a relation that maps one input to two outputs is not a function.

What should I learn before the Function as Mapping formula?

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

Want the Full Guide?

This formula is covered in depth in our complete guide:

Functions and Graphs: Complete Foundations for Algebra and Calculus โ†’