I need to determine whether the integral
$$ \int_{-\infty}^\infty cos \,(\pi t) \;dt$$
is convergent or divergent. I rewrote this improper integral as
$$ \lim \limits_{x \to{-\infty}}\int_{x}^0 cos \,(\pi t) \;dt + \lim \limits_{x \to{\infty}}\int_0^x cos \,(\pi t) \;dt$$
I integrated $ \lim \limits_{x \to{-\infty}}\int_{x}^0 cos \,(\pi t) \;dt$ to get $ \frac{sin \,(\pi t)}{2}$ which gives me $ \frac{sin \,0}{0} - \frac{sin \,t}{t}$
Obviously I can't divide by 0 so does this mean that the function is divergent, or is there some other step I can take that I'm missing?