How to find the domain of a v-shaped graph?