Answer:
Remember, [tex](f\circ g)(x)=f(g(x))[/tex] and the range of g must be in the domain of f.
a)
[tex]f(g(x))=f(x-1)=(x-1)^2-(x-1)=x^2-2x+1-x+1=x^2-3x+2[/tex]
[tex]g(f(x))=g(x^2-x)=(x^2-x)-1=x^2-x-1[/tex]
The domain of f(g(x)) and g(f(x)) is the set of reals.
b)
[tex]f(g(x))=f(\sqrt{x}-2)=(\sqrt{x}-2)^2-x=\sqrt{x}^2-2*2*\sqrt{x}+2^2-x=-4\sqrt{x}+4[/tex]
[tex]g(f(x))=g(x^2-x)=\sqrt{x^2-x}-2[/tex]
The domain of f(g(x)) is the set of nonnegative reals and the domain of g(f(x)) is the set of number such that [tex]x^2-x\geq 0[/tex]
c)
[tex]f(g(x))=f(\frac{1}{x-1})=(\frac{1}{x-1})^2=\frac{1}{(x-1)^2}[/tex]
[tex]g(f(x))=g(x^2)=\frac{1}{x^2-1}[/tex]
The domain of f(g(x)) is the set of reals except the 1 and the domain of g(f(x)) is the set of reals except the 1 and -1
d)
[tex]f(g(x))=f(\frac{1}{x-1})=\frac{1}{(\frac{1}{x-1}-1)}=\frac{1}{\frac{2-x}{x-1}}=\frac{x-1}{2-x}[/tex]
[tex]g(f(x))=g(\frac{1}{x+2})=\frac{1}{(\frac{1}{x+2}-1)}=\frac{1}{\frac{-x-1}{x+2}}=\frac{x+2}{-x-1}[/tex]
The domain of f(g(x)) is the set of reals except 2, and the domain of g(f(x)) is the set of reals except -1.
e)
[tex]f(g(x))=f(log(2(x+3)))=f(log(2x+6))=log(2x+6)-1[/tex]
[tex]g(f(x))=g(x-1)=log(2(x-1)+6)=log(2x+4)[/tex]
The domain of f(g(x)) is the set of nonnegative reals except -3. The domain of g(f(x)) is the set of nonnegative reals except -2.