Simple Harmonic Motion: Solution x ( t ) Plotted Using Maple
First define the solution x ( t ) as a function of t :
> x := t -> -3*cos(2*t) - 4*sin(2*t) ;
Now plot the solution as t varies from 0 to 12 seconds.
> plot( x(t), t = 0.0 .. 12.0, thickness = 4 ) ;