πŸ—οΈ Ξ˜ΟΟ΅Ξ·Ξ Ξ±Ο„Ο€πŸš§ (under construction)

Function
A function from X to Y denoted by f:Xβ†’Y is a binary relation R on XΓ—Y such that if (x,y),(x,z)∈R, then z=y, which says given an element x∈X it is only ever related to a single y∈Y.
Function Equality
Suppose that f:Xβ†’Y and g:Xβ†’Y are two functions, then we say that they are equal and write f=g when f(x)=g(x) for every x∈X
dom f
Given a function f:X→Y, then we denote dom(f):=X which we is shorthand for the word domain
ran f
Given a function f:X→Y, then we denote ran(f):=Y which we is shorthand for the word range
Constant Function
Suppose that we have a function f:Xβ†’Y such that there is a value c∈Y such that for every x∈X, we have f(x)=c, then we say that f is constant with value c
Identity Function
Let X be a set, the we define the following function idX:Xβ†’X, such that for any a∈X idX(a)=a and call it the identity function on X.
Domain Restricted Function
Let f:Eβ†’F let AβŠ†E, then the restriction of f to A is the function fβ†ΎA:Aβ†’F defined by: fβ†ΎA(x):=f(x) for each x∈A

The restriction of a function is thought of as the same function but with elements from it's domain removed, or restricted to a smaller set.

Inclusion Function
Suppose that AβŠ†B, the inclusion function ΞΉ:Aβ†’B is defined by: ΞΉ(x)=x where the output of ΞΉ is considered as an element from B
Restriction Equals Inclusion Composed with Original
let f:Eβ†’F and suppose AβŠ†E, and let ΞΉ:Aβ†’E be the inclusion function, then we have fβ†ΎA=f∘ι
Function Composition
Suppose that A,B,C are sets, and that f:Aβ†’B,g:Bβ†’C are functions, then we define g∘f(x):=g(f(x)) for any x∈A, so that g∘f:Aβ†’C
Function Addition
Suppose that f,g:Xβ†’Y are functions and βŠ• is a binary operation on Y, then we define fβŠ•g:Xβ†’Y as: (fβŠ•g)(x):=f(x)βŠ•g(x)
Function Multiplication
Let f:Xβ†’Y be a function and let βŠ— be a binary operation on Y, then for any c∈Y, we define cβŠ—f:Xβ†’Y as: (cβŠ—f)(x)=cβŠ—f(x)
Image of a Set
Let f:Xβ†’Y be a function and SβŠ†X, then f(S):={y∈Y:y=f(s),Β forΒ someΒ s∈S}
An Element Belongs to a set Implies its Image belongs to the Image of the Set
x∈A⟹f(x)∈f(A)
An Element belongs to a Set iff its Image belongs to the Image of the Set when the Function is Surjective
Suppose that f:Aβ†’B is injective, then x∈A⟺f(x)∈f(A)
Image Maintains Subsets
Suppose that AβŠ†B then we have f(A)βŠ†f(B)
Union Factors through Image
f(⋃M)=⋃{f(M):M∈M}
Image of the Intersection is a Subset of the Intersection of the Images
f(β‹‚M)βŠ†β‹‚{f(M):M∈M}
Image of the Intersection is Equal to the Intersection of the Images if the Function is Injective
Suppose that f is injective, then f(β‹‚M)=β‹‚{f(M):M∈M}
The Difference of Images is a Subset of the Image of the Difference
f(A)⧡f(B)βŠ†f(A⧡B)

Note that the other inclusion is not true in general, in the proof you might try and think that if xβˆ‰B implies that f(x)βˆ‰B but this would be wrong, for example consider f:Rβ†’R such that it is constant f(x)=0, then given BβŠ†R such that xβˆ‰B then we have f(B)={0} and also that f(x)=0 and so it's clearly not true. This hints at the next proposition

The Difference of the Images equals the Image of the Difference if the Function is Injective
Suppose that f is injective then f(A)⧡f(B)=f(A⧡B)
Inverse Image of a Function
Suppose f:Xβ†’Y and UβŠ†Y, then fβˆ’1(U):={x∈X:f(x)∈U}
Inverse Image Maintains Subsets
Suppose that AβŠ†B then we have fβˆ’1(A)βŠ†fβˆ’1(B)
Inverse Image of The Range is The Domain
Suppose that f is a function, then fβˆ’1(ran(f))=dom(f)
Inverse Image of a Composition
Suppose that we have two functions f:Xβ†’Y and g:Yβ†’Z and suppose that SβŠ†Z, then (g∘f)βˆ’1(S)=fβˆ’1(gβˆ’1(S))
Union Factors through Inverse Image
fβˆ’1(⋃M)=⋃{fβˆ’1(M):M∈M}
Set Difference Factors through Inverse Image
Suppose that f:Xβ†’Y, and that A,BβŠ†Y, then fβˆ’1(A⧡B)=fβˆ’1(A)⧡fβˆ’1(B)
Intersection Factors through Inverse Image
fβˆ’1(β‹‚M)=β‹‚{fβˆ’1(M):M∈M}
Image of the Inverse Image
Suppose that f:Xβ†’Y is a function, and that SβŠ†Y, then f(fβˆ’1(S))βŠ†S

