In[]:=
xsol[t_]={x[t],x'[t]}/.NDSolvex''[t]+Sin[x[t]]0,x[0],x'[0]-1.4,x,{t,0,7.96}[[1]];post[t_]={Sin[xsol[t][[1]]],-Cos[xsol[t][[1]]]};frames=Table[GraphicsGrid[{{Show[ListPlot[{xsol[t1]},PlotStylePointSize[0.04],PlotRange{{-2,2},{-2,2}},AspectRatio1,AxesLabel{"(t)","(t)"}],ParametricPlot[xsol[t],{t,0,7.96},PlotRange{{-2,2},{-2,2}},AspectRatio1]],Show[ListPlot[{post[t1]},PlotStylePointSize[0.04],PlotRange{{-2,2},{-2,2}},AspectRatio1],Graphics[Line[{{0,0},post[t1]}]]]}}],{t1,0,7.96,0.25}];ListAnimate[frames,SaveDefinitionsTrue]
-π
4
x
1
x
2
Out[]=
JonathanShock,UniversityofCapeTown2021jon.shock@gmail.com
JonathanShock,UniversityofCapeTown2021jon.shock@gmail.com