A Function Relates An Input To An Output
A Function Relates An Input To An Output
We will see many ways to think about functions, but there are always three
main parts:
The input
The relationship
The output
x2 (squaring) is a function
Names
The most common name is "f", but we can have other names like "g" ... or
even "marmalade" if we want.
f(x) = x2 shows us that function "f" takes "x" and squares it.
an input of 4
becomes an output of 16.
Don't get too concerned about "x", it is just there to show us where the
input goes and what happens to it.
It could be anything!
So this function:
f(x) = 1 - x + x2
f(q) = 1 - q + q2
h(A) = 1 - A + A2
w(θ) = 1 - θ + θ2
The variable (x, q, A, etc) is just there so we know where to put the values:
f(2) = 1 - 2 + 22 = 3
Sometimes There is No Function Name
y = x2
an input (x)
a relationship (squaring)
and an output (y)
Relating
At the top we 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 we put into it!
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
... which numbers?
A Function is Special
(one-to-many) (many-to-one)
This is NOT OK in a function But this is OK in a function
It is a function, because:
(But the fact that "6" in Y has no relationship does not matter)
Vertical Line Test
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
We can't show ALL the values, so here are just a few examples:
X: x Y: x3
-2 -8
-0.1 -0.001
0 0
1.1 1.331
3 27
and so on... 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
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)
( 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:
"if it contains (a, b) and (a, c), then b must equal c"
Which is just a way of saying that an input of "a" cannot produce two
different results.
Example: {(2,4), (2,5), (7,3)} is not a function because {2,4} and {2,5}
means that 2 could be related to 4 or 5.
Explicit vs Implicit
y = x3 - 3
Graphing
Conclusion
a function relates inputs to outputs
all the outputs (the actual values related to) are together called
the range
A: Something to count with!
Humans have been using numbers to count with for thousands of years. It is
a very natural thing to do.
So we have:
Zero
The idea of zero , though natural to us now, was not natural to early
humans ... if there is nothing to count, how can you count it?
Example: you can count dogs, but you can't count an empty space:
Placeholder
But about 3,000 years ago people needed to tell the difference between
numbers like 4 and 40.Without the zero they look the same!
The idea of zero had begun, but it wasn't for another thousand years or so
that people started thinking of it as an actual number.
So, let us add zero to the counting numbers to make a new set of
numbers.
You may also hear the term "Natural Numbers" ... which can mean:
Negative Numbers
But the history of mathematics is all about people asking questions, and
seeking the answers!
Negative Cows?
Think about this ...If you had just sold two bulls, but can only find one to
hand over to the new owner... you actually have minus one bull ... you are
in debt one bull!
So negative numbers exist, and we're going to need a new set of numbers to
include them ...
Integers
If we include the negative numbers with the whole numbers, we have a new
set of numbers that are called integers
Integers: {..., -3, -2, -1, 0, 1, 2, 3, ...}
The Integers include zero, the counting numbers, and the negative of the
counting numbers, to make a list of numbers that stretch in either direction
indefinitely.
Fractions
You took a number (1) and divided by another number (2) to come
up with half (1/2)
The same thing happens when we have four biscuits (4) and want to share
them among three people (3) ... they get (4/3) biscuits each.
Rational Numbers
So, if "p" and "q" are integers (remember we talked about integers), then
p/q is a rational number.
Example: If p is 3 and q is 2, then:
The only time this doesn't work is when q is zero, because dividing by
zero is undefined.
all the integers
and all fractions.
People didn't stop asking the questions ...and here is one that caused a lot
of fuss during the time of Pythagoras:
Wow! There are numbers that are NOT rational numbers! What do we call
them?
Irrational Numbers
And we know there are many more irrational numbers. Pi (π) is a famous
one.
Useful
Real Numbers
This only shows a few decimal places (it is just a simple computer)
but Real Numbers can have lots more decimal places!
But there is one more number which has turned out to be very useful. And
once again, it came from a question.
Imagine ...
1×1 = 1,
and also (-1)×(-1) = 1 (because a negative times a negative gives a
positive)
"if you can imagine it, then you can play with it"
So, ...
Imaginary Numbers
And i has this interesting property that if you square it (i×i) you get -
1 which is back to being a Real Number. In fact that is the correct definition:
Imaginary Number : A number whose square is a negative Real Number.
3i
-6i
0.05i
πi
There are also many applications for Imaginary Numbers, for example in the
fields of electricity and electronics.
Imaginary Numbers were originally laughed at, and so got the name
"imaginary". And Real Numbers got their name to distinguish them from the
Imaginary Numbers.
So the names are just a historical thing. Real Numbers aren't "in the Real
World" (in fact, try to find exactly half of something in the real world!) and
Imaginary Numbers aren't "just in the Imagination" ... they are both valid
and useful types of Numbers!
Complex Numbers
Yes, if you put a Real Number and an Imaginary Number together you get a
new type of number called a Complex Number and here are some
examples:
3 + 2i
27.2 - 11.05i
A Complex Number has a Real Part and an Imaginary Part, but either one
could be zero
So the Complex Numbers include all Real Numbers and all Imaginary
Numbers, and all combinations of them.
Summary
End Notes
History
Questions
And isn't it amazing how many times that asking a question, like
Over to You!
Here are two questions you can ask when you learn something new:
Constructions
These constructions use only compass, straightedge (i.e. ruler) and a pencil.
This is the "pure" form of geometric construction: no numbers involved!
Angle Bisector
And it is useful to know how to do 30°, 45° and 60° angles. We can
use the angle bisector method (above) to create other angles, such as
15°, etc:
30 Degree Angle
45 Degree Angle
60 Degree Angle
Equilateral Triangle
Circles:
Center of a Circle
Pentagon