The functions are
.
The composition f with g is 
(Definition of
)
(Definition of
)
(Definition of
)
(Simplify)
(Simplify)
The value of
.