How do we find power series when given a function?
This topic requires several sections of most calculus texts. Do not expect to find a single answer here. Usually it all starts with a Taylor Series of McLaurin Series.
Study your text, then come back here if you get stuck on a particular exercise.