Algebra of Functions and Function Composition

Foundations of Set Theory for Function Domains

  • Set Union (∪\cup):

    • The union of two sets AA and BB is the set containing all elements that belong to AA, to BB, or to both.
    • Given A={1,2,3}A = \{1, 2, 3\} and B={2,3,4}B = \{2, 3, 4\}, the union is A∪B={1,2,3,4}A \cup B = \{1, 2, 3, 4\}.
    • The cardinality of the union is greater than or equal to the cardinality of the individual original sets.
  • Set Intersection (∩\cap):

    • The intersection of two sets AA and BB consists strictly of elements that are simultaneously present in both AA and BB.
    • Given A={1,2,3}A = \{1, 2, 3\} and B={2,3,4}B = \{2, 3, 4\}, the intersection is A∩B={2,3}A \cap B = \{2, 3\}.
    • The element 11 is excluded because it belongs only to AA, and the element 44 is excluded because it belongs only to BB.
    • Intersection serves as the fundamental mechanism for determining the domains of combined algebraic functions.

Algebraic Operations on Functions

  • Definitions of Function Arithmetic:

    • Let ff and gg be functions with respective domains DfD_f and DgD_g.
    • Sum: (f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x).
    • Domain: Df+g=Df∩DgD_{f+g} = D_f \cap D_g.
    • The inputs must be values valid for both original functions simultaneously.
    • Difference: (f−g)(x)=f(x)−g(x)(f - g)(x) = f(x) - g(x).
    • Domain: Df−g=Df∩DgD_{f-g} = D_f \cap D_g.
    • Product: (f⋅g)(x)=f(x)⋅g(x)(f \cdot g)(x) = f(x) \cdot g(x).
    • Domain: Df⋅g=Df∩DgD_{f \cdot g} = D_f \cap D_g.
    • Quotient: (fg)(x)=f(x)g(x)\left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)}.
    • Domain: Df/g=(Df∩Dg)∖{x∣g(x)=0}D_{f/g} = (D_f \cap D_g) \setminus \{x \mid g(x) = 0\}.
    • Inputs must lie in both domains and strictly exclude any point that causes the denominator function to equal zero.
  • Application: Sum and Difference of Polynomial Functions:

    • Consider the functions f(x)=x2−5xf(x) = x^2 - 5x and g(x)=2x−9g(x) = 2x - 9.
    • Both f(x)f(x) and g(x)g(x) are polynomials, meaning Df=(−∞,∞)D_f = (-\infty, \infty) and Dg=(−∞,∞)D_g = (-\infty, \infty).
    • The domain of (f−g)(x)(f - g)(x) is (−∞,∞)∩(−∞,∞)=(−∞,∞)(-\infty, \infty) \cap (-\infty, \infty) = (-\infty, \infty).
    • Direct Evaluation at x=3x = 3:
    • Let h(x)=(f−g)(x)h(x) = (f - g)(x).
    • h(3)=f(3)−g(3)=(32−5(3))−(2(3)−9)h(3) = f(3) - g(3) = (3^2 - 5(3)) - (2(3) - 9).
    • Resolving each bracketed expression: 32−5(3)=9−15=−63^2 - 5(3) = 9 - 15 = -6, and 2(3)−9=6−9=−32(3) - 9 = 6 - 9 = -3.
    • h(3)=−6−(−3)=−6+3=−3h(3) = -6 - (-3) = -6 + 3 = -3.
    • Symbolic Reduction Before Evaluation:
    • Parentheses are mandatory when subtracting to ensure the negative sign distributes properly across all terms of g(x)g(x).
    • h(x)=(x2−5x)−(2x−9)=x2−5x−2x+9=x2−7x+9h(x) = (x^2 - 5x) - (2x - 9) = x^2 - 5x - 2x + 9 = x^2 - 7x + 9.
    • Evaluating the reduced formula at x=3x = 3: h(3)=32−7(3)+9=9−21+9=−12+9=−3h(3) = 3^2 - 7(3) + 9 = 9 - 21 + 9 = -12 + 9 = -3.
  • Application: Sum Involving a Radical Function:

    • Consider f(x)=x−2f(x) = \sqrt{x - 2} and g(x)=x2g(x) = x^2.
    • For g(x)=x2g(x) = x^2, the domain is (−∞,∞)(-\infty, \infty).
    • For f(x)=x−2f(x) = \sqrt{x - 2}, the radicand must be non-negative: x−2≥0  ⟹  x≥2x - 2 \ge 0 \implies x \ge 2, yielding the domain [2,∞)[2, \infty).
    • Let h(x)=(g+f)(x)=x2+x−2h(x) = (g + f)(x) = x^2 + \sqrt{x - 2}.
    • The domain of h(x)h(x) is the intersection (−∞,∞)∩[2,∞)=[2,∞)(-\infty, \infty) \cap [2, \infty) = [2, \infty).
    • Evaluation at Defined Point (x=3x = 3):
    • h(3)=32+3−2=9+1=9+1=10h(3) = 3^2 + \sqrt{3 - 2} = 9 + \sqrt{1} = 9 + 1 = 10.
    • Evaluation at Undefined Point (x=−1x = -1):
    • At x=−1x = -1, the polynomial component evaluates without issue ((−1)2=1(-1)^2 = 1), but the radical component produces −1−2=−3\sqrt{-1 - 2} = \sqrt{-3}, which is non-real.
    • Because −1∉[2,∞)-1 \notin [2, \infty), h(−1)h(-1) is undefined.
  • Application: Product of Radical Functions:

    • Consider f(x)=1+xf(x) = \sqrt{1 + x} and g(x)=3−xg(x) = \sqrt{3 - x}.
    • Domain of f(x)f(x): 1+x≥0  ⟹  x≥−11 + x \ge 0 \implies x \ge -1, which is [−1,∞)[-1, \infty).
    • Domain of g(x)g(x): 3−x≥0  ⟹  x≤33 - x \ge 0 \implies x \le 3, which is (−∞,3](-\infty, 3].
    • Let h(x)=(f⋅g)(x)=f(x)g(x)h(x) = (f \cdot g)(x) = f(x)g(x).
    • The domain is the intersection [−1,∞)∩(−∞,3]=[−1,3][-1, \infty) \cap (-\infty, 3] = [-1, 3].
    • Algebraic Multiplication:
    • h(x)=1+x⋅3−x=(1+x)1/2(3−x)1/2=((1+x)(3−x))1/2h(x) = \sqrt{1 + x} \cdot \sqrt{3 - x} = (1 + x)^{1/2}(3 - x)^{1/2} = ((1 + x)(3 - x))^{1/2}.
    • Expanding by distributive property (FOIL): (1)(3)+(1)(−x)+(x)(3)+(x)(−x)=3−x+3x−x2=3+2x−x2(1)(3) + (1)(-x) + (x)(3) + (x)(-x) = 3 - x + 3x - x^2 = 3 + 2x - x^2.
    • Therefore, h(x)=3+2x−x2h(x) = \sqrt{3 + 2x - x^2} with domain [−1,3][-1, 3].
  • Application: Quotient and Removable Singularities:

    • Consider f(x)=x−3f(x) = x - 3 and g(x)=x3−3x2+2x−6g(x) = x^3 - 3x^2 + 2x - 6.
    • Let h(x)=(gf)(x)=g(x)f(x)=x3−3x2+2x−6x−3h(x) = \left(\frac{g}{f}\right)(x) = \frac{g(x)}{f(x)} = \frac{x^3 - 3x^2 + 2x - 6}{x - 3}.
    • Domains of individual polynomials: Df=(−∞,∞)D_f = (-\infty, \infty) and Dg=(−∞,∞)D_g = (-\infty, \infty).
    • Restriction: f(x)=0  ⟹  x−3=0  ⟹  x=3f(x) = 0 \implies x - 3 = 0 \implies x = 3.
    • Domain of h(x)h(x): (−∞,3)∪(3,∞)(-\infty, 3) \cup (3, \infty).
    • Algebraic Simplification:
    • Factoring the numerator by grouping: x3−3x2+2x−6=x2(x−3)+2(x−3)=(x2+2)(x−3)x^3 - 3x^2 + 2x - 6 = x^2(x - 3) + 2(x - 3) = (x^2 + 2)(x - 3).
    • Substituting into the quotient: h(x)=(x2+2)(x−3)x−3=x2+2h(x) = \frac{(x^2 + 2)(x - 3)}{x - 3} = x^2 + 2, provided x≠3x \ne 3.
    • Removable Singularity Concept:
    • Although the reduced expression x2+2x^2 + 2 is defined for all real numbers, the function originates from a ratio with x−3x - 3 in the denominator.
    • The point x=3x = 3 represents a removable singularity (a hole in the graph), and the domain remains restricted to all real numbers except x=3x = 3.

