Chapter IV (annotated)-2
1. Introduction to functions and definitions
This section establishes the formal mathematical definition of a function, distinguishing between related concepts such as domain, codomain, image (range), function equality, and the representation of functions via their graph.
1.1 Formal Definition of a Function
A function is a fundamental concept in mathematics describing a rule that assigns exactly one output element to every input element from a specified set.
Definition 1 (Functions): Let A and B be two sets. A function f from A to B, denoted f:A→B or f:A↓→B, assigns to every element a∈A exactly one element f(a)∈B. The element f(a)∈B is called the value of f at a. The sets A and B are considered intrinsic parts of the function's description.
- A is the domain (or source) of f, denoted dom(f).
- B is the codomain (or target) of f 3.
The concept is visualized by showing that every element in the domain A has precisely one associated element in the codomain B. However, it is not required that every element in B is mapped to by an element in A 2.

1.2 Examples and Piecewise Definitions
Functions can map between various types of sets, including discrete sets or sets of real numbers R.
Example: The functions g:R→R, x↦x2 and h:R→[0,∞), x↦x2 have the same domain and values, but they are considered unequal because their codomains differ (g=h).
Functions are often described piecewise using case distinctions, particularly when dealing with functions exhibiting discontinuities or changes in rule, such as those with "bumps or jumps".
1.3 Function Equality (Extensionality)
Two functions are only considered equal if they share the same input and output sets and produce identical outputs for every input in the shared domain.
Definition 2 (Extensionality for functions): Two functions f:A→B and g:X→Y are equal if and only if: (i) A=X (They have the same domains). (ii) B=Y (They have the same codomains). (iii) ∀a∈A:f(a)=g(a) (Their values agree for all elements in the domain).
1.4 Image (Range) of a Function
The image (or range) of a function consists of all the actual output values attained by the function when its domain is fully evaluated.
Definition 3 (Image): The image of a function f:A→B, denoted im(f), is the subset of the codomain B given by: im(f):={b∈B∣∃a∈A:f(a)=b}={f(a)∈B∣a∈A}⊆B The term "range" is sometimes used interchangeably for the image or the codomain, but it is generally discouraged due to this ambiguity 6.
Example: For f:{1,2,3,4,5}→{a,b,c,d} defined by f=a,f=c,f=a,f=d,f=c, the image is im(f)={a,c,d}, which is a proper subset of the codomain {a,b,c,d} 5.
If g:R→R, x↦x2, then im(g)=[0,∞)⊂R. However, if h:R→[0,∞), x↦x2, then im(h)=codom(h)=[0,∞) 7.

1.5 Representation via Graphs
A function f:A→B can be uniquely encoded by its graph, which is a specific subset of the Cartesian product A×B.
The graph of f, denoted Γ(f), is defined as: Γ(f):={(a,b)∈A×B∣f(a)=b}={(a,f(a))∣a∈A}.
A subset S⊆A×B is the graph of a function f:A→B if and only if: (i) For every a∈A, there exists some b∈B such that (a,b)∈S (ensuring every domain element is mapped). (ii) If (a,b1)∈S and (a,b2)∈S for b1,b2∈B, then b1=b2 (ensuring uniqueness of the image) 8.

1.6 Partial Functions
The concept of a function can be relaxed to allow for inputs for which an output might not be defined, resulting in a partial function.
Definition 5 (Partial Function): A partial function f:A⇀B is a subset Γ(f)⊆A×B that only satisfies condition (ii) of the graph lemma: ∀a∈A,∀b1,b2∈B:[(a,b1)∈Γ(f)∧(a,b2)∈Γ(f)]⟹b1=b2 If (a,b)∈Γ(f), we say f is defined at a and set f(a):=b. If no such pair exists for a∈A, f is not defined at a.
A partial function f:A⇀B is a full function f:A→B if and only if it is defined for all a∈A 9.

