Relations and mappings; the function
Any set of points in the coordinate plane (or any set of ordered pairs) is called a relation; it is often given by an equation in x and y. A relation with no two different points having the same first coordinate is a function (mapping): each x has at most one y. The set of first coordinates (the x’s) is the domain and the set of second coordinates (the y’s) is the range. If a relation is given by an equation, it is a function when every x gives a single y; on a graph, every vertical line must meet the graph in at most one point. In y = f(x), the value f(a) is the value of the function at x = a; to find it, substitute a for x in the formula. The symbol f is the rule itself, while f(x) is the result of the rule at x.
A weather chart lists one temperature for each hour: “time → temperature” is a function, because each time has exactly one value. The reverse, “temperature → time”, is not: 18 °C may occur both in the morning and in the evening, so one value belongs to two times.
Data analysts write dependencies as functions, programmers write code that gives one output for each input, and economists study how price and demand depend on each other.
Write down today’s timetable: is “lesson number → subject” a function? Is the reverse, “subject → lesson number”, a function? Give the reason.
| x | y |
|---|---|
| 1 | 4 |
| 2 | 4 |
| 3 | 7 |
In pairs build a relation of 4–5 ordered pairs for your partner, who decides whether it is a function and writes its domain and range.