irishScott
Lifer
So for our exam tomorrow my professor gave us last year's exam and solution. I'm running through it now, and one question gives us a simple system and asks (among other things) if it's time invariant or not.
The System: y[n] = (x[n] + x[-n]) / 2
Now according to my logic, we first get the output for shifted input:
x[n-n0] --------> y2[n] = (x[n-n0] + x[-(n-n0)] / 2 = (x[n-n0] + x[-n+n0]) / 2
Then we shift the output: y[n-n0] = (x[n-n0] + x[-(n-n0)] / 2 = (x[n-n0] + x[-n+n0]) / 2
Since y[n-n0] = y2[n], the system is time invariant.
However according to the solution y[n-n0] actually = x[n-n0] + x[-n-n0], with != y2[n], therefore the system is not time invariant.
This makes no sense to me. When you write y[n-n0] you're simply substituting n-n0 for n, right? At least that's how every math class I've ever taken does it. I've solved other time invariance problems with no issue, but these are the prof-provided solutions to a major exam so I'm hesitant to question them. Just wondering what AT's opinion is.
Edit: Problem solved. Thanks for all your help!
The System: y[n] = (x[n] + x[-n]) / 2
Now according to my logic, we first get the output for shifted input:
x[n-n0] --------> y2[n] = (x[n-n0] + x[-(n-n0)] / 2 = (x[n-n0] + x[-n+n0]) / 2
Then we shift the output: y[n-n0] = (x[n-n0] + x[-(n-n0)] / 2 = (x[n-n0] + x[-n+n0]) / 2
Since y[n-n0] = y2[n], the system is time invariant.
However according to the solution y[n-n0] actually = x[n-n0] + x[-n-n0], with != y2[n], therefore the system is not time invariant.
This makes no sense to me. When you write y[n-n0] you're simply substituting n-n0 for n, right? At least that's how every math class I've ever taken does it. I've solved other time invariance problems with no issue, but these are the prof-provided solutions to a major exam so I'm hesitant to question them. Just wondering what AT's opinion is.
Edit: Problem solved. Thanks for all your help!
Last edited: