Find Inverse Function Given Domain