Functions Flashcards
(63 cards)
In functions
What does f: X → Y mean?
A function f
from set X
to a set Y
. In other words, it is a relation of X
(the domain of f
) to Y
(the co-domain of f
)
What two properties must a function f: X → Y satisfy?
- Every element of
X
is related to some element inY
- No element of
X
is related to more than one element inY
What is meant by “f sends x to y”
For every element x, in set X, there is a unique element y, in set Y that is related to x by f.
True or false?
The following defines a function. Explain why or why not
True
Only (c) defines a function. In (a), not every element of X is related to Y. In (b) there is an element in X such that X is related to more than one elements of Y (disobeys properties of functions).
Think of it like graph functions. y=0 can have muliple x points (parabola, cubic) but each x value must have only one y value related to it.
f(a) = 2, f(b) = 4, f(c) = 2
range of f = {2, 4} as these are the elements of Y that are related to X
c is indeed an inverse image of 2 as p(c)=2. but b is not an inverse image of 3 because p(b) ≠ 3
{(a, 2), (b, 4), (c, 2)}
True or false?
There can be elements of the co domain to which no relation is made from the domain.
True. This means that given a function relating X to Y. There can be elements in Y such that X does not relate to Y
Given F: X → Y and G: X → Y
When is are the two functions F and G equal (F = G)
F = G if and only if F(x) = G(x) for every x in the set of X
Remember to treat F+G and G+F as functions
Given a set X
and IX
: X
→ X
What does IX
(x) = x
define
X
= capital X
x = lowercase x
The identity function on X because it send each element of X to the element that is identical to it.
Thus the identity function can be pictured as a machine that sends each piece of input directly to the output chite without chaninging it in any way.
Don’t be confused by all the random symbols
Just some revision
How do you define (n-place) Boolean function, f
An (n-place) Boolean function, f is a function whose domain is the set of all ordered n-tuples of 0’s and 1’s and co-domain being a set of only {0, 1}
When is a ‘function’, not well defined
When it fails to satisfy at least one of the requirements for being a function. That is:
For it to not be well defined:
1. an element in the domain has no relationship to any element in the co-domain
2. an element of the domain has a relationship to multiple elements of the co-domain