In algebra, a cubic function is a function of the form = + + + in which a is nonzero. Setting f(x) = 0 produces a cubic equation of the form + + + = The solutions of .