Domains of composite functions

 
 
Composite functions, domain blog post.jpeg
 
 
 

The domain of composite functions

In this lesson we’ll learn to find the domain of composite functions.

The domain of a function is the set of xx-values that make the function true.

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

Sometimes if you create a composite function you need to consider the domain of the new function. Often the domain of the new function is dependent on any domain restrictions on the original functions.

Remember a composite function of f(x)f(x) and g(x)g(x) is written as fgf \circ g or f(g(x))f(g(x)), and is found by plugging g(x)g(x) into f(x)f(x).

The domain of a composite must exclude all values that make the “inside” function undefined, and all values that make the composite function undefined. In other words, given the composite f(g(x))f(g(x)), the domain will exclude all values where g(x)g(x) is undefined, and all values where f(g(x))f(g(x)) is undefined.

 
 

How to find the domain of a composite function step-by-step


 
Krista King Math Signup.png
 
Algebra 2 course.png

Take the course

Want to learn more about Algebra 2? I have a step-by-step course for that. :)

 
 

 
 

Example of finding the domain of a composite

Example

What is the domain of fgf \circ g?

f(x)=x23f(x) = x^2 -3

g(x)=x+9g(x) = \sqrt{x+9}

First, find the domain of g(x)g(x). The expression x+9\sqrt{x+9} is undefined where x+9x+9 is negative. For example, if x=10x=-10, then x+9x+9 is 1-1. Likewise, if xx is any number less than 9-9, x+9x+9 will be negative. However, 9-9 itself is okay because x+9\sqrt{x+9} will then be 00, which is not undefined.

The domain of g(x)g(x) then is all real numbers xx such that x9x\geq-9.

The composite function is

fg=f(g(x))=(x+9)23f \circ g = f(g(x)) = \left(\sqrt{x+9}\right)^2-3

fg=f(g(x))=x+93f \circ g = f(g(x)) = x+9-3

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

For this simple binomial, no real numbers are excluded, so its domain is all real numbers. But because the domain of g(x)g(x) excludes x<9x<-9, those values also have to be excluded from the composite f(g(x))f(g(x)).

That means the domain of f(g(x))f(g(x)) is x9x\geq-9.


Let’s try another example.


Composite functions domain for Algebra 2.jpg

no real numbers are excluded, so its domain is all real numbers.

Example

What is the domain of fgf \circ g?

f(x)=22x+4f(x) = \frac{2}{2x+4}

g(x)=3x5g(x) = \frac{3}{x-5}

First, find the domain of g(x)g(x). The expression 3/(x5)3/(x-5) is undefined if the denominator is 00. That means x=5x =5 isn’t in the domain of g(x)g(x). Therefore, the domain of g(x)g(x) is all real numbers xx such that x5x \neq 5.

The composite function is

fg=f(g(x))=22(3x5)+4f \circ g = f(g(x)) = \frac{2}{2\left(\frac{3}{x-5}\right)+4}

fg=f(g(x))=26x5+4(x5x5)f \circ g = f(g(x)) = \frac{2}{\frac{6}{x-5}+4\left(\frac{x-5}{x-5}\right)}

fg=f(g(x))=26+4x20x5f \circ g = f(g(x)) = \frac{2}{\frac{6+4x-20}{x-5}}

fg=f(g(x))=24x14x5f \circ g = f(g(x)) = \frac{2}{\frac{4x-14}{x-5}}

fg=f(g(x))=2(x54x14)f \circ g = f(g(x)) = 2\left(\frac{x-5}{4x-14}\right)

fg=f(g(x))=2x104x14f \circ g = f(g(x)) = \frac{2x-10}{4x-14}

fg=f(g(x))=2(x5)2(2x7)f \circ g = f(g(x)) = \frac{2(x-5)}{2(2x-7)}

fg=f(g(x))=x52x7f \circ g = f(g(x)) = \frac{x-5}{2x-7}

For this rational function, any numbers that make the denominator 00 are excluded from the domain.

2x7=02x-7=0

2x=72x=7

x=72x=\frac{7}{2}

Putting both exclusions together, the domain of the composite is all real numbers except 7/27/2 and 55. So,

x72, 5x \neq \frac{7}{2},\ 5

 
Krista King.png
 

Get access to the complete Algebra 2 course