Composite Functions

What is a composite function?

A function is called a composite function when its domain matches the range (codomain) of another function. $$ h(x) = f(g(x)) $$ This is read as f of g of x.

The composite function is also commonly written as:

$$ h = f \circ g $$

which is read as f composed with g.

The codomain of g serves as the domain of f.

example of a composite function

Note. Set A represents the domain of g. Set B is the range of g - that is, both the codomain of g and the domain of f. Set C contains the outputs of f, which are also the outputs of the composite function f[g(x)].

A practical example

Consider the following two functions:

$$ f(x) = \frac{1}{x} $$

$$ g(x) = \sin x $$

The composite function h(x), defined as f(g(x)), is:

$$ h(x) = f(g(x)) = \frac{1}{g(x)} = \frac{1}{\sin x} $$

In this case, the domain of f must match the range of g, which is the interval [0,1].

The graph of the composite function f(g(x)) is shown below:

graph of a composite function on the Cartesian plane

Identifying Composite Functions

A composite function is not recognized by the presence of parentheses alone. What matters is whether one function is being applied to the result of another function.

A useful way to identify a composite function is to check whether the entire argument of a function can be treated as a new variable. If it can, then the function is likely a composite function.

Example

Consider the function

$$ y=\ln(x^2+2) $$

Here, the logarithm does not act directly on \(x\). Instead, it acts on the expression \(x^2+2\).

To see the structure more clearly, break the function into two steps.

First, define a new variable:

$$ z=x^2+2 $$

Then apply the logarithm to that result:

$$ y=\ln z $$

This allows us to describe the function as the composition of two simpler functions:

$$ g(x)=x^2+2 $$

and

$$ f(z)=\ln z $$

Therefore,

$$ y=\ln(x^2+2)=f(g(x)) $$

This is a composite function because the output of \(g\) becomes the input of \(f\).

Example 2

Consider the function

$$ y=x^2+3x $$

In this case, no function is acting on the output of another function.

The terms \(x^2\) and \(3x\) are simply added together, so there is no composition of functions.

Therefore, this is not a composite function.

Example 3

Consider the function

$$ y=\sin(3x+1) $$

Start by evaluating the inner expression:

$$ z=3x+1 $$

Then apply the sine function to the result:

$$ y=\sin z $$

Once again, one function is applied to the output of another, so this is a composite function.

In general, whenever a function takes as its input the output of another function, the result is a composite function.

Properties of composite functions

Key properties of composite functions include:

  • Composite functions are not commutative. In general: $$ g[f(x)] \ne f[g(x)] $$

    Example. Consider the two functions: $$ f(x) = x+1 $$ $$ g(x) = 2x+3 $$ The composite function g[f(x)] is: $$ g(f(x)) = g(x+1) = 2(x+1) + 3 = 2x + 5 $$ On the other hand, the composite function f[g(x)] is: $$ f(g(x)) = f(2x+3) = (2x+3) + 1 = 2x + 4 $$ Clearly, these are two distinct functions.

  • Composite functions do satisfy the associative property: $$ h \circ (g \circ f) = (h \circ g) \circ f $$

    Example. Let’s consider three functions: $$ f(x) = x+1 $$ $$ g(x) = 2x+3 $$ $$ h(x) = -x $$ The composite function h o (g o f) is: $$ h \circ (g \circ f) = h \circ [2(x+1) + 3] = h \circ [2x + 5] = -[2x + 5] = -2x - 5 $$ Likewise, the composite function (h o g) o f is: $$ (h \circ g) \circ f = -(2x + 3) \circ f = -2x - 3 \circ f = -2(x + 1) - 3 = -2x - 5 $$ The result is the same in both cases.

  • If the range of f[g(x)] coincides with the domain of g(x) - in other words, if A = C -

    example of a composite function


    then it is possible to define the composite function g[f(x)] as well. However, in general: $$ f[g(x)] \ne g[f(x)] $$ because composite functions do not obey the commutative property.
  • The composition of a function f:A→B with its inverse function f-1:B→A returns each input x to itself: $$ f^{-1}[f(x)] = x $$ This specific composition is called the identity function.
    graph of the identity function

And so on.

 

 
 

Please feel free to point out any errors or typos, or share suggestions to improve these notes. English isn't my first language, so if you notice any mistakes, let me know, and I'll be sure to fix them.

FacebookTwitterLinkedinLinkedin
knowledge base

Functions

Mathematical Analysis

More Topics

Functions of Two Variables