Theory and Mechanics of Function Composition

  • Conceptual Framework and Modeling Relationships:

    • Function composition connects systems where variables are linked transitively through intermediate functions rather than by direct equations.
    • Ecological Example:
    • Let xx represent human population.
    • Wolf population is modeled as a function of humans: W(x)W(x).
    • Rodent population is modeled as a function of wolves: R(w)R(w).
    • Composing the functions links rodent population directly to human population: (R∘W)(x)=R(W(x))(R \circ W)(x) = R(W(x)).
  • Inputting Functions into Functions:

    • A function operates as an input-processing rule. For instance, g(x)=x3−3g(x) = x^3 - 3 cubes the input and decreases the result by 33.
    • Evaluating with variable and functional expressions using k(x)=x2−3k(x) = x^2 - 3:
    • Numeric input: k(−5)=(−5)2−3=25−3=22k(-5) = (-5)^2 - 3 = 25 - 3 = 22.
    • Monomial input: k(5t)=(5t)2−3=52t2−3=25t2−3k(5t) = (5t)^2 - 3 = 5^2 t^2 - 3 = 25t^2 - 3.
    • Polynomial input: k(t−4)=(t−4)2−3=(t2−8t+16)−3=t2−8t+13k(t - 4) = (t - 4)^2 - 3 = (t^2 - 8t + 16) - 3 = t^2 - 8t + 13.
  • Formal Definition of Function Composition:

    • Given two functions ff and gg, the composite function f∘gf \circ g (read "ff composed with gg") is defined as:     (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x))
    • The open circle notation ∘\circ denotes composition and is distinct from the multiplication dot ⋅\cdot.
  • Two-Step Domain Rule for Composition:

    • For xx to belong to the domain of (f∘g)(x)(f \circ g)(x), it must satisfy two criteria:
    1. xx must reside in the domain of the inner function gg (x∈Dgx \in D_g).
    2. The output of the inner function, g(x)g(x), must reside in the domain of the outer function ff (g(x)∈Dfg(x) \in D_f).
    • Domain of f∘gf \circ g: {x∈Dg∣g(x)∈Df}\{x \in D_g \mid g(x) \in D_f\}.

