Solved Exercises on Function Composition in Grade 10

Master function composition: linear, quadratic, polynomial, rational, and trigonometric function compositions through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Linear Function Composition
Exercise 1
Given f(x) = 2x + 3 and g(x) = x - 4, find (f ∘ g)(x) and (g ∘ f)(x). Then evaluate (f ∘ g)(5) and (g ∘ f)(5).
Definitions:

Function composition: The combination of two functions where the output of one function becomes the input of another

(f ∘ g)(x): Read as "f composed with g of x", meaning f(g(x))

(g ∘ f)(x): Read as "g composed with f of x", meaning g(f(x))

Solution method:
  1. Identify the functions: Determine which function is the outer and which is the inner
  2. Substitute: Replace the variable in the outer function with the inner function
  3. Simplify: Perform algebraic operations to get the final expression
  4. Evaluate: Substitute specific values if required
Given
f(x) = 2x + 3, g(x) = x - 4
Compositions
(f ∘ g)(x) = 2x - 5, (g ∘ f)(x) = 2x - 1
Evaluations
(f ∘ g)(5) = 5, (g ∘ f)(5) = 9
Step 1: Find (f ∘ g)(x) = f(g(x))

First, find g(x): g(x) = x - 4

Now substitute g(x) into f: f(g(x)) = f(x - 4)

Apply f to (x - 4): f(x - 4) = 2(x - 4) + 3

= 2x - 8 + 3 = 2x - 5

So (f ∘ g)(x) = 2x - 5

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

First, find f(x): f(x) = 2x + 3

Now substitute f(x) into g: g(f(x)) = g(2x + 3)

Apply g to (2x + 3): g(2x + 3) = (2x + 3) - 4

= 2x + 3 - 4 = 2x - 1

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

Step 3: Evaluate (f ∘ g)(5)

(f ∘ g)(5) = 2(5) - 5 = 10 - 5 = 5

Step 4: Evaluate (g ∘ f)(5)

(g ∘ f)(5) = 2(5) - 1 = 10 - 1 = 9

Step 5: Verify by direct computation

For (f ∘ g)(5): g(5) = 5 - 4 = 1, then f(1) = 2(1) + 3 = 5 ✓

For (g ∘ f)(5): f(5) = 2(5) + 3 = 13, then g(13) = 13 - 4 = 9 ✓

(f ∘ g)(x) = 2x - 5, (g ∘ f)(x) = 2x - 1, (f ∘ g)(5) = 5, (g ∘ f)(5) = 9
Final answer:

(f ∘ g)(x) = 2x - 5, (g ∘ f)(x) = 2x - 1. (f ∘ g)(5) = 5, (g ∘ f)(5) = 9.

Applied rules:

• Composition order: Work from inside out (apply inner function first)

• Substitution: Replace variable in outer function with entire inner function

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

TIP: Function composition is not commutative, so (f ∘ g)(x) and (g ∘ f)(x) are usually different.
2 Quadratic Function Composition
Exercise 2
Given h(x) = x² + 1 and k(x) = 3x - 2, find (h ∘ k)(x) and (k ∘ h)(x). Determine if these compositions are equivalent.
Definition:

Quadratic function composition: Composing functions where at least one is quadratic (contains x² term)

Given
h(x) = x² + 1, k(x) = 3x - 2
Compositions
(h ∘ k)(x) = 9x² - 12x + 5, (k ∘ h)(x) = 3x² + 1
Equivalent?
No
Step 1: Find (h ∘ k)(x) = h(k(x))

First, find k(x): k(x) = 3x - 2

Now substitute k(x) into h: h(k(x)) = h(3x - 2)

Apply h to (3x - 2): h(3x - 2) = (3x - 2)² + 1

Expand (3x - 2)²: (3x - 2)² = 9x² - 12x + 4

So h(3x - 2) = 9x² - 12x + 4 + 1 = 9x² - 12x + 5

Therefore (h ∘ k)(x) = 9x² - 12x + 5

Step 2: Find (k ∘ h)(x) = k(h(x))

First, find h(x): h(x) = x² + 1

Now substitute h(x) into k: k(h(x)) = k(x² + 1)

Apply k to (x² + 1): k(x² + 1) = 3(x² + 1) - 2

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

Therefore (k ∘ h)(x) = 3x² + 1

