Cub11k's BIU Notes
Cub11k's BIU Notes
Assignments
Discrete-math
Discrete-math 1
Discrete-math 10
Discrete-math 11
Discrete-math 12
Discrete-math 2
Discrete-math 3
Discrete-math 4
Discrete-math 5
Discrete-math 6
Discrete-math 7
Discrete-math 8
Discrete-math 9
Infi-1
Infi-1 10
Infi-1 11
Infi-1 2
Infi-1 3
Infi-1 4
Infi-1 5
Infi-1 6
Infi-1 7
Infi-1 8
Infi-1 9
Linear-1
Linear-1 1
Linear-1 10
Linear-1 11
Linear-1 12
Linear-1 2
Linear-1 3
Linear-1 4
Linear-1 5
Linear-1 6
Linear-1 7
Linear-1 8
Linear-1 9
Linear-2
Linear-2 1
Lectures
Data-structures
Data-structures 1
Data-structures 2
Data-structures 3
Discrete-math
Discrete-math 10
Discrete-math 11
Discrete-math 12
Discrete-math 13
Discrete-math 14
Discrete-math 15
Discrete-math 16
Discrete-math 18
Discrete-math 19
Discrete-math 20
Discrete-math 21
Discrete-math 22
Discrete-math 23
Discrete-math 24
Discrete-math 25
Discrete-math 26
Discrete-math 3
Discrete-math 4
Discrete-math 5
Discrete-math 6
Discrete-math 7
Discrete-math 8
Discrete-math 9
Exam 2023 (2A)
Exam 2023 (2B)
Exam 2023 (A)
Exam 2023 (B)
Exam 2023 (C)
Exam 2024 (A)
Exam 2024 (B)
Exam 2024 (C)
Midterm
Infi-1
Exam 2022B (A)
Exam 2022B (B)
Exam 2023B (A)
Exam 2023B (B)
Exam 2024 (A)
Exam 2024 (B)
Exam 2025 (A)
Infi-1 10
Infi-1 12
Infi-1 13
Infi-1 14
Infi-1 15
Infi-1 16
Infi-1 17
Infi-1 19
Infi-1 20
Infi-1 21
Infi-1 22
Infi-1 23
Infi-1 24
Infi-1 25
Infi-1 26
Infi-1 5
Infi-1 6
Infi-1 7
Infi-1 9
Midterm
Theorems and proofs
Infi-2
Infi-2 1
Infi-2 10
Infi-2 11
Infi-2 12
Infi-2 13
Infi-2 14
Infi-2 15
Infi-2 16
Infi-2 17
Infi-2 2-3
Infi-2 3-4
Infi-2 5
Infi-2 6
Infi-2 7
Infi-2 8
Infi-2 9
Linear-1
Exam 2023 (B)
Exam 2023 (C)
Exam 2024 (A)
Exam 2024 (B)
Exam 2024 (C)
Exam 2025 (A)
Linear-1 11
Linear-1 12
Linear-1 13
Linear-1 4
Linear-1 5
Linear-1 6
Linear-1 7
Linear-1 8
Linear-1 9
Midterm
Random exams
Theorems and proofs
Linear-2
Linear-2 1
Linear-2 2
Linear-2 3
Linear-2 4
Linear-2 5
Linear-2 6
Linear-2 7
Linear-2 8
Seminars
CSI
CSI 2
Data-structures
Data-structures 1
Data-structures 2
Data-structures 3
Discrete-math
Discrete-math 1
Discrete-math 10
Discrete-math 11
Discrete-math 12
Discrete-math 2
Discrete-math 3
Discrete-math 4
Discrete-math 5
Discrete-math 6
Discrete-math 7
Discrete-math 8
Discrete-math 9
Infi-1
Infi-1 10
Infi-1 11
Infi-1 12
Infi-1 13
Infi-1 3
Infi-1 4
Infi-1 5
Infi-1 6
Infi-1 8
Infi-2
Infi-2 1
Infi-2 2
Infi-2 3
Infi-2 4
Infi-2 6
Infi-2 7
Infi-2 8
Linear-1
Linear-1 10
Linear-1 11
Linear-1 12
Linear-1 3
Linear-1 5
Linear-1 6
Linear-1 7
Linear-1 8
Linear-1 9
Linear-2
Linear-2 1
Linear-2 2
Linear-2 3
Linear-2 4
Linear-2 5
Linear-2 6
Linear-2 7
Templates
Lecture Template
Seminar Template
Home
Discrete-math 13
Discrete-math 13
Invertible function
#definition
Function
f
:
A
→
B
is called invertible if there exists a function
g
:
B
→
A
such that
(
g
∘
f
)
=
I
d
A
(
f
∘
g
)
=
I
d
B
In this case,
g
is called the inverse of
f
and vice versa
Example
f
:
R
→
R
,
f
(
x
)
=
x
+
1
g
:
R
→
R
,
g
(
x
)
=
x
−
1
(
g
∘
f
)
(
x
)
=
f
(
g
(
x
)
)
=
x
(
f
∘
g
)
(
x
)
=
g
(
f
(
x
)
)
=
x
Uniqueness of the inverse function
#lemma
If function has in inverse, it is unique
Let
f
:
A
→
B
∃
g
:
B
→
A
:
(
g
∘
f
)
=
I
d
A
⟹
∃
!
g
:
B
→
A
:
(
g
∘
f
)
=
I
d
A
Proof:
Let
g
1
,
g
2
:
B
→
A
:
(
g
1
∘
f
)
=
I
d
A
∧
(
f
∘
g
2
)
=
I
d
B
Let
b
∈
B
g
2
(
b
)
=
(
I
d
A
∘
g
2
)
(
b
)
=
(
(
g
1
∘
f
)
∘
g
2
)
(
b
)
=
(
g
1
∘
(
f
∘
g
2
)
)
(
b
)
=
=
(
g
1
∘
I
d
B
)
(
b
)
=
g
1
(
b
)
⟹
∀
b
∈
B
:
g
1
(
b
)
=
g
2
(
b
)
⟹
g
1
=
g
2
Inverse function
#definition
Inverse function is usually denoted as
f
−
1
Properties of invertible functions
Inverse function is invertible
#lemma
Let
f
:
A
→
B
(
f
−
1
)
−
1
=
f
Proof:
∃
f
−
1
:
B
→
A
:
(
f
−
1
∘
f
)
=
I
d
A
,
(
f
∘
f
−
1
)
=
I
d
B
By definition:
f
−
1
is invertible and
f
is an inverse of
f
−
1
Composition of invertible functions is invertible
#lemma
Let
f
:
A
→
B
,
g
:
B
→
C
be invertible functions
Then
(
g
∘
f
)
is invertible, and
(
g
∘
f
)
−
1
=
(
f
−
1
∘
g
−
1
)
Proof:
(
(
g
∘
f
)
∘
(
f
−
1
∘
g
−
1
)
)
=
(
g
∘
(
f
∘
f
−
1
)
∘
g
−
1
)
=
(
g
∘
(
I
d
B
∘
g
−
1
)
)
=
(
g
∘
g
−
1
)
=
I
d
C
(
(
f
−
1
∘
g
−
1
)
∘
(
g
∘
f
)
)
=
(
f
−
1
∘
(
g
−
1
∘
g
)
∘
f
)
=
(
f
−
1
∘
(
I
d
B
∘
f
)
)
=
(
f
−
1
∘
f
)
=
I
d
A
Invertibility of the function
#theorem
Let
f
:
A
→
B
∃
f
−
1
⟺
f
is bijective
Proof:
Let
∃
f
−
1
(
f
−
1
∘
f
)
=
I
d
A
,
(
f
∘
f
−
1
)
=
I
d
B
I
d
A
is injective
⟹
(
f
−
1
∘
f
)
is injective
⟹
f
is injective
I
d
B
is surjective
⟹
(
f
∘
f
−
1
)
is surjective
⟹
f
is surjective
⟹
f
is bijective
[
1
]
Let
f
be bijective
Let
f
−
1
=
{
(
b
,
a
)
∈
B
×
A
|
f
(
a
)
=
b
}
f
is surjective
⟹
∀
b
∈
B
∃
a
∈
A
:
f
(
a
)
=
b
⟺
∀
b
∈
B
∃
a
∈
A
:
(
b
,
a
)
∈
f
−
1
⟹
f
−
1
is complete
(
1
)
f
is injective
⟹
∀
b
∈
B
,
∀
a
1
,
a
2
∈
A
:
[
f
(
a
1
)
=
f
(
a
2
)
=
b
→
a
1
=
a
2
]
⟺
∀
b
∈
B
,
∀
a
1
,
a
2
∈
A
:
[
(
b
,
a
1
)
,
(
b
,
a
2
)
∈
f
−
1
→
a
1
=
a
2
]
⟹
f
−
1
is to one
(
2
)
(
1
)
∧
(
2
)
⟹
f
−
1
:
B
→
A
,
f
−
1
(
b
)
=
a
(
f
−
1
∘
f
)
(
a
)
=
f
−
1
(
f
(
a
)
)
=
f
−
1
(
b
)
=
a
⟹
(
f
−
1
∘
f
)
=
I
d
A
(
f
∘
f
−
1
)
(
b
)
=
f
(
f
−
1
(
b
)
)
=
f
(
a
)
=
b
⟹
(
f
∘
f
−
1
)
=
I
d
B
⟹
∃
f
−
1
[
2
]
[
1
]
∧
[
2
]
⟹
f
−
1
⟺
f
is bijective