Study guide

4.5 Algebra of Functions & Function Composition

CLEP College Algebra Exam

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: Introduction & Exam Overview

1.1 About the CLEP College Algebra Exam 1.2 Study Strategy & TI-30XS Calculator Mastery

2 Chapter 2: Algebraic Operations

2.1 Algebraic Expressions & Operations 2.2 Exponents & Scientific Notation 2.3 Factoring & Expanding Polynomials 2.4 Rational Expressions & Complex Fractions 2.5 Absolute Value & Radicals 2.6 Logarithmic Properties & Simplification

3 Chapter 3: Equations and Inequalities

3.1 Linear Equations & Linear Inequalities 3.2 Linear Functions, Slope & Graphs of Lines 3.3 Quadratic Equations & Quadratic Inequalities 3.4 Absolute Value Equations & Absolute Value Inequalities 3.5 Systems of Linear & Nonlinear Equations and Inequalities 3.6 Exponential & Logarithmic Equations

4 Chapter 4: Functions and Their Properties

4.1 Concept of a Function, Evaluation, Domain & Range 4.2 Representing & Modeling Functions: Verbal, Numerical, Graphical, Symbolic 4.3 Graphs of Functions, Intercepts, & Symmetry 4.4 Transformations of Functions 4.5 Algebra of Functions & Function Composition 4.6 Inverse Functions & Their Properties 4.7 Special Function Types: Polynomial, Rational, Piecewise & Power

5 Chapter 5: Number Systems and Operations

5.1 Real Number System & Order of Operations 5.2 Complex Numbers & Complex Arithmetic 5.3 Sequences, Series, & Factorials 5.4 The Binomial Theorem & Expansions

4.5 Algebra of Functions & Function Composition

Key Takeaways Explain This Topic AI

Function arithmetic defines (f + g)(x), (f - g)(x), (f · g)(x), and (f/g)(x) with domains equal to the intersection D_f ∩ D_g (excluding denominator zeros for quotients).

Function composition (f ∘ g)(x) = f(g(x)) evaluates the inner function g(x) first and feeds that output directly into the outer function f(x).

The domain of (f ∘ g)(x) consists of all x in the domain of g such that g(x) lies within the domain of f.

Function composition is non-commutative in general: f(g(x)) ≠ g(f(x)) for most functions.

Decomposing complex composite functions h(x) = f(g(x)) into inner and outer components is an essential analytical skill for calculus.

Last updated: August 2026

4.5 Algebra of Functions & Function Composition

Just as real numbers can be added, subtracted, multiplied, and divided, functions can also be combined using arithmetic operations to create new functions. Furthermore, functions can be composed by using the output of one function as the direct input to another. Understanding function operations, domain restrictions, and composition is essential for advanced algebra and calculus.

1. Arithmetic Operations on Functions

Given two functions f ( x ) f(x) f ( x ) and g ( x ) g(x) g ( x ) with domains D f D_f D f ​ and D g D_g D g ​ respectively, we define the four fundamental algebraic operations as follows:

Sum Function: ( f + g ) ( x ) = f ( x ) + g ( x ) (f + g)(x) = f(x) + g(x) ( f + g ) ( x ) = f ( x ) + g ( x )

Difference Function: ( f − g ) ( x ) = f ( x ) − g ( x ) (f - g)(x) = f(x) - g(x) ( f − g ) ( x ) = f ( x ) − g ( x )

Product Function: ( f ⋅ g ) ( x ) = f ( x ) ⋅ g ( x ) (f \cdot g)(x) = f(x) \cdot g(x) ( f ⋅ g ) ( x ) = f ( x ) ⋅ g ( x )

Quotient Function: ( f g ) ( x ) = f ( x ) g ( x ) , where g ( x ) ≠ 0 \left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)}, \quad \text{where } g(x) \ne 0 ( g f ​ ) ( x ) = g ( x ) f ( x ) ​ , where g ( x )  = 0

