Electronic – Non-unique Sample Rate

samplingsignal processing

Given
$$x[n] = \cos\left(\frac{\pi}{3} n\right)$$
That was obtained by sampling
$$x_c(t) = \cos(4000\pi t)$$

At \$T\$ samples per second, find \$T\$. Is \$T\$ unique? Why or why not?

$$x[n] = x_c(nT)$$
$$\cos\left(\frac{\pi}{3} n\right) = \cos(4000\pi nT)$$
$$\frac{\pi}{3} n = 4000\pi nT$$
$$T = \frac{1}{12000}$$

So far so good. Is \$T\$ unique? No, because either of these periodic signals can be phase shifted by \$2\pi\$ and remain essentially unchanged. E.g.

$$x[n] = \cos\left(\frac{\pi}{3} n + 2\pi\right)$$

EDIT TO SHOW STEPS
$$\cos\left(\frac{\pi}{3} n\right) = \cos\left(\frac{\pi}{3} n + 2\pi\right)$$
So,
$$\cos\left(\frac{\pi}{3} n + 2\pi\right) = \cos(4000\pi nT)$$
$$\frac{\pi}{3} n + 2\pi = 4000\pi nT$$
$$\frac{1}{3} + 2 = 4000 T$$
$$T = \frac{7}{12000}$$
END EDIT

Using this new \$x[n]\$, which is equivalent to the original, and the same relationship as defined above, we find that \$T = \frac{7}{12000}\$. While the math checks out (unless I've seriously screwed up), intuitively this makes no sense to me.

How would lowering the sample rate simply shift the resulting discrete time signal? By this logic, lowering the sample rate won't change the output, which is fundamentally wrong (isn't it??)

I must be missing something here, please enlighten me!

Best Answer

You're doing something wrong with the additional \$2\pi\$. You might just be forgetting that \$cos(x + 2\pi) = cos(x)\$. I assume you are leaving it in and ignoring the order of operations (bad parenthesis).

$$\cos\left(\frac{\pi}{3} n + 2\pi\right) = \cos\left(\frac{\pi}{3} n\right)\require{cancel}$$

So, using your steps and adding the \$2\pi\$.

$$\cos\left(\frac{\pi}{3} n \cancel{+ 2\pi}\right) = \cos(4000\pi nT\cancel{+ 2\pi})$$ $$\cos\left(\frac{\pi}{3} n \right) = \cos(4000\pi nT)$$ $$\frac{\pi}{3} n = 4000\pi nT$$ $$T = \frac{1}{12000}$$

It's a pretty simple mistake, thus rather easy to make.


Edit:

if we shift ONLY x[n] and not x_c(t), then T changes

$$\cos\left(\frac{\pi}{3} n + 2\pi\right) = \cos(4000\pi nT)$$ $$\cos\left(\frac{\pi}{3} n \cancel{+ 2\pi}\right) = \cos(4000\pi nT)$$ $$\cos\left(\frac{\pi}{3} n \right) = \cos(4000\pi nT)$$ $$\frac{\pi}{3} n = 4000\pi nT$$ $$T = \frac{1}{12000}$$

No, it doesn't.


Edit 2:

$$\cos\left(\frac{\pi}{3} n + 2\pi\right) = \cos(4000\pi nT)$$ $$\frac{\pi}{3} n + 2\pi = 4000\pi nT$$

Ok, the problem is you're ignoring the sum angle in your cosine when canceling it. Trigonometry doesn't work that way. You can leave the \$2\pi\$ in, apply the proper identity, and cancel the result. Or, you can simply cross off any multiple of \$2\pi\$ and proceed as you were already doing.