Signal Processing using Fourier Transform How can I derive the fourier transform of

                                   g1(t) = {A cos(2πfc t),−T/2 &lt; t &lt;T/2
                                            0,               elsewhere 


and;

                                  g2(t) = cos(t), −∞ &lt; t &lt; ∞


my answer for g1 is;

∫ g(t)exp(-j*2*pi*f*t)dt = ∫ Acos(2*pi*fc*t)exp(-j*2*pi*f*t)dt

   =∫ 1/2A (exp(j*2*pi*fc*t)+exp(-j*2*pi*fc*t))exp(-j*2*pi*f*t)dt

   =∫1/2A(exp(j*2*pi*fc*t)exp(-j*2*pi*fc*t)+∫1/2A(exp        (-j*2*pi*fc*t)exp(-j*2*pi*fc*t))

   =1/2A∫exp(-j*2*pi(f-fc)t) + 1/2A ∫exp(-j*2*pi(f+fc)t)dt

   =1/2A(f-fc)+1/2A(f+fc)
Hey it takes a lot of time in writing equations also I don't know to type in LATEX.so I am sending you image file for second one