Abstract Algebra/Functions
From Wikibooks, the open-content textbooks collection
Contents |
[edit] Definition
A function
is a triplet (A,B,G) such that:
- A is a set, called the domain of

- B is a set, called the range of

, called the graph of 
In addition the following two properties hold:
.
.
we write
for the unique
such that
.
We say that
is a function from A to B, which we write:
[edit] Example
Let's consider the function from the real to the real wich squares its argument. We could define it like this:
[edit] Remark
As you see in the definition of a function above, the domain and range are an integral part of the definition. In other words, even if the values of
don't change, changing the domain or range changes the function.
Let's look at the following four functions.
The function:
is neither injective nor surjective (these terms will be defined later).
The function:
is not injective but surjective.
The function:
is injective but not surjective.
The function:
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 range are known.
[edit] Image and preimage
For a set E, we write
for the set of subsets of E.
Let
. We will now define two related functions.
The image function:
The preimage function:
Note that these two functions are not necessarily inverse of one another (see the section on bijective functions below) and that the preimage has nothing to do with the inverse of
(if it exists), since it is a function from
, and not from
.
We define
, which we call the image of
.
For any
, we call
the support of y.
[edit] Example
Let's take again the function:
Let's consider the following examples:
[edit] Further definitions
Let
and
. We define
by
, which we call the composition of
and
.
Let A be a set. We define the identity function on A as
[edit] Properties
Definition: A function
is injective if
Lemma: Consider a function
and suppose
. Then
is injective if and only if there exists a function
with
.
Proof:
:
Suppose
is injective. As
let's define m as an arbitrary element of A. We can then define a suitable function
as follows:
It is now easy to verify that
.
:
Suppose there is a function
with
. Then
.
is thus injective.
Q.E.D.
Definition: A function
is surjective if
Lemma: Consider a function
. Then
is surjective if and only if there exists a function
with
.
Proof:
:
Suppose
is surjective. We can define a suitable function
as follows:
It is now easy to verify that
.
:
Suppose there is a function
with
. Then
. Then
.
is thus surjective.
Q.E.D.
Definition: A function
is bijective if it is both injective and surjective.
Lemma: A function
is bijective if and only if there exists a function
with
and
. Furthermore it can be shown that such a
is unique. We write it
and call it the inverse of
.
Proof:
Left as an exercise.
The text in its current form is incomplete.



















