Vertically shifting a cubic function