Fiveable

๐Ÿ“Honors Pre-Calculus Unit 1 Review

QR code for Honors Pre-Calculus practice questions

1.4 Composition of Functions

1.4 Composition of Functions

Written by the Fiveable Content Team โ€ข Last updated August 2025
Written by the Fiveable Content Team โ€ข Last updated August 2025
๐Ÿ“Honors Pre-Calculus
Unit & Topic Study Guides
Pep mascot

Composition of Functions

Functions can be combined algebraically or through composition to build new, more complex functions. These operations show up constantly in pre-calc and calculus, so getting comfortable with them now pays off. This section covers algebraic combinations, how to compose functions, how to find their domains, and how to decompose them into parts.

Pep mascot
more resources to help you study

Combining Functions Algebraically

You can combine two functions at each input value using the standard arithmetic operations:

  • Sum: (f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x)
  • Difference: (fโˆ’g)(x)=f(x)โˆ’g(x)(f - g)(x) = f(x) - g(x)
  • Product: (fโ‹…g)(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)}, defined only where g(x)โ‰ 0g(x) \neq 0

Each of these works "point-wise," meaning you evaluate both functions at the same xx and then combine the results. For the quotient, you must exclude any xx-values where g(x)=0g(x) = 0 from the domain.

Construction of Composite Functions

Composition is different from the arithmetic combinations above. Instead of combining two outputs, you feed one function's output into the other function as its input.

The notation (fโˆ˜g)(x)(f \circ g)(x) means f(g(x))f(g(x)): evaluate gg first, then plug that result into ff.

Here's the process:

  1. Start with your input xx.
  2. Evaluate the inner function g(x)g(x).
  3. Take that output and use it as the input for the outer function ff.
  4. The final result is f(g(x))f(g(x)).

Order matters. Composition is not commutative, so (fโˆ˜g)(x)(f \circ g)(x) and (gโˆ˜f)(x)(g \circ f)(x) are generally not the same.

For example, let f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2:

  • (fโˆ˜g)(x)=f(g(x))=f(x2)=2x2+1(f \circ g)(x) = f(g(x)) = f(x^2) = 2x^2 + 1
  • (gโˆ˜f)(x)=g(f(x))=g(2x+1)=(2x+1)2=4x2+4x+1(g \circ f)(x) = g(f(x)) = g(2x + 1) = (2x + 1)^2 = 4x^2 + 4x + 1

Those are clearly different functions, which is why you always need to pay attention to which function is inner and which is outer.

Combining functions algebraically, Use long division to divide polynomials | Precalculus I

Values of Composite Functions

To evaluate a composite function at a specific number, work from the inside out:

  1. Plug the given xx-value into the inner function gg.
  2. Take that numerical result and plug it into the outer function ff.

Example: Suppose f(x)=x2f(x) = x^2 and g(x)=3xโˆ’2g(x) = 3x - 2. Find (fโˆ˜g)(1)(f \circ g)(1).

  1. Evaluate the inner function: g(1)=3(1)โˆ’2=1g(1) = 3(1) - 2 = 1

  2. Plug into the outer function: f(1)=12=1f(1) = 1^2 = 1

  3. So (fโˆ˜g)(1)=1(f \circ g)(1) = 1

This extends to chains of three or more functions. For (fโˆ˜gโˆ˜h)(x)=f(g(h(x)))(f \circ g \circ h)(x) = f(g(h(x))), you evaluate hh first, then gg, then ff. Always work from the innermost function outward.

Domain of Composite Functions

Finding the domain of (fโˆ˜g)(x)(f \circ g)(x) requires two conditions to be satisfied simultaneously:

  1. xx must be in the domain of gg (so g(x)g(x) is defined).
  2. g(x)g(x) must be in the domain of ff (so f(g(x))f(g(x)) is defined).

The domain of the composite is the set of all xx-values that satisfy both conditions.

Example: Let f(x)=xf(x) = \sqrt{x} and g(x)=x2โˆ’4g(x) = x^2 - 4.

  • The domain of gg is all real numbers (no restrictions on a polynomial).
  • The domain of ff requires its input to be โ‰ฅ0\geq 0, so you need g(x)โ‰ฅ0g(x) \geq 0.
  • Solve x2โˆ’4โ‰ฅ0x^2 - 4 \geq 0, which factors as (xโˆ’2)(x+2)โ‰ฅ0(x-2)(x+2) \geq 0. This gives xโ‰คโˆ’2x \leq -2 or xโ‰ฅ2x \geq 2.

So the domain of (fโˆ˜g)(x)=x2โˆ’4(f \circ g)(x) = \sqrt{x^2 - 4} is (โˆ’โˆž,โˆ’2]โˆช[2,โˆž)(-\infty, -2] \cup [2, \infty).

Combining functions algebraically, Use long division to divide polynomials | College Algebra

Components of Composite Functions

Sometimes you're given a composite function and need to break it apart into its inner and outer pieces. This is called decomposition, and it's a skill you'll use frequently in calculus.

To decompose, look for a "nested" structure: something inside something else.

Example: Decompose (fโˆ˜g)(x)=2xโˆ’1(f \circ g)(x) = \sqrt{2x - 1}.

  • The outer operation is the square root, so f(x)=xf(x) = \sqrt{x}.
  • The expression inside the square root is 2xโˆ’12x - 1, so g(x)=2xโˆ’1g(x) = 2x - 1.

Check: f(g(x))=f(2xโˆ’1)=2xโˆ’1f(g(x)) = f(2x - 1) = \sqrt{2x - 1}. โœ“

Decomposition isn't always unique. For instance, h(x)=(3x+5)4h(x) = (3x + 5)^4 could be decomposed as f(x)=x4f(x) = x^4 and g(x)=3x+5g(x) = 3x + 5, but you could also choose f(x)=x2f(x) = x^2 and g(x)=(3x+5)2g(x) = (3x+5)^2. The most natural split is usually the one that identifies the simplest outer and inner functions.

Function Notation and Relationships

  • Function notation like f(x)f(x) names the output of function ff when the input is xx. The letter ff names the rule; the parentheses hold the input.
  • Substitution is the core mechanic behind composition. Wherever you see xx in the outer function's formula, you replace it with the entire expression for the inner function. This is why writing f(g(x))f(g(x)) as f(stuff)f(\text{stuff}) and then substituting g(x)g(x) for "stuff" can help keep things organized.
  • Understanding this input-output chain is what makes composition click: every function transforms its input, and composition just stacks those transformations.