I'm trying to Fourier transform the following function:
$$ y(t) = 2\cos(2\pi Bt) \sum_{k=-\infty}^\infty rect(2Bt-2k) $$
It's a normalized cosine with the negative lobes zeroed out.
I'm not sure I got the expression right, so here's how I got $y(t)$: I fed $x(t) = \cos(2\pi Bt)$ to $y=g(x):g(x\ge 0) = 2x, g(x\lt 0) = 0$.
To transform it, I figured I could just do this:
$$ y(t) - y(t - \frac{1}{2B}) = 2\cos(2\pi Bt) $$
Which seems true to me, then transform both members and isolate $Y(f)$:
$$ Y(f) - Y(f)e^{-\frac{j\pi f}{B}} = \delta(f - B) + \delta(f + B) $$ $$ Y(f) = \frac{\delta(f - B) + \delta(f + B)}{1 - e^{-\frac{j\pi f}{B}}} $$
And this boggles me. I see just two Fourier coefficients, $Y_1$ and $Y_{-1}$, both skyrocketing to $\infty$.
I guess I did something invalid, somewhere, I just don't know where.
I know I could find $Y_k$ through the integral definition, but I would like to understand why this method doesn't work.
Thank you for your attention.