I am trying to solve the below problem:
To begin with the frequency response of the ideal low pass filter with $\omega_c= \pi/4$ is given by $$ H(\omega) = \begin{cases} 1 & \text{if -$\pi/4$ $\le$ |$\omega$| $\le$ $\pi/4$;}\\ 0 & \text{otherwise.} \end{cases} $$
Proceeding to solve , we have
$$w(n) = h(n) * \left[(-1)^n\cdot x(n) \right]= \sum_{k=-\infty}^\infty h(k)\cdot(-1)^\left(n-k\right)\cdot x(n-k)$$
Therefore $$y(n) = (-1)^nw(n) = (-1)^n \cdot \left[\sum_{k=-\infty}^\infty h(k)\cdot(-1)^\left(n-k\right)\cdot x(n-k)\right]$$
bringing the $(-1)^n$ term in to the bracket:
$$y(n) = \left[\sum_{k=-\infty}^\infty h(k)\cdot(-1)^n\cdot(-1)^\left(n-k\right)\cdot x(n-k)\right]$$
Now this is where I am stuck. I don't know how to generalize the value of $$(-1)^\left(2n-k\right)$$ inside the bracket, the solution in the book I am referring goes forth as below which I don't agree with but however someone can help understand how this can be right.
Using the fact that $(-1)^\left(n-k\right) = (-1)^\left(k-n\right)$" the sum becomes $$y(n) = \left[\sum_{k=-\infty}^\infty h(k)\cdot(-1)^k\cdot x(n-k)\right] = \left[(-1)^nh(n) * x(n)\right]$$ Thus the unit sample response of the system is $(-1)^nh(n)$ and the frequency response is is $$ DTFT\left[(-1)^nh(n)\right] = H(e^\left(j(\omega-\pi)\right) = \begin{cases} 1 & \text{if 3$\pi/4$ > $\le$ |$\omega$| $\le$ $\pi$;}\\ 0 & \text{otherwise.} \end{cases}$$
First case of disagreement is: how can $(-1)^\left(n-k\right) = (-1)^\left(k-n\right)$, it really depends on whether $ k$ is $\lt$ or $\gt$ $n$ is it not?
The second disagreement stems from the the last expression, i.e. $$H(e^\left(j(\omega-\pi)\right)) = \begin{cases} 1 & \text{if 3$\pi/4$ $\le$ |$\omega$| $\le$ $\pi$;}\\ 0 & \text{otherwise.} \end{cases}$$ I think frequency shifting the frequency response of the low pass filter by $\pi$, the pass band of this system (in the diagram above) should be from $-\pi/4+\pi$ to $\pi/4+\pi$, so should have been $3\pi/4$ to $5\pi/4$ ,but the solution says 3$\pi/4$ to $\pi$.
Please help clarify this confusion - Thanks.