Properties of Composite Functions in Precalculus

Master the properties of composite functions: associativity, non-commutativity, domain considerations, and identity functions with detailed exercises and solutions.

Solution: Exercises 1 to 3
1 Non-Commutativity
Exercise 1
Given f(x) = x² + 1 and g(x) = 2x - 3, demonstrate that function composition is not commutative by calculating both (f ∘ g)(x) and (g ∘ f)(x).
Definition:

Non-Commutativity: The property that (f ∘ g)(x) ≠ (g ∘ f)(x) in general. Function composition is not commutative, unlike addition or multiplication of real numbers.

Non-Commutativity Verification:
  1. Calculate (f ∘ g)(x) = f(g(x)) by substituting g(x) into f
  2. Calculate (g ∘ f)(x) = g(f(x)) by substituting f(x) into g
  3. Compare the results to show they are different
  4. Verify with a specific value to confirm the inequality
Composition
(f ∘ g)(x)
Result
4x² - 12x + 10
Composition
(g ∘ f)(x)
Step 1: Calculate (f ∘ g)(x) = f(g(x))

First find g(x): g(x) = 2x - 3

Then substitute g(x) into f: f(g(x)) = f(2x - 3)

f(2x - 3) = (2x - 3)² + 1

= 4x² - 12x + 9 + 1 = 4x² - 12x + 10

Step 2: Calculate (g ∘ f)(x) = g(f(x))

First find f(x): f(x) = x² + 1

Then substitute f(x) into g: g(f(x)) = g(x² + 1)

g(x² + 1) = 2(x² + 1) - 3

= 2x² + 2 - 3 = 2x² - 1

Step 3: Compare the results

(f ∘ g)(x) = 4x² - 12x + 10

(g ∘ f)(x) = 2x² - 1

Since 4x² - 12x + 10 ≠ 2x² - 1, function composition is not commutative

Step 4: Verify with specific value

Let x = 1:

(f ∘ g)(1) = 4(1)² - 12(1) + 10 = 4 - 12 + 10 = 2

(g ∘ f)(1) = 2(1)² - 1 = 2 - 1 = 1

Since 2 ≠ 1, this confirms non-commutativity

Step 5: Understand the conceptual difference

(f ∘ g)(x): First double x and subtract 3, then square and add 1

(g ∘ f)(x): First square x and add 1, then double and subtract 3

These are fundamentally different processes

Non-Commutativity Verified:
(f ∘ g)(x) = 4x² - 12x + 10
(g ∘ f)(x) = 2x² - 1
Since (f ∘ g)(x) ≠ (g ∘ f)(x), composition is not commutative
Order of application fundamentally changes the result
Final answer:

(f ∘ g)(x) = 4x² - 12x + 10 and (g ∘ f)(x) = 2x² - 1. Since these expressions are different, this demonstrates that function composition is not commutative.

Applied rules:

• Non-commutativity: (f ∘ g)(x) ≠ (g ∘ f)(x) in general

• Substitution principle: Replace x in outer function with entire inner function

• Order dependency: The sequence of operations matters significantly

• Verification: Specific values confirm theoretical results

2 Associative Property
Exercise 2
Given f(x) = x + 1, g(x) = 2x, and h(x) = x², verify that function composition is associative by showing (f ∘ g) ∘ h = f ∘ (g ∘ h).
Definition:

Associative Property: The property that ((f ∘ g) ∘ h)(x) = (f ∘ (g ∘ h))(x). Function composition is associative, meaning the grouping of functions doesn't affect the result.

Left Side
(f ∘ g) ∘ h
Right Side
f ∘ (g ∘ h)
Result
2x² + 1
Step 1: Calculate left side (f ∘ g) ∘ h

First find (f ∘ g)(x) = f(g(x)) = f(2x) = 2x + 1

Then calculate ((f ∘ g) ∘ h)(x) = (f ∘ g)(h(x)) = (f ∘ g)(x²)

