I have a lagrangian which is modified by variable change. I want to neglect all the 4th order and higher terms in the new lagrangian. The code being used is given below:
lagrangian =
Sum[c[n]'[t]^2 - c[n][t]^2 ωsq[n], {n, {0, 1}}] +
11.3 c[0][t]^3 + 21.5 c[0][t] c[1][t]^2 +
10.7 c[0][t] c[0]'[t]^2 + 3.32 c[0][t] c[1]'[t]^2 +
6.64 c[0]'[t] c[1][t] c[1]'[t];
c[0][t_] := C[0][t] + α1 C[0][t]^2 + α2 C[1][t]^2;
c[1][t_] := C[1][t] + α3 C[0][t] C[1][t];
α1 = -1.5; α2 = -0.5; α3 = -1;
n = Expand[lagrangian]
I tried using this code to neglect the higher-order terms:
vars = {C[0][t], C[1][t]};
Normal[Series[n /. Thread[vars -> m*vars], {m, 0, 3}]] /. m -> 1
which does part of the job but there are still some higher-order derivative terms present. How to go about removing them too from the modified lagrangian?