In mathematics, a cubic function is a function of the form. where the coefficients a, b, c, and d are real numbers, and the variable x takes real values, and a ≠ 0. In other words, it is both a polynomial function of degree three, and a real function.