You may consider a function with domain
and switch

For example, we know that

can only be evaluated for positive values of the argument. This means that

can also be evaluated only for positive values of the argument, i.e.

To give another example, you may consider a function with domain
, consider its inverse to remove 0 from the domain, and finally switch again
:
