clear;
clc;

syms x t X omega;
x = exp(-t) * (cos(5*t) + cos(30*t))
X = simplify(int(x*exp(-j*omega*t),t,0,inf))

ezplot(x,0,5);
axis([0 5 -1.5 2]);
ylabel('x(t)');
% pause;
ezplot(abs(X),0,50);
axis([0 50 0 0.6]);
ylabel('Magnitude of X');