Composite Functions Made Clear and Examples

Composite functions is the fancy name given to functions whose argument is also a function. Let's say I give you the functions defined by the rules:

Definitions of two functions

Here we can create a new function, using g(x) as the argument:

A composite function

In this case we substitute the "x" in sin(x) by x squared to get:

A composite function

This new composite function is written as:

Function composition notation

And the rule is:

Expression of the composite function

Now, a question for you:

What is the domain of f circle g?

Remember that we need to specify the domain to have a function properly defined.

In this case, f circle g is defined for all valid values of g(x). Why? Because g(x) is the argument!

But what are the valid values of g(x)? sin(x) is well defined for all real values of x. So, the domain is the set of real numbers.

Let's do some examples...

Example 1

Let's say we have the functions:

Three functions

We want to find:

Example 1 of composite function

We want the value of S circle P at y.

According to our definition of composite functions:

Example 1 of composite function

Now it looks simpler, doesn't it? What would our P(y) be? Well, just replace x by y:

Replacing variable x by variable y

So, we have:

Finding the expression of the composite function

Now, we just replace the x in:

Definition of squaring function

by 2 to the y. So, we get:

Replacing into the squaring function

And that is:

Final expression of example 1 of composite function

And that's our answer.

Composition of More Than Two Functions

Let's keep working the functions:

Three functions

Now, let's say we want to find:

Composition of three functions

Because we have the (t) at the end, what we wanto to find is the value of the function at t. According to our definition:

Finding the expression of the composition of three functions

In the previous examples, we've found that:

What we've got in the previous example

Here, instead of why we have s(t). So, we just to replace and get:

Applying the previous result with our new variable

But what is s(t)? It is:

Changing letters so everything matches up

So, finally:

The final expression of the composite function

What would had happened if we instead were asked to find:

What do we get if we change the placement of the parenthesis?

What do you think? Will it be the same result? Let's find out:

Finding the expression of the composite function

We first need to find:

Going by parts

We again apply our definition:

Finding the expression of composite function

And we know that:

Definition of our function

So, replacing in the previous equation:

Finding the expression of the composite function

But, we also know:

The expression of the outer function

So, we have:

Finding the expression of the composite function

And replacing that in what we were originally looking for:

Finding the expression of the composite function

And the function S just squares whatever it has as argument:

Final expression of the composition of three functions

And it is the same result. This is a property of all composite functions:

No matter where you put the parenthesis, you get the same value.

That is, using function notation:

No matter where you put the parenthesis, you get the same value.

Because these two are equal, we usually just write:

The composition of three functions

Example 3

Now we'll solve the reverse of what we were doing previously. Let's say we have the function defined by:

Another function

And we want to express f in terms of our functions S, P and s:

Our three initial functions

We can solve this in two ways, but getting the same result. We have:

Our new function

We can start analyzing the "outer" function sin. We have a function sin(something). Our s(x) is defined as sin(x), so we have:

The outer function is sin

Ok, now we have to express 2 to the x using our functions. This one is easy. We already have:

Expression of our new function

So,

Using the definition of P(x)

Writing this in function notation:

Our function in composition notation

What is the othe way of doing this problem? You could also had started repalcing first the 2 to the x. As an exercise, you might want to do the same with the function:

Additional exercise

Take My Free eCourse

If you've found this page useful, you will love Intuitive Calculus' Free eCourse. Since I started offering this free course, more than 3000 people have benefited from its intuition-first method, with special focus on problem-solving techniques.

This is a serious multiple-part calculus course. The lessons provide links to external resources and videos whenever appropriate. A new lesson will be delivered to your e-mail inbox every day during the duration of the course. 

You can unsuscribe at any time, although I doubt if you'll want to once you realize the true value of the course.

Your first lesson will be delivered to your inbox instantly. Sign up here now:

Please note that all fields followed by an asterisk must be filled in.
First Name*
E-Mail Address*

P.S.: I prepared two special gifts for you after sign up.


Conclusion

  • A composite function is a function whose argument is another function.
  • When you have the composite of three functions, no matter where you put the parenthesis, you get the same function.
  • Composite functions problems are not hard. You just need to get used to notation.



Have a Doubt About This Topic? Have an "Impossible Problem"?

If you have just a general doubt about a concept, I'll try to help you. If you have a problem, or set of problems you can't solve, please send me your attempt of a solution along with your question. These will appear on a new page on the site, along with my answer, so everyone can benefit from it.

Enter Your Title

What Other Visitors Have Asked

Click below to see contributions from other visitors to this page...

Finding the Domain of the composition of piecewise functions 
Find the domain of: fog, gof, fof, gog. For me these are the hardest types of problems one could face on a test regarding functions. I mean finding …

Finding the Domain of Composite Functions With Square Roots Not rated yet
Given the following functions: How do I find the domain of the composite functions fog and gof? Answer by Pablo: Whenever we have …

Click here to write your own.

Return from Composite Functions to Mathematical Functions

Return to Home Page

New! Comments

Have your say about what you just read! Leave me a comment in the box below.