Functions Flashcards

(63 cards)

1
Q

In functions

What does f: X → Y mean?

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What two properties must a function f: X → Y satisfy?

A
  1. Every element of X is related to some element in Y
  2. No element of X is related to more than one element in Y
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is meant by “f sends x to y”

A

For every element x, in set X, there is a unique element y, in set Y that is related to x by f.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or false?

The following defines a function. Explain why or why not

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A

f(a) = 2, f(b) = 4, f(c) = 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
A

range of f = {2, 4} as these are the elements of Y that are related to X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
A

{(a, 2), (b, 4), (c, 2)}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

True or false?

There can be elements of the co domain to which no relation is made from the domain.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Given F: X → Y and G: X → Y

When is are the two functions F and G equal (F = G)

A

F = G if and only if F(x) = G(x) for every x in the set of X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
A

Remember to treat F+G and G+F as functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Given a set X and IX: X X

What does IX(x) = x define

X = capital X
x = lowercase x

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q
A

Don’t be confused by all the random symbols

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Just some revision

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

How do you define (n-place) Boolean function, f

A

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}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

When is a ‘function’, not well defined

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
26
27
What does an inverse function do?
"undoes" the action of the function. That is, converting the co-domain back to the domain.
28
What is it meant for a function to be one-to-one?
All elements of the domain have only one relation to the co-domain
29
30
31
32
What is an 'onto' or 'surjective' function
Every element of co-domain is an image of an element in the domain. (every element of co-domain is related to an element of the domain) ## Footnote In terms of arrow diagrams, this means a function is onto if each element of the co-domain has an arrow pointing to it from some element of the domain.
33
34
35
36
37
# Given f: X → Y where X and Y are sets. What is the relationship of X and Y if the function `f` is one-to-one and onto.
1. Each element of X is related to only one element of Y 2. Each element of Y is an image of only one element of X
38
What defines a function being one-to-one correspondence or bijection?
The function is both one-to-one and onto ## Footnote Given f: X → Y for set X and Y 1. One to one: each element of X only has one relation (or arrow) to Y 2. Onto: every element of Y is related (has an arrow) to an element in X
39
40
# Given F: X → Y is a one-to-one correspondence function Since the function is a one-to-one correspondence function, what other function relating X and Y do you know exists?
The inverse function. If you know that F: X → Y is a one-to-one correspondence function, then you must know that there is also a function such that F-1: Y → X exists
41
42
# Given X and Y are sets. True or false? If F: X → Y is one-to-one and onto, then F-1:Y → X is also one-to-one and onto.
True.
43
What does g ∘ f mean?
The composition function of **f and g**. Meaning g(f(X)) | Apply function g first then f ## Footnote It needs to be read "compositon of _f and g_" and not "composition of _g and f_" because you apply f first.
44
45
# True or false? In a composition of an identity function and any function, you can just ignore the identity function. *(Composition function of any function and identity function equals the function)*
True.
46
# Given f: X → Y What is the special function you get when you compose f-1 and f
The identity function. Specifically one that acts on the set X | IY(n) = f-1
47
# Given f: X → Y What is the special function you get when you compose f and f-1
The identity function. Specifically one that acts on the set X | IX(n) = f ∘ f-1
48
Denote "the function composing of f and g" with the ∘ symbol
g ∘ f | You apply f first. g(f(x))
49
Denote "the function composing of g and f" with the ∘ symbol
f ∘ g | You apply g first. f(g(x))
50
# True or false? The composition function of two one-to-one functions is a one-to-one function.
True
51
# True or false? The composition function of two onto functions is a onto function.
True
52
Prove this statement
53
Prove this statement.
54
What is the term 'cardinal number'
It refers to the size of a set | "This set has *eight* elements"
55
What does the term "ordinal number" refer to?
The order of an element in a sequence | "This is the *eighth* element in the row"
56
# Given and two sets A and B? How do you define if A and B have the same cardinality. | Cardinality refers to the size of the sets.
A has the same cardinality of B if and only if there one-to-one correspondence from A to B. ## Footnote In other words, A has the same cardinality as B if and only if there exists a function from A to B that is both one-to-one and onto.
57
# Given a set A What is the reflexive property of cardinality | Cardinality refers to the size of the sets.
A has the same cardinality as A | Just remember reflexive means it's common sense; a reflexive instinct
58
# Given sets A and B What is the symmetric property of cardinality | Cardinality refers to the size of the sets
If A has the same cardinality as B then B has the same cardinality of A. ## Footnote Therefore, you can say that A and B have the same cardinality
59
# Given sets A, B and C What is the transistivity propert of cardinality? | Cardinality refers to the size of the sets
If A has the same cardinality as B and B has the same cardinality as C then A has the same cardinality as C.
60
61
# GIven a set A When can A be called *countably infinite*
**If A has the same cardinality Z+.** The reason is that there would exist a function that "counts" the elements of A if this statement is true. Like every element of A will be linked to a positive integer. This function would be one-to-one correspondence. F: Z+ → A ## Footnote Remember that same cardinality means there exists a function that is one-to-one correspondence linking the two sets.
62
Just revision
63