Step 3: Compare the compositions

(h ∘ k)(x) = 9x² - 12x + 5

(k ∘ h)(x) = 3x² + 1

These are not equal since the coefficients of x² and x terms are different

Step 4: Verify with a specific value

Let x = 0:

(h ∘ k)(0) = 9(0)² - 12(0) + 5 = 5

(k ∘ h)(0) = 3(0)² + 1 = 1

Since 5 ≠ 1, the compositions are not equivalent

(h ∘ k)(x) = 9x² - 12x + 5, (k ∘ h)(x) = 3x² + 1, Not equivalent
Final answer:

(h ∘ k)(x) = 9x² - 12x + 5, (k ∘ h)(x) = 3x² + 1. These compositions are not equivalent.

Applied rules:

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

• Distribution: a(b + c) = ab + ac

• Non-commutativity: Function composition is generally not commutative

TIP: When composing with quadratic functions, be careful with expanding binomials.
3 Polynomial Function Composition
Exercise 3
Given p(x) = x³ - 2x and q(x) = x² + 1, find (p ∘ q)(x) and (q ∘ p)(x). Simplify both expressions completely.
Definition:

Polynomial function composition: Composing functions where both are polynomials of any degree

Given
p(x) = x³ - 2x, q(x) = x² + 1
Compositions
(p ∘ q)(x) = x⁶ + 3x⁴ - x² - 2, (q ∘ p)(x) = x⁶ - 4x⁴ + 5x² + 1
Simplified
Both fully expanded
Step 1: Find (p ∘ q)(x) = p(q(x))

First, find q(x): q(x) = x² + 1

Now substitute q(x) into p: p(q(x)) = p(x² + 1)

Apply p to (x² + 1): p(x² + 1) = (x² + 1)³ - 2(x² + 1)

Step 2: Expand (x² + 1)³

(x² + 1)³ = (x²)³ + 3(x²)²(1) + 3(x²)(1)² + (1)³

= x⁶ + 3x⁴ + 3x² + 1

Step 3: Complete the expansion

p(x² + 1) = (x⁶ + 3x⁴ + 3x² + 1) - 2(x² + 1)

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

= x⁶ + 3x⁴ + x² - 1

Wait, let me recalculate: x² - 2x² = -x², and 1 - 2 = -1

= x⁶ + 3x⁴ - x² - 1

Step 4: Find (q ∘ p)(x) = q(p(x))

First, find p(x): p(x) = x³ - 2x

Now substitute p(x) into q: q(p(x)) = q(x³ - 2x)

Apply q to (x³ - 2x): q(x³ - 2x) = (x³ - 2x)² + 1

Step 5: Expand (x³ - 2x)²

(x³ - 2x)² = (x³)² - 2(x³)(2x) + (2x)²

= x⁶ - 4x⁴ + 4x²

Step 6: Complete the expansion

q(x³ - 2x) = (x⁶ - 4x⁴ + 4x²) + 1

= x⁶ - 4x⁴ + 4x² + 1

Step 7: Final results

(p ∘ q)(x) = x⁶ + 3x⁴ - x² - 1

(q ∘ p)(x) = x⁶ - 4x⁴ + 4x² + 1

(p ∘ q)(x) = x⁶ + 3x⁴ - x² - 1, (q ∘ p)(x) = x⁶ - 4x⁴ + 4x² + 1
Final answer:

(p ∘ q)(x) = x⁶ + 3x⁴ - x² - 1, (q ∘ p)(x) = x⁶ - 4x⁴ + 4x² + 1.

Applied rules:

• Binomial expansion: Use binomial theorem for higher powers

• Polynomial multiplication: Distribute each term carefully

• Like terms: Combine terms with the same degree

TIP: When raising polynomials to powers, use the binomial theorem or FOIL method systematically.
Function Composition Fundamentals
\((f \circ g)(x) = f(g(x))\)
Function Composition
Composition
\((f \circ g)(x)\)
Apply g then f
Order
\((f \circ g)(x) \neq (g \circ f)(x)\)
Generally non-commutative
Identity
\((f \circ f^{-1})(x) = x\)
Inverse property
Key definitions:

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

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

Non-commutativity: In general, (f ∘ g)(x) ≠ (g ∘ f)(x), meaning the order of composition matters.

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

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

