Formula and domain of composite functions

Finding a composite function

To get the formula of a composite function fg, we take the inner function g and substitute into f. For example, if f(x)=2x1 and g(x)=x2, then we have

fg(x)=f(x2)=2x21

and

gf(x)=g(2x+1)=(2x1)2

Domain of composite function

Since the composite function fg starts by applying g, the domain of fg will be the domain of g.

  • Dfg=Dg
  • Dgf=Df

Example

Question:

f:x2x1,0x<10g:xx2+3,2<x<1.

Give a definition, in similar form, for the composite function fg.


Solution:

fg(x)=f(x2+3)=2(x2+3)1=2x2+5

We note that Dfg=Dg=(2,1), so

fg:x2x2+5,2<x<1.