Try this:
syms x(t) equ(t)
Dx = diff(x);
D2x = diff(x,2);
w = 1
equ = D2x + (Dx)^3 + x(t)^2 *Dx + x(t);
equ(t) = subs(equ, x, {exp(-1i*w*t)+exp(1i*w*t)})
figure
fimplicit(equ, [-1 1])
grid
The plot is absolutely not interesting, however the code runs without error!
Best Answer