Composition Process:
  1. Identify functions: Determine which function is the outer function and which is the inner
  2. Check domains: Ensure the composition is defined for the given domain
  3. Substitute: Replace the variable in the outer function with the entire inner function
  4. Expand: Use algebraic techniques to simplify the expression
  5. Combine: Collect like terms and arrange in standard form
  6. Verify: Check that the result makes mathematical sense
Tip 1: Always work from inside out: apply the inner function first, then the outer function.
Tip 2: Use parentheses liberally to avoid errors when substituting complex expressions.
Tip 3: Remember that (f ∘ g)(x) and (g ∘ f)(x) are usually different functions.
Tip 4: When composing with quadratic or higher-degree functions, be careful with expansion.
Common errors: Forgetting order of operations, incorrect substitution, sign errors, mixing up f(g(x)) and g(f(x)).
Exam preparation: Practice different function types, master algebraic manipulation, understand domain restrictions.
Essential Composition Properties:

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

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

• Identity element: There exists an identity function I(x) = x such that f ∘ I = I ∘ f = f

• Domain restriction: The domain of f ∘ g is restricted to values where g(x) is in the domain of f

• Degree property: The degree of a polynomial composition is the product of the degrees of the composed functions

Composition Notation:

Standard notation: (f ∘ g)(x) = f(g(x)) - read as "f composed with g of x"

Alternative notation: fg(x) or f[g(x)] - less common but equivalent

Chain notation: For multiple compositions: (f ∘ g ∘ h)(x) = f(g(h(x)))

Solution: Exercises 4 to 5
4 Rational Function Composition
Exercise 4
Given r(x) = 1/(x + 2) and s(x) = 2x - 1, find (r ∘ s)(x) and (s ∘ r)(x). State the domain of each composite function.
Definition:

Rational function composition: Composing functions where at least one is a rational function (ratio of polynomials)

Given
r(x) = 1/(x + 2), s(x) = 2x - 1
Compositions
(r ∘ s)(x) = 1/(2x + 1), (s ∘ r)(x) = (2 - x)/(x + 2)
Domains
Dom(r ∘ s) = ℝ∖{-1/2}, Dom(s ∘ r) = ℝ∖{-2}
Step 1: Find (r ∘ s)(x) = r(s(x))

First, find s(x): s(x) = 2x - 1

Now substitute s(x) into r: r(s(x)) = r(2x - 1)

Apply r to (2x - 1): r(2x - 1) = 1/((2x - 1) + 2)

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

So (r ∘ s)(x) = 1/(2x + 1)

Step 2: Determine domain of (r ∘ s)(x)

The composite function is undefined when the denominator is zero

2x + 1 = 0

2x = -1

x = -1/2

Domain of (r ∘ s)(x): ℝ∖{-1/2}

Step 3: Find (s ∘ r)(x) = s(r(x))

First, find r(x): r(x) = 1/(x + 2)

Now substitute r(x) into s: s(r(x)) = s(1/(x + 2))

Apply s to 1/(x + 2): s(1/(x + 2)) = 2(1/(x + 2)) - 1

= 2/(x + 2) - 1

Step 4: Simplify (s ∘ r)(x)

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

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

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

= (-x)/(x + 2)

= -x/(x + 2)

Or equivalently: (2 - x)/(x + 2) - 1 = (2 - x - x - 2)/(x + 2) = -2x/(x + 2)

Actually: 2/(x + 2) - 1 = (2 - (x + 2))/(x + 2) = (2 - x - 2)/(x + 2) = -x/(x + 2)

Step 5: Determine domain of (s ∘ r)(x)

The composite function is undefined when the denominator is zero

x + 2 = 0

x = -2

Domain of (s ∘ r)(x): ℝ∖{-2}

Step 6: Verify with specific values

Let x = 0: (r ∘ s)(0) = 1/(2(0) + 1) = 1/1 = 1

Direct calculation: s(0) = -1, r(-1) = 1/(-1 + 2) = 1/1 = 1 ✓

(r ∘ s)(x) = 1/(2x + 1), (s ∘ r)(x) = -x/(x + 2), Dom(r ∘ s) = ℝ∖{-1/2}, Dom(s ∘ r) = ℝ∖{-2}
Final answer:

