A function is defined by
.
(a) Write in completed-square form and hence state the minimum value of .
(b) Explain why does not have an inverse if the domain is .
(c) Restrict the domain so that an inverse exists, taking (i) and (ii) .
(d) For each restriction in (c), find and state its domain.