Partial implementation + comments for polynomial function helper methods