Domain Rules for Arithmetic Combination

For the sum, difference, and product functions, the new domain consists of all real numbers that are common to both individual domains (the intersection of D f D_f D f ​ and D g D_g D g ​ ): Domain of ( f + g ) , ( f − g ) , ( f ⋅ g ) = D f ∩ D g \text{Domain of } (f + g), (f - g), (f \cdot g) = D_f \cap D_g Domain of ( f + g ) , ( f − g ) , ( f ⋅ g ) = D f ​ ∩ D g ​

For the quotient function ( f g ) ( x ) \left(\frac{f}{g}\right)(x) ( g f ​ ) ( x ) , the domain requires an additional restriction: any input x x x that causes the denominator g ( x ) = 0 g(x) = 0 g ( x ) = 0 must be excluded: Domain of ( f g ) = { x ∈ ( D f ∩ D g ) ∣ g ( x ) ≠ 0 } \text{Domain of } \left(\frac{f}{g}\right) = \{ x \in (D_f \cap D_g) \mid g(x) \ne 0 \} Domain of ( g f ​ ) = { x ∈ ( D f ​ ∩ D g ​ ) ∣ g ( x )  = 0 }

Worked Example 1: Domain of a Quotient Function

Let f ( x ) = x − 1 f(x) = \sqrt{x - 1} f ( x ) = x − 1 ​ and g ( x ) = x − 5 g(x) = x - 5 g ( x ) = x − 5 . Determine the domain of ( f g ) ( x ) \left(\frac{f}{g}\right)(x) ( g f ​ ) ( x ) .

Step 1: Find D f D_f D f ​ . The radical requires x − 1 ≥ 0 ⟹ x ≥ 1 x - 1 \ge 0 \implies x \ge 1 x − 1 ≥ 0 ⟹ x ≥ 1 , so D f = [ 1 , ∞ ) D_f = [1, \infty) D f ​ = [ 1 , ∞ ) .

Step 2: Find D g D_g D g ​ . Polynomial function g ( x ) = x − 5 g(x) = x - 5 g ( x ) = x − 5 has no restrictions, so D g = ( − ∞ , ∞ ) D_g = (-\infty, \infty) D g ​ = ( − ∞ , ∞ ) .

Step 3: Intersect domains: D f ∩ D g = [ 1 , ∞ ) D_f \cap D_g = [1, \infty) D f ​ ∩ D g ​ = [ 1 , ∞ ) .

Step 4: Exclude zeros of g ( x ) g(x) g ( x ) : Set g ( x ) = 0 ⟹ x − 5 = 0 ⟹ x = 5 g(x) = 0 \implies x - 5 = 0 \implies x = 5 g ( x ) = 0 ⟹ x − 5 = 0 ⟹ x = 5 .

Conclusion: Exclude x = 5 x = 5 x = 5 from [ 1 , ∞ ) [1, \infty) [ 1 , ∞ ) . The domain of ( f g ) ( x ) \left(\frac{f}{g}\right)(x) ( g f ​ ) ( x ) is [ 1 , 5 ) ∪ ( 5 , ∞ ) [1, 5) \cup (5, \infty) [ 1 , 5 ) ∪ ( 5 , ∞ ) .

2. Function Composition ( f ∘ g ) ( x ) (f \circ g)(x) ( f ∘ g ) ( x )

Function composition is the process of evaluating one function inside another function. The operation is denoted by the circle symbol ∘ \circ ∘ . ( f ∘ g ) ( x ) = f ( g ( x ) ) (f \circ g)(x) = f\big(g(x)\big) ( f ∘ g ) ( x ) = f ( g ( x ) )

Read as " f f f composed with g g g of x x x " or " f f f of g g g of x x x ".

Inner Function ( g g g ): Evaluated first on input x x x .

Outer Function ( f f f ): Evaluated second on the resulting output g ( x ) g(x) g ( x ) .

Non-Commutativity of Composition

