IM Commentary
The purpose of this task is to introduce the idea of the domain of a function by linking it to the evaluation of an expression defining the function. By thinking through the evaluation step by step, students isolate the exact point where a given input results in an undefined output. In part (b), any domain that excludes x=3 is possible. It is conventional when given a function defined by an expression to take the domain to be the largest possible, but it is worth pointing that this is a convention, not a mathematical fact. As students gain a mature understanding of functions they learn that the domain is something that is specified when you define the function, it does not come already attached.
The function in this task can be broken down into two simple operations. More complicated variations are possible.
This task is adapted from Algebra: Form and Function, McCallum et al., Wiley 2010.