well if u want to derive any kind of expansion u can use macclaurin-taylor series but at this stage it is better to learn certain standard expansions.........if u r still interested then i will tell how its done,its not that difficult actually The Taylor series of a real or complex function f(x) that is infinitely differentiable in a neighborhood of a real or complex number a, is the power series