Solve using the same approach as the solution using Matlab for this differential equation
d^2y/dt^2 + 6dy/dt + 9y = cos(t)
has initial conditions y(0)=1 y'(0)=2, Find Y(s) and without finding y(t),
determine what function of time will appear in the solution
%}
clear, clc
syms Y s t real
rhs = laplace(cos(t),t,s)
eqn1 = s^2*Y - s*2 - 1 + 6*s*Y -1 + 9*Y ==rhs
myanss = solve(eqn1,Y)
mypart = partfrac(myanss,'FactorMode','real')
%{
mypart =
(0.08*s + 0.06)/(s^2 + 1.0)...