Unlike addition and multiplication, function composition is not commutative . In general: ( f ∘ g ) ( x ) ≠ ( g ∘ f ) ( x ) (f \circ g)(x) \ne (g \circ f)(x) ( f ∘ g ) ( x )  = ( g ∘ f ) ( x )

Worked Example 2: Evaluating Composite Functions

Given f ( x ) = x 2 − 4 f(x) = x^2 - 4 f ( x ) = x 2 − 4 and g ( x ) = 3 x + 2 g(x) = 3x + 2 g ( x ) = 3 x + 2 , evaluate ( f ∘ g ) ( 2 ) (f \circ g)(2) ( f ∘ g ) ( 2 ) and ( g ∘ f ) ( 2 ) (g \circ f)(2) ( g ∘ f ) ( 2 ) .

Evaluate ( f ∘ g ) ( 2 ) = f ( g ( 2 ) ) (f \circ g)(2) = f\big(g(2)\big) ( f ∘ g ) ( 2 ) = f ( g ( 2 ) ) :

Compute inner value g ( 2 ) g(2) g ( 2 ) : g ( 2 ) = 3 ( 2 ) + 2 = 6 + 2 = 8 g(2) = 3(2) + 2 = 6 + 2 = 8 g ( 2 ) = 3 ( 2 ) + 2 = 6 + 2 = 8 .

Substitute into outer function f f f : f ( 8 ) = ( 8 ) 2 − 4 = 64 − 4 = 60 f(8) = (8)^2 - 4 = 64 - 4 = 60 f ( 8 ) = ( 8 ) 2 − 4 = 64 − 4 = 60 .

Thus, ( f ∘ g ) ( 2 ) = 60 (f \circ g)(2) = 60 ( f ∘ g ) ( 2 ) = 60 .

Evaluate ( g ∘ f ) ( 2 ) = g ( f ( 2 ) ) (g \circ f)(2) = g\big(f(2)\big) ( g ∘ f ) ( 2 ) = g ( f ( 2 ) ) :

Compute inner value f ( 2 ) f(2) f ( 2 ) : f ( 2 ) = ( 2 ) 2 − 4 = 4 − 4 = 0 f(2) = (2)^2 - 4 = 4 - 4 = 0 f ( 2 ) = ( 2 ) 2 − 4 = 4 − 4 = 0 .

Substitute into outer function g g g : g ( 0 ) = 3 ( 0 ) + 2 = 2 g(0) = 3(0) + 2 = 2 g ( 0 ) = 3 ( 0 ) + 2 = 2 .

Thus, ( g ∘ f ) ( 2 ) = 2 (g \circ f)(2) = 2 ( g ∘ f ) ( 2 ) = 2 .

Notice that ( f ∘ g ) ( 2 ) = 60 ≠ 2 = ( g ∘ f ) ( 2 ) (f \circ g)(2) = 60 \ne 2 = (g \circ f)(2) ( f ∘ g ) ( 2 ) = 60  = 2 = ( g ∘ f ) ( 2 ) , confirming non-commutativity.

3. Finding the Domain of Composite Functions

Determining the domain of ( f ∘ g ) ( x ) = f ( g ( x ) ) (f \circ g)(x) = f(g(x)) ( f ∘ g ) ( x ) = f ( g ( x )) requires a strict two-step domain analysis: Domain of ( f ∘ g ) = { x ∈ D g ∣ g ( x ) ∈ D f } \text{Domain of } (f \circ g) = \{ x \in D_g \mid g(x) \in D_f \} Domain of ( f ∘ g ) = { x ∈ D g ​ ∣ g ( x ) ∈ D f ​ }

To find the domain of ( f ∘ g ) ( x ) (f \circ g)(x) ( f ∘ g ) ( x ) algebraically:

Step 1: State any domain restrictions on the inner function g ( x ) g(x) g ( x ) ( x ∈ D g x \in D_g x ∈ D g ​ ).

