This post was written by Muhammad Azhar Rohiman, a first year student on MAM1000W at UCT. This post came about when he asked me a question related to domains of composite functions, and it was clear that on first learning about such topics, there are some simple misunderstandings. I suggested that he write a couple of paragraphs explaining what he had learnt, and the following is, I think, a very clear explanation of some of the ideas and pitfalls of this topic.

Consider the two functions below, from which we want to find the domain of

,

We know that f(x) and g(x) cannot be defined at the values x = -2 and x = 3 respectively. This can be written as follows: f(-2) and g(3) are not defined. The domain of a composite function will not allow any values restricted by the domain of the starting function, which is g(x). This means that x = 3 will never be included in the domain of the composite function f(g(x)).

Remember that which is equal to f(g(x)) is written as in this case. So, we want to make sure that every value being returned by g(x), i.e , is in the domain of the function f(x). Think of it in this way: f (can take on any value except -2).

Therefore, we do not want the function to give us a value of -2 because f(-2) is not defined. So, we need to find out when g(x) = -2. We solve this algebraically:

When x = 2, we get g(x) = -2. This will then give us f(-2), and we do not want that. Thus, we can conclude that the domain of will be all real numbers except 3 and 2.

**Note**: One of the excluded values of x is 2, not -2. The value x = -2 makes it through the composite function because the value of f(g(-2)) returns which is defined in f(x).

**(ii) Now let’s try to find the domain of , using the same functions as above.**

This time, we have , which is equivalent to g(f(x)). So, the starting function is now f(x) and we know that the values restricted by the domain of the starting function will not be allowed in the domain of a composite function. Therefore, x = -2 can be excluded already from the domain of the composite function.

Since or g(f(x)) is written as , we want f(x) to be in the domain of g(x). That is, g (can take on any value except 3). Therefore, we need to know when the function f(x) gives us a value of 3. To know that, we solve algebraically:

We get f(x) = 3 when . It implies that the domain of $latex( g \circ f )(x)$ will be all real numbers except -2 and .

**Note:**

- Always remember that it is important to know the domain of the starting function to be able to determine which values can be allowed in the domain of the composite function.
- Solve algebraically to calculate the restricted values of the composite function.

Part 2 to come…

Aidan HornMarch 7, 2016 at 3:38 pmhttp://www.mathemafrica.org/?p=10279

UrsulaMarch 10, 2016 at 7:01 pmThanks. Really clarifying.

Domain of a composite function – part 2 – MathemafricaMarch 12, 2016 at 10:49 am[…] This is the second part of a post, written by Muhammad Azhar Rohiman, a first year student on MAM1000W at UCT. This post came about when he asked me a question related to domains of composite functions, and it was clear that on first learning about such topics, there are some simple misunderstandings. I suggested that he write a couple of paragraphs explaining what he had learnt, and the following is, I think, a very clear explanation of some of the ideas and pitfalls of this topic. The first part of the post is here. […]

First year maths lecture notes subject links – MathemafricaApril 15, 2018 at 1:56 pm[…] Domain of a composite function – part 1 […]