Functions
A function is one of the most fundamental concepts in mathematics. It describes a precise relationship between two sets of numbers.
What Is a Function?
A function from set to set is a rule that assigns to each element exactly one element . We write .
- is called the input (or argument)
- is called the output (or value)
The key word is exactly one. For every valid input, the function produces one and only one output. The notation means “evaluate the function at .”
Domain and Range
- The domain of is the set of all valid inputs for which is defined.
- The codomain is the target set .
- The range is the set of all actual outputs: .
The range is always a subset of the codomain, but they are not always equal.
Common Examples
| Function | Formula | Domain |
|---|---|---|
| Linear | all real numbers | |
| Quadratic | all real numbers | |
| Square root | ||
| Reciprocal |
Let . Find .
Solution. Substitute :
The Vertical Line Test
A graph in the -plane represents a function if and only if every vertical line intersects the graph at most once. If any vertical line crosses the graph in two or more points, the graph fails the test — it does not define a function, because one input would map to multiple outputs.
For instance, the graph of passes the test (parabola), but the graph of (circle) does not.
Piecewise Functions
A piecewise function uses different formulas on different parts of its domain.
Evaluate and .
Solution.
- Since , use the first rule: .
- Since , use the second rule: .
Piecewise functions are especially useful for modeling real-world situations where different rules apply under different conditions — for example, tax brackets or shipping rates.