Abstract Algebra/Functions

From testwiki
Revision as of 04:12, 17 September 2022 by imported>1234qwer1234qwer4 (assumtion->assumption - Fix a typo in one click)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:TOC right

Definition

A function f is a triplet (A,B,G) such that:

  • A is a set, called the domain of f
  • B is a set, called the codomain of f
  • G is a subset of A×B, called the graph of f

In addition the following two properties hold:

  1. xA,yB(x,y)G.
  2. xA,yB,yB, then (x,y)G and (x,y)Gy=y.

xA we write f(x) for the unique yB such that (x,y)G.

We say that f is a function from A to B, which we write:

f:AB

Example

Let's consider the function from the reals to the reals which squares its argument. We could define it like this:

f:
f:xx2

Remark

As you see in the definition of a function above, the domain and codomain are an integral part of the definition. In other words, even if the values of f(x) don't change, changing the domain or codomain changes the function.

Let's look at the following four functions.

The function:

f1:
f1:xx2

is neither injective nor surjective (these terms will be defined later).

The function:

f2:0
f2:xx2

is not injective but surjective.

The function:

f3:0
f3:xx2

is injective but not surjective.

The function:

f4:00
f4:xx2

is injective and surjective

As you see, all four functions have the same mapping but all four are different. That's why just giving the mapping is insufficient; a function is only defined if its domain and codomain are known.

Image and preimage

For a set E, we write 𝒫(E) for the set of subsets of E.

Let f:AB. We will now define two related functions.

The image function:

f:𝒫(A)𝒫(B),SA{f(x)xS}

The preimage function:

f-1:𝒫(B)𝒫(A),TB{xAf(x)T}

Note that the image and preimage are written respectively like f and its inverse (if it exists). There is however no ambiguity because the domains are different. Note also that the image and preimage are not necessarily inverse of one another. (See the section on bijective functions below).

We define Imf:=f(A), which we call the image of f.

For any yB, we call f-1({y}) the support of y.

Proposition: Let f:AB. Then

  1. SA,Sf1(f(S))
  2. TB,f(f1(T))T

Example

Let's take again the function:

f:
f:xx2

Let's consider the following examples:

f-1({4})={2,2}
f-1(<0)=
f(0)=0

Further definitions

Let f:BC and g:AB. We define fg:AC by (fg)(x):=f(g(x)), which we call the composition of f and g.

Let A be a set. We define the identity function on A as

idA:AA,xx

Properties

Definition: A function f:AB is injective if

xA,xA,f(x)=f(x)x=x

Lemma: Consider a function f:AB and suppose A. Then f is injective if and only if there exists a function g:BA with gf=idA.
Proof:
:
Suppose f is injective. As A let's define m as an arbitrary element of A. We can then define a suitable function g:BA as follows:

