Restrict domains of functions to make them invertible

Not ready for a timed test? Practice this topic instead