1.7 Real Functions
Definition 6 (Real Function): A function f:A→B is called a real function if both the domain A and the codomain B are subsets of the set of real numbers R.
Tip: Any real function can be viewed as a partial function f:R⇀R. For example, g:[0,∞)→R, x↦x is a function, but when viewed as a subset of R×R, it acts as a partial function defined only on the non-negative reals 10.
Concept Check: Remember that function equality requires identical codomains. Thus, g:R→R, x↦x2 and h:R→[0,∞), x↦x2 are distinct functions because codom(g)=codom(h) 4.
2. Domains, images, and basic function types
This section summarizes the fundamentals of real functions defined by algebraic formulas, focusing on determining their natural domains, calculating their images, and classifying them based on injectivity, surjectivity, and bijectivity.
2.1 Determining the natural domain of algebraic functions
A function determined by an algebraic formula involves only variables, real numbers, and elementary algebra (addition, subtraction, multiplication, division, and roots). These formulas typically define partial functions f:D(f)⊂R↠R, where the domain D(f) is restricted by the formula itself.
The natural domain D(f) of an algebraic formula f(⋅) is defined as the largest subset of R for which the expression is well-defined, establishing a function f:D(f)→R 12.
Key restrictions when determining the natural domain include:
- Division by Zero: The denominator of a rational expression cannot be zero.
- Square Roots: The radicand (the expression under the square root) must be non-negative (greater than or equal to zero).
- Higher Even Roots: Similar to square roots, expressions under even roots must be non-negative.
Tip: When dealing with multiple restrictions (e.g., rational functions containing roots), the natural domain is the intersection of the sets derived from all individual constraints.
Examples illustrating domain determination based on these rules:
- For f(x)=x2−11, the denominator x2−1=0, so D(f)=R∖{−1,1}.
- For f(x)=x, the constraint is x≥0, so D(f)=[0,+∞).
- For f(x)=x−2, the constraint is x−2≥0, leading to D(f)=[2,+∞).
- For f(x)=x2−x−2, since x2−x−2=(x+1)(x−2), the constraint is (x+1)(x−2)≥0, resulting in D(f)=(−∞,−1∪[2,+∞) 13.

To find the domain of a function involving multiple components, one must satisfy all conditions simultaneously. For f(x)=2x+1+x2−31, two conditions must be met: the radicand must be non-negative, and the denominator must be non-zero 14.
- Square root constraint: 2x+1≥0⟹x≥−21.
- Denominator constraint: x2−3=0⟹x=3 and x=−3.
The natural domain D(f) is the intersection of these sets: [−21,+∞)∖{3}.

Example: For f(x)=x−1x+1, we need x+1≥0 (so x≥−1) AND x−1=0 (so x=1). The domain is D(f)=[−1,+∞)∖{1}, which is represented as [−1,1)∪(1,+∞) 15.
2.2 The image of a function
The image of a function f:A→B, denoted im(f), is the subset of the codomain B consisting of all elements that are actual outputs of f for inputs in the domain A.
Formally, the image is defined as: im(f):={b∈B∣∃a∈A:f(a)=b}.
This means an element b∈B belongs to the image if and only if the equation f(x)=b has at least one solution x in the domain A.

To determine the image im(f) for f:A→B, one solves the equation f(x)=y for x in terms of y, treating y as a fixed element of the codomain B, and then identifies the set of y values for which a solution x∈A exists.
Example: For f:R∖{2}→R defined by f(x)=x−23x+1. Set y=f(x) and solve for x: y=x−23x+1⟹y(x−2)=3x+1⟹yx−2y=3x+1 yx−3x=2y+1⟹x(y−3)=2y+1 If y=3, then x=y−32y+1. Since this formula yields a valid x∈R∖{2} for any y=3, the image is im(f)=R∖{3} 17.
The image calculation depends heavily on the domain A 18.
- For f:R→R, f(x)=3x+1, every y has a solution x=3y−1, so im(f)=R (surjective).
- For h:→R, h(x)=3x+1. Since h is increasing, the image is [hh= 7 16.
For quadratic functions, the minimum or maximum value often dictates the image boundary. For g:R→R, g(x)=x2+2x+5: x2+2x+5=(x+1)2+4 Since (x+1)2≥0, the minimum value is 4. Thus, im(g)=[4,+∞), and g is not surjective onto R 19.
2.3 Properties of functions: Injectivity and Surjectivity
Functions can be characterized by whether they map distinct inputs to distinct outputs (injectivity) or whether every element in the codomain is reached (surjectivity) 20.
2.3.1 Injectivity (One-to-one)
A function f:A→B is injective (or one-to-one) if distinct elements in the domain always map to distinct elements in the codomain.
Formally, f is injective if: ∀a1,a2∈A:f(a1)=f(a2)⟺a1=a2.
This is equivalent to the contrapositive: if a1=a2, then f(a1)=f(a2). Injective functions are also called injections 21.
Tip: To prove injectivity algebraically, assume f(a1)=f(a2) for arbitrary a1,a2 in the domain, and algebraically manipulate the expression until you deduce a1=a2.
For f:R→R, f(x)=x2, is not injective because f(−1)=f=1, but −1=1 1 22.
However, restricting the domain can enforce injectivity. For g:[0,+∞)→R, g(x)=x2: If g(x1)=g(x2), then x12=x22. Since x1,x2≥0, this implies x1=x2, so g is injective on [0,+∞) 23.

2.4 Connecting Properties to Equations
Both injectivity and surjectivity can be characterized by the number of solutions to the equation f(a)=b for a fixed b∈B.
- Injective: For every fixed b∈B, the equation f(a)=b has at most one solution a∈A.
- Surjective: For every fixed b∈B, the equation f(a)=b has at least one solution a∈A 26.
2.5 Bijectivity and Inverse Functions
A function possessing both properties is called bijective.
Definition 10 (Bijective): A function f:A→B is bijective if it is both injective and surjective. Bijective functions are also called bijections.
This implies that for a bijection f:A→B, for every fixed b∈B, the equation f(a)=b has exactly one unique solution a∈A. A bijection establishes a perfect one-to-one correspondence between the elements of A and B 27.
Example: The function f~:R∖{2}→R∖{3}, defined by x↦x−23x+1, is bijective because for any y∈R∖{3}, the equation f(x)=y yields the unique solution x=y−32y+1.

The existence of a unique solution for the inverse mapping is precisely what guarantees bijectivity, which is the foundational requirement for the existence of an inverse function f−1:B→A 28.

3. Function composition and inverses
This section details the process of function composition, defines the necessary identity function, and formally introduces the concept and existence criteria for inverse functions.
3.1 Function composition
The composition of two functions links the codomain of the first function to the domain of the second function. If f:A→B and g:B→C, the composite function g∘f:A→C is defined such that for any element a∈A, the value is (g∘f)(a)=g(f(a)). In this notation, function f is applied first, followed by function g.
Tip: When reading g∘f, remember to process the functions from right to left: first f, then g 30.
Definition 11 formally defines the composite function g∘f:A→C as x↦g(f(x)).
Example: Given f:{1,2,3}→{a,b,c,d} with f=a,f=c,f=d, and g:{a,b,c,d}→{u,x,y,z} with g(a)=x,g(b)=u,g(c)=y,g(d)=z. The composite (g∘f) is:
The order of composition is generally not commutative, meaning g∘f is usually not equal to f∘g.
Example: Consider f:R→R defined by f(x)=2x−3 and g:R→R defined by g(x)=x2+1.
The composition (g∘f)(x) is calculated as: (g∘f)(x)=g(f(x))=g(2x−3)=(2x−3)2+1=(4x2−12x+9)+1=4x2−12x+10
The composition (f∘g)(x) is calculated as: (f∘g)(x)=f(g(x))=f(x2+1)=2(x2+1)−3=2x2+2−3=2x2−1
Since 4x2−12x+10=2x2−1, we see that g∘f=f∘g 32.


3.2 The identity function
Definition 12 introduces the identity function, denoted idS, for any set S.
The identity function idS:S→S maps every element to itself: s↦s. For instance, the identity function on the real numbers is f:R→R given by f(x)=x 34.
A key property of the identity function regarding composition is that composing any function with the appropriate identity function leaves the original function unchanged:
- idS∘f=f for any function f:A→S.
- g∘idS=g for any function g:S→B.
3.3 Inverse functions
Definition 13 states that two functions, f:A→B and g:B→A, are inverses of each other if their compositions result in the identity functions on their respective domains and codomains. This requires two conditions to hold:
- g∘f=idA, meaning g(f(a))=a for all a∈A.
- f∘g=idB, meaning f(g(b))=b for all b∈B.
When this relationship holds, g is the inverse of f (written g=f−1), and f is the inverse of g (written f=g−1). An important note is that if f has an inverse, g is unique, and the inverse relationship is symmetric: f=g−1 if and only if g=f−1 35.
Caution: One must not confuse the inverse function f−1(x) with the reciprocal function f(x)1 36.
Examples of self-inverse functions include:
- The identity function itself: idS−1=idS.
- The reciprocal function on non-zero reals: f:R∖{0}→R∖{0}, f(x)=x1, is its own inverse since f∘f=idR∖{0}.
- For non-negative reals, f(x)=x2 and g(x)=x are inverses of each other on the domain/codomain [0,∞) 37.
Criterion for the existence of an inverse
Lemma 14 establishes the fundamental condition for a function to possess an inverse.
Lemma 14: A function f:A→B has an inverse g:B→A if and only if f is a bijection.
A function is bijective if it is both injective (one-to-one) and surjective (onto).
The proof confirms this equivalence:
-
If f has an inverse g (only if):
- Injectivity: If f(a1)=f(a2), applying g to both sides yields g(f(a1))=g(f(a2)), which simplifies to a1=a2 because g∘f=idA.
- Surjectivity: For any b∈B, since f∘g=idB, we have b=f(g(b)). Setting a=g(b)∈A, we find an element a such that f(a)=b 38.
-
If f is bijective (if):
- We construct the inverse g:B→A. Because f is surjective, for every b∈B, there exists at least one a∈A such that f(a)=b. Because f is injective, this a is unique. We define g(b) as this unique element a.
- We must then verify f∘g=idB and g∘f=idA using this constructed g 39.
In summary, the existence of an inverse requires the domain and codomain of f to align perfectly, ensuring every output corresponds to exactly one input, and every possible output is achieved.
Summary of Inverses: For functions f:A→B and g:B→A to be inverses, they must satisfy g∘f=idA and f∘g=idB. If g=f−1, then (f−1)−1=f 40.
Example: Consider f:R∖{3}→R defined by f(x)=x−33x+2. To find the inverse, we first determine the image, im(f). Let y=f(x) and solve for x in terms of y: y=x−33x+2 y(x−3)=3x+2 yx−3y=3x+2 yx−3x=3y+2 x(y−3)=3y+2 x=y−33y+2 Since the denominator cannot be zero, y=3. Thus, the image is im(f)=R∖{3}.
Since for every y in the image, there is exactly one x, f is injective. Since im(f)=codomain(R), f is not surjective onto R.
The inverse function, f~−1:im(f)→R∖{3}, is found by swapping x and y in the expression for x: f~−1(x)=x−33x+2 In this specific case, f is its own inverse, f=f−1 41.

4. Cardinality and analysis of exponential/logarithmic functions
This section bridges set theory by using bijections to define and compare set cardinalities, formally defining the exponential function and its inverse, the logarithm, along with their key algebraic properties.
4.1 Set Cardinality and Countability
Cardinality is introduced as a formal method to compare the "size" of sets, particularly infinite sets, using the concept of bijective functions.
- Finite Sets: The cardinality, denoted ∣S∣, of a finite set S is the number of its elements.
- Equal Cardinality: Two sets S and T have the same cardinality, written ∣S∣=∣T∣, if and only if there exists a bijective function S→T.
- Cardinality Inequality: If there exists an injective function S→T, we write S↑T or ∣S∣↓∣T∣, indicating that S "fits" into T 43.
A crucial concept arising from countability is the Schröder–Bernstein theorem: If S↑T and T↑S, then ∣S∣=∣T∣, meaning a bijection exists between them.
Example: The set of even integers S={…,−4,−2,0,2,4,…} and the set of all integers T=Z have the same cardinality. The inclusion S→T (s↦s) is injective (S↑T), and the function T→S (t↦2t) is also injective (T↑S). By the theorem, ∣S∣=∣T∣.
Countable Sets
A set S is defined as countable if there exists an injection S→N (the natural numbers).
- If a bijection S→N exists, the set S is called countably infinite.
- All subsets of countable sets are countable. Furthermore, if S and T are countable, then S↔T (meaning ∣S∣=∣T∣), S↗T (meaning ∣S∣↗∣T∣), and S↘T (meaning ∣S∣↘∣T∣).
- It is demonstrated that N×N (pairs of natural numbers) is countably infinite by showing a bijection to N using a zigzag enumeration pattern 44.
A major result established is that there exist infinite sets that are uncountable (i.e., not countable), notably the set of real numbers, R, which is uncountable (a fact proven by Cantor's diagonalization argument) 45.
4.2 The Exponential Function
The exponential function is initially defined over the integers based on the base 2 (i.e., fZ:Z→Z,n↦2n), extended to rational numbers, and finally defined over the real numbers via interpolation, which involves continuously filling in the gaps 47.
The formal definition for a general base a>0 is: f:R↔R,f(x)=ax.
The graph of f(x)=2x illustrates key features: it exhibits exponential growth, passes through the y-intercept (0,1), and approaches zero as x tends to negative infinity 48.

Properties of Exponential Functions
The behavior of f(x)=ax depends critically on the base a:
- Functional Property: f(x+1)=ax+1=ax⋅a=a⋅f(x).
- Monotonicity and Ordering:
- If a>1, f is strictly increasing: x1<x2⇔f(x1)<f(x2).
- If a<1, f is strictly decreasing: x1<x2⇔f(x1)>f(x2).
- If a=1, f(x)=1 for all x.
- Injectivity: f is injective if and only if a=1 50.
The graphical representation shows that for different bases, all exponential functions pass through (0,1), with bases a>1 showing growth and bases 0<a<1 showing decay 49.

Further properties concern limits and range (image):
- If a>1: f(x)→+∞ as x→+∞, and f(x)→0 as x→−∞.
- If a<1: f(x)→0 as x→+∞, and f(x)→+∞ as x→−∞.
- In both cases where a=1, the image (range) of f is (0,∞).
- The corestriction f~:R→(0,∞) is surjective and hence bijective, implying the existence of an inverse function 51.
Algebraic Properties of Exponentials
For a,a1,a2>0 and a,a1,a2=1:
- (i) Multiplicative Property: ax1⋅ax2=ax1+x2 (The functional equation of the exponential).
- (ii) Power of a Power: (ax1)x2=ax1⋅x2 (Note: this is distinct from ax1x2).
- (iii) Product to a Power: (a⋅b)x=ax⋅bx.
- (iv) Identity: a0=1.
- (v) Negative Exponent: a−x=(ax)−1=ax1.
- (vi) Root Definition: a1/n=na for integers n∝2 54.
4.3 The Logarithmic Function
The logarithm is formally defined as the inverse function of the restricted exponential function f~:R↔(0,∞).
Definition 22: Let a>0 and a=1. The logarithm to the base a is the inverse function: loga:(0,∞)↔R,x↦loga(x).
This inverse relationship translates to the fundamental equivalence: loga(y)=x⟺y=ax.
In interpretation, loga(y) is the exponent to which the base a must be raised to obtain y.
Tip: When encountering a logarithm problem, immediately translate it to its equivalent exponential form if the definition is unclear 52.
Logarithmic functions share properties with exponential functions due to their inverse relationship. For bases a>1, the function f(x)=loga(x) is strictly increasing, and for 0<a<1, it is strictly decreasing. Critically, all logarithmic functions pass through the point (1,0) and possess a vertical asymptote at x=0 53.


Algebraic Properties of Logarithms
The algebraic properties of logarithms directly mirror those of exponentiation, as derived from the inverse relationship loga(ax)=x and aloga(y)=y 56.
Let a,b>0,a,b=1, and x1,x2∈R, y1,y2∈(0,∞):
- (i) Identity: loga=0, since a0=1 1.
- (ii) Base Identity: loga(a)=1, since a1=a.
- (iii) Product Rule: loga(y1⋅y2)=loga(y1)+loga(y2), corresponding to ax1⋅ax2=ax1+x2.
- (iv) Quotient Rule: loga(y2y1)=loga(y1)−loga(y2), corresponding to ax2ax1=ax1−x2.
- (v) Power Rule: loga(yc)=cloga(y) for all real numbers c, corresponding to (ax)c=ac⋅x.
- (vi) Root Rule (Integer Case): loga(ny)=loga(y)/n for integers n∝2 57.
Change of Base Formula
To compute logarithms with arbitrary bases using standard calculators (which typically only provide common logarithm log=log10 and natural logarithm ln=loge, where e≈2.7183), the change of base formula is employed. This formula is a direct consequence of property (vii) mentioned in the reference material:
loga(y)=log10(a)log10(y)=ln(a)ln(y).

Tip: Euler's number, e, is defined by the infinite series e:=∑n=0∞n!1≈2.7183. The natural logarithm, ln(x), is simply loge(x) 59.
Common mistakes to avoid
- Review all topics thoroughly before exams
- Pay attention to formulas and key definitions
- Practice with examples provided in each section
- Don't memorize without understanding the underlying concepts
© 2026 Maeve. All rights reserved. This content is protected by copyright.