Determine the domain of functions