Solved Exercises on Composing Functions in Algebra 1

Master composing functions: function composition, domain restrictions, and evaluation techniques through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic Composition
Exercise 1
Given f(x) = 2x + 3 and g(x) = x - 1, find (f ∘ g)(x) and evaluate (f ∘ g)(4).
Definition:

Function composition: The operation of combining two functions where the output of one function becomes the input of another. Denoted as (f ∘ g)(x) = f(g(x)).

Composition method:
  1. Identify the inner function g(x)
  2. Substitute g(x) into f(x) wherever x appears
  3. Simplify the resulting expression
  4. To evaluate at a specific value, substitute the value into the composed function
Given
f(x) = 2x + 3
g(x) = x - 1
Composition
(f ∘ g)(x) = f(g(x))
Result
2x + 1
Step 1: Identify the functions

f(x) = 2x + 3 (outer function)
g(x) = x - 1 (inner function)

Step 2: Set up the composition

(f ∘ g)(x) = f(g(x))
This means we substitute g(x) into f(x)

Step 3: Substitute g(x) into f(x)

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

Step 4: Simplify the expression

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

Step 5: Evaluate at x = 4

(f ∘ g)(4) = 2(4) + 1 = 8 + 1 = 9

Step 6: Verify by evaluating step-by-step

g(4) = 4 - 1 = 3
f(3) = 2(3) + 3 = 6 + 3 = 9 ✓

(f ∘ g)(x) = 2x + 1 and (f ∘ g)(4) = 9
Final answer:

(f ∘ g)(x) = 2x + 1 and (f ∘ g)(4) = 9

Applied rules:

• Function composition: (f ∘ g)(x) = f(g(x))

• Substitution: Replace every x in f(x) with g(x)

• Distributive property: a(b + c) = ab + ac

2 Reverse Order
Exercise 2
Given f(x) = x² and g(x) = 3x + 2, find (g ∘ f)(x) and compare with (f ∘ g)(x).
Definition:

Order matters: Function composition is generally not commutative, meaning (f ∘ g)(x) ≠ (g ∘ f)(x) in most cases.

Given
f(x) = x²
g(x) = 3x + 2
Different Orders
(f ∘ g)(x) ≠ (g ∘ f)(x)
Results
9x² + 12x + 4
(3x + 2)²
Step 1: Find (g ∘ f)(x)

(g ∘ f)(x) = g(f(x))
g(f(x)) = g(x²)
g(x²) = 3(x²) + 2 = 3x² + 2

Step 2: Find (f ∘ g)(x) for comparison

(f ∘ g)(x) = f(g(x))
f(g(x)) = f(3x + 2)
f(3x + 2) = (3x + 2)²
f(3x + 2) = 9x² + 12x + 4

Step 3: Compare the results

(g ∘ f)(x) = 3x² + 2
(f ∘ g)(x) = 9x² + 12x + 4
These are different functions!

Step 4: Verify with a specific value

Let x = 1:
(g ∘ f)(1) = 3(1)² + 2 = 5
(f ∘ g)(1) = 9(1)² + 12(1) + 4 = 25

Step 5: Conclusion

Function composition is not commutative: order matters!

(g ∘ f)(x) = 3x² + 2 and (f ∘ g)(x) = 9x² + 12x + 4
Final answer:

(g ∘ f)(x) = 3x² + 2 and (f ∘ g)(x) = 9x² + 12x + 4. These are different functions.

Applied rules:

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

• Order matters: The sequence of function application affects the result

• Verification: Check with specific values to confirm different results

3 Complex Functions
Exercise 3
Given f(x) = √(x + 4) and g(x) = x² - 1, find (f ∘ g)(x) and determine its domain.
Definition:

Domain restriction: The domain of a composite function is restricted by both the domain of the inner function and the domain of the composite function itself.

Given
f(x) = √(x + 4)
g(x) = x² - 1
Composition
(f ∘ g)(x) = √(x² + 3)
Domain
All real numbers
Step 1: Set up the composition

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

Step 2: Substitute g(x) into f(x)

f(x² - 1) = √((x² - 1) + 4)
f(x² - 1) = √(x² - 1 + 4)
f(x² - 1) = √(x² + 3)

Step 3: Determine the domain of g(x)

g(x) = x² - 1 has domain: all real numbers

Step 4: Determine domain restriction from f(x)

For f(x) = √(x + 4), we need x + 4 ≥ 0, so x ≥ -4
Therefore, we need g(x) ≥ -4
x² - 1 ≥ -4
x² ≥ -3

Step 5: Solve the domain restriction

x² ≥ -3 is true for all real numbers since x² ≥ 0 for all real x
So x² ≥ -3 is automatically satisfied

Step 6: Find the final domain

Domain of (f ∘ g)(x) is all real numbers

(f ∘ g)(x) = √(x² + 3) with domain: all real numbers
Final answer:

(f ∘ g)(x) = √(x² + 3) and the domain is all real numbers

Applied rules:

• Domain of composite: Domain ⊆ Domain of inner function

• Range consideration: Range of inner function ⊆ Domain of outer function

