What Is A Function?: Input, Relationship, Output
What Is A Function?: Input, Relationship, Output
What is a Function?
A function relates an input to an output.
It is like a machine that has an input and an output.
And the output is related somehow to the input.
f(x)
The input
The relationship
The output
Output
0
2
14
20
...
x2 (squaring) is a function
x3+1 is also a function
Sine, Cosine and Tangent are functions used in trigonometry
and there are lots more!
Names
First, it is useful to give a function a name.
The most common name is "f", but you can have other names like "g" ... or even "marmalade" if you
want.
But let's use "f":
an input of 4
becomes an output of 16.
In fact we can write f(4) = 16.
f(q) = 1 - q + q2
h(A) = 1 - A + A2
w() = 1 - + 2
an input (x)
a relationship (squaring)
and an output (y)
Relating
At the top I said that a function was like a machine. But a function doesn't really have belts or cogs or
any moving parts - and it doesn't actually destroy what you put into it!
A function relates an input to an output.
Saying "f(4) = 16" is like saying 4 is somehow related to 16. Or 4 16
Example: this tree grows 20 cm every year, so the height of the tree is
related to its age using the function h:
h(age) = age 20
So, if the age is 10 years, the height is:
h(10) = 10 20 = 200 cm
64
15
300
...
...
A Function is Special
But a function has special rules:
2.
"...exactly one..." means that a function is single valued. It will not give back 2 or more
results for the same input.
So "f(2) = 7 or 9" is not right!
(one-to-many)
(many-to-one)
This is NOT OK in a function
But this is OK in a function
If a relationship does not follow those two rules then it is not a function ... it would still be a
relationship, just not a function.
Y: x2
9
1
0
16
16
...
It is a function, because:
(But the fact that "6" in Y is not related to does not matter)
Some types of functions have stricter rules, to find out more you can read Injective, Surjective and
Bijective
Infinitely Many
My examples have just a few values, but functions usually work on sets with infinitely many elements.
Example: y = x3
I can't show you ALL the values, so I just give a few as an example:
X: x
-2
-0.1
0
1.1
3
and so on...
Y: x3
-8
-0.001
0
1.331
27
and so on...
We have a special page on Domain, Range and Codomain if you want to know more.
So Many Names!
Functions have been used in mathematics for a very long time, and lots of different names and ways of
writing functions have come about.
Here are some common terms you should get familiar with:
Ordered Pairs
I said I would show you many ways to think about functions, and here is another way:
You can write the input and output of a function as an "ordered pair", such as (4,16).
They are called ordered pairs because the input always comes first, and the output second:
(input, output)
So it looks like this:
( x, f(x) )
Example:
(4,16) means that the function takes in "4" and gives out "16"
"2 is related to 4", "3 is related to 5" and "7 is related 3".
Also, notice that:
Explicit vs Implicit
Before I finish, I would like to mention the terms "explicit" and "implicit".
"Explicit" is when the function shows you how to go directly from x to y, such as:
y = x3 - 3
When you know x, you can find y
That is the classic y = f(x) style.
"Implicit" is when it is not given directly such as:
x2 - 3xy + y3 = 0
When you know x, how do you find y?
It may be hard (or impossible!) to go directly from x to y.
"Implicit" comes from "implied", in other words shown indirectly.
Graphing
Conclusion