(r ∘ s)(x) = 1/(2x + 1), (s ∘ r)(x) = -x/(x + 2). Domain of (r ∘ s)(x) is all real numbers except x = -1/2. Domain of (s ∘ r)(x) is all real numbers except x = -2.

Applied rules:

• Rational function substitution: Replace variable carefully in denominator

• Domain restrictions: Exclude values that make any denominator zero

• Algebraic simplification: Find common denominators when combining fractions

TIP: When composing rational functions, pay special attention to domain restrictions as they may change.
5 Trigonometric Function Composition
Exercise 5
Given u(x) = sin(x) and v(x) = x², find (u ∘ v)(x) and (v ∘ u)(x). Compare the resulting functions and explain their differences.
Definition:

Trigonometric function composition: Composing functions where at least one is a trigonometric function

Given
u(x) = sin(x), v(x) = x²
Compositions
(u ∘ v)(x) = sin(x²), (v ∘ u)(x) = sin²(x)
Comparison
Different behaviors
Step 1: Find (u ∘ v)(x) = u(v(x))

First, find v(x): v(x) = x²

Now substitute v(x) into u: u(v(x)) = u(x²)

Apply u to x²: u(x²) = sin(x²)

So (u ∘ v)(x) = sin(x²)

Step 2: Find (v ∘ u)(x) = v(u(x))

First, find u(x): u(x) = sin(x)

Now substitute u(x) into v: v(u(x)) = v(sin(x))

Apply v to sin(x): v(sin(x)) = (sin(x))²

= sin²(x)

So (v ∘ u)(x) = sin²(x)

Step 3: Compare the functions

(u ∘ v)(x) = sin(x²): The sine function is applied to x²

(v ∘ u)(x) = sin²(x): The square function is applied to sin(x)

Step 4: Analyze the differences

For (u ∘ v)(x) = sin(x²):

  • The input to sine is x², which grows quadratically
  • The function oscillates more rapidly as |x| increases
  • Domain: ℝ, Range: [-1, 1]
Step 5: Analyze (v ∘ u)(x) = sin²(x)

For (v ∘ u)(x) = sin²(x):

  • This is the square of the sine function
  • Always non-negative: 0 ≤ sin²(x) ≤ 1
  • Periodic with period π (not 2π like sin(x))
  • Domain: ℝ, Range: [0, 1]
Step 6: Verify with specific values

Let x = π/2:

(u ∘ v)(π/2) = sin((π/2)²) = sin(π²/4) ≈ sin(2.47) ≈ 0.62

(v ∘ u)(π/2) = sin²(π/2) = (1)² = 1

These are clearly different values

(u ∘ v)(x) = sin(x²), (v ∘ u)(x) = sin²(x), Different functions with different behaviors
Final answer:

(u ∘ v)(x) = sin(x²), (v ∘ u)(x) = sin²(x). These are different functions: sin(x²) oscillates with varying frequency, while sin²(x) is always non-negative with range [0,1].

Applied rules:

• Trigonometric composition: Apply trigonometric function to algebraic expression

• Notation: sin²(x) means (sin(x))²

• Function behavior: Composition order significantly affects the resulting function's properties

TIP: When composing trigonometric functions, remember that the order of composition changes the fundamental behavior of the resulting function.
Detailed Summary: Function Composition
\((f \circ g \circ h)(x) = f(g(h(x)))\)
Chain Composition
Comprehensive Definitions:

Function composition: The process of applying one function to the results of another function. The composition (f ∘ g)(x) means "apply g first, then apply f to the result."

Outer function: The function that receives the output of another function as its input (f in f(g(x))).

Inner function: The function whose output becomes the input of another function (g in f(g(x))).

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

Identity function: The function I(x) = x that leaves any input unchanged when composed with another function.

Composition Analysis Strategy:
  1. Identify the functions: Determine which function is the outer function and which is the inner function
  2. Check the domain: Ensure that the composition is defined for the given domain
  3. Substitute systematically: Replace the variable in the outer function with the entire inner function
  4. Simplify algebraically: Use appropriate algebraic techniques to expand and combine terms
  5. Verify the result: Check that the composition makes mathematical sense
  6. Compare with alternatives: If applicable, compare (f ∘ g)(x) with (g ∘ f)(x)
