Add polynomial function class with derivative evaluation.