= 2(x²) + 1 = 2x² + 1

Step 2: Calculate right side f ∘ (g ∘ h)

First find (g ∘ h)(x) = g(h(x)) = g(x²) = 2(x²) = 2x²

Then calculate (f ∘ (g ∘ h))(x) = f((g ∘ h)(x)) = f(2x²)

= 2x² + 1

Step 3: Compare results

Left side: (f ∘ g) ∘ h = 2x² + 1

Right side: f ∘ (g ∘ h) = 2x² + 1

Since both sides equal 2x² + 1, the associative property holds

Step 4: Verify with specific value

Let x = 2:

Left side: (f ∘ g) ∘ h at x = 2: h(2) = 4, (f ∘ g)(4) = 2(4) + 1 = 9

Right side: f ∘ (g ∘ h) at x = 2: (g ∘ h)(2) = 2(4) = 8, f(8) = 8 + 1 = 9

Both sides equal 9, confirming associativity

Step 5: Understand the concept

Associativity means we can write f ∘ g ∘ h without parentheses

Whether we group as (f ∘ g) ∘ h or f ∘ (g ∘ h), the result is the same

This allows flexibility in computation and notation

Step 6: Generalize the property

For any three functions f, g, h where compositions are defined:

(f ∘ g) ∘ h = f ∘ (g ∘ h)

This property holds regardless of the specific forms of the functions

Associativity Verified:
(f ∘ g) ∘ h = 2x² + 1
f ∘ (g ∘ h) = 2x² + 1
Since both sides are equal, composition is associative
Grouping doesn't affect the result
Final answer:

Both (f ∘ g) ∘ h and f ∘ (g ∘ h) equal 2x² + 1, confirming that function composition is associative. This means the way functions are grouped in composition does not affect the final result.

Applied rules:

• Associative property: (f ∘ g) ∘ h = f ∘ (g ∘ h)

• Sequential evaluation: Work from innermost to outermost

• Grouping independence: Parentheses placement doesn't affect result

• Notation simplification: Allows writing f ∘ g ∘ h without parentheses

3 Identity Function Property
Exercise 3
Given f(x) = 3x² - 2x + 1 and the identity function I(x) = x, show that (f ∘ I)(x) = f(x) and (I ∘ f)(x) = f(x). Explain the significance of this property.
Definition:

Identity Function: The function I(x) = x that leaves all inputs unchanged. When composed with any function f, it acts as a neutral element: (f ∘ I)(x) = f(x) and (I ∘ f)(x) = f(x).

Composition
(f ∘ I)(x)
Result
f(x)
Composition
(I ∘ f)(x)
Step 1: Calculate (f ∘ I)(x) = f(I(x))

I(x) = x

(f ∘ I)(x) = f(I(x)) = f(x) = 3x² - 2x + 1

Step 2: Calculate (I ∘ f)(x) = I(f(x))

f(x) = 3x² - 2x + 1

(I ∘ f)(x) = I(f(x)) = f(x) = 3x² - 2x + 1

Step 3: Verify the results

(f ∘ I)(x) = 3x² - 2x + 1 = f(x) ✓

(I ∘ f)(x) = 3x² - 2x + 1 = f(x) ✓

Step 4: Demonstrate with specific value

Let x = 2:

f(2) = 3(4) - 2(2) + 1 = 12 - 4 + 1 = 9

(f ∘ I)(2) = f(I(2)) = f(2) = 9 ✓

(I ∘ f)(2) = I(f(2)) = I(9) = 9 ✓

Step 5: Explain significance

The identity function I(x) = x acts as the "neutral element" for composition

Composing any function with the identity leaves the function unchanged

This is analogous to multiplying by 1 in arithmetic

Step 6: Generalize the property

For any function f and identity function I:

(f ∘ I)(x) = f(x) and (I ∘ f)(x) = f(x)

This property holds for all functions where the compositions are defined

