Parses through polynomial and differentiates between each individual term.