Definition of unlinearize function.