Some plots for Example in class (3.8 #15)
| > | F:=t -> piecewise(t>0 and t<Pi, t, t>=Pi and t <2*Pi, 2*Pi- t); #use help to lookup "piecewise". |
| > | plot(F(t), t=0..10*Pi,color=black,thickness=3,title=`Forcing Function`); |
![[Plot]](images/Example3.8.15_2.gif)
| > | u:= t -> piecewise(t>0 and t<Pi,-sin(t) + t,t>=Pi and t<=2*Pi,-3*sin(t)+2*Pi - t,t>2*Pi,-4*sin(t)); |
| > | plot(u(t),t=0..10*Pi,color=black,thickness=3,title=`Solution`); |
![[Plot]](images/Example3.8.15_4.gif)
| > | evalf(2*Pi-solve(diff(-3*sin(t)+2*Pi-t,t)=0)); |
| > | evalf(u(%)); |