Definition: A function is any relation (set of ordered pairs) whereby for each element in the domain, there is exactly one element in the range.
Interpretation 1: When a calculation is performed, if there is only ever one possible answer the calculation can be classified as a function.
Example, a function:
Find
when
. Answer: ![]()
Example, not a function:
. Find
when
. Answer:
or
– this relation is not a function. Explicitly,
.
Interpretation 2: When looking at a graph, if you put ruler vertically on any
value, and if it only every crosses a graph once, the graph represents a function. If it crosses more than once, the graph does not represent a function.
Function Notation
Suppose we have a relation
. We can express the same relation using function notation:
![]()
A function, like a relation, is a set of ordered pairs. The first element in the ordered pair is the variable
, the second element is the value of the expression,
. Some ordered pairs generated by this function are:
![]()
Each function has:
- a name, (in our example,
); - one or more variables (in our example,
); - an expression (in our example,
).
Evaluate: calculate the output
We can define a function by stating an expression and a domain.
Example: ![]()
Evaluate (a)
; (b)
; (c) ![]()
(a)
The ordered pair
is a member of this relation.
(b)
Zero is usually an easy calculation! The ordered pair
is a member of this relation.
(c)
Well, 12 is not in the domain. So there is no value for
for this function.
If a domain is not stated, it is assumed that the domain includes all real numbers.
Practice finding the output
The functions in the following applet are defined for all values of
:
A function is well defined when for every input, there is one output.
Not Well Defined
Consider the function:
![]()
We would say that this is not a well defined function. It is not well defined as there is a number that does not have an answer – that is,
. Better to say:
,
is a real number but
.
or more simply,
, ![]()
Practice finding the input
Sometimes we may have the output of a function and we are required to calculate the input:
Find
when
.
In this case, we set up an equation and solve it:
![Rendered by QuickLaTeX.com \begin{align*}4x-1&=19 \\[10pt] 4x&=20 \\[10pt] x&=5\end{align*}](http://tentotwelvemath.com/wp-content/ql-cache/quicklatex.com-7902624e7b14b1d683593f4f5fa80446_l3.png)
Your turn:
Multiple inputs for the same output is OK
There is only one input for each question in the last applet – only one solution. Linear functions are ‘one to one’ functions.
A function can still be well defined when there are multiple inputs for the same output. This kind of function is called a ‘many to one’ function. An example would be relation of student to houses at Hogwarts. Let the domain be any set of students at Hogwarts, and the range be the set of four houses. Since every student is assigned one and only one house – this relation is a well defined function.
On the other hand, when asked, ‘which student is in Gryffindor?’ there are many answers – for one house there are many students. This relation houses to students is an example of a ‘one to many’ relation. This is a relation, but not a function.
All of the above, on mathisfun!