Identity Property:
(f ∘ I)(x) = f(x) = 3x² - 2x + 1
(I ∘ f)(x) = f(x) = 3x² - 2x + 1
Identity function acts as neutral element for composition
Analogous to multiplication by 1 in arithmetic
Final answer:

Both (f ∘ I)(x) and (I ∘ f)(x) equal f(x) = 3x² - 2x + 1. This demonstrates that the identity function I(x) = x acts as a neutral element for function composition, leaving the original function unchanged.

Applied rules:

• Identity property: (f ∘ I)(x) = (I ∘ f)(x) = f(x)

• Neutral element: Identity function preserves the original function

• Commutativity with identity: Composition with identity is commutative

• Foundation property: Essential for defining inverse functions

Properties of Composite Functions Guide
(f \circ g)(x) = f(g(x))
Composition Definition
Non-Commutative
(f \circ g)(x) \neq (g \circ f)(x)
Order matters in composition
Associative
(f \circ g) \circ h = f \circ (g \circ h)
Grouping doesn't matter
Identity
(f \circ I)(x) = (I \circ f)(x) = f(x)
Identity leaves function unchanged
Key Definitions:

Function Composition: The operation of combining two functions where the output of one function becomes the input of another

Associative Property: The property that allows us to group function compositions differently without changing the result

Non-Commutative Property: The property that the order of functions in composition matters

Identity Function: The function I(x) = x that leaves all inputs unchanged when composed with other functions

Domain of Composition: The set of inputs for which the composition is defined

Property Verification Strategy:
  1. State the property: Clearly identify which property you're verifying
  2. Calculate both sides: Compute the expressions on both sides of the equation
  3. Simplify: Reduce both expressions to their simplest forms
  4. Compare: Check if both sides are equal (or different)
  5. Verify: Test with specific values to confirm your conclusion
Tip 1: Remember that function composition is not commutative: (f ∘ g)(x) ≠ (g ∘ f)(x) in general.
Tip 2: Function composition is associative: (f ∘ g) ∘ h = f ∘ (g ∘ h), allowing flexible grouping.
Tip 3: The identity function I(x) = x acts as a neutral element: (f ∘ I)(x) = (I ∘ f)(x) = f(x).
Tip 4: Always check domain restrictions when composing functions with limited domains.
Algebraic Structure: Functions with composition form a monoid (associative with identity) but not a group (not all functions have inverses).
Domain Considerations: The domain of (f ∘ g)(x) depends on both the domain of g and the domain of f.
Essential Properties:

• Associative: (f ∘ g) ∘ h = f ∘ (g ∘ h)

• Non-commutative: (f ∘ g)(x) ≠ (g ∘ f)(x) in general

• Identity: (f ∘ I)(x) = (I ∘ f)(x) = f(x)

• Domain: dom(f ∘ g) = {x ∈ dom(g) : g(x) ∈ dom(f)}

• Inverse connection: If f and g are inverses, then (f ∘ g)(x) = (g ∘ f)(x) = x

Solution: Exercises 4 to 5
4 Domain of Composite Functions
Exercise 4
Given f(x) = √(x - 2) and g(x) = 1/(x - 3), find the domain of (f ∘ g)(x) and (g ∘ f)(x). Explain why the domains differ.
Definition:

Domain of Composite Functions: The domain of (f ∘ g)(x) consists of all x in the domain of g such that g(x) is in the domain of f. This creates compound restrictions.

Composition
(f ∘ g)(x)
Domain
x ∈ (-∞, 3) ∪ [5, ∞)
Composition
(g ∘ f)(x)
Step 1: Analyze individual domains

f(x) = √(x - 2): requires x - 2 ≥ 0, so x ≥ 2

g(x) = 1/(x - 3): requires x - 3 ≠ 0, so x ≠ 3

dom(f) = [2, ∞), dom(g) = (-∞, 3) ∪ (3, ∞)

