clear;
clc;

syms x t X omega;
x = 2 * t * exp(-2*t)
X = simplify(int(x*exp(-j*omega*t),t,0,inf))

ezplot(x,0,2);
axis([0 2 -0.1 0.5]);
ylabel('x(t)');
% pause;
ezplot(abs(X),0,20);
axis([0 20 0 0.6]);
ylabel('Magnitude of X');