Biology Project banner Biology Project Biomath

The Biology Project > Biomath > Function > Operations

Functions

Composition of Functions

The idea behind composing functions is to take the function of another function. Many of the models you many see in the life sciences are the composition of simpler functions.

Definition

Let f(x) and g(x) be two functions.

Definition: We define the composition of f and g, denoted

composition of f and g

by,

equation: (composion f and g)(x) = f(g(x)),

where the domain of

composition of f and g

is all x in the domain of g such that such that g(x) is in the domain of f.

 

The notation f (g(x)) is read as, “f of g of x.”

Breaking down composite functions

To break down the composite function,

equation: (composition f and g)(x) = f(g(x));

we work from the inside out. First, we take a value of x in the domain of g and evaluate g(x). Next, we take the value of g(x) that we just got, and substitute it into f(x). But, we can only do this if g(x) is in the domain of f. We can represent this with a diagram,

illustration

We will now look at some examples of composite functions. First, consider the functions,

f(x) = 3x − 1,

g(x) = x2.

Using the definition of composition, we find

composiition of f and g

as follows,

equation: (composition f and g)(x)= f(g(x)) = f(x^2) = 3x^2 -1

The domain of

composition f and g

consists of all x in the domain of g such that g(x) is in the domain of f . To determine the domain, we start with the inside function and work outward. The inside function is g(x), and the domain of g(x) is all real numbers. Now we need to be sure that the value of g(x) (i.e. the range of g) is in the domain of f (x). Any value of g(x), however, is in the domain of f (x) since f has domain all real numbers. Therefore, the domain of

composition f and g

is all real numbers.

In a similar manner, we can also find

composition g and f

as,

equation:  (composition g and f)(x)= g(f(x)) = g(3x-1) = (3x-1)^2.

For similar reasons as above, the domain of

composition g and f

is also all real numbers.

Note iconA note of caution

Notice thatcomposition f and g is generally not equal to composition g and f.

 

 

Now consider the following functions,

f (x) = 1 − 8x,

g(x) = 2 / x .

We find

as follows,

equation: (composition f and g)(x)-f(g(x)) = f (2/x) = 1-8 * (2/x) = 1-(16/x).

Thus, we find

equation: (composition f and g)(x) = 1 - (16/x)

The domain of

composition f and g

consists of all x in the domain of g such that g(x) is in the domain of f . We determine the domain by starting with the inside function and working outward. The inside function is g(x), and the domain of g(x) is {x | x ≠ 0}. Now we need to be sure that the value of g(x) (i.e. the range of g) is in the domain of f(x). Any value of g(x), however, is in the domain of f(x) because f has domain all real numbers.

Therefore the domain of

composition f and g

is {x | x ≠ 0} (i.e. all x in the domain of g such that g(x) is the domain of f).

In a similar manner, we can also find

composition g and f

as,

equation: (composition g and f)(x) = g(f(x)) = g(1-8x) = 2/(1-8x).

To find the domain

composition g and f

we need to find all x in the domain of f such that f (x) is in the domain of g. The domain of f is all real numbers. The domain of g is {x | x ≠ 1/8 }. The range of f is all real numbers, therefore f can take on the value 1/8 and thus, we must remove it from the domain. Therefore, we conclude that the domain of

composition g and f

is {x | x ≠ 1/8} .

*****

In the next section we explore inverse functions.

Inverse Functions

The Biology Project > Biomath > Function > Composition


The Biology Project
Department of Biochemistry and Molecular Biophysics
The University of Arizona

January 2006
Contact the Development Team

http://www.biology.arizona.edu
All contents copyright © 2006. All rights reserved.

Biochemistry