Discrete Mathematics: Functions, Invertibility, Monotonicity, and Sequences

Foundations of Functions, Surjectivity, and Bijectivity

  • Definition of a Function: A function f:A→Bf: A \rightarrow B is a mathematical relation that assigns each element from the domain AA to exactly one element in the codomain BB.

  • Surjective (Onto) Functions:

    • A function f:A→Bf: A \rightarrow B is onto (surjective) if every element in the codomain BB corresponds to at least one element in the domain AA.
    • Equivalently, a function is onto when its range is strictly equal to its codomain (Range(f)=B\text{Range}(f) = B). If the range is merely a proper subset of the codomain, the function fails to be onto.
  • Bijective Functions (One-to-One and Onto):

    • A function ff is defined as a bijection (bijective) if and only if it satisfies two simultaneous criteria: it is one-to-one (injective) and it is onto (surjective).
    • Bijections establish a strict one-to-one correspondence between every element of the domain and every element of the codomain.
  • Inverse Functions (f−1f^{-1}):

    • A function possesses an inverse function f−1f^{-1} if and only if it is a bijection.
    • Procedure to Derive the Equation of an Inverse Function:
      • Step 1: Set the functional expression equal to the codomain variable: y=f(x)y = f(x).
      • Step 2: Perform algebraic operations to solve the equation for the domain input variable xx in terms of yy.
      • Step 3: Interchange the variables xx and yy to express the inverse function f−1(x)f^{-1}(x) in terms of the standard independent variable xx.
      • The mathematical convention assigns xx to denote elements in the domain and yy to denote elements in the codomain; swapping variables at the conclusion restores this convention.
  • Function Well-Definedness Analysis (Section 2.3, Problem #2, Part C):

    • Proposed Function: f(n)=1n2−4f(n) = \frac{1}{n^2 - 4} evaluated as a candidate mapping from the domain of integers Z\mathbb{Z} to the codomain of real numbers R\mathbb{R} (f:Z→Rf: \mathbb{Z} \rightarrow \mathbb{R}).
    • Evaluation Criterion: For every randomly selected integer n∈Zn \in \mathbb{Z}, the expression f(n)f(n) must be defined and produce an output that belongs to R\mathbb{R}.
    • Singularity Analysis:
      • The denominator n2−4n^2 - 4 must be non-zero for real division to be defined: n2−4≠0n^2 - 4 \neq 0.
  • Solving the restriction gives n2≠4n^2 \neq 4, which implies n≠2n \neq 2 and n≠−2n \neq -2. * Because the inputs 22 and −2-2 are elements of the domain Z\mathbb{Z}, evaluating f(2)f(2) or f(−2)f(-2) results in division by zero (10\frac{1}{0}), which is undefined in R\mathbb{R}.

    • Conclusion: The relation is not a valid function from Z\mathbb{Z} to R\mathbb{R}.
  • Criteria for Bijections on Real Numbers (Page 153, Problem 22):

    • To verify that a mapping f:R→Rf: \mathbb{R} \rightarrow \mathbb{R} is a bijection, one must verify both injectivity (distinct real inputs map to distinct real outputs) and surjectivity (every real number in the codomain is mapped to).
    • If the range covers only a subset of R\mathbb{R}, the function is not onto, precluding the existence of a standard inverse function across R\mathbb{R}.

Monotonicity of Functions: Increasing and Strictly Increasing Mappings

  • Monotonicity Definitions on Subsets of Real Numbers (Page 143):

    • Consider a function ff whose domain and codomain are subsets of the set of real numbers R\mathbb{R}.
    • Increasing Function: A function is classified as increasing if, when moving across the graph from left to right, the output value never decreases. Mathematically, for any domain elements x1x_1 and x2x_2: if x1<x2x_1 < x_2, then f(x1)≤f(x2)f(x_1) \le f(x_2).
    • Strictly Increasing Function: A function is classified as strictly increasing if it satisfies a strict inequality. Mathematically, for any domain elements x1x_1 and x2x_2: if x1<x2x_1 < x_2, then f(x1)<f(x2)f(x_1) < f(x_2).
    • Geometric Interpretation: Tracing a strictly increasing function from left to right shows a curve that continuously ascends without any horizontal plateaus or downward segments.
  • Examples of Strictly Increasing Functions:

    • f(x)=x+1f(x) = x + 1
    • f(x)=x3f(x) = x^3
    • Any linear function of the form f(x)=mx+bf(x) = mx + b where the slope is strictly positive (m>0m > 0).
  • Contrasting Increasing vs. Strictly Increasing Behavior:

    • Linear functions with negative slopes (m<0m < 0) are decreasing.
    • Piecewise or step functions that contain horizontal segments: if there exists an interval where f(x1)=f(x2)f(x_1) = f(x_2) for distinct points x1≠x2x_1 \neq x_2, the function fails the definition of being strictly increasing on that interval, even if f(x1)<f(x3)f(x_1) < f(x_3) holds for a point x3x_3 situated further to the right.
  • Proof: Strictly Increasing Real Functions are One-to-One (Page 153, Problem 26):

    • Theorem: If a function f:R→Rf: \mathbb{R} \rightarrow \mathbb{R} is strictly increasing, then ff is one-to-one (injective).
    • Proof:
      • Let x1x_1 and x2x_2 be arbitrary elements in R\mathbb{R} such that x1≠x2x_1 \neq x_2.
  • Without loss of generality, assume x1<x2x_1 < x_2.

  • By the definition of a strictly increasing function, the assumption x1<x2x_1 < x_2 directly implies that f(x1)<f(x2)f(x_1) < f(x_2).

  • Because f(x1)<f(x2)f(x_1) < f(x_2), it follows that f(x1)≠f(x2)f(x_1) \neq f(x_2).

  • Therefore, distinct inputs map to distinct outputs, establishing that ff is one-to-one.

Pre-Images Under Quadratic Mappings

  • Distinction Between Inverse Function and Pre-Image (Page 153, Problem 22):

    • Consider the quadratic mapping f:R→Rf: \mathbb{R} \rightarrow \mathbb{R} defined by f(x)=x2f(x) = x^2.
    • Because f(−x)=f(x)f(-x) = f(x), the function is not one-to-one; because negative real numbers have no real square roots, the function is not onto. Thus, ff does not possess an inverse function f−1:R→Rf^{-1}: \mathbb{R} \rightarrow \mathbb{R}.
    • The notation f−1(S)f^{-1}(S) or f−1(y)f^{-1}(y) can denote the pre-image (inverse image) of an element or set, defined as the set of all inputs in the domain that map into the designated target: f−1(S)={x∈Domain∣f(x)∈S}f^{-1}(S) = \{x \in \text{Domain} \mid f(x) \in S\}.
  • Pre-Image of a Single Point:

    • To find f−1(1)f^{-1}(1) under f(x)=x2f(x) = x^2, identify all domain inputs x∈Rx \in \mathbb{R} such that x2=1x^2 = 1.
    • Solving x2=1x^2 = 1 yields two values: x=1x = 1 and x=−1x = -1.
    • The pre-image is the discrete set {−1,1}\{-1, 1\}.
  • Pre-Image of an Open Interval (Part B):

    • Determine the pre-image of the interval (0,1)(0, 1), denoted f−1((0,1))f^{-1}((0, 1)), which requires finding all xx such that 0<x2<10 < x^2 < 1.
    • Graphical Projection Method:
      • Project the codomain target interval y∈(0,1)y \in (0, 1) horizontally onto the parabola y=x2y = x^2.
      • The upper boundary y=1y = 1 corresponds to the inputs x=1x = 1 and x=−1x = -1.
      • The lower boundary y=0y = 0 corresponds to x=0x = 0.
      • Because the inequality is strict, neither 00 nor 11 is included in the output range.
    • Resulting Domain Intervals:
      • The input xx must lie either between −1-1 and 00 or between 00 and 11.
      • The solution set is (−1,0)∪(0,1)(-1, 0) \cup (0, 1), represented in set notation as:{x∈R∣−1<x<0 or 0<x<1}\{x \in \mathbb{R} \mid -1 < x < 0 \text{ or } 0 < x < 1\}
  • Pre-Image of an Unbounded Interval (Part C):

    • Determine the pre-image for outputs satisfying y>4y > 4, which requires solving the inequality x2>4x^2 > 4.
    • Taking the square root across the inequality yields the absolute value condition: ∣x∣>4=2|x| > \sqrt{4} = 2.
    • Testing Intervals:
      • For values less than −2-2 (e.g., x=−3x = -3): (−3)2=9>4(-3)^2 = 9 > 4, which satisfies the condition.
      • For values greater than 22 (e.g., x=4x = 4): 42=16>44^2 = 16 > 4, which satisfies the condition.
    • Resulting Solution Set:
      • Projecting this region onto the graph shows all xx from negative infinity up to −2-2 (non-inclusive) and from 22 up to positive infinity (non-inclusive).
      • The boundary values ±2\pm 2 are excluded due to the strict inequality (>4> 4).
      • The solution is expressed with the logical disjunction "or":(−∞,−2)∪(2,∞)={x∈R∣x<−2 or x>2}(-\infty, -2) \cup (2, \infty) = \{x \in \mathbb{R} \mid x < -2 \text{ or } x > 2\}

Theory and Classification of Sequences

  • Curricular Importance of Sequences (Section 2.4):

    • Sequences, recurrence relations, and methods for finding general solutions serve as core prerequisites for upper-level coursework (such as Course 344).
    • These concepts occupy approximately two-thirds of advanced coursework and are used for:
      • Analyzing recurrence relations.
      • Evaluating recursion trees and determining tree height.
      • Deriving time complexity functions for algorithms.
  • Formal Definition of a Sequence:

    • A sequence is a function whose domain is a subset of the integers, typically the set of natural numbers (N={0,1,2,… }\mathbb{N} = \{0, 1, 2, \dots\}) or positive integers (Z+={1,2,3,… }\mathbb{Z}^+ = \{1, 2, 3, \dots\}), mapping to a target set.
    • Standard Notation: Sequences are denoted by indexed sets or ordered lists:a0,a1,a2,…,an,…or{an}a_0, a_1, a_2, \dots, a_n, \dots \quad \text{or} \quad \{a_n\}
  • Representations of Sequences:

    • Enumerated Terms: Specifying the initial consecutive terms of a sequence (e.g., 1,4,9,16,…1, 4, 9, 16, \dots) to determine the underlying pattern.
    • Recurrence Relations: Specifying an equation where the nn-th term ana_n is defined in terms of one or more previous terms, such as:an=an−1+an−2a_n = a_{n-1} + a_{n-2}
    • Closed-Form Solution: An explicit algebraic formula that calculates the value of ana_n directly from its index nn, without computing preceding terms.
  • Deriving Closed Forms for Standard Patterns:

    • Sequence of Squares:
      • Given initial terms: 1,4,9,16,…1, 4, 9, 16, \dots
      • Indexed from n=1n = 1 (a1=1,a2=4,a3=9,a4=16a_1 = 1, a_2 = 4, a_3 = 9, a_4 = 16).
      • Closed-form solution: an=n2a_n = n^2.
    • Alternating Sign Sequences:
      • Given terms: −1,1,−1,1,…-1, 1, -1, 1, \dots
      • Indexed from n=1n = 1:
        • When nn is odd (n=1,3,5,…n = 1, 3, 5, \dots), the term is negative (−1-1).
        • When nn is even (n=2,4,6,…n = 2, 4, 6, \dots), the term is positive (11).
        • Closed-form solution: an=(−1)na_n = (-1)^n.
      • If the parity is reversed (positive for odd indices, negative for even indices: 1,−1,1,−1,…1, -1, 1, -1, \dots), the closed form is written as an=(−1)n+1a_n = (-1)^{n+1} or an=(−1)n−1a_n = (-1)^{n-1}.

Fundamental Progression Types: Geometric and Arithmetic

  • Geometric Sequences:

    • A sequence where each term after the first is obtained by multiplying the previous term by a fixed, non-zero constant.
    • General Pattern:a,ar,ar2,ar3,…,arn,…a, ar, ar^2, ar^3, \dots, ar^n, \dots
    • Parameters:
      • Initial term: aa (or a1a_1), representing the starting value.
      • Common ratio: rr, representing the constant factor between successive terms (r=anan−1r = \frac{a_n}{a_{n-1}}).
    • Closed-Form Equations:
      • For indexing starting at n=0n = 0: an=a×rna_n = a \times r^n
      • For indexing starting at n=1n = 1: an=a×rn−1a_n = a \times r^{n-1}
  • Arithmetic Sequences:

    • A sequence where each term after the first is obtained by adding a constant numerical difference to the preceding term.
    • General Pattern:a,a+d,a+2d,a+3d,…a, a + d, a + 2d, a + 3d, \dots
    • Parameters:
      • Initial term: aa, representing the first term.
      • Common difference: dd, representing the fixed increment (d=an−an−1d = a_n - a_{n-1}).
    • Closed-Form Equation:
      • For indexing starting at n=1n = 1:an=a+(n−1)×da_n = a + (n - 1) \times d
  • Application Example for an Arithmetic Progression:

    • Initial term: a=9a = 9.
    • Common difference: d=5d = 5.
    • General Form Derivation:
      • Substitute the parameters into the arithmetic formula:an=9+(n−1)×5a_n = 9 + (n - 1) \times 5

Questions & Classroom Exchanges

  • Exchange on Well-Defined Functions:

    • Question: For the rule f(n)=1n2−4f(n) = \frac{1}{n^2 - 4}, is it a function from Z\mathbb{Z} to R\mathbb{R}?
    • Response: No. If an input nn is chosen such that the denominator becomes zero (specifically n=2n = 2 or n=−2n = -2), the evaluation produces a non-real, undefined result.
  • Exchange on Strictly Increasing Examples:

    • Question: What are examples of functions that are strictly increasing?
    • Response: f(x)=x+1f(x) = x + 1, f(x)=x3f(x) = x^3, and any linear function characterized by a positive slope (m>0m > 0).
  • Exchange on Point Pre-Images:

    • Question: For f(x)=x2f(x) = x^2, what is the pre-image of 11, denoted f−1(1)f^{-1}(1)?
    • Response: The values are 11 and −1-1, because evaluating the function at either 11 or −1-1 yields 11.
  • Exchange on Interval Boundaries:

    • Question: If y=1y = 1 under the mapping f(x)=x2f(x) = x^2, what are the corresponding xx-values?
    • Response: The xx-values are 11 and −1-1. For the interval y∈(0,1)y \in (0, 1), the inputs must satisfy −1<x<0-1 < x < 0 or 0<x<10 < x < 1.
  • Exchange on Closed-Form Recognition:

    • Question: What pattern describes the sequence terms 1,4,9,161, 4, 9, 16?
    • Response: The sequence consists of squares (n2n^2), giving the closed form an=n2a_n = n^2.
  • Exchange on Arithmetic Formula Construction:

    • Question: What is the general form of an arithmetic progression with a first term of 99 and a common difference of 55?
    • Response: The first term is 99 and d=5d = 5, yielding the expression an=9+(n−1)×5a_n = 9 + (n - 1) \times 5.