Fiveable

📈College Algebra Unit 3 Review

QR code for College Algebra practice questions

3.4 Composition of Functions

3.4 Composition of Functions

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
📈College Algebra
Unit & Topic Study Guides

Function Operations and Composition

Function composition lets you chain two functions together so that the output of one becomes the input of the next. This shows up constantly in later math courses and in real-world modeling, where multi-step processes naturally feed into each other. Before getting to composition, though, you need to be comfortable combining functions with basic arithmetic.

Combining Functions Algebraically

You can add, subtract, multiply, or divide two functions ff and gg by performing that operation on their outputs for the same input xx.

  • Sum: (f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x)
  • Difference: (fg)(x)=f(x)g(x)(f - g)(x) = f(x) - g(x)
  • Product: (fg)(x)=f(x)g(x)(f \cdot g)(x) = f(x) \cdot g(x)
  • Quotient: (fg)(x)=f(x)g(x)\left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)}, where g(x)0g(x) \neq 0

For the sum, difference, and product, the domain is the intersection of the domains of ff and gg. Both functions have to be defined at a given xx for the combined function to work there.

For the quotient, you take that same intersection but also exclude any xx-values where g(x)=0g(x) = 0, since division by zero is undefined.

Example: If f(x)=xf(x) = \sqrt{x} (domain: x0x \geq 0) and g(x)=x3g(x) = x - 3 (domain: all reals), then the domain of (f+g)(f + g) is x0x \geq 0. The domain of (fg)\left(\frac{f}{g}\right) is x0x \geq 0 with x3x \neq 3.

Creation of Composite Functions

Composition creates a new function by feeding the output of one function into another:

(fg)(x)=f(g(x))(f \circ g)(x) = f(g(x))

Read this as "ff composed with gg of xx." The key idea: evaluate the inner function gg first, then plug that result into the outer function ff.

To evaluate a composite function (fg)(a)(f \circ g)(a) at a specific value:

  1. Calculate g(a)g(a).
  2. Take that result and plug it into ff. Your answer is f(g(a))f(g(a)).

Example: If f(x)=x2f(x) = x^2 and g(x)=x+3g(x) = x + 3, then (fg)(2)=f(g(2))=f(5)=25(f \circ g)(2) = f(g(2)) = f(5) = 25.

Order matters. Composition is not commutative. Using the same functions above, (gf)(2)=g(f(2))=g(4)=7(g \circ f)(2) = g(f(2)) = g(4) = 7, which is a completely different answer. Always pay close attention to which function is inner and which is outer.

Combining functions algebraically, Find domains and ranges of the toolkit functions | College Algebra

Domain of Composite Functions

Finding the domain of (fg)(f \circ g) requires a two-part check:

  1. Start with the domain of the inner function gg. The input xx must be in gg's domain.
  2. Check that g(x)g(x) lands in the domain of ff. The output of gg has to be a valid input for ff.
  3. The domain of (fg)(f \circ g) is the set of all xx-values that satisfy both conditions.

Example: Let f(x)=xf(x) = \sqrt{x} and g(x)=4x2g(x) = 4 - x^2. The domain of gg is all reals. But ff requires its input to be 0\geq 0, so you need g(x)0g(x) \geq 0, meaning 4x204 - x^2 \geq 0, which gives 2x2-2 \leq x \leq 2. That's the domain of (fg)(f \circ g).

Components of Composite Functions

Sometimes you'll be given a composite function and asked to break it into its component parts. The strategy is to identify what happens "inside" versus "outside."

  • The inner function gg is applied first (it's the part closest to xx).
  • The outer function ff is applied last (it's the operation that wraps around everything).

Example: If h(x)=(2x+1)3h(x) = (2x + 1)^3, you could decompose this as f(x)=x3f(x) = x^3 and g(x)=2x+1g(x) = 2x + 1, so h(x)=f(g(x))h(x) = f(g(x)). There's sometimes more than one valid decomposition, but look for the most natural split.

Combining functions algebraically, Find domain and range from graphs | College Algebra

Applications of Function Composition

Composition models any situation where one process feeds into another:

  • Unit conversion: If ff converts inches to feet and gg converts feet to meters, then (gf)(g \circ f) converts inches directly to meters.
  • Course grades: If ff converts raw scores to percentages and gg converts percentages to letter grades, then (gf)(g \circ f) takes raw scores straight to letter grades.
  • Business calculations: If R(x)R(x) gives revenue from xx units sold and C(x)C(x) gives cost, you could compose these with other functions to model multi-step financial processes.

The pattern is always the same: identify which process happens first (that's your inner function) and which happens second (that's your outer function).

Special Functions and Relationships

  • A one-to-one function produces a unique output for every unique input. Only one-to-one functions have inverse functions.
  • An inverse function "undoes" the original. If f(a)=bf(a) = b, then f1(b)=af^{-1}(b) = a. When you compose a function with its inverse, you get back to where you started: f(f1(x))=xf(f^{-1}(x)) = x.
  • The identity function f(x)=xf(x) = x leaves every input unchanged. It plays a role similar to multiplying by 1 or adding 0: composing any function with the identity function returns the original function.