Examples of Function Composition and Domain Determination

  • Composition of Radical and Linear Functions:

    • Let f(x)=x−4f(x) = \sqrt{x - 4} and g(x)=3x+2g(x) = 3x + 2.
    • Finding (f∘g)(x)(f \circ g)(x) and its Domain:
    • Expression: (f∘g)(x)=f(g(x))=(3x+2)−4=3x−2(f \circ g)(x) = f(g(x)) = \sqrt{(3x + 2) - 4} = \sqrt{3x - 2}.
    • Inner domain: g(x)=3x+2g(x) = 3x + 2 is defined for all real numbers (Dg=(−∞,∞)D_g = (-\infty, \infty)).
    • Outer domain requirement: f(input)f(\text{input}) requires input≥4\text{input} \ge 4.
    • Condition on g(x)g(x): 3x+2≥4  ⟹  3x≥2  ⟹  x≥233x + 2 \ge 4 \implies 3x \ge 2 \implies x \ge \frac{2}{3}.
    • The domain of f∘gf \circ g is [23,∞)\left[\frac{2}{3}, \infty\right).
    • Finding (g∘f)(x)(g \circ f)(x) and its Domain:
    • Expression: (g∘f)(x)=g(f(x))=3(f(x))+2=3x−4+2(g \circ f)(x) = g(f(x)) = 3(f(x)) + 2 = 3\sqrt{x - 4} + 2.
    • Inner domain: f(x)=x−4f(x) = \sqrt{x - 4} requires x−4≥0  ⟹  x≥4x - 4 \ge 0 \implies x \ge 4 (Df=[4,∞)D_f = [4, \infty)).
    • Outer domain requirement: g(input)g(\text{input}) has no restrictions.
    • The domain of g∘fg \circ f is [4,∞)[4, \infty).
    • Non-commutativity: (f∘g)(x)≠(g∘f)(x)(f \circ g)(x) \ne (g \circ f)(x), and their domains differ.
  • Composition of Rational Functions:

    • Let f(x)=3xx−1f(x) = \frac{3x}{x - 1} and g(x)=2xg(x) = \frac{2}{x}.
    • Domain of (f∘g)(x)(f \circ g)(x) Determined Prior to Algebraic Reduction:
    • Step 1: The inner function g(x)=2xg(x) = \frac{2}{x} requires x≠0x \ne 0.
    • Step 2: The outer function f(u)=3uu−1f(u) = \frac{3u}{u - 1} requires u≠1u \ne 1. Therefore, g(x)≠1g(x) \ne 1.
    • Solving the exclusion: 2x=1  ⟹  x=2\frac{2}{x} = 1 \implies x = 2.
    • Combined Domain: (−∞,0)∪(0,2)∪(2,∞)(-\infty, 0) \cup (0, 2) \cup (2, \infty), or {x∈R∣x≠0 and x≠2}\{x \in \mathbb{R} \mid x \ne 0 \text{ and } x \ne 2\}.
    • Algebraic Evaluation of (f∘g)(x)(f \circ g)(x):
    • f(g(x))=3(2x)2x−1f(g(x)) = \frac{3\left(\frac{2}{x}\right)}{\frac{2}{x} - 1}.
    • Numerator: 3(2x)=6x3\left(\frac{2}{x}\right) = \frac{6}{x}.
    • Denominator: 2x−1=2−xx\frac{2}{x} - 1 = \frac{2 - x}{x}.
    • Dividing fractions: 6x2−xx=6x⋅x2−x=62−x\frac{\frac{6}{x}}{\frac{2 - x}{x}} = \frac{6}{x} \cdot \frac{x}{2 - x} = \frac{6}{2 - x}.
    • Retention of Domain Restriction: Although 62−x\frac{6}{2 - x} only shows a division-by-zero issue at x=2x = 2, the restriction x≠0x \ne 0 must be retained because 00 violates the inner function. Domain remains x≠0,2x \ne 0, 2.
    • Domain of (g∘f)(x)(g \circ f)(x) Determined Prior to Algebraic Reduction:
    • Step 1: The inner function f(x)=3xx−1f(x) = \frac{3x}{x - 1} requires x≠1x \ne 1.
    • Step 2: The outer function g(u)=2ug(u) = \frac{2}{u} requires u≠0u \ne 0. Therefore, f(x)≠0f(x) \ne 0.
    • Solving the exclusion: 3xx−1=0  ⟹  3x=0  ⟹  x=0\frac{3x}{x - 1} = 0 \implies 3x = 0 \implies x = 0.
    • Combined Domain: (−∞,0)∪(0,1)∪(1,∞)(-\infty, 0) \cup (0, 1) \cup (1, \infty), or {x∈R∣x≠0 and x≠1}\{x \in \mathbb{R} \mid x \ne 0 \text{ and } x \ne 1\}.
    • Algebraic Evaluation of (g∘f)(x)(g \circ f)(x):
    • g(f(x))=2f(x)=23xx−1=2⋅x−13x=2(x−1)3xg(f(x)) = \frac{2}{f(x)} = \frac{2}{\frac{3x}{x - 1}} = 2 \cdot \frac{x - 1}{3x} = \frac{2(x - 1)}{3x}.
    • Retention of Domain Restriction: Although 2(x−1)3x\frac{2(x - 1)}{3x} only visibly shows an undefined point at x=0x = 0, the restriction x≠1x \ne 1 must be retained due to the inner function. Domain remains x≠0,1x \ne 0, 1.
  • Connections to Higher Mathematics:

    • In calculus, tracking function compositions and retaining restricted domains through algebraic cancellations is required when applying the Chain Rule and evaluating limits involving indeterminate forms.

Questions & Discussion

  • Audience Question: What is the convention when drawing intervals on a number line—should brackets or solid dots be used?

    • Response: Either notation is acceptable as long as it clearly indicates whether the boundary point is inclusive (closed circle or square bracket [ / ]) or exclusive (open circle or parenthesis ( / )).
  • Audience Question: Where do the specific numbers x=3x = 3 and x=−1x = -1 come from in the radical sum evaluation?

    • Response: Those numbers are arbitrary illustrative choices selected to demonstrate behavior inside versus outside the domain: x=3x = 3 lies within the valid domain ([2,∞)[2, \infty)), whereas x=−1x = -1 lies outside and causes the function to become undefined.