A part from that, I would insert an Evaluate
inside Plot
:
Manipulate[c = 0.1*k*m;
F = 1000;
S = NDSolve[{m*x''[t] + k*x[t] == F*Sin[w*t], x'[0] == 0, x[0] == 0},
x, {t, 0, 20}];
Plot[Evaluate[{x[t], x'[t], x''[t]} /. S], {t, 0, 20},
PlotLegends -> {"x", "y", "Theta"}], {k, 50, 266*1000}, {m, 100,
1000}, {w, 10, 1000}]
or, even better, use NDSolveValue
:
Manipulate[c = 0.1*k*m;
F = 1000;
sol = NDSolveValue[{m*x''[t] + k*x[t] == F*Sin[w*t], x'[0] == 0,
x[0] == 0}, x, {t, 0, 20}];
Plot[{sol[t], sol'[t], sol''[t]}, {t, 0, 20},
PlotLegends -> {"x", "y", "Theta"}], {k, 50, 266*1000}, {m, 100,
1000}, {w, 10, 1000}]