• Square root domain: Expression under root ≥ 0

Rules and methods, laws,...
\((f \circ g)(x) = f(g(x))\)
Function Composition Definition
Composition Order
(f ∘ g)(x) ≠ (g ∘ f)(x)
Non-commutative operation
Domain Rule
Domain ⊆ Domain of g
Range of g ⊆ Domain of f
Evaluation Process
Inner → Outer
Substitute and simplify
Key definitions:

Function composition: The operation that combines two functions f and g to create a new function (f ∘ g) such that (f ∘ g)(x) = f(g(x)).

Inner function: The function that receives the input first in a composition. In (f ∘ g)(x), g(x) is the inner function.

Outer function: The function that processes the output of the inner function. In (f ∘ g)(x), f(x) is the outer function.

Domain of composite: The set of all x values for which the composite function is defined. This requires x to be in the domain of g and g(x) to be in the domain of f.

Non-commutative: Function composition does not commute in general: (f ∘ g)(x) ≠ (g ∘ f)(x).

Associative: Function composition is associative: (f ∘ g) ∘ h = f ∘ (g ∘ h).

Complete composition methodology:
  1. Identify functions: Determine f(x) and g(x) from the problem
  2. Identify order: Determine which function is inner and which is outer
  3. Set up composition: Write (f ∘ g)(x) = f(g(x)) or (g ∘ f)(x) = g(f(x))
  4. Substitute: Replace every instance of x in the outer function with the inner function
  5. Simplify: Expand and combine like terms if possible
  6. Determine domain: Find restrictions based on both functions
  7. Verify: Check with specific values if needed
Tip 1: Remember: (f ∘ g)(x) means "f of g of x" - apply g first, then f.
Tip 2: Order matters! (f ∘ g)(x) is usually different from (g ∘ f)(x).
Tip 3: Always check domain restrictions, especially with roots and denominators.
Tip 4: When substituting, replace EVERY occurrence of x in the outer function.
Common errors: Wrong order of composition, incomplete substitution, ignoring domain restrictions, incorrect simplification.
Exam preparation: Practice with different function types, focus on domain determination, master the substitution process.
Solution: Exercises 4 to 5
4 Rational Functions
Exercise 4
Given f(x) = 1/(x + 2) and g(x) = 2x - 3, find (f ∘ g)(x) and determine its domain.
Definition:

Rational function composition: When composing functions that involve fractions, the domain is restricted by values that make the denominator zero.

Given
f(x) = 1/(x + 2)
g(x) = 2x - 3
Composition
(f ∘ g)(x) = 1/(2x - 1)
Domain
x ≠ 1/2
Step 1: Set up the composition

(f ∘ g)(x) = f(g(x)) = f(2x - 3)

Step 2: Substitute g(x) into f(x)

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

Step 3: Find domain restriction from f(x)

For f(x) = 1/(x + 2), we need x + 2 ≠ 0, so x ≠ -2
Therefore, we need g(x) ≠ -2
2x - 3 ≠ -2
2x ≠ 1
x ≠ 1/2

Step 4: Check domain of g(x)

g(x) = 2x - 3 has domain: all real numbers

Step 5: Determine final domain

Domain of (f ∘ g)(x) is all real numbers except x = 1/2

Step 6: Verify with a value

Let x = 0: g(0) = -3, f(-3) = 1/(-3 + 2) = 1/(-1) = -1
(f ∘ g)(0) = 1/(2(0) - 1) = 1/(-1) = -1 ✓

(f ∘ g)(x) = 1/(2x - 1) with domain: x ≠ 1/2
Final answer:

(f ∘ g)(x) = 1/(2x - 1) and the domain is all real numbers except x = 1/2

Applied rules:

• Rational function domain: Denominator cannot equal zero

• Composite domain: Inner function's output must be in outer function's domain

• Restriction propagation: Domain restrictions from outer function apply to composite

5 Multi-step Composition
Exercise 5
Given f(x) = x² + 1, g(x) = 2x - 1, and h(x) = x + 3, find ((f ∘ g) ∘ h)(x).
Definition:

Associative property: Function composition is associative, meaning (f ∘ g) ∘ h = f ∘ (g ∘ h). We can compose functions in stages.

Given
f(x) = x² + 1
g(x) = 2x - 1
h(x) = x + 3
Stage 1
(f ∘ g)(x) = 4x² - 4x + 2
Final
((f ∘ g) ∘ h)(x) = 4x² + 20x + 26
Step 1: Find (f ∘ g)(x)

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

Step 2: Find ((f ∘ g) ∘ h)(x)

((f ∘ g) ∘ h)(x) = (f ∘ g)(h(x)) = (f ∘ g)(x + 3)
(f ∘ g)(x + 3) = 4(x + 3)² - 4(x + 3) + 2

Step 3: Expand the expression

4(x + 3)² - 4(x + 3) + 2
= 4(x² + 6x + 9) - 4x - 12 + 2
= 4x² + 24x + 36 - 4x - 12 + 2
= 4x² + 20x + 26

Step 4: Alternative approach - verify associativity

