Xy-Graph: Ordered Pairs
Xy-Graph: Ordered Pairs
An ordered pair is a pair of numbers in a specific order. For example, (1, 2) and (- 4, 12) are ordered pairs. The order of the two numbers is important: (1, 2) is not equivalent to (2, 1) -- (1, 2)(2, 1) .
xy-graph The horizontal axis, called the x-axis, represents values of x , and the vertical axis, called the y-axis, represents values of y . From now on, the word "graph" will refer to the xy -graph, unless specified otherwise
Axis: The reference line from which distances are measured. The plural of Axis is Axes, and is pronounced ax-eez
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)
"f(x) = ... " is the classic way of writing a function. And there are other ways, as you will see!
Input
0 1 7 10 ... For an input of 50, what would be the output?
Relationship
2 2 2 2 ...
Output
0 2 14 20 ...
Some Examples of Functions 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!
But we are not going to look at specific functions ... ... instead we will look at the general idea of a function.
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":
So f(x) shows you the function is called "f", and "x" goes in
And you will often see what a function does with the input:
f(x) = x2 shows you that function "f" takes "x" and squares it.
f(x) = 1 - x + x2
Would be the same function if I wrote:
f(2) = 1 - 2 + 22 = 3
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!
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 Here are some example values:
age
0 1 3.2 15 ...
h(age) = age 20
0 20 64 300 ...
A Function is Special
But a function has special rules:
It must work for every possible input value And you can only have one relationship for each input value
2.
"...exactly one..." means that a function is single valued. It will not give back 2 or more results for the
same input.
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.
X: x
3 1 0 4 -4 ...
Y: x2
9 1 0 16 16 ...
It is a function, because:
Every element in X is related to Y No element in X has two or more relationships So it follows the rules. (Notice how both 4 and -4 relate to 16, which is allowed.)
Value "3" in X has no relation in Y Value "4" in X has no relation in Y Value "5" is related to more than one value in Y (But the fact that "6" in Y is not related to does not matter)
the set "X" is called the Domain, the set "Y" is called the Codomain, and the set of elements that get pointed to in Y (the actual values produced by the function) is called the Range.
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"
the domain is {2,3,7} (the input values) and the range is {4,5,3} (the output values)
x
-3 -1 0 2
y
5 5 0 4
4 ...
16 ...
Conclusion a function relates inputs to outputs a function takes elements from a set (the domain) and relates them to elements in a set
(the codomain).
all the outputs (the actual values related to) are together called the range a function is a special type of relation where: every element in the domain is included, and any input produces only one output (not this or that) an input and its matching output are together called an ordered pair so a function can also be seen as a set of ordered pairs
Types of Functions Composite Functions Even and Odd Functions Inverse Functions Linear, Quadratic, and Cubic Functions Monotonic Functions Periodic Functions
Inverse Functions
An inverse function goes in the opposite direction! Let us start with an example: Here we have the function f(x) = 2x+3, written as a flow diagram:
2x+3
is:
(y-3)/2
The inverse is usually shown by putting a little "-1" after the function name, like this:
f-1(y)
We say "f inverse of y" So, the inverse of
If the function
f turns the apple into a banana, f-1 turns the banana back to the apple
Example:
Using the formulas from above, we can start with We can then use the inverse on the 11:
f-1(11) = (11-3)/2 = 4
And we magically get 4 back again! We can write that in one line:
f-1( f(4) ) = 4
"f inverse of f of 4 equals 4"
So applying a function
f and then its inverse f-1 gives us the original value back again: f-1( f(x) ) = x
We could also have put the functions in the other order and it still works:
f( f-1(x) ) = x
Example:
Start with: And then:
f( f-1(11) ) = 11
f inverse of 11 equals 11"
Using Algebra
You can work out the inverse using Algebra. Put "y" for "f(x)" and solve for x: The function: Put "y" for "f(x)": Subtract 3 from both sides: Divide both sides by 2: Swap sides: f(x) = 2x+3 y = 2x+3 y-3 = 2x (y-3)/2 = x x = (y-3)/2
f-1(y) = (y-3)/2