RE: Deriving functions based on differences