Step 2: Find domain of (f ∘ g)(x) = f(g(x))

First, x must be in dom(g): x ≠ 3

Second, g(x) must be in dom(f): g(x) ≥ 2

This means 1/(x - 3) ≥ 2

Step 3: Solve 1/(x - 3) ≥ 2

Case 1: x - 3 > 0 (i.e., x > 3): 1 ≥ 2(x - 3) → 1 ≥ 2x - 6 → 7 ≥ 2x → x ≤ 7/2

But x > 3 and x ≤ 7/2 = 3.5, so 3 < x ≤ 3.5

Case 2: x - 3 < 0 (i.e., x < 3): 1 ≤ 2(x - 3) → 1 ≤ 2x - 6 → 7 ≤ 2x → x ≥ 7/2

But x < 3 and x ≥ 3.5 is impossible

So we need x ≠ 3 and 3 < x ≤ 3.5, which gives 3 < x ≤ 3.5

Step 4: Wait, let's reconsider the inequality

We need 1/(x - 3) ≥ 2

1/(x - 3) ≥ 2 → 1 ≥ 2(x - 3) when x - 3 > 0 → 1 ≥ 2x - 6 → 7 ≥ 2x → x ≤ 3.5

But we also need x - 3 > 0 → x > 3

So 3 < x ≤ 3.5

When x - 3 < 0, multiplying by a negative number flips the inequality:

1 ≤ 2(x - 3) → x ≥ 3.5, but x < 3, which is impossible

Actually, let's reconsider: 1/(x - 3) ≥ 2

1/(x - 3) - 2 ≥ 0 → [1 - 2(x - 3)]/(x - 3) ≥ 0 → (1 - 2x + 6)/(x - 3) ≥ 0 → (7 - 2x)/(x - 3) ≥ 0

Step 5: Solve (7 - 2x)/(x - 3) ≥ 0

Zeros: 7 - 2x = 0 → x = 3.5

Undefined: x - 3 = 0 → x = 3

Test intervals: (-∞, 3), (3, 3.5), (3.5, ∞)

For x ∈ (3, 3.5): (7 - 2x) > 0 and (x - 3) > 0 → positive/positive = positive ✓

For x ∈ (3.5, ∞): (7 - 2x) < 0 and (x - 3) > 0 → negative/positive = negative ✗

For x ∈ (-∞, 3): (7 - 2x) > 0 and (x - 3) < 0 → positive/negative = negative ✗

At x = 3.5: (7 - 2(3.5))/(3.5 - 3) = 0/0.5 = 0 ✓

So dom(f ∘ g) = (3, 3.5]

Step 6: Find domain of (g ∘ f)(x) = g(f(x))

First, x must be in dom(f): x ≥ 2

Second, f(x) must be in dom(g): f(x) ≠ 3

This means √(x - 2) ≠ 3 → x - 2 ≠ 9 → x ≠ 11

So dom(g ∘ f) = [2, 11) ∪ (11, ∞)

Domain Analysis:
(f ∘ g)(x) domain: (3, 3.5]
(g ∘ f)(x) domain: [2, 11) ∪ (11, ∞)
Domains differ because restrictions apply differently
Order of composition affects domain restrictions
Final answer:

The domain of (f ∘ g)(x) is (3, 3.5], and the domain of (g ∘ f)(x) is [2, 11) ∪ (11, ∞). The domains differ because the order of composition affects how the individual domain restrictions interact.

Applied rules:

• Domain of composition: dom(f ∘ g) = {x ∈ dom(g) : g(x) ∈ dom(f)}

• Compound restrictions: Both functions must be defined in sequence

• Order dependency: Different orders create different domain restrictions

• Inequality solving: Careful consideration of sign changes when multiplying/dividing

