var('s t');# Defining variablesf=e^(-3*t)*cos(4*t);# The function we wish to calculate the Laplace transformq=cos(4*t);# The function without the decaying factor e^(-3t)g=q.laplace(t,s)# The Laplace transform of qh# displaying qh=f.laplace(t,s);# The Laplace transform of fh# displaying hplot(g,(-10,10),color='green')