We can also compute f ∘ (g ∘ h):
(g ∘ h)(x) = g(h(x)) = g(x + 3) = 2(x + 3) - 1 = 2x + 5
f((g ∘ h)(x)) = f(2x + 5) = (2x + 5)² + 1 = 4x² + 20x + 26 ✓

Step 5: Determine domain

All functions have domain of all real numbers, so the composite function also has domain of all real numbers

Step 6: Verify with a value

Let x = 0: h(0) = 3, g(3) = 5, f(5) = 25 + 1 = 26
((f ∘ g) ∘ h)(0) = 0 + 0 + 26 = 26 ✓

((f ∘ g) ∘ h)(x) = 4x² + 20x + 26
Final answer:

((f ∘ g) ∘ h)(x) = 4x² + 20x + 26

Applied rules:

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

• Multi-stage composition: Compose functions step by step

• Perfect square expansion: (a + b)² = a² + 2ab + b²

Composing Functions: Comprehensive Summary
\((f \circ g)(x) = f(g(x))\)
Fundamental Composition Formula
Key definitions:

Function composition: The operation that combines two functions f and g to create a new function denoted (f ∘ g)(x) = f(g(x)). The output of g becomes the input of f.

Inner function: The function applied first in a composition. In (f ∘ g)(x), g(x) is the inner function.

Outer function: The function applied second in a composition. In (f ∘ g)(x), f(x) is the outer function.

Domain of composite: The set of all x in the domain of g such that g(x) is in the domain of f.

Non-commutative: In general, (f ∘ g)(x) ≠ (g ∘ f)(x). The order of composition matters.

Associative: Function composition is associative: (f ∘ g) ∘ h = f ∘ (g ∘ h).

Identity function: The function I(x) = x such that f ∘ I = I ∘ f = f.

Complete composition procedure:
  1. Identify functions: Determine which functions to compose
  2. Determine order: Identify which function is inner and which is outer
  3. Set up composition: Write the composition notation correctly
  4. Substitute systematically: Replace every x in the outer function with the inner function
  5. Simplify algebraically: Expand, combine like terms, factor if needed
  6. Determine domain: Find restrictions based on both functions
  7. Verify correctness: Check with specific values if needed
Tip 1: Think of composition as a "machine": input → g → f → output.
Tip 2: Always substitute EVERY occurrence of x in the outer function.
Tip 3: Check domain restrictions, especially for rational and radical functions.
Tip 4: Remember that order matters: (f ∘ g)(x) ≠ (g ∘ f)(x) in general.
Tip 5: For multi-step compositions, work from inside out or use associativity.
Common error patterns: Wrong order of composition, incomplete substitution, ignoring domain restrictions, incorrect algebraic manipulation, treating composition as multiplication.
Key concepts to remember: Composition is substitution, not multiplication; order matters; domain restrictions apply; verify with specific values; associate when needed.
Important rules:

• Definition: (f ∘ g)(x) = f(g(x))

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

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

• Domain: Domain of (f ∘ g) ⊆ Domain of g, and Range of g ⊆ Domain of f

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

Questions & Answers

Question: Why is function composition not commutative? It seems like it should be the same.

Answer: Function composition is not commutative because the order of operations matters. In (f ∘ g)(x) = f(g(x)), we apply g first, then f. In (g ∘ f)(x) = g(f(x)), we apply f first, then g.

Think of it like putting on clothes: putting on shoes then socks (socks ∘ shoes) is different from putting on socks then shoes (shoes ∘ socks).

For example, if f(x) = x² and g(x) = x + 1:
(f ∘ g)(x) = f(g(x)) = f(x + 1) = (x + 1)² = x² + 2x + 1
(g ∘ f)(x) = g(f(x)) = g(x²) = x² + 1

These are clearly different functions, so (f ∘ g)(x) ≠ (g ∘ f)(x).

The only time composition is commutative is for special pairs of functions that happen to commute.

Question: How do I find the domain of a composite function? It seems complicated.

Answer: Finding the domain of a composite function requires considering both functions:

Two conditions must be met:

  • Condition 1: x must be in the domain of the inner function
  • Condition 2: g(x) must be in the domain of the outer function

For example, if f(x) = √x and g(x) = x - 3, finding domain of (f ∘ g)(x):

  • g(x) = x - 3 has domain: all real numbers
  • For f(g(x)) = f(x - 3) = √(x - 3), we need x - 3 ≥ 0
  • So x ≥ 3
  • Domain of (f ∘ g)(x) is x ≥ 3

Always check both the inner function's domain and what values the inner function can output that are acceptable for the outer function.

Question: Is function composition associative? Can I group them however I want?

Answer: Yes, function composition is associative! This means that for three functions f, g, and h:

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

Both expressions equal f(g(h(x))), so you can group compositions as you prefer. This allows you to:

  • Compute compositions in stages: first find f ∘ g, then compose with h
  • Or compute inner compositions first: find g ∘ h, then compose with f
  • Either approach gives the same result

However, remember that while composition is associative, it is NOT commutative: (f ∘ g)(x) ≠ (g ∘ f)(x) in general.

This associativity property is very useful for computing complex compositions step by step.