5 Inverse Function Connection
Exercise 5
Given f(x) = 2x + 3 and its inverse f⁻¹(x) = (x - 3)/2, verify that (f ∘ f⁻¹)(x) = x and (f⁻¹ ∘ f)(x) = x. Explain the significance of this property.
Definition:

Inverse Function Property: If f and f⁻¹ are inverse functions, then (f ∘ f⁻¹)(x) = (f⁻¹ ∘ f)(x) = x. This means composing a function with its inverse yields the identity function.

Composition
(f ∘ f⁻¹)(x)
Result
x
Composition
(f⁻¹ ∘ f)(x)
Step 1: Calculate (f ∘ f⁻¹)(x)

(f ∘ f⁻¹)(x) = f(f⁻¹(x)) = f((x - 3)/2)

= 2((x - 3)/2) + 3 = (x - 3) + 3 = x

Step 2: Calculate (f⁻¹ ∘ f)(x)

(f⁻¹ ∘ f)(x) = f⁻¹(f(x)) = f⁻¹(2x + 3)

= ((2x + 3) - 3)/2 = 2x/2 = x

Step 3: Verify with specific value

Let x = 5:

(f ∘ f⁻¹)(5) = f(f⁻¹(5)) = f((5-3)/2) = f(1) = 2(1) + 3 = 5 ✓

(f⁻¹ ∘ f)(5) = f⁻¹(f(5)) = f⁻¹(2(5) + 3) = f⁻¹(13) = (13-3)/2 = 5 ✓

Step 4: Understand the inverse relationship

f undoes what f⁻¹ does, and vice versa

Applying a function then its inverse returns to the original input

This is the fundamental definition of inverse functions

Step 5: Explain significance

This property defines what it means for functions to be inverses

It's the foundation for solving equations using inverse operations

It shows that inverse functions are mutual inverses of each other

Step 6: Generalize the property

For any function f and its inverse f⁻¹:

(f ∘ f⁻¹)(x) = (f⁻¹ ∘ f)(x) = x

This is the defining characteristic of inverse functions

Inverse Function Property:
(f ∘ f⁻¹)(x) = x
(f⁻¹ ∘ f)(x) = x
Composition with inverse yields identity function
Defines the inverse relationship
Final answer:

Both (f ∘ f⁻¹)(x) and (f⁻¹ ∘ f)(x) equal x, confirming that f and f⁻¹ are indeed inverse functions. This property is the fundamental definition of inverse functions.

Applied rules:

• Inverse property: (f ∘ f⁻¹)(x) = (f⁻¹ ∘ f)(x) = x

• Mutual inverse: Functions are inverses of each other

• Undoing operation: Function and inverse cancel each other

• Definition property: This property defines inverse functions

Properties of Composite Functions Summary and Guide
(f \circ g)(x) = f(g(x))
Composition Operation
Key definitions:

Function Composition: The operation of combining two functions f and g to create a new function (f ∘ g) such that (f ∘ g)(x) = f(g(x)). This means we first apply g to x, then apply f to the result of g(x).

Associative Property: The property that (f ∘ g) ∘ h = f ∘ (g ∘ h), meaning the grouping of functions in composition doesn't affect the result.

Non-Commutative Property: The property that (f ∘ g)(x) ≠ (g ∘ f)(x) in general, meaning the order of functions in composition matters.

Identity Function: The function I(x) = x that acts as a neutral element for composition, satisfying (f ∘ I)(x) = (I ∘ f)(x) = f(x).

Domain of Composition: The set of all x in the domain of the inner function such that the output of the inner function is in the domain of the outer function.

Property verification methodology:
  1. Identify the property: Determine which property you're examining (associative, commutative, identity, etc.)
  2. Calculate both sides: Compute the expressions on both sides of the property equation
  3. Simplify expressions: Reduce both sides to their simplest equivalent forms
  4. Compare results: Determine if both sides are equal (or different)
  5. Verify with examples: Test with specific values to confirm your findings
  6. Generalize findings: Extend the specific case to the general property
