I am trying to solve an equation using the Laplace transform without having to find the Laplace transforms of the terms in the equation. Matlab is unable to find a solution based on the code below, although a solution can be found by writing the terms as a function of s. Could someone please suggest a method to do this?
syms y(t) Dy2 = diff(y,t,2); Dy1 = diff(y,t,1); eqn = laplace(Dy2+3*Dy1+2*y) == laplace(exp(-t)) cond = [y(0)==4, Dy(0)==5]; sol = dsolve(eqn,cond)
f
Best Answer