formula for a cubic function - Search