Step 2: Form the combined rule f ( g ( x ) ) f(g(x)) f ( g ( x )) and state any additional restrictions imposed by the outer function.

Step 3: Take the intersection of both sets of restrictions.

Worked Example 3: Rational Composite Domain

Find the domain of ( f ∘ g ) ( x ) (f \circ g)(x) ( f ∘ g ) ( x ) where f ( x ) = 1 x − 9 f(x) = \frac{1}{x - 9} f ( x ) = x − 9 1 ​ and g ( x ) = x 2 g(x) = x^2 g ( x ) = x 2 .

Step 1: Inner function g ( x ) = x 2 g(x) = x^2 g ( x ) = x 2 has domain D g = ( − ∞ , ∞ ) D_g = (-\infty, \infty) D g ​ = ( − ∞ , ∞ ) . No inner restrictions.

Step 2: Compose rule: ( f ∘ g ) ( x ) = f ( x 2 ) = 1 x 2 − 9 (f \circ g)(x) = f(x^2) = \frac{1}{x^2 - 9} ( f ∘ g ) ( x ) = f ( x 2 ) = x 2 − 9 1 ​ .

The outer function requires the denominator x 2 − 9 ≠ 0 x^2 - 9 \ne 0 x 2 − 9  = 0 : x 2 − 9 ≠ 0 ⟹ ( x − 3 ) ( x + 3 ) ≠ 0 ⟹ x ≠ 3 and x ≠ − 3 x^2 - 9 \ne 0 \implies (x - 3)(x + 3) \ne 0 \implies x \ne 3 \text{ and } x \ne -3 x 2 − 9  = 0 ⟹ ( x − 3 ) ( x + 3 )  = 0 ⟹ x  = 3 and x  = − 3

Step 3: Combining all restrictions gives: Domain: ( − ∞ , − 3 ) ∪ ( − 3 , 3 ) ∪ ( 3 , ∞ ) \text{Domain: } (-\infty, -3) \cup (-3, 3) \cup (3, \infty) Domain: ( − ∞ , − 3 ) ∪ ( − 3 , 3 ) ∪ ( 3 , ∞ )

4. Decomposing Composite Functions

In advanced mathematics and calculus (such as using the Chain Rule), it is often necessary to reverse the composition process by breaking a single complex function h ( x ) h(x) h ( x ) into an inner function g ( x ) g(x) g ( x ) and an outer function f ( x ) f(x) f ( x ) such that h ( x ) = f ( g ( x ) ) h(x) = f(g(x)) h ( x ) = f ( g ( x )) .

Strategy for Decomposition

Identify the Inner Function g ( x ) g(x) g ( x ) : Look for expressions inside parentheses, under radicals, inside absolute value bars, or in denominators.

Replace g ( x ) g(x) g ( x ) with variable u u u or x x x : The remaining outer structure becomes f ( x ) f(x) f ( x ) .

Worked Example 4: Decomposing a Radical Expression

Decompose h ( x ) = 4 x 2 − 9 3 h(x) = \sqrt[3]{4x^2 - 9} h ( x ) = 3 4 x 2 − 9 ​ into h ( x ) = f ( g ( x ) ) h(x) = f(g(x)) h ( x ) = f ( g ( x )) .

Identify inner function: The expression inside the cube root is g ( x ) = 4 x 2 − 9 g(x) = 4x^2 - 9 g ( x ) = 4 x 2 − 9 .

Identify outer function: Replacing the inner expression with variable input x x x yields f ( x ) = x 3 f(x) = \sqrt[3]{x} f ( x ) = 3 x ​ .

Check composition: f ( g ( x ) ) = f ( 4 x 2 − 9 ) = 4 x 2 − 9 3 = h ( x ) f(g(x)) = f(4x^2 - 9) = \sqrt[3]{4x^2 - 9} = h(x) f ( g ( x )) = f ( 4 x 2 − 9 ) = 3 4 x 2 − 9 ​ = h ( x ) , verifying the decomposition.