
A graph is a fundamental and important object in modern mathematics. Graphs often connect pure and applied mathematics, and also serve as a bridge between these fields and statistics.
A graph is an ordered pair \(G = (V,E)\), where \(V\) is a set of vertices and \(E \subseteq V^2\) is a set of edges.
It is often useful to think of a graph as a collection of nodes (the vertices) connected by a network of links (the edges).
A function \(f\) from \(A\) to \(B\), denoted \(f \colon A \to B\), is a relation from \(A\) to \(B\) such that for every \(x \in A\) there exists a unique \(y \in B\) for which \((x,y) \in f\). Instead, we use the more familiar notation \(f(x) = y\) to mean the same thing.
In this context, \(x\) is called the argument and \(y\) the value. We may also refer to \(f\) as a map (or mapping), and sometimes call \(y\) the image of \(x\) under \(f\). The set \(A\) is called the domain, and \(B\) the codomain. A function cannot be specified without also specifying its domain and codomain.
Thus, functions are special kinds of relations, and relations themselves are just sets. Consequently, many familiar mathematical objects can be viewed as sets. Since functions are sets, two functions are equal if and only if they are equal as sets. Fortunately, the following theorem shows that this agrees with our usual understanding of equality of functions.
Functions \(f\) and \(g\) are equal if and only if
\(\operatorname{dom}(f) = \operatorname{dom}(g)\), and
for all \(x \in \operatorname{dom}(f)\), \(f(x) = g(x)\).
Proof. See the textbook. ◻
Let \(f \colon A \to B\) and \(g \colon B \to C\) be functions. Then the composite relation \(g \circ f\) is also a function.
Proof. Let \(x \in A\). Since \(f\) is a function, there exists a unique \(y \in B\) such that \((x,y) \in f\). Since \(g\) is a function, there exists a unique \(z \in C\) such that \((y,z) \in g\). Therefore, \((x,z) \in g \circ f\).
Now suppose \((x,c) \in g \circ f\). Then there exists some \(b \in B\) such that \((x,b) \in f\) and \((b,c) \in g\). By uniqueness of \(y\), we must have \(b = y\), and by uniqueness of \(z\), we must have \(c = z\). Hence, for every \(x \in A\) there exists a unique \(z \in C\) such that \((x,z) \in g \circ f\), and thus \(g \circ f\) is a function. ◻
Recall the identity relation on \(A\) defined by \[I_A := \{(a,a) \mid a \in A\}.\] Note that \(I_A\) is in fact a function, since if \((a,b) \in I_A\), then \(b = a\). Thus, there is exactly one value associated with each argument \(a\), namely \(a\) itself. Hence \(I_A \colon A \to A\) is simply the function defined by \(I_A(a) = a\).
By the properties of relations discussed earlier, if \(f \colon A \to B\) is any function, then \[f \circ I_A = f \quad \text{and} \quad I_B \circ f = f.\]
to \(D\) is the function \[f|_D := \{(x,y) \mid x \in D,\; y = f(x)\}.\] If \(g\) and \(h\) are functions and \(g\) is a restriction of \(h\), we also say that \(h\) is an extension of \(g\).
Composition of functions is associative. That is, if \(f \colon A \to B\), \(g \colon B \to C\), and \(h \colon C \to D\), then \[(h \circ g) \circ f = h \circ (g \circ f).\]
Proof. Suppose \((w,z) \in (h \circ g) \circ f\). Then there exists some \(x \in B\) such that \((w,x) \in f\) and \((x,z) \in h \circ g\). Hence there exists some \(y \in C\) such that \((x,y) \in g\) and \((y,z) \in h\). Thus, \((w,y) \in g \circ f\), and therefore \((w,z) \in h \circ (g \circ f)\). This shows that \((h \circ g) \circ f \subseteq h \circ (g \circ f)\).
Conversely, suppose \((w,z) \in h \circ (g \circ f)\). Then there exists some \(y \in C\) such that \((w,y) \in g \circ f\) and \((y,z) \in h\). Hence there exists some \(x \in B\) such that \((w,x) \in f\) and \((x,y) \in g\). Thus, \((x,z) \in h \circ g\), and therefore \((w,z) \in (h \circ g) \circ f\). This shows that \(h \circ (g \circ f) \subseteq (h \circ g) \circ f\). ◻
Let \(f \colon A \to B\) and \(g \colon C \to D\) be functions. If the functions agree on their common domain \(A \cap C\), that is, if \[f|_{A \cap C} = g|_{A \cap C},\] then the set \(f \cup g\) is a function from \(A \cup C\) to \(B \cup D\), defined by \[(f \cup g)(x) := \begin{cases} f(x), & x \in A, \\ g(x), & x \in C. \end{cases}\]
Proof. Exercise for the reader. ◻
Let \(A\) and \(B\) be sets equipped with (strict) partial orders \(\prec_A\) and \(\prec_B\), respectively. A function \(f \colon A \to B\) is said to be (strictly) increasing if whenever \(x,y \in A\) with \(x \prec_A y\), we have \(f(x) \prec_B f(y)\). Similarly, \(f\) is said to be (strictly) decreasing if whenever \(x,y \in A\) with \(x \prec_A y\), we have \(f(y) \prec_B f(x)\).
Prove that the function \(f \colon (0,\infty) \to \mathbb{R}\) defined by \[f(x) = \frac{1}{x}\] is strictly decreasing.
A function \(f \colon A \to B\) is said to be injective (or one-to-one, or 1–1) if for any \(x,y \in A\), \[f(x) = f(y) \implies x = y.\] Equivalently, using the contrapositive formulation, \[x \neq y \implies f(x) \neq f(y).\] In practice, the former condition is usually more effective.
Injective functions are precisely those functions \(f\) whose inverse relation \(f^{-1}\) is also a function. You should verify this fact as an exercise.
Let \(f \colon A \to B\) be a function and let \(f^{-1}\) be its inverse relation. Then \(f\) is injective if and only if the restriction \[f^{-1}\big|_{\operatorname{rng}(f)}\] is a function.
A function \(f \colon A \to B\) is said to be surjective (or onto) if \(\operatorname{rng}(f) = B\). That is, for every \(b \in B\) there exists some \(a \in A\) such that \(f(a) = b\).
A function \(f \colon A \to B\) is said to be bijective (or one-to-one and onto) if it is both injective and surjective. We also say that \(f\) is a one-to-one correspondence.
The composition of injective functions is injective, and the composition of surjective functions is surjective. Consequently, the composition of bijective functions is bijective. That is, let \(f \colon A \to B\) and \(g \colon B \to C\).
If \(f\) and \(g\) are injective, then \(g \circ f\) is injective.
If \(f\) and \(g\) are surjective, then \(g \circ f\) is surjective.
If \(f\) and \(g\) are bijective, then \(g \circ f\) is bijective.
Proof. Suppose \(f\) and \(g\) are injective and that \[(g \circ f)(x) = (g \circ f)(y).\] Then \(g(f(x)) = g(f(y))\). Since \(g\) is injective, it follows that \(f(x) = f(y)\). Since \(f\) is injective, we conclude that \(x = y\). Hence \(g \circ f\) is injective.
Now suppose \(f\) and \(g\) are surjective and let \(z \in C\). Since \(g\) is surjective, there exists some \(y \in B\) such that \(g(y) = z\). Since \(f\) is surjective, there exists some \(x \in A\) such that \(f(x) = y\). Therefore, \[z = g(f(x)) = (g \circ f)(x),\] and so \(z \in \operatorname{rng}(g \circ f)\). Hence \(g \circ f\) is surjective.
If \(f\) and \(g\) are bijective, then \(g \circ f\) is bijective by the previous parts. ◻
Determine whether the restriction of an injective function is injective. If it is, prove your result. If it is not, provide a counterexample.
As established earlier, if \(f \colon A \to B\) is injective, then the restriction of the inverse relation \[f^{-1}\big|_{\operatorname{rng}(f)} \colon \operatorname{rng}(f) \to A\] is a function. Moreover, if \(f \colon A \to B\) is bijective, then \(\operatorname{rng}(f) = B\), and hence the inverse relation \(f^{-1} \colon B \to A\) is itself a function. The next theorem shows that even more is true.
Suppose \(f \colon A \to B\) is bijective. Then the inverse function \(f^{-1} \colon B \to A\) is also bijective.
Proof. Suppose \(b,y \in B\) with \(f^{-1}(b) = a = f^{-1}(y)\). Then \[b = f(a) = y,\] and hence \(f^{-1}\) is injective.
Now let \(a \in A\) and set \(b = f(a)\). Then \(f^{-1}(b) = a\), and therefore \[A = \operatorname{rng}(f^{-1}),\] so \(f^{-1}\) is surjective. Thus \(f^{-1}\) is bijective. ◻
Let \(A\) be a nonempty set. A permutation of \(A\) is a bijection from \(A\) to itself.
Notice that we now have two different uses of the word permutation. At first, this may seem confusing, but they are closely related. Let \(A\) be a nonempty finite set with \(n\) elements \(a_1,\dots,a_n\), and let \(f \colon A \to A\) be a permutation in the sense defined above. Then the list \[f(a_1),\dots,f(a_n)\] is an ordering of the elements of \(A\), that is, a permutation in the combinatorial sense. No element appears more than once (since \(f\) is injective), and every element of \(A\) appears somewhere in the list (since \(f\) is surjective). Thus, every functional permutation determines a combinatorial permutation.
Conversely, let \(b_1,\dots,b_n\) be a (combinatorial) permutation of the elements of \(A\). Define a function \(f \colon A \to A\) by \(f(a_i) = b_i\) for \(i=1,\dots,n\). Since each element of \(A\) appears exactly once in the list \(b_1,\dots,b_n\), the function \(f\) is injective, and since every element of \(A\) appears in the list, \(f\) is surjective. Each viewpoint provides some perspective on the other. However, the other difference is perhaps much more interesting: combinatorial permutations can only be applied to finite sets, while function permutations can be applied even to infinite sets. This means that a permutation \(f \colon \mathbb{N} \to \mathbb{N}\) can be thought of as a “reordering” of the elements of \(\mathbb{N}\).
Let \(A\) be a nonempty set.
The identity map \(I_A\) is a permutation.
The composition of permutations is a permutation.
The inverse of a permutation is a permutation.
If \(f\) is a permutation, then \(f \circ I_A = f = I_A \circ f\).
If \(f\) is a permutation, then \[f \circ f^{-1} = I_A = f^{-1} \circ f.\]
If \(f,g\) are permutations of \(A\), then \[(g \circ f)^{-1} = f^{-1} \circ g^{-1}.\]
Proof. All of these statements follow directly from results proven earlier. ◻
The above theorem is one of the most important results we have encountered. It shows that the permutations of a set \(A\) form a mathematical structure called a group. A group consists of a set of objects (in this case, permutations) together with a binary operation (in this case, composition of functions) satisfying the following properties:
the binary operation is associative (as we proved earlier for function composition),
applying the binary operation to two elements of the set yields another element of the set (Item 2 above),
there is an identity element for the binary operation, that is, an element that leaves other elements unchanged when composed with them (Items 1 and 4 above),
every element has an inverse with respect to the binary operation, that is, an element whose composition with the original element yields the identity (Items 3 and 5 above).
You may not have encountered groups before, but they are a fundamental tool in modern mathematics and form the foundation of modern algebra. In fact, groups will be the sole object of study for the entirety of MATH-320.
Groups were invented (or discovered, depending on one’s metamathematical philosophy) by Évariste Galois, a French mathematician who died in a duel (over a girl) at the age of 20 on May 31, 1832, during the height of the French Revolution. Galois developed group theory while studying a famous open problem in algebra.
In high school algebra, one learns that a quadratic equation of the form \[ax^2 + bx + c = 0\] has two (or one repeated) solutions given by \[x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a},\] provided we allow complex numbers. This formula was known even to the Greeks, although they dismissed the complex solutions.
There is a similar, though significantly more complicated, formula for the solutions of a cubic equation \[ax^3 + bx^2 + cx + d = 0\] in terms of the coefficients \(a,b,c,d\), using only addition, subtraction, multiplication, division, and extraction of roots. A corresponding formula also exists for quartic equations, though these formulas were not discovered until the middle of the second millennium A.D.
For several hundred years thereafter, mathematicians searched for a similar formula for the quintic equation. Galois invented group theory in order to resolve this problem. Rather than finding such a formula, he proved that no such formula exists for the quintic equation, or indeed for any polynomial of degree five or higher.
When we say that no such formula exists, we mean that there is no formula involving only the coefficients and the operations listed above. There are, however, other methods for finding roots of higher-degree polynomials. It should be noted that Niels Henrik Abel also proved that the quintic is unsolvable, and his proof appeared earlier than that of Galois. However, Abel did not generalize his result to higher-degree polynomials. It is clear that Galois was unaware of Abel’s work, and the introduction of groups was a truly revolutionary idea.
A binary operation \(\ast\) on a set \(S\) is a map \[\ast : S \times S \to S.\] We write \(a \ast b\) for the image of \((a,b)\) under \(\ast\).
Thus, a binary operation takes two inputs \(a,b \in S\) in a given order and returns a single output \(a \ast b\), which must again belong to \(S\). Standard examples include addition, multiplication, and composition, but there are many other examples as well.
The following are examples of binary operations.
\(+, -, \times\) on \(\mathbb{R}\); \(\div\) is not a binary operation on \(\mathbb{R}\) since, for example, \(1 \div 0\) is undefined;
\(\wedge\), the cross product, on \(\mathbb{R}^3\);
\(\min\) and \(\max\) on \(\mathbb{N}\);
\(\circ\), composition, on the set \(\mathrm{Sym}(S)\) of bijections of a set \(S\) to itself;
matrix multiplication on the set of \(n \times n\) complex invertible matrices (for a given \(n\)).
A binary operation \(\ast\) on a set \(S\) is said to be associative if, for any \(a,b,c \in S\), \[(a \ast b) \ast c = a \ast (b \ast c).\]
In particular, this means that an expression such as \[a_1 \ast a_2 \ast \cdots \ast a_n\] always yields the same result, irrespective of how the individual parts of the calculation are performed.
A binary operation \(\ast\) on a set \(S\) is said to be commutative if, for any \(a,b \in S\), \[a \ast b = b \ast a.\]
An element \(e \in S\) is said to be an identity element (or simply an identity) for an operation \(\ast\) on \(S\) if, for any \(a \in S\), \[e \ast a = a = a \ast e.\]
Let \(\ast\) be a binary operation on a set \(S\) and let \(a \in S\). If an identity \(e\) exists, then it is unique.
Proof. Suppose that \(e_1\) and \(e_2\) are two identities for \(\ast\). Then \[e_1 \ast e_2 = e_1 \quad \text{since $e_2$ is an identity},\] and \[e_1 \ast e_2 = e_2 \quad \text{since $e_1$ is an identity}.\] Hence \(e_1 = e_2\). ◻
If an operation \(\ast\) on a set \(S\) has an identity \(e\) and \(a \in S\), then we say that \(b \in S\) is an inverse of \(a\) if \[a \ast b = e = b \ast a.\]
Let \(\ast\) be an associative binary operation on a set \(S\) with an identity \(e\) and let \(a \in S\). Then an inverse of \(a\), if it exists, is unique.
Proof. Suppose that \(b_1\) and \(b_2\) are inverses of \(a\). Then \[b_1 \ast (a \ast b_2) = b_1 \ast e = b_1,\] and \[(b_1 \ast a) \ast b_2 = e \ast b_2 = b_2.\] By associativity, \(b_1 = b_2\). ◻
If \(\ast\) is an associative binary operation on a set \(S\) with identity \(e\), then the inverse of \(a\) (if it exists) is written \(a^{-1}\).
If we look at the binary operations in Example 2, then we note:
\(+\) on \(\mathbb{R}\) is associative, commutative, has identity \(0\), and \(x^{-1} := -x\) for any \(x\); \(-\) on \(\mathbb{R}\) is not associative or commutative and has no identity; \(\times\) on \(\mathbb{R}\) is associative, commutative, has identity \(1\), and \(x^{-1} := 1/x\) for any nonzero \(x\).
\(\wedge\) on \(\mathbb{R}^3\) is not associative or commutative and has no identity.
\(\min\) on \(\mathbb{N}\) is both associative and commutative but has no identity; \(\max\) on \(\mathbb{N}\) is both associative and commutative and has identity \(0\) (being the least element of \(\mathbb{N}\)), though no positive integer has an inverse.
\(\circ\) is associative but not commutative, with the identity map \(x \mapsto x\) as the identity element, and since permutations are bijections they each have inverses.
Matrix multiplication on \(n \times n\) invertible complex matrices is associative but not commutative, with identity element \(I_n\) and \(A^{-1} := A^{-1}\) (unsurprisingly).
Given a binary operation \(\ast\) on \(S\) and a subset \(T \subseteq S\), we obtain a restriction \[\ast : T \times T \to S,\] which need not, in general, be a binary operation on \(T\). We will naturally be interested in those subsets \(T\) for which \(\ast\) restricts to a binary operation \[\ast : T \times T \to T.\] In this case, \(T\) is said to be closed under \(\ast\).
\(+\) is a binary operation on \(\mathbb{Z}\).
Let \(m \in \mathbb{Z}\). The set \[m\mathbb{Z} = \{ mn : n \in \mathbb{Z} \}\] is closed, with identity \(0\) and inverses.
The set \(\{ n \in \mathbb{Z} : n \ge 1 \}\) is closed under \(+\) but has no identity and no inverses.
Algebra I Courses · Mathematics Department · University Center of El Bayadh Nour El Bachir · 2025/2026