Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 4

Composing Functions and Determining Domain

Recommended resources

Welcome to our next lesson. In our previous sessions, we've been exploring the fundamental properties of functions, including their domains, ranges, transformations, and symmetries. Today, we'll learn about another powerful way to work with functions: combining them through composition.

This lesson will teach you how to compose functions and determine the domain of the resulting composite function. Think of it as a function assembly line: the output of one function becomes the input for the next. This concept is not just an algebraic exercise; it's the foundation for the Chain Rule in differentiation, one of the most important techniques in calculus.

We will first cover the mechanics of building a new composite function. Then, we will focus on the most important and subtle part of this topic: figuring out the correct domain for this new function.

The "How-To" of Function Composition

Function composition is the process of plugging one function into another. If we have two functions, and , the composition "f of g of x" is written as or using the composition operator, .

The key is to always work from the inside out. To find , you first evaluate the inner function, , and then use that entire result as the input for the outer function, .

Let's start by reading an introduction to this concept. This resource defines the notation and provides some clear real-world examples to build your intuition. Pay close attention to the examples that show that the order of composition matters—in general, is not the same as .

3.4: Composition of Functions

Please read the first part of this article from OpenStax, down to the heading "Evaluating Composite Functions".

Start at the beginning and read the introduction titled "Create a Function by Composition of Functions". Focus on the definition of a composite function and the notation used. Then, review the example with f(x)=x^2 and g(x)=x+2 to see why order matters.

Now that you understand the concept and notation, let's see how to evaluate a composite function for a specific numerical value.

Suppose we have and , and we want to evaluate .

  1. Evaluate the inner function: First, find the value of .
  2. Use the output as the new input: Now, substitute this result into the outer function, .

So, . This "inside-out" process is the fundamental mechanic of function composition.


Finding the Domain of a Composite Function

This is the most critical part of our lesson. Finding the domain of a composite function is more nuanced than finding the domain of a simple function because there are two potential sources of restrictions.

A common mistake is to find the final simplified form of the composite function and then find its domain. This is incomplete and often leads to the wrong answer. Why? Because before a number can be processed by the outer function, it must first successfully pass through the inner function.

This short video provides an excellent, intuitive explanation of why the inner function's domain is so important.

How to Find the Domain of a Composite Function

Watch this segment from the Brain Gainz video, "How to Find the Domain of a Composite Function".

The presenter clearly explains the logic behind the process. Watch from this explanation to understand why we must always consider the inner function's restrictions first.

As the video explained, any input must be valid for the inner function first. This leads us to a two-step process for finding the domain of :

  1. Restriction 1: The input must be in the domain of the inner function, .
  2. Restriction 2: The output of the inner function, , must be in the domain of the outer function, .

The final domain of the composite function is the set of all values that satisfy both of these conditions.

This diagram illustrates the two conditions for determining the domain of a composite function. For `g(f(x))`, the input `x` must be in the domain of `f`, and the output `f(x)` must be in the domain of `g`.

Let's put this into practice with a few examples.

Example 1: The Square Root "Trap"

Consider the functions and . Let's find the domain of .

  1. Inner function's domain: The inner function is . For the square root to be defined, the expression inside must be non-negative.
    .
    So, our first restriction is that must be greater than or equal to 1.

  2. Composite function's domain: Now, let's find the composite function and its restrictions.

    Looking at the simplified function , it appears to have a domain of all real numbers. This is the "trap." We cannot ignore our first restriction.

  3. Combine the restrictions: The input must satisfy (from the inner function) AND it must be valid for (which poses no new restrictions). Therefore, the domain of is .

The following video segment works through a very similar example. Watching it will help solidify this crucial point.

How to Find the Domain of a Composite Function

Watch this example from the same Brain Gainz video.

Focus on the part where he finds the final simplified function and explains why its apparent domain isn't the final answer. The relevant segment is this example.

Example 2: Rational Functions

Let's find the domain of where and .

  1. Inner function's domain: The inner function is . The denominator cannot be zero.
    .

  2. Composite function's domain: The output of becomes the input for . The domain of requires its input to not be 1. So, we must find which values of cause to be equal to 1, and exclude them.

    So, we must also exclude .

  3. Combine the restrictions: We must exclude from the inner function's domain, and we must exclude because it produces an invalid input for the outer function.

The final domain is all real numbers except and . In interval notation, this is .

For a step-by-step reading of these types of problems, the LibreTexts article we saw earlier is very helpful.

3.4: Composition of Functions

Now, please read the section "Finding the Domain of a Composite Function" in the LibreTexts article.

This section clearly outlines the process. Focus on Example 8A, which is very similar to the one we just did. Also, review Example 8B to see how these principles apply to functions with square roots.

Example 3: Practice with Two Rational Functions

Let's try one more example that combines these ideas. Find the domain of for and .

  1. Inner function : The denominator cannot be zero, so .
  2. Outer function : Its input cannot be 2. So we find the value of that makes . So, we must also exclude .
  3. Combined Domain: The domain includes all real numbers except -1 and 1. In interval notation: .

The following video works through this exact problem, which can serve as a good check for your understanding.

Composite Functions Domain Fractions & Square Roots / Radicals - Inverse Functions & Graphs

This video by The Organic Chemistry Tutor provides many great examples. We'll use it to check our work on the last example.

Watch the final example in the video from this timestamp to see a detailed walkthrough of the problem we just solved.


Conclusion

Today we've added function composition to our toolkit, a method that allows us to build complex functions from simpler ones. More importantly, we've established a rigorous method for determining the domain of these new functions.

Here are the key takeaways:

  • Function composition, denoted , involves substituting an inner function into an outer function.
  • To find the domain of a composite function , you must identify and combine two sets of restrictions:
    1. Any values of that are not in the domain of the inner function .
    2. Any values of that cause the output of the inner function, , to be outside the domain of the outer function .
  • Simply finding the domain of the final, simplified function is not enough and can lead to incorrect answers.

In our next lesson, we will investigate a special property of functions called being "one-to-one." This property is the key that will allow us to "undo" a function by finding its inverse, a concept that is deeply connected to function composition.