Hey, I have this little equation that I am trying to solve on Mathematica, but for some reason I cannot get it to work. Any help would be appreciated. Thanks
f[x_, t_] = x^2 - x^3;
eso = x[t] /. DSolve[{[t] == f[x_, t_], x[0] == 0.2}, x, t]
I tried this next, but I keep getting an error
f[x_, t_] = x[t]^2 - x[t]^3;
eso = x[t] /. DSolve[{x'[t] == f[x_, t_], x[0] == 0.2}, x, t]