Tip 1: Always remember that function composition is not commutative: (f ∘ g)(x) is generally not equal to (g ∘ f)(x).
Tip 2: Function composition is associative, so you can write f ∘ g ∘ h without parentheses, though the meaning is (f ∘ g) ∘ h.
Tip 3: The identity function I(x) = x is the neutral element for composition: (f ∘ I)(x) = (I ∘ f)(x) = f(x).
Tip 4: When finding the domain of (f ∘ g)(x), ensure x is in dom(g) and g(x) is in dom(f).
Algebraic Structure: Functions with composition form a monoid (associative with identity) but not a group since not all functions have inverses.
Domain Considerations: The domain of (f ∘ g)(x) is restricted by both the domain of g and the domain of f.
Essential properties to know:

• Associative property: (f ∘ g) ∘ h = f ∘ (g ∘ h)

• Non-commutative: (f ∘ g)(x) ≠ (g ∘ f)(x) in general

• Identity property: (f ∘ I)(x) = (I ∘ f)(x) = f(x), where I(x) = x

• Domain of composition: dom(f ∘ g) = {x ∈ dom(g) : g(x) ∈ dom(f)}

• Inverse property: If f and g are inverses, then (f ∘ g)(x) = (g ∘ f)(x) = x

• Composition with constant: If c is constant, (f ∘ g)(c) = f(g(c))

• Multiple composition: (f ∘ g ∘ h)(x) = f(g(h(x)))

Questions & Answers

Question: Why is function composition associative but not commutative? This seems contradictory to me.

Answer: These properties address different aspects of function composition:

Associativity concerns grouping: whether we compute (f ∘ g) ∘ h or f ∘ (g ∘ h). Both represent the sequence: apply h, then g, then f. The order of operations is the same, just the grouping differs.

Commutativity concerns ordering: whether f ∘ g equals g ∘ f. These represent different sequences: f ∘ g means "apply g then f", while g ∘ f means "apply f then g".

Analogy: Consider putting on clothes:

  • Associativity: ((socks then shoes) then shirt) = (socks then (shoes then shirt)) - you still put on socks first, then shoes, then shirt
  • Commutativity: (socks then shoes) vs (shoes then socks) - these are clearly different!

Many mathematical operations have one property without the other.

Question: How do I remember which function is the "inner" and which is the "outer" function in composition?

Answer: Here are some helpful memory aids:

Reading order: In (f ∘ g)(x), read as "f of g of x". The function closest to x (g) is applied first, so g is the inner function.

Position in notation: The function furthest to the right in the composition is the inner function:

  • (f ∘ g): g is inner, f is outer
  • (g ∘ f): f is inner, g is outer
  • (f ∘ g ∘ h): h is innermost, f is outermost

Process order: Inner function is applied first, then the outer function processes its output.

Mnemonic: "Right to left" - the rightmost function in the composition notation is evaluated first.

Question: What's the difference between (f ∘ g)(x) and f(x) · g(x)? They seem similar but I know they're different.

Answer: These are completely different operations:

Function Composition: (f ∘ g)(x) = f(g(x))

  • First apply g to x, then apply f to the result
  • Example: If f(x) = x² and g(x) = x + 1, then (f ∘ g)(x) = f(x + 1) = (x + 1)²
  • Order matters: (f ∘ g)(x) ≠ (g ∘ f)(x) in general
  • Creates a new function that represents a sequence of operations

Function Multiplication: (f · g)(x) = f(x) · g(x)

  • Apply both functions to x, then multiply the results
  • Example: If f(x) = x² and g(x) = x + 1, then (f · g)(x) = x² · (x + 1) = x³ + x²
  • Order doesn't matter: (f · g)(x) = (g · f)(x) (commutative)
  • Simply multiplies the outputs of both functions

The symbol ∘ specifically denotes composition (sequential operations), while · (or juxtaposition) denotes multiplication (arithmetic product of outputs).