Relating a cubic function to its derivatives