Given data:
The first function is f(x) = log x .
The second function is g(x) = -x + 1.
The expression for (fog)(x) is,
[tex]\begin{gathered} \mleft(fog\mright)\mleft(x\mright)=f(g(x)) \\ =f(-x+1) \\ =\log (-x+1) \end{gathered}[/tex]The domain of the above function is x<1.