I have differential equation (1) $x''+2\epsilon \nu x'+x+\epsilon x^3=0$. I try to solve it using a method of multiple scales. So $x=x(t)=x(T_0,T_1,T_2,...,T_n)$, where $T_i=\epsilon^i t$.
Then $\frac{d}{dt}=\frac{\partial }{\partial T_0}+\epsilon \frac{\partial }{\partial T_1}+\epsilon^2 \frac{\partial }{\partial T_2}+...+\epsilon^n \frac{\partial }{\partial T_n}=D_0+\epsilon D_1+...+\epsilon^n D_n$
and $\frac{d^2}{dt^2}=(\frac{\partial }{\partial T_0}+\epsilon \frac{\partial }{\partial T_1}+\epsilon^2 \frac{\partial }{\partial T_2}+...+\epsilon^n \frac{\partial }{\partial T_n})^2=(D_0+\epsilon D_1+...+\epsilon^n D_n)^2$
Using $x=x_0+\epsilon x_1+\epsilon^2 x_2+...$ we can rewrite (1): $$D_0^2x_0+2\epsilon D_0 D_1 x_0+...+\epsilon D_0^2 x_1+...+2\epsilon \nu D_0 x_0+...+x_0+\epsilon x_1+...+\epsilon x_0^3+3\epsilon^2 x_0^2 x_1+...=0$$
How can I describe these(where $n$ is a variable) using Mathematica?