g(y):={the unique xAf(x)=y, if yImfm, else

It is now easy to verify that gf=idA.
:
Suppose there is a function g:BA with gf=idA. Then x,xA,f(x)=f(x)g(f(x))=g(f(x))x=x. f is thus injective.
Q.E.D.

Definition: A function f:AB is surjective if

yB,xAf(x)=y

Lemma: Consider a function f:AB. Then f is surjective if and only if there exists a function g:BA with fg=idB.
Proof:
:
Suppose f is surjective. We can define a suitable function g:BA as follows:

g(y):=an xAf(x)=y

It is now easy to verify that fg=idB.
:
Suppose there is a function g:BA with fg=idB. Then yB, let x:=g(y). Then f(x)=f(g(y))=y. f is thus surjective.
Q.E.D.

Definition: A function f:AB is bijective if it is both injective and surjective.

Lemma: A function f:AB is bijective if and only if there exists a function g:BA with gf=idA and fg=idB. Furthermore it can be shown that such a g is unique. We write it f-1:BA and call it the inverse of f.
Proof:
Left as an exercise.

Proposition: Consider a function f:AB. Then

  1. f is injective iff SA,f1(f(S))=S
  2. f is surjective iff TB,f(f1(T))=T
  3. f is bijective iff the image and preimage of f are inverse of each other

Example: If A and B are sets such that BA, there exists an obviously injective function i:BA, called the inclusion BA, such that i(b)=b for all bB.

Example: If is an equivalence relation on a set X, there is an obviously surjective function π:XX/, called the canonical projection onto X/, such that π(x)=[x] for all xX.

Theorem: Define the equivalence relation on A such that ab if and only if f(a)=f(b). Then, if f:AB is any function, f decomposes into the composition

AπA/f~imfiB

where π is the canonical projection, i is the inclusion imfB, and f~ is the bijection f~([a])=f(a) for all aA.

Proof: The definition of f~ immediately implies that f=if~π, so we only have to prove that f~ is well defined and a bijection. Let a,aA. Then [a]=[a]aaf(a)=f(a). This shows that the value of f~([a]) is independent of the representative chosen from [a], and so it is well-defined.

For injectivity, we have f~([a])=f~([a])f(a)=f(a)[a]=[a], so f~ is injective.

For surjectivity, let bimf. Then there exists an aA such that f(a)=b, and so f~([a])=b by definition of f~. Since b is arbitrary in imf, this proves that f~ is surjective.

Q.E.D.

Definition: Given a function f:XY, f is a

(i) Monomorphism if given any two functions g,h:WX such that fg=fh, then g=h.

(ii) Epimorphism if given any two functions g,h:YZ such that gf=hf, then g=h.

Theorem: A function between sets is

(i) a monomorphism if and only if it is injective.

(ii) an epimorphism if and only if it is surjective.

Proof: (i) Let f:BC be a monomorphism. Then, for any two functions g,h:AB, f(g(a))=f(h(a))g(a)=h(a) for all aA. This is the definition if injectivity. For the converse, if f is injective, it has a left inverse f. Thus, if f(g(a))=f(h(a)) for all aA, compose with f on the left side to obtain g(a)=h(a), such that f is a monomorphism.

(ii) Let f:AB be an epimorphism. Then, for any two functions g,h:BC, g(f(a))=h(f(a))g(b)=h(b) for all aA and bB. Assume imfB, that is, that f is not surjective. Then there exists at least one bB not in imf. For this b choose two functions g,h which coincide on imf but disagree on {b}. However, we still have g(f(a))=h(f(a)) for all aA. This violates our assumption that f is an epimorphism. Consequentally, f is surjective. For the converse, assume f is surjective. Then the epimorphism property immediately follows.

Q.E.D.

Remark: The equivalence between monomorphism and injectivity, and between epimorphism and surjectivity is a special property of functions between sets. This not the case in general, and we will see examples of this when discussing structure-preserving functions between groups or rings in later sections.

Example: Given any two sets A and B, we have the canonical projections πA:A×BA sending (a,b) to a, and πB:A×BB sending (a,b) to b. These maps are obviously surjective.

In addition, we have the natural inclusions iA:AAB and iB:BAB which are obviously injective as stated above.

Universal properties

The projections and inclusions described above are special, in that they satisfy what are called universal properties. We will give the theorem below. The proof is left to the reader.

Theorem: Let A,B,C be any sets.

(i) Let f:CA and g:CB. Then there exists a unique function u:CA×B such that f=πAu and g=πBu are simultaneously satisfied. u is sometimes denoted f×g.

(ii) Let f:AC and g:BC. Then there exists a unique function u:ABC such that f=uiA and g=uiB are simultaneously satifsied.

The canonical projections onto quotients also satisfy a universal property.

Theorem: Define the equivalence relation on X and let f:XY be any function such that abf(a)=f(b) for all a,bX. Then there exists a unique function f¯:X/Y such that f=f¯π, where π:XX/ is the canonical projection.

Template:BookCat Template:Incomplete Template:Subject