Function: Definition
Definition
A function from a set to a set is a relation that assigns each element of set exactly one element of set .
This is written as:
where:
- is the domain
- is the codomain
- For every , there exists one and only one such that
Key conditions in the definition:
1. Every input must be assigned
- — no element of the domain can be left unmapped.
2. Exactly one output for each input
- — an input cannot map to more than one output.
3. The output must belong to the codomain
- — the mapped value must be in the target set.
Example:
Let If then is a function because each element of has exactly one image in .
Non-example:
If then this is not a function because the input has two outputs.
If an element of the domain does not map to anything, it is also not a function.
Main Content
1. Domain, Codomain, and Range
Domain
- is the set of all allowed inputs for the function. It tells us where the function starts.
Codomain
- is the set in which all outputs are expected to lie. It is the target set declared by the function.
Range
- is the actual set of outputs produced by the function from the domain.
Example:
If defined by then:
- Domain =
- Codomain =
- Range =
This shows that range may be smaller than codomain.
Important distinction:
- Domain tells us what inputs are accepted.
- Codomain tells us the possible output universe.
- Range tells us the outputs that actually occur.
2. Rule of Unique Output
- A function must assign only one image to each element of the domain.
- If one input has two or more outputs, the relation fails to be a function.
- The uniqueness condition is what distinguishes functions from general relations.
Example of a valid function:
For each real number , there is exactly one value of .
Example of an invalid function:
A relation such as is not a function if interpreted from to outputs, because a single input like gives two outputs: and .
Set-based view:
If a relation is a function, then for every , there is exactly one pair in .
3. Representation of Functions
- Functions can be represented in several ways: ordered pairs, tables, arrow diagrams, graphs, and formulas.
- Each representation must still satisfy the definition of a function.
- A clear representation helps identify whether the relation is valid and makes it easier to analyze function properties.
Ordered pairs:
This is a function because the first component of each pair is unique.
Arrow representation:
For and :
1 ───► x
2 ───► y
3 ───► x
This shows that each element of has exactly one arrow leaving it.
Graphical idea:
A function graph in Cartesian coordinates passes the vertical line test:
- If any vertical line intersects the graph at more than one point, it is not a function.
Example of a function graph:
Example of a non-function graph:
- when viewed as in terms of , because some -values correspond to two -values.
Working / Process
1. Identify the sets
- Determine the domain and codomain clearly.
- Check what elements are allowed as inputs and outputs.
- Example: If , then every element of must be considered.
2. Check the mapping rule
- Verify that every input in the domain is assigned an output.
- Ensure that no input has more than one output.
- Confirm that each output lies in the codomain.
3. Verify function properties
- Confirm whether the relation is one-to-one, onto, both, or neither if required.
- Use ordered pairs, arrow diagrams, tables, or graphs to test validity.
- If any input is missing or repeated with different outputs, the relation is not a function.
Advantages / Applications
- Functions provide a precise way to model mathematical and real-world relationships between quantities.
- They are the foundation for advanced topics such as algebra, calculus, discrete mathematics, and computer programming.
- Functions help in theorem proving by allowing structured reasoning about inputs, outputs, and mappings between sets.
Summary
- A function assigns each element of a domain exactly one element of a codomain.
- Domain, codomain, and range are the core parts of a function.
- A relation becomes a function only when every input has one unique output.
Important terms to remember: domain, codomain, range, relation, mapping, image, preimage, ordered pair