The functions are
and
.
To find
, we need to find the domain of
, which can be done for
.
Then evaluate
for each of these
values, which is only true when
.
This means that we must exclude from the domain those values for which
.
Solve the equation
.




.
Therefore, the domain of
is
.
Find
.

Replace
with
.

Substitute
for
in
.



.
Notice that
is only defined for
, which is the same restriction determined the by considering the domains of
and
.
Therefore,
for
and
.
To find
, we need to find the domain of
, which can be done for
.
Then evaluate
for each of these
values, which can only be done for all
.
This means that we must exclude from the domain those values for which
.
Solve the equation
.





Combining this restrictions.
\Therefore, the domain of
is
.
Find 
Replace
with
.

Substitute
for
in
.


.
Notice that
is only defined for
. which is the same restriction determined the by considering the domains of
and
.
Therefore,
for
and
.
for
and
.
for
and
.