Ctrl+k

Compose two functions

Composition of functions is understood as applying one function to the output of another: (fg)(x)=f(g(x))(f\circ g)(x)=f(g(x)). Learners determine and interpret compositions from equations, tables, graphs, or transformation rules, recognize that order generally matters and that composition is not multiplication, and identify the domain as inputs for which both successive evaluations are defined; treatment is limited to familiar real-valued functions rather than abstract or multivariable compositions.

Detailed Explanation: Compose two functions

To compose two functions, apply the inside function first, then use its output as the input of the outside function:

(fg)(x)=f(g(x)).(f\circ g)(x)=f(g(x)).

This is not multiplication. The symbol \circ means “composition.”

Suppose

f(x)=2x+3andg(x)=x21.f(x)=2x+3 \qquad\text{and}\qquad g(x)=x^2-1.

Find (fg)(x)(f\circ g)(x).

  1. Start with the inside function, g(x)g(x):

g(x)=x21 g(x)=x^2-1
  1. Substitute g(x)g(x) into ff:

f(g(x))=2(x21)+3 f(g(x))=2(x^2-1)+3
  1. Simplify:

(fg)(x)=2x22+3=2x2+1. (f\circ g)(x)=2x^2-2+3=2x^2+1.

Therefore,

(fg)(x)=2x2+1.\boxed{(f\circ g)(x)=2x^2+1}.

For example, when x=2x=2:

g(2)=221=3g(2)=2^2-1=3

and then

f(3)=2(3)+3=9.f(3)=2(3)+3=9.

The composition gives the same result:

(fg)(2)=2(2)2+1=9.(f\circ g)(2)=2(2)^2+1=9.

The order matters. Reversing the functions gives a different result:

(gf)(x)=g(f(x))=(2x+3)21,(g\circ f)(x)=g(f(x))=(2x+3)^2-1,

which is generally not equal to 2x2+12x^2+1. Since both functions are defined for every real number, the domain of each composition is all real numbers.

Learn by doing: Compose two functions

Click a topic below to practice the foundational skills you'll need, learn the steps, or master this skill

Practice with unlimited practice problems

Function Composition - Inputs to Composite Function


    ?