Respuesta :

Consider this option (see the attached picture). Note, that every domain of the function is marked by green.
If it is possible check this solution in other sources.
Ver imagen evgeniylevi