Tip 1: Always work from inside out: apply the innermost function first, then work outward.
Tip 2: Use parentheses to group the inner function when substituting into the outer function.
Tip 3: Remember that function composition is not commutative: (f ∘ g)(x) ≠ (g ∘ f)(x) in general.
Tip 4: When composing with rational functions, watch for domain restrictions that may change.
Tip 5: For polynomial compositions, the degree of the result is the product of the degrees of the original functions.
Common misconceptions: Thinking composition is commutative, forgetting domain restrictions, incorrectly substituting complex expressions, confusing function multiplication with composition.
Memory aids: "FOCI" - Function Of Composition Inner, "Inside out" for order of operations, "Parentheses protect" for substitution.
Composition Properties:

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

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

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

• Degree property: For polynomials, deg(f ∘ g) = deg(f) × deg(g)

• Domain restriction: Domain of f ∘ g is {x ∈ domain(g) | g(x) ∈ domain(f)}

Special Cases:

Inverse functions: If f and g are inverse functions, then (f ∘ g)(x) = (g ∘ f)(x) = x

Self-composition: (f ∘ f)(x) = f(f(x)), often denoted as f²(x)

Constant functions: Composing with a constant function yields a constant output

Linear functions: Composition of linear functions results in another linear function

Polynomial functions: Composition preserves the polynomial nature but increases complexity

Evaluation Techniques:

• Direct substitution: Replace variable with the entire inner function expression

• Step-by-step evaluation: Evaluate the inner function first, then apply the outer function

• Verification: Use specific values to check that your composition is correct

• Domain checking: Ensure that the composition is defined for all values in the domain

• Graphical verification: Plot both the composition and the step-by-step evaluation to confirm

Questions & Answers

Question: I'm confused about the notation (f ∘ g)(x). What does the little circle mean?

Answer: The symbol ∘ is the composition operator. (f ∘ g)(x) is read as "f composed with g of x" and means f(g(x)).

Think of it as a "chain reaction": first apply g to x, then apply f to the result of g(x).

It's important to note that f ∘ g is different from f · g (which would be multiplication) or f + g (addition).

The circle symbol specifically indicates function composition, not any other operation.

Question: Why is (f ∘ g)(x) not always equal to (g ∘ f)(x)? Shouldn't function composition be commutative?

Answer: Function composition is NOT commutative in general. This is because composition represents a sequence of operations:

  • (f ∘ g)(x) means "apply g first, then apply f"
  • (g ∘ f)(x) means "apply f first, then apply g"

Since the order of operations matters, these are usually different functions.

Example: Let f(x) = 2x and g(x) = x + 1

  • (f ∘ g)(x) = f(g(x)) = f(x + 1) = 2(x + 1) = 2x + 2
  • (g ∘ f)(x) = g(f(x)) = g(2x) = 2x + 1

Since 2x + 2 ≠ 2x + 1, we see that (f ∘ g)(x) ≠ (g ∘ f)(x).

Question: How do I find the domain of a composite function?

Answer: 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.

Steps to find the domain:

  1. Find the domain of the inner function g(x)
  2. Find the domain of the outer function f(x)
  3. Determine which values in the domain of g produce outputs that are in the domain of f
  4. Take the intersection of these restrictions

For example, if f(x) = 1/x and g(x) = x - 2, then (f ∘ g)(x) = 1/(x - 2). The domain excludes x = 2 because g(2) = 0, and f(0) is undefined.

Question: Can I compose more than two functions together?

Answer: Yes! You can compose any number of functions. For example, (f ∘ g ∘ h)(x) means f(g(h(x))).

Composition is associative, meaning (f ∘ g) ∘ h = f ∘ (g ∘ h), so you can group them however you want.

When evaluating (f ∘ g ∘ h)(x), work from the inside out:

  1. First calculate h(x)
  2. Then calculate g(h(x))
  3. Finally calculate f(g(h(x)))

Just remember to follow the order: the rightmost function is applied first.

Question: What happens when I compose a function with its inverse?

Answer: When you compose a function with its inverse, you get the identity function!

If f and f⁻¹ are inverse functions, then:

  • (f ∘ f⁻¹)(x) = x (the identity function)
  • (f⁻¹ ∘ f)(x) = x (the identity function)

This is because inverse functions "undo" each other. If f transforms x into y, then f⁻¹ transforms y back into x.

Example: If f(x) = 2x + 3, then f⁻¹(x) = (x - 3)/2

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