In[]:=
xsol[t_]={x[t],x'[t]}/.NDSolvex''[t]+Sin[x[t]]0,x[0],x'[0]-1,x,{t,0,7.1}[[1]];post[t_]={Sin[xsol[t][[1]]],-Cos[xsol[t][[1]]]};frames=TableGraphicsGrid[{{Show[ListPlot[{xsol[t1]},PlotStylePointSize[0.04],PlotRange{{-2,2},{-2,2}},AspectRatio1,AxesLabel{"(t)","(t)"}],ParametricPlot[xsol[t],{t,0,7.1},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.1,;ListAnimate[frames,SaveDefinitionsTrue]
-π
4
x
1
x
2
7.1
10
Out[]=
JonathanShock,UniversityofCapeTown2021jon.shock@gmail.com
JonathanShock,UniversityofCapeTown2021jon.shock@gmail.com