Given two functions [math]f[/math] and [math]g[/math], the composition of the functions [math]g\circ f[/math] exists if the target of [math]f[/math] is a subset of the domain of [math]g[/math]. Conversely, [math]f\circ g[/math] exists if the target of [math]g[/math] is a subset of the domain of [math]f[/math].
Take for example the functions [math]f:R\longrightarrow R[/math], [math]f(x)=3\left(x+2\right)[/math] and [math]g:R\longrightarrow R[/math] [math]g(x)=-5x+2[/math] , does the composition [math]f\circ g[/math] exist? What about [math]g\circ f[/math]?
The two functions are graphed below, evaluate [math]f(g(2)),f(g(-4)),g(f(3.5))[/math].
Can you write a general expression for [math]f(g(x))[/math]? What about [math]g\left(f\left(x\right)\right)[/math]?
It is not always possible to compose functions because their domains and targets may not match correctly. The next graph shows [math]h:\left[2,+\infty\right)\longrightarrow R,h\left(x\right)=\sqrt{x-2}[/math] and [math]k:R\longrightarrow R,k\left(x\right)=x^3[/math].
Which composition exists without any changes? Which composition has to have the domain/target modified?
What changes are necessary?
Examine the next two sets of graphs. The first shows the graphs of [math]h(x)=sin(cos(x)[/math] and [math]p(x)=cos(sin(x))[/math]; the second shows the graphs of [math]f(x)=sin(2x)[/math] and [math]g(x)=2sin(x)[/math]. [br]Can you write these functions as compositions of simpler functions? [br]What information about graphs of compositions can you deduce from the pictures below?
Can you make any conjectures about the composition of functions from your observations?
With that in mind, do you think the following statement is true or false? [br]"If we compose two functions f(x) and g(x), we always have [math]f\circ g=g\circ f[/math], for all values of x."