Note that the above proposition is not equality, consider the function f:Xβ†’{0,1} defined as f(x)=0 for every x∈X, then f(fβˆ’1({0,1}))={0}. This hints at how we can force equality

Inverse Image of the Image
Suppose that SβŠ†X, then fβˆ’1(f(S))βŠ‡S

This proposition is not equality if we consider the function f:{1,2,3,4}β†’{1,2,3,4} and define f(1)=1,f(2)=2,f(3)=2,f(4)=1, then if we consider fβˆ’1(f({1,2})) we see it equals {1,2,3,4} which is clearly a superset.

Invertible Function
Let f:Xβ†’Y be a function, then f is said to be invertible if there exists a function g:Yβ†’X such that g(f(x))=x for every x∈X and f(g(y))=y for every y∈Y
Inverse Function
Suppose that f is invertible, then there is a function g satifying said properties, then we define the notation fβˆ’1:=g and say that fβˆ’1 is the inverse function of f

Note that this seems quite similar to the inverse image notation, which looks like fβˆ’1(S) where SβŠ†Y, note that they differ as the inverse image is a function from P(Y) to P(X), so it is a function that maps sets to sets.

This differs from the inverse of a function because it operates on individual elements of Y, so we may write things like fβˆ’1(s) where s∈Y, noting that fβˆ’1:Yβ†’X.This idea of using the same notation for a function, but having the type of it's parameters be different is usually known as overloading in the world of programming.

If this is your first brush with notation overloading, then know that it can be confusing, but all confusion can be cleared by inspecting what the inputs are to the function. This should remind you that a function is not just a name, it's signature is given by it's name, input types and return type. To see if you really understand this, answer the following exercise.

Invertible iff Bijective

This means that the notation fβˆ’1(y) where y∈ran(f) is reserved only for functions f whose inverse exists, otherwise we have problems for example if f was not surjective and there was an element z that can never get mapped to then what does fβˆ’1(z) mean? If it was not injective, then suppose that there was aβ‰ b such that f(a)=f(b) then a\stackrel?=fβˆ’1(f(a))=fβˆ’1(f(b))\stackrel?=b makes no sense because we know that aβ‰ b, so we must have injectivity. Therefore you must be carful not to write the symbol fβˆ’1 unless you know that f is invertible.

Inverse Image of the Inverse Function is the Image
Let f:Xβ†’Y and assume that it's inverse exists fβˆ’1:Yβ†’X and let SβŠ†Y show that: (fβˆ’1)βˆ’1(S)=f(S)
Injective Function
a function f:Xβ†’Y is injective iff βˆ€x,y∈X,f(x)=f(y)⟹x=y
Inverse Image of Image Equality
Suppose that f:Xβ†’Y and that SβŠ†X, if f is injective then fβˆ’1(f(S))=S
Surjective Function
a function f:Xβ†’Y is surjective iff βˆ€y∈Y,βˆƒx∈XΒ suchΒ thatΒ f(x)=y
Image of Inverse Image Equality
Suppose that f:Xβ†’Y and that SβŠ†Y, if f is surjective then f(fβˆ’1(S))=S
Bijective function
a function is bijective iff it is surjective and injective
composition of two bijective functions is bijective
Suppose A,B,C are non-empty sets and f:Aβ†’B,g:Bβ†’C are functions, and that g∘f:Aβ†’C is a function. Then if f and g are bijective then g∘f is also bijective.
Self Map
Suppose that X is a set, then a self map is any function of the form f:X→X
Permutation
A permutation is a bijective self map
Function Iteration
Given a function f:Xβ†’X, then we define f∘0:=idX and then for any n∈N1 we define via composition: f∘n=f∘f∘nβˆ’1

So for example f∘3(x)=f(f(f(id(x)))) which is what we expect.

Relation Preserving Function
Suppose that (R,X) and (S,Y) are binary relations, and f:Xβ†’Y a function, then we say that f is relation preserving if given x,y∈X xRy⟹f(x)Sf(y)

Note that when the relation is an order, we say that it is an order preserving function, you are already familiar with them, consider f(x)=x+1 on R.

Relation Reversing Function
Suppose that (R,X) and (S,Y) are relations, and f:Xβ†’Y a function, then we say that f is relation reversing if given x,y∈X xRy⟹f(y)Sf(x)
The Inverse of an Order Preserving Function is Order Preserving
Suppose that (A,≀A) and (B,≀B) are partial orders and f:Aβ†’B is order preserving and invertible, then fβˆ’1:Bβ†’A is also order preserving
When a Function Defined in Terms of a Function is a Function
Suppose that g:Aβ†’B and h:Aβ†’A, then if f is a defined such that f(g(a),g(b))=g(h(a,b)) is a function iff for any x,y,z,w∈A (g(x)=g(z)∧g(y)=g(w))⟹g(h(x,y))=g(h(z,w))