how to solve taylor series method