Course of Algebra1 Data Sciences
Course of Algebra1 Data Sciences
A. DJOUMAKH
2 Relations 30
2.0.1 Properties of relations . . . . . . . . . . . . . . . . . . 31
2.0.2 Equivalence relations . . . . . . . . . . . . . . . . . . . 32
2.0.3 Partial and totaL ordered relations . . . . . . . . . . . 37
2.0.4 Bounds . . . . . . . . . . . . . . . . . . . . . . . . . . 38
2.0.5 Comparable and Compatible Elements . . . . . . . . . 39
1
A.DJOUMAKH Algebra 1
4 Polynomial rings 62
4.1 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
4.2 Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
4.3 Polynomial division . . . . . . . . . . . . . . . . . . . . . . . . 63
4.3.1 The Euclidean Algorithm for polynomials . . . . . . . 64
4.3.2 gcd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
4.3.3 Irreducibility . . . . . . . . . . . . . . . . . . . . . . . 65
4.3.4 Bezout theorem . . . . . . . . . . . . . . . . . . . . . . 65
4.4 lcm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
4.5 Factorisation of polynomials . . . . . . . . . . . . . . . . . . . 66
4.5.1 Factor theorem . . . . . . . . . . . . . . . . . . . . . . 66
4.6 Relation between roots and the coefficients of Polynomial . . . 67
4.6.1 Relation between roots and the coefficients of a quadratic
Polynomial . . . . . . . . . . . . . . . . . . . . . . . . 67
4.6.2 Relation between roots and the coefficients of a quadratic
Polynomial . . . . . . . . . . . . . . . . . . . . . . . . 68
2 DS 2023/2024
Chapter 1
Example 3. the angle sum of a triangle equals two right angles. and some
quadratic equations have real solutions.
3
A.DJOUMAKH Algebra 1
p (¬P :∼ P )
T F
F T
4 DS 2023/2024
A.DJOUMAKH Algebra 1
4. P if and only if Q.
5 DS 2023/2024
A.DJOUMAKH Algebra 1
(P → R) ∧ (Q ∨ ¬R)
We can form the true table for this statement, using simple steps, as follows
P Q R ¬R P →R Q ∨ ¬R (P → R) ∧ (Q ∨ ¬R)
T T T F T T T
T T F T F T F
T F T F T F F
T F F T F T F
F T T F T T T
F T F T T T T
F F T F T F F
F F F T T T T
6 DS 2023/2024
A.DJOUMAKH Algebra 1
Idempotent laws
Let P be a proposition. Then
• ¬(¬P ) ≡ P.
• P ∨ P ≡ P, P ∧ P ≡ P.
• P ∨ Q ≡ Q ∨ P, P ∧ Q ≡ Q ∧ P,
• P ⇒ Q ≡∼ P ∨ Q.
• (P ∨ Q) ∨ R ≡ P ∨ (Q ∨ R),
• (P ∧ Q) ∧ R ≡ P ∧ (Q ∧ R).
Distribution laws
Let P, Q and R be propositions. Then
• P ∨ (Q ∧ R) ≡ (P ∨ Q) ∧ (P ∨ R),
• P ∧ (Q ∨ R) ≡ (P ∧ Q) ∨ (P ∧ R).
7 DS 2023/2024
A.DJOUMAKH Algebra 1
Contrapositive
P ⇒ Q ≡∼ Q ⇒∼ P
De Morgan’s laws
Let P and Q be propositions. Then
• ∼ (P ∧ Q) ≡∼ P ∨ ∼ Q,
• ∼ (P ∧ Q) ≡∼ P ∧ ∼ Q.
1.1.4 Quantifiers
Let A be a set. An open sentence on A is an expression, denoted by P (x),
which has the property that P (a) is true or false for each a ∈ A.
Example 20. 1. Let P (x) be “x+3 > 8.” Then P (x) is an open sentence
on N.
2. Let P (x) be “x + 3 > 8.” Then P (x) is not an open sentence on C since
inequalities are not defined for all complex numbers.
Definition 21. Let P (x) be an open sentence on a set A. Then the proposi-
tion (∀x ∈ A) or ∀x, P (x) can be read as “For every element x in A, P (x)
holds” or simply, “For all x, P (x)”.
The symbol ∀, which reads “for all” or “for every”, is called the univer-
sal quantifier
Example 22. The proposition for all natural number n, n + 2 > 5 is false
since
{n : n + 2 > 5} = {4, 5, 6, ...} =
6 N.
Definition 23. Let P (x) be an open sentence on a set A. Then the propo-
sition “∃x ∈ A)P (x)” or “∃x, P (x)” reads “There exists x ∈ A such that
P (x) holds” or simply, “For some x, P (x)”.
The symbol ∃, which reads “there exists” or “for some” or “for at
least”, is called the existential quantifier.
8 DS 2023/2024
A.DJOUMAKH Algebra 1
9 DS 2023/2024
A.DJOUMAKH Algebra 1
Direct proof
The simplest form of proof for a statement of the form P ⇒ Q is the di-
rect proof. First assume that P is true. Produce a series of steps, each
one following from the previous ones, that eventually leads to conclusion Q.
It warrants the name “direct proof” only to distinguish it from other, more
intricate, methods of proof. Direct proof:
Assume P
10 DS 2023/2024
A.DJOUMAKH Algebra 1
..
.
..
.
T heref ore Q
T hus P ⇒ Q.
Example 27. Prove that if x is even integer, then x2 is even.
Proof. Suppose x is an even integer
Then x = 2k for some integer k.
Thus x2 = 4k 2 = 2(2k 2 ) = 2t for some integer t.
Since x2 is twice the integer t, x2 is even.
Proof by Contrapositive
A proof by contrapositive takes advantage of the mathematical equivalence
P ⇒ Q ≡ ¬Q ⇒ ¬P . That is, a proof by contrapositive begins by assuming
that Q is false (i.e., ¬Q is true). It then produces a series of direct implica-
tions leading to the conclusion that P is false (i.e., ¬P is true). It follows that
Q cannot be false when P is true, so P ⇒ Q. Proof by Contrapositive:
Suppose ¬Q.
..
.
..
.
T heref ore ¬P (V ia a direct proof ).
T hus ¬Q ⇒ ¬P.
T heref ore P ⇒ Q.
Example 28. Prove that a2 is even ⇒ a is even.
Proof. Consider the contrapositive
That is,
a is odd ⇒ a2 is odd.
Since a is odd, then a = 2k + 1, for some integer k. Then
a2 = (2k + 1)2
= 4k 2 + 4k + 1
= 2(2k 2 + 2k) + 1
= 2r + 1, whererisaninteger.
11 DS 2023/2024
A.DJOUMAKH Algebra 1
Thus a2 is odd.
So, by contrapositive, if a2 is even, then a is even.
Proof by Contradiction
A proof by contradiction is based on the mathematical equivalence ¬(P ⇒
Q) ≡ P ∧ ¬Q. In a proof by contradiction, one starts by assuming that both
P and ¬Q are true. Then, a series of direct implications are given that lead
to a logical contradiction. Hence, P ∧ ¬Q cannot be true and P ⇒ Q. Proof
by Contradiction:
Suppose ¬P.
..
.
T heref ore Q.
..
.
T heref ore ¬Q.
Hence Q ∧ ¬Q, acontradiction.
Thus P.
Example 29. Prove that x 6= 0 ⇒ x−1 6= 0 as rational numbers
Proof. Consider P : x 6= 0, Q : x−1 6= 0.
We need to show that P ⇒ Q. Suppose ¬(P ⇒ Q) is true.
Since ¬(P ⇒ Q) ≡ P ∧ ¬Q,
then P ∧ ¬Q is true, that is x 6= 0 ∧ x−1 = 0 is true.
Since x∆x−1 = 1 and x−1 = 0 ⇒ x∆x−1 = x∆0 = 0,
then 1 = 0. So, one has (1 = 0) and (1 6= 0).
It contradicts the number equality. Consequently ¬(P ⇒ Q) is false.
Thus P ⇒ Q is true. Hence x 6= 0 ⇒ x−1 6= 0.
Induction
Definition 30. Let P (n) be a logical statement for each n ∈ N. The principle
of mathematical induction states that P (n) is true all n ∈ N if:
12 DS 2023/2024
A.DJOUMAKH Algebra 1
1(1 + 1) 2
• = = 1.
2 2
i.e., the formula is true for n = 1.
Step 2 Now suppose that the formula is true for n and prove that it remains
true for n + 1. In other words, the question is:
n n+1
X n(n + 1) X (n + 1)(n + 2)
i= −→ i= .
i=1
2 i=1
2
The sum for n + 1 may be written as:
Pn+1 Pn
i=1 i = i=1 i + (n + 1)
n(n + 1)
= + (n + 1)
2
n(n + 1) + 2(n + 1)
=
2
(n + 1)(n + 2)
= .
2
So, we have shown that if P (n) is true, then P (n + 1) is true
13 DS 2023/2024
A.DJOUMAKH Algebra 1
a ∈ A.
A, B, C, D, E, · · ·
a, b, c, d, e · · ·
14 DS 2023/2024
A.DJOUMAKH Algebra 1
We call this the tabular form of a set. But if we define a particular set by
stating properties that its elements must satisfy, for example let B be the set
of all odd numbers, then we use a letter, usually x, to represent an arbitrary
element and we write:
B = {x : x is odd},
which reads “B is the set of numbers x such that x is odd”. We call this the
builder form of a set.
Remark 33. i The set with no elements and is called an empty set. noted
∅.
1.2.1 subsets
F ⊆ E ⇐⇒ (∀x)((x ∈ F ) ⇒ (x ∈ E)).
15 DS 2023/2024
A.DJOUMAKH Algebra 1
P (A) = {B : B ⊆ A}.
P (M ) = {∅, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, M }.
A ∪ B = {x ∈ E | (x ∈ A) ∨ (x ∈ B)}
That is, x ∈ A ∪ B ⇔ x ∈ A ∨ x ∈ B.
A ∪ B = {1, 2, 3, 4, 6, 9}.
2. A ⊆ B ⇔ A ∪ B = B.
Proof. 1. Let x ∈ A, then
x∈A ⇒ x∈A∨x∈B
⇒ x ∈ A ∪ B.
16 DS 2023/2024
A.DJOUMAKH Algebra 1
1.3.2 Intersection
Definition 41. If A and B are sets. The inter-
section of A and B, denoted by A ∩ B, is defined
by
A ∩ B = {x ∈ E | (x ∈ A) ∧ (x ∈ B)}
That is,
x ∈ A ∩ B ⇔ x ∈ A ∧ x ∈ B.
Example 42. Let A = {x ∈ N : x ≤ 6}, B = {x : x is a prime number and ≤
6}. Then
A ∩ B = {1, 2, 3, 4, 5, 6} ∩ {2, 3, 5} = {2, 3, 5}
Definition 43. Let A, B be sets. We say that A and B are disjoint iff
A∩B =∅
Example 44. Let A = {x ∈ N : x is an odd number} and B = {x ∈ N :
x is an even number}.
Since A ∩ B = ∅, then A and B are disjoint. But A ∩ N 6= ∅, thus A and N
are not disjoint.
17 DS 2023/2024
A.DJOUMAKH Algebra 1
1. A ∩ B ⊆ A and A ∩ B ⊆ B,
2. A ⊆ B ⇔ A ∩ B = A.
1. A ∩ A = A (Idempotent law),
2. A ∩ B = B ∩ A (Commutative law),
3. A ∩ (B ∩ C) = (A ∩ B) ∩ C (Associative law).
4. A ∩ ∅ = ∅,
x ∈ A ∩ (B ∩ C) ⇔ x ∈ A ∧ x ∈ (B ∩ C)
⇔ x ∈ A ∧ (x ∈ B ∧ x ∈ C)
⇔ (x ∈ A ∧ x ∈ B) ∧ x ∈ C
⇔ x ∈ (A ∩ B) ∧ x ∈ C
⇔ x ∈ (A ∩ B) ∩ C.
Thus A ∩ (B ∩ C) = (A ∩ B) ∩ C.
Theorem 5 (Distributive law). Let A,B, and C be sets. Then
1. A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C),
2. A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C).
1. A ⊆ B ⇔ P (A) ⊆ P (B),
18 DS 2023/2024
A.DJOUMAKH Algebra 1
COMPLEMENT OF SET
/ A} = AC = A.
E \ A = {x ∈ E | x ∈
A = {2, 4, 6, 8, ...}.
Then
AC = {1, 3, 5, 7, ...}.
Theorem 7. Let A and B be sets. Then
A ⊆ B ⇒ B C ⊆ AC .
Hence B C ⊆ AC .
Proposition 48. Let A be a set. Then
(AC )C = A.
x ∈ (AC )C ⇔ x ∈
/ AC
⇒ x ∈ A.
Thus (AC )C = A.
19 DS 2023/2024
A.DJOUMAKH Algebra 1
Or
A − B = {x, x ∈ A and x ∈
/ B}.
Remark 50.
A \ B = A ∩ BC .
Example 51. Let A and B be sets. Then
A − B = B C − AC .
Proof. We have
x∈A−B ⇔ x∈A∧x∈ /B
/ A ∧ x ∈ BC
⇔ x∈ C
⇔ x ∈ B C − AC .
Thus A − B = B C − AC .
Theorem 8. Let A be a set. Then
1. E C = ∅,
2. ∅C = E,
3. A ∩ AC = ∅,
4. A ∪ AC = E.
Theorem 9. Let A and B be sets. Then
1. (A ∪ B)C = AC ∩ B C
2. (A ∩ B)C = AC ∪ B C ,
Proof. 1. We have
x ∈ (A ∪ B)C ⇔ x∈/ A∪B
⇔ x∈ / A∧x∈ /B
⇔ x ∈ AC ∧ x ∈ B C
⇔ x ∈ AC ∩ B C .
Thus (A ∪ B)C = AC ∩ B C .
20 DS 2023/2024
A.DJOUMAKH Algebra 1
2. Exercise
and [
Fi = {x ∈ E | (∃i ∈ N)(x ∈ Fi )}.
i∈N
Example 53. Let Bn = [0, 1/n], where n ∈ N∗ . Then
[
Bi = [0, 1],
i∈N
and
\
Bi = {0}.
i∈N
A∆B = (A \ B) ∪ (A \ B) = (A ∪ B) \ (A ∩ B).
21 DS 2023/2024
A.DJOUMAKH Algebra 1
R × R = {(x, y) : x, y ∈ R} = R2 .
χA : X → 0, 1,
is defined by
1 if x ∈ A
χ(x) =
0 if x ∈
/ A.
22 DS 2023/2024
A.DJOUMAKH Algebra 1
1.4.2 Graph
The graph of a function f is the set of all points in the plane of the form
(x, f (x)). We could also define the graph of f to be the graph of the equation
y = f (x). So, the graph of a function if a special case of the graph of an
equation.
G(f ) = {(x, f (x)) | x ∈ E}
is a subset of E × F .
Example 59. For example, if f : R → R, then the graph of f is the usual
set of points (x, y) with y = f (x) in the Cartesian plane R2 . Since a function
is defined at every point in its domain, there is some point (x, y) ∈ Gf for
every x ∈ X, and since the value of a function is uniquely defined, there is
exactly one such point. In other words, for each x ∈ X the “vertical line”
Lx = {(x, y) ∈ X × Y : y ∈ Y } through x intersects the graph of a function
f : X → Y in exactly one point: Lx ∩ Gf = (x, f (x)).
Definition 60. The range, or image, of a function f : X → Y is the set
of values
ranf = {y ∈ Y : y = f (x) f or some x ∈ X}.
A function is onto if its range is all of Y ; that is, if for every y ∈ Y there
exists x ∈ X such that y = f (x).
23 DS 2023/2024
A.DJOUMAKH Algebra 1
g◦f :A→C
h ◦ (g ◦ f ) = (h ◦ g) ◦ f,
noted by h ◦ g ◦ f .
Proof. x ∈ E, (h ◦ (g ◦ f ))(x) = h((g ◦ f (x))) = h(g(f (x))) = (h ◦ g)(f (x)) =
((h ◦ g) ◦ f )(x).
24 DS 2023/2024
A.DJOUMAKH Algebra 1
1. f (A ∪ B) = f (A) ∪ f (B),
2. f (A ∩ B) ⊆ f (A) ∩ f (B),
3. f (A − B) ⊇ f (A) − f (B).
25 DS 2023/2024
A.DJOUMAKH Algebra 1
Remark 74. Note that, even though the inverse images are expressed under
the symbol f −1 , this symbol does not mean the inverse function of f . It is
simply used pure symbolically. Even if f is not invertible, one can define and
write the corresponding inverse images as above.
Remark 75. A ⊂ f −1 (f (A)) For all subset A of E
and
f (f −1 (B)) ⊂ B For all subset B de F.
Example 76. Let f : R → R defined by f (x) = x2 . Find
1. f −1 (A ∪ B) = f −1 (A) ∪ f −1 (B),
2. f −1 (A ∩ B) = f −1 (A) ∩ f −1 (B),
3. f −1 (A − B) = f −1 (A) − f −1 (B).
26 DS 2023/2024
A.DJOUMAKH Algebra 1
3. f : R → R+ , x 7→ x2 is one-to-one function.
Rng(f ) = F.
In other words, “ f is onto function” if and only if
∀y ∈ F, ∃x ∈ E/f (x) = y.
onto function
since if y = 2 the equation f (x) = 2 ⇔ x = 2(1 + x2 )then x2 − x + 1 = 0
which has no real solutions
1.4.9 Bijection
Definition 82. A function f : E → F , which is both one-to-one and onto is
called a bijection, or an one–one correspondence.
27 DS 2023/2024
A.DJOUMAKH Algebra 1
and
B = {2n|n is an integer},
and let f (x) = 2x, and g(x) = x + 1. The function f : A → B is not
a bijection, because it is not onto, meanwhile, the function g : A → Bis a
bijection, since it is both one-to-one and onto.
Definition 84. Let f : E → F be a bijective function. The inverse function
of f is f −1 : F → E defined by
(f (x) = y) ⇔ (x = f −1 (y)).
Example 85. Let the function f : [1, +∞[→ [0, +∞[ telle que f (x) = x2 −1.
we have
i f is one-to-one: f (x) = f (y) ⇒ x2 − 1 = y 2 − 1 ⇒ x = ±y where x, y ∈
[1, +∞[ then x, y have the same sign ⇒ x = y.
2. f ◦ f −1 = IB ,
where IA and IB are the identity functions on A, respectively, on B.
Theorem 12. Let E, F, G be nonempty sets,
and let f : E → F and g : F → G be functions. If f and g are invertible,
then g ◦ f : E → G is invertible and
(g ◦ f )−1 = f −1 ◦ g −1 .
Proof. To show that the inverse is equal to f −1 ◦ g−1, we just need to show
that the following two compositions are identity maps:
(g ◦ f ) ◦ (f −1 ◦ g −1 ) = IG
(f −1 ◦ g −1 ) ◦ (g ◦ f ) = IE
28 DS 2023/2024
A.DJOUMAKH Algebra 1
(g ◦ f ) ◦ (f −1 ◦ g −1 ) = g ◦ (f ◦ (f −1 ◦ g −1 ))
= g ◦ ((f ◦ f −1 ) ◦ g −1 )
= g ◦ (IF ◦ g −1 )
= g ◦ g −1
= IG .
(f −1 ◦ g −1 ) ◦ (g ◦ f ) = f −1 ◦ (g −1 ◦ (g ◦ f ))
= f −1 ◦ ((g −1 ◦ g) ◦ f )
= f −1 ◦ (IF ◦ F )
= f −1 ◦ f
= IE .
29 DS 2023/2024
Chapter 2
Relations
A × B = {(1, 4), (2, 4), (3, 4), (1, 5), (2, 5), (3, 5)}
and
B × A = {(4, 1), (4, 2), (4, 3), (5, 1), (5, 2), (5, 3)}
Definition 88. 1. Two ordered pairs are equal, if and only if the corre-
sponding first elements are equal and the second elements are also equal,
i.e. (x, y) = (u, v) if and only if x = u and y = v.
30
A.DJOUMAKH Algebra 1
describing a relationship between the first element and the second element of
the ordered pairs in A × B.
R is a relation in A iff R is a subset of the Cartesian product A × A, written
as R ⊆ A × A.
The set of all first elements in a relation R, is called the domain of the
relation R, and the set of all second elements called images, is called the
range of R.
dmnR = {x : f orsomey, (x, y) ∈ R}
and we let
rngR = {y : f orsomex, (x, y) ∈ R};
Definition 90. Inverse relation: Let R be a relation from the set A to the
sat B, then the inverse relation R−1 from the set B to the set B is defined by:
• Let A = {1, 2, 3}, B = {a, b} and R = {(1, a), (1, b), (3, a), (2, b)} be the
relation from A to B. Then inverse relation is: R−1 = {(a, 1), (b, 1), (a, 3), (b, 2)}
31 DS 2023/2024
A.DJOUMAKH Algebra 1
Rm = {(a, b) : a ≡ b(modm)}
a = c + ml + mk = c + m(l + k).
2. Symmetry: If xRy, then x and y have the same parity. Thus y and x
have the same parity, and hence yRx.
3. Transitivity: If xRy, then x and y have the same parity. If yRz, then
y and z have the same parity. Since y has only one parity, we can thus
conclude that x and z have the same parity, so xRz.
32 DS 2023/2024
A.DJOUMAKH Algebra 1
Example 97. Let R be the relation on the set R real numbers defined by
xRy if f x − y is an integer. Prove that R is an equivalence relation on
R.
Proof. • Reflexive: Suppose x ∈ R. Then x − x = 0 ∈ Z, which is an
integer. Thus, xRx.
Equivalence classes
Definition 98. 1. Let R be an equivalence relation on A and let a ∈ A.
The set
[a] = x = cl(x) = {x ∈ A|aRx}
is called the equivalence class of a.
2. The element in the bracket in the above notation is called the Repre-
sentative of the equivalence class.
Example 99. 1. [0] = Z, the set of integers.
1 m
2. [ ] = { |m is an odd integer}
2 2
3. [π] = {π + n|n is an integer } = [π + n], for any integer n.
Theorem 13 (Properties of equivalence classes). Let R be an equivalence
relation on a set A and let a, b ∈ A. Then
1. a ∈ [a]
33 DS 2023/2024
A.DJOUMAKH Algebra 1
aRa, ∀a ∈ A.
Thus a ∈ [a].
2. Suppose that b ∈ [a] and let x ∈ [b]. Then x ∈ [b] ⇒ (x, b) ∈ R. Since
b ∈ [a], then (b, a) ∈ R. Hence (x, b) ∈ R ∧ (b, a) ∈ R ⇒ (x, a) ∈ R (since R
is transitive), ⇒ x ∈ [a]. Thus
[a] = [b].
a ∈ [a].
34 DS 2023/2024
A.DJOUMAKH Algebra 1
Thus,
[a] ⊆ [b]. (2.3)
By the same manner, we prove that
[a] = [b].
(4.) Suppose that [a] ∩ [b] 6= ∅, and let x ∈ [a] ∩ [b]. Then
x ∈ [a] ∩ [b] ⇒ x ∈ [a] ∧ x ∈ [b]
⇒ (x, a) ∈ R ∧ (x, b) ∈ R
⇒ (x, b) ∈ R ∧ (x, a) ∈ R
⇒ (b, x) ∈ R ∧ (x, a) ∈ R( since R is symmetric)
⇒ (b, a) ∈ R( since R is transitive)
⇒ (a, b) ∈ R( since R is symmetric)
⇒ [a] = [b](see part (3))
Partition
Definition 100. Let {Ai }i∈I be a family of nonempty subsets of A. Then
{Ai }i∈I is called partition of A iff
1. Ai ∩ Aj = ∅ ∨ Ai = Aj
S
2. A = Ai .
35 DS 2023/2024
A.DJOUMAKH Algebra 1
x ∈ Ai ∧ x ∈ Ai ⇒ (x, x) ∈ R.
y ∈ [x] ⇒ y ∈ Ai .
36 DS 2023/2024
A.DJOUMAKH Algebra 1
Then
z ∈ Ai ∧ x ∈ Ai
⇒ (z, x) ∈ R
⇒ z ∈ [x].
Consequently,
z ∈ Ai ⇒ z ∈ [x],
that is Ai ⊆ [x]. Hence Ai = [x].
Definition 102. Let R be an equivalence relation on A. The quotient set of
A modulo R is
A/R = {cl(a)|a ∈ A}.
Example 103.
37 DS 2023/2024
A.DJOUMAKH Algebra 1
2.0.4 Bounds
Least and Greatest Elements
Definition 108. Let (A, ≤) be a poset.
Theorem 16. A poset (A, ≤) can have at most one least element and at
most one greatest element. That is, least and greatest elements are unique,
if they exist.
38 DS 2023/2024
A.DJOUMAKH Algebra 1
39 DS 2023/2024
Chapter 3
ALGEBRAIC STRUCTURES:
Groups,Rings and Fields
3.1 Groups
Definition 114 (Operation). Let G be a set. An operation on G is a map
from G × G to G, i.e. a map that takes as input two elements of G and
returns an element of G
The binary operator ∗ is said to be a binary operation (closed operation)
on a non-empty set G, if
a ∗ b ∈ G for all a, b ∈ G (Closure property).
Remark 115. A set G with one or more binary(closed) operations defined
on it is called an algebraic system.
Such a map is usually not written as a function, in the form f (a, b), but
rather in the form a ? b (similar to how we usually write sum or product). Of
course, we may use other symbols than ? as ∗, +, >, ⊥, ◦., × . . .
Example 116. • + is an operation on R.
• × is an operation on R.
40
A.DJOUMAKH Algebra 1
× 0 1
0 0 0
1 0 1
Groupes
Definition 117. A group is a set G together with an operation ∗ on G
that has the following properties:
On dira que la loi ∗ définit une structure de groupe sur un ensemble non
vide G si :
∀x ∈ E x ∗ e = e ∗ x = x
x∗y =y∗x=e
An element which admits an inverse is said to be invertible
∀x, y ∈ G, x ∗ y = y ∗ x
41 DS 2023/2024
A.DJOUMAKH Algebra 1
g ∗ g0 = e
(i.e., a has only one inverse, i.e., if a has 2 inverses then they are
equal);
ae = ea = a f or every a ∈ G. (3.1)
af = f a = a f or every a ∈ G. (3.2)
The trick is to look at ef and compute it in two ways: Once using that
e is a neutral element, once using that f is a neutral element.
If we use that e is a neutral element, we get ef = f (take a = f in line
3.1 above). If we use that f is a neutral element we get ef = e (take
a = e in line 3.2 above). Therefore e = f .
c = b.
42 DS 2023/2024
A.DJOUMAKH Algebra 1
5. This one is left as an exercise. You can either apply result 4. above
n − 1 times, or prove it directly using the same method as in 4.
• e−1 = e
Proof. We prove the first first statement and leave the second as an exercise.
The elements au and aw are equal, so they stay equal if we multiply both on
the left by a−1 : a−1 au = a−1 aw. But a−1 a = e, so eu = ew and thus u = w.
au = wa 6= u = w,
is the power of a
43 DS 2023/2024
A.DJOUMAKH Algebra 1
−1
If n > 0, then an = a · · ∗ a}, and if n < 0 then, an = a
| ∗ ·{z · · ∗ a−1}.
| ∗ ·{z
n fois n fois
n
Example 123. • e = e, ∀n ∈ Z.
• If ab = ba,then (ab)n = an bn , ∀n ∈ Z.
• ap ∗ aq = ap+q
• (ap )q = apq
Proof. Montrons juste le premier point, nous verrons plus tard comment en
déduire le second.
ap ∗ aq = a ∗ (ap−1 ∗ aq ) = a ∗ an = a ∗ an+1
44 DS 2023/2024
A.DJOUMAKH Algebra 1
3.1.2 Subgroups
Definition 125. A non empty sub set H of a group (G, ∗) is a sub group of
G, if (H, ∗) is a group.
Remark 126. For any group (G, ∗), (e, ∗) and (G, ∗) are trivial sub groups.
Theorem 17. A non empty sub set H of a group (G, ∗) is a sub group of G
iff
1. a ∗ b ∈ H, ∀a, b ∈ H,
2. a−1 ∈ H, ∀a ∈ H,
Proposition 127. A necessary and sufficient condition for a non empty
subset H of a group (G, ∗) to be a sub group is that
∀a, b ∈ H, a ∗ b−1 ∈ H.
45 DS 2023/2024
A.DJOUMAKH Algebra 1
• Further, a ∈ H, b ∈ H ⇒ a ∈ H, b−1 ∈ H
⇒ a ∗ (b−1 )−1 ∈ H.
⇒ a ∗ b ∈ H. H is closed w.r.t ∗ .
• Finally, Let a, b, c ∈ H
⇒ a, b, c ∈ G ( since H ⊆ G )
⇒ (a ∗ b) ∗ c = a ∗ (b ∗ c)
i.e ∗ is associative in H
Hence, H is a subgroup of G.
• On a clairement 1 ∈ U.
|x|
• Soit x et x0 dans U. On a |xx0−1 | = |x0 |
= 1 et xx0 ∈ U.
Ce groupe est appelé groupe unimodulaire.
46 DS 2023/2024
A.DJOUMAKH Algebra 1
47 DS 2023/2024
A.DJOUMAKH Algebra 1
3.1.4 Homomorphism
Definition 133. Let (G, ∗) and (G0 , >) be groups. A function f : G 7→ G0
is called homomorphisme from G to G0 if
∀(x, y) ∈ G2 f (x ∗ y) = f (x)>f (y)
If G = G0 , f is called endomorphisme,
Definition 134. Isomorphism : If a homomorphism f : G → G0 is
a bijection then f is called isomorphism between G and G’. Then we write
G ' G0 and we said that G and G’ are isomorphe.
If f is an endomorphisme and isomorphisme ,f is called automorphisme.
Example 135. Let R be a group of all real numbers under addition + and R+
be a group of all positive real numbers under multiplication ·. Show that the
mapping f : R → R+ defined by f (x) = 2x for all x ∈ R is an isomorphism.
Solution: First, let us show that f is a homomorphism. Let a, b ∈ R . Now,
f (a + b) = 2a+b = 2a 2b = f (a)f (b).
Then f is an homomorphism.
Next, let us prove that f is a Bijection. For any a, b ∈ R, Let, f (a) = f (b) ⇔
2a = 2b ⇒ a = b.
Then f is one-to-one (injective).
Next, take any c ∈ R+ . Then log2 c ∈ R and f (log2 c) = 2log2 c = c. Then
every element in R+ has a pre image in R. i.e., f is onto (surjective).Thus f
is a bijection. Hence, f is an isomorphism.
Example 136. The function ϕ : (R, +) → (R, +) defined by ϕ(x) = −7x is
a homomorphisme, we have
ϕ(x + y) = −7(x + y) = −7x − 7y = ϕ(x) + ϕ(y)
Theorem 18. Consider the groups (G, ∗) and (G0 , ⊕) with identity elements
e and e’ respectively. If f : G → G0 is a group homomorphism, then
1. f (e) = e0
2. f (a−1 ) = [f (a)]−1
3. If H is a sub group of G, then f (H) is a sub group of G’.
4. If f is an isomorphism from G onto G’, then f −1 is an isomorphism
from G onto G’.
Proposition 137.
Let φ be a morphisme from (G, ∗) to (G0 , ∗0 ). Then
∀p ∈ Z ∀x ∈ G φ(x)p = φ(xp )
48 DS 2023/2024
A.DJOUMAKH Algebra 1
• The
{x ∈ G; f (x) = e0G }
is called Kernel of f and is denoted by ker(φ)
• The set
Imf = {f (x), x ∈ G}
is called image of φ and we have Im(φ) = φ(G).
1. f is injective.
2. ker(f ) = {eG }
Remark 142. We will therefore never use the classic definition of injectivity
to demonstrate the injectivity of a group morphism.
49 DS 2023/2024
A.DJOUMAKH Algebra 1
Proof. (1) ⇒ (2) : we already know that eG ∈ ker(f ), i.e {eG } ⊂ ker(f ).
Let’s show that ker(f ) ⊂ {eG }. Let x ∈ ker(f ), then f (x) = e0G = f (eG ), but
the function f is injective, then x = eG , i.e x ∈ {eG },hence the inclusion.
(2) ⇒ (1) : f (x) = f (y) ⇒ f (x) ∗ (f (y))−1 = e0G , but (f (y))−1 = f (y −1 ) ,
we therefore obtain e0G = f (x) ∗ (f (y))−1 = f (x) ∗ f (y −1 ) = f (x⊥y −1 ), which
means x⊥y −1 ∈ ker(f ) = {eG }, then x⊥y −1 = eG , and after multiplication
to the right of both members of this equality by y, we obtain (x⊥y −1 )⊥y =
eG ⊥y.
But because (x⊥y −1 )⊥y = x⊥(y −1 ⊥y) = x⊥eG = x et eG ⊥y = y, we
therefore obtainx = y, i.e the function f is injective.
Proposition 143. Let φ a morphism betewen (G, .) and (G0 , .). Then
Proof. exercise
50 DS 2023/2024
A.DJOUMAKH Algebra 1
This is the smallest (in the sense of inclusion) subgroup of (G, .) contain-
ing A.
Example 146. • < e >= {e}
• < G >= G
• Suppose that n 6= 0.
{e, a, . . . an−1 }is trivially included in < a >.
We have an = e. Let p ∈ Z.We can write by Euclidean division of p by
n, p = nq + r, with 0 ≤ r < n.
We then have ap = anq+r = (an )q ar = eq ar = ar ∈ {e, a, . . . an−1 },
hence the reciprocal inclusion.
51 DS 2023/2024
A.DJOUMAKH Algebra 1
We will note G/Hthe set G/R the equivalence classes of the relation R
on G.
Proposition 150. Let (G, ·) be a group, H is a subgroup of G and R the
relation defined on G by
xRy ⇔ x−1 · y ∈ H
xH = {xh; h ∈ H}.
xRy ⇔ y · x−1 ∈ H.
Hx = {hx; h ∈ H}
52 DS 2023/2024
A.DJOUMAKH Algebra 1
xRy ⇔ x−1 y ∈ H.
Théorème de Lagrange
Theorem 21 (Théorème de Lagrange). Soit (G, ·) un groupe fini, H un
sous-groupe de G, alors le cardinal |H| de H divise le cardinal |G| de G.
On notera |G/H| ou encore [G : H] le nombre |G|/|H|. Ce nombre |G|/|H|
s’appelle l’indice de H dans G.
Proof. On considère la relation d’équivalence R définie par : xRy ⇔ x−1 y ∈
H. Les ensembles xH,x ∈ G, forment une partition de G qui est fini, donc il
existe n ∈ N et x1 , · · · , xn ∈ G tels que {x1 H, · · · , xn H} forme une partition
de G. Comme les ensembles x1 H, · · · , xn H ont tous le même cardinal que H
, il s’en suit que |G| = |x1 H| + · · · + |xn H| = n|H|.
xRy ⇔ y − x ∈ nZ
53 DS 2023/2024
A.DJOUMAKH Algebra 1
b∈a ⇔ b − a ∈ nZ
⇔ ∃k ∈ Z tq b − a = kn
⇔ ∃k ∈ Z tq b = a + kn
⇔ b ∈ a + nZ
a = kn + r, avec 0 ≤ r < n.
On a :
α=a=r avec 0 ≤ r < n.
Si r = r0 , r et r0 ont le même reste dans la division par n, et comme 0 ≤ r < n
et 0 ≤ r0 < n, on a r = r0 . Donc si r 6= r0 , alors r 6= r0 et les n classes sont
distinctes, d’où card(Z/nZ) = n.
3.2 Rings
3.2.1 Definitions and properties
Definition 158. Let R be a nonempty set and let + and ∆ be two closed
binary operations defined on R. The ordered triple (R, +, ∆) is called a ring
if the following conditions (ring axioms) arc satisfied.
• × is associative:
54 DS 2023/2024
A.DJOUMAKH Algebra 1
• × is distributive on + :
∀(x, y, z) ∈ R3 x × (y + z) = x × y + x × z et (y + z) × x = y × x + z × x
ab = ba.∀a, b ∈ R
ea = ae = a, ∀a ∈ R.
55 DS 2023/2024
A.DJOUMAKH Algebra 1
+ 0 1 . 0 1
0 0 1 0 0 0
1 1 0 1 0 1
is a ring.
∀x ∈ R 0.x = x.0 = 0
•
∀(x, y) ∈ R2 (−x).y = −(x.y) = x.(−y)
• (R, +, ×), (C, +, ×), (Z, +, ×) are integral rings (ils sont des anneaux
intègres).
56 DS 2023/2024
A.DJOUMAKH Algebra 1
and
X X
( ai )x = ai x
i∈I i∈I
Proof.
By trivial induction on the cardinal of I.
Especially,
n−1
X
n
a − 1 = (a − 1) ai
i=0
Proof.
We show this property using a simple calculation:
n−1
X n−1
X n−1
X n
X Xn−1
i n−i−1 i+1 n−i−1 i n−i i n−i
(a−b) ab = a b − ab = ab − ai bn−i = an −bn
i=0 i=0 i=0 i=1 i=0
Proposition 169.
Let (a, b) ∈ R2 two elements which commute (i.e. ab=ba). Let n ∈ N.
Then
57 DS 2023/2024
A.DJOUMAKH Algebra 1
n
n
X n i n−i
(a + b) = ab
i=0
i
Proof.
By induction on n.
3.2.4 Subrings
As in the case of groups, we· give a name to subsets of a ring which are
themselves rings
Definition 170. Let R be a ring. A nonempty subset B of R is called a
subring of R if S itself is a ring with respect to the operations on R.
Proposition 171. Let (R, +, ∆) be a ring and let B be a nonempty suhset
of R. Then (B, +, ∆) is a subring of R if and only if
• ∀a, b ∈ B, a.b ∈ B
Example 172.
58 DS 2023/2024
A.DJOUMAKH Algebra 1
• (S0 (R), +, ×) –the set of sequences with zero limit is a subring of (§, +, ×).
Proof.
Let φ be a morphism from (R, +, ×) dans (R0 , +0 , ×0 )
59 DS 2023/2024
A.DJOUMAKH Algebra 1
• ∀(z, z 0 ) ∈ C 2 z + z 0 = z + z 0
• ∀(z, z 0 ) ∈ C 2 zz 0 = zz 0
3.3 Fields
Definition 176. Let K 6= ∅ be a ring with identity. Then K is a field if
every non-zero element is a unit.
That is, in a field we can “divide” by everything except 0.
Definition 177. A structure (K, +, .), where + and . are binary operations
on K is a field if the following axioms hold,
• (K × = K \ {0}, .) is a group;
60 DS 2023/2024
A.DJOUMAKH Algebra 1
3.3.1 Subfield
Definition 179. Let K be a field. A nonempty subset F of K is called a
subfield of K if F itself is a field with respect to the operations on K.
Proposition 180. Let (K, +, ∆) be a field and let F be a nonempty suhset
of K. Then (F, +, ∆) is a subfield of K if and only if
• (F × , .) is a subgroup (K × , .)
61 DS 2023/2024
Chapter 4
Polynomial rings
4.1 Definitions
Definition 182. A polynomial in x is an expression obtained by taking pow-
ers of x, multiplying them by constants, and adding them. It can be written
in the form
4.2 Operations
Addition:Polynomials can be added (or subtracted) simply by adding (or
subtracting) the corresponding terms.
62
A.DJOUMAKH Algebra 1
P = Q ⇔ ∀iai = bi
Definition 187. • The polynomial q(x) is called the quotient, and r(x)
is called the remainder, obtained on dividing f(x) by g(x).
• If r(x) = 0, then f (x) = g(x)q(x). In this case, we say that g(x) divides
f(x), or that g(x) is a factor of f(x), or that f(x) is divisible by g(x).
We write g(x)|f (x) for ”g(x) divides f(x)”, and g(x) - f (x) for ”g(x)
does not divide f(x)”.
Let us apply the division algorithm in a few situations now.
Example 188. Find the quotient and remainder obtained on dividing x4 +
x3 + 5x2 − x by x2 + x + 1 in Q[x].
63 DS 2023/2024
A.DJOUMAKH Algebra 1
x3 +x2 −1 x −1
−x3 +x2 x2 +2x +2
2x2
−2x2 +2x
2x
−2x +2
+1
Now, since deg(+1) = 0 < deg(x−1), we stop the process. So, the remainder
r(x) = +1. So, we get
x3 + x2 − 1 = (x2 + 2x + 2)(x + 1) + 1.
4.3.2 gcd
Proposition 189. Let A, B ∈ K[x], with A 6= 0 or B 6= 0. There exists a
unique unit polynomial of greatest degree which divides both A and B.
Definition 190. This unique polynomial is called the gcd (greatest common
divisor) of A and B which we note gcd(A, B).
64 DS 2023/2024
A.DJOUMAKH Algebra 1
X4 − 1 = (X 3 − 1) × X + X − 1
X 3 − 1 = (X − 1) × (x2 + x + 1) + 0
4.3.3 Irreducibility
Definition 193. The polynomial p(x) ∈ K[x] is said to be irreducible if it
cannot be factorised into polynomials of lower degree:
AU + BV = 1.
65 DS 2023/2024
A.DJOUMAKH Algebra 1
4.4 lcm
Proposition 198. Let A, B ∈ K[x] be non-zero polynomials, then there exists
a unique unit polynomial M of smallest degree such that A|M and B|M.
Definition 199. This unique polynomial is called the ppcm (smallest com-
mon multiple) of A and B which we note ppcm(A, B).
where the Pi are distinct unitary and irreducible polynomials in K[x] and
β ∈ K∗ is the leading term of P.
Example 201. We consider the polynomial P = X 2 + 1. Then P is in both
R[X] and C[X]. But, be careful, its factorization is not the same in these
two rings:
2. P is irreducible in R[x].
fP K → K
x 7→ P (x)
66 DS 2023/2024
A.DJOUMAKH Algebra 1
Definition 204. Let P ∈ K[X] and let α be a root of P . We say that α has
multiplicity k if and only if (X − α)k divides P and (X − α)k+1 - P.
In other words α is the root of P of multiplicity k if and only if P =
(X − α)k Q and Q(α) 6= 0.
1. α is a root of multiplicity k.
ax2 + bx + c = 0 (4.1)
67 DS 2023/2024
A.DJOUMAKH Algebra 1
(x − α)(x − β) = 0
then
x2 − (α + β)x + (αβ) = 0 (4.2)
From equation (4.1) we have;
b c
x2 + x + = 0. (4.3)
a a
Comparing (4.2) and (4.3) we get following relations.
b
α+β = −
ca
αβ =
a
In particular:
Pn −an−1
σ1 = i=1 λi =
an
P an−2
σ2 = 1≤i≤j≤n λi λj =
an
Qn a0
σn = i=1 λi = (−1)n
an
68 DS 2023/2024