Horizontally shifting a cubic function