---
title: "H(e^(jω)), magnitude plot and h[n] for y[n] = 0.5y[n−1] + x[n]"
subject: "Signals and Systems"
chapter: 6
key: "semester_4/signals_and_systems:first-order-difference-plot"
source: https://www.bctengineer.com/q/semester_4/signals_and_systems/first-order-difference-plot
site: BCT Engineering
---

# H(e^(jω)), magnitude plot and h[n] for y[n] = 0.5y[n−1] + x[n]

Signals and Systems · Chapter 6: Discrete-Time Systems

- Asked in: 2081 Chaitra, 6 marks; 2069 Bhadra, 8 marks (asked 2 times)
- Video: [Magnitude and phase spectrum graphs - Frequency response in signal and system / DSP](https://www.youtube.com/watch?v=LXw1uTE6Zv4) — Shrenik Jain
- Answer checked by Claude Opus 5.5 (high effort) on 2026-10-14
- Page: https://www.bctengineer.com/q/semester_4/signals_and_systems/first-order-difference-plot
- Whole chapter: https://www.bctengineer.com/md/semester_4/signals_and_systems/chapter-6

## Question

Find the frequency response H(e^(jω)), plot the magnitude and impulse response h[n] for a system characterized by linear constant coefficient difference equation y[n] = 0.5y[n−1] + x[n]

## Short answer

H(eʲω) = 1/(1−0.5e⁻ʲω), magnitude |H| = 1/√(1.25−cos ω), with max 2 at ω=0 and min 2/3 at ω=π (lowpass). Impulse response: h[n] = (0.5)ⁿ u[n].

## Answer

**Given:** $y[n] = 0.5\,y[n-1] + x[n]$, initially at rest.

#### Frequency response

DTFT of both sides:

$$
\begin{aligned}
Y(e^{j\omega})\left(1 - 0.5e^{-j\omega}\right) &= X(e^{j\omega}) \\
H(e^{j\omega}) &= \frac{1}{1 - 0.5e^{-j\omega}} = \frac{1}{(1 - 0.5\cos\omega) + j0.5\sin\omega}
\end{aligned}
$$

**Magnitude:**

$$
|H(e^{j\omega})| = \frac{1}{\sqrt{(1 - 0.5\cos\omega)^2 + 0.25\sin^2\omega}} = \frac{1}{\sqrt{1.25 - \cos\omega}}
$$

**Phase:**

$$
\theta(\omega) = -\tan^{-1}\frac{0.5\sin\omega}{1 - 0.5\cos\omega}
$$

#### Magnitude plot

| $\omega$ | 0 | $\pm\pi/4$ | $\pm\pi/2$ | $\pm3\pi/4$ | $\pm\pi$ |
|---|---|---|---|---|---|
| $\lvert H\rvert$ | 2.000 | 1.357 | 0.894 | 0.715 | 0.667 |
| $\theta$ (for $+\omega$) | 0° | −28.7° | −26.6° | −14.6° | 0° |

```text
 |H|
 2.0 |          *
     |        .' '.
 1.36|      *       *
     |    .'         '.
 0.89|  *               *
 0.67|*                   *
     +--+---+---+---+---+--> w
     -pi   -pi/2  0  pi/2  pi
```

The magnitude is even in $\omega$, has its maximum 2 at $\omega = 0$ and its minimum $2/3$ at $\omega = \pm\pi$, and repeats every $2\pi$. So the system is a **low pass filter**. The phase is odd in $\omega$ (maximum lag 30° at $\omega = \pm\pi/3$).

#### Impulse response

Using $a^n u[n] \leftrightarrow \frac{1}{1 - ae^{-j\omega}}$ with $a = 0.5$:

$$
h[n] = (0.5)^n\,u[n]
$$

| $n$ | <0 | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|---|
| $h[n]$ | 0 | 1 | 0.5 | 0.25 | 0.125 | 0.0625 | 0.03125 |

```text
 h[n]
 1.0 |   o
     |   |
 0.5 |   |  o
0.25 |   |  |  o
     |   |  |  |  o  o  .
   0 +-o-+--+--+--+--+--+--> n
      -1  0  1  2  3  4  5
```

The system is causal, stable ($\sum h[n] = 2$) and IIR.

## Check yourself

The answer's key points as multiple-choice questions, with the correct option and why.

1. What is H(e^(jw)) for y[n] = 0.5 y[n-1] + x[n]?
   A. 1/(1 + 0.5 e^(-jw))
   B. 0.5/(1 - e^(-jw))
   C. 1/(1 - 0.5 e^(-jw))
   D. 1 - 0.5 e^(-jw)
   Answer: C. Y(1 - 0.5e^(-jw)) = X. (Key point: Frequency response)

2. What are |H| at w = 0 and w = pi?
   A. 2 and 2/3
   B. 1 and 0
   C. 1/2 and 2
   D. 2/3 and 2
   Answer: A. |H| = 1/sqrt(1.25 - cos w), giving 1/0.5 = 2 and 1/1.5 = 0.667. (Key point: Magnitude values)

3. What type of filter and which symmetry/periodicity?
   A. High pass; odd magnitude
   B. Low pass; even magnitude, period 2 pi
   C. Band pass; not periodic
   D. All pass; period pi
   Answer: B. Gain is largest at w = 0 and smallest at pi; |H| is even and repeats every 2 pi. (Key point: Filter type)

4. How does h[n] look?
   A. Alternating in sign
   B. Constant at 1 for n >= 0
   C. Zero for n > 0
   D. Samples 1, 0.5, 0.25, ... for n >= 0 (decaying, causal)
   Answer: D. h[n] = (0.5)^n u[n] decays geometrically, sum = 2. (Key point: Impulse response plot)

## Close variants set in other exams

- [H(e^(jω)) and h[n] for y[n] = 0.5y[n−1] + x[n]](https://www.bctengineer.com/question.md?key=semester_4%2Fsignals_and_systems%3Afirst-order-difference-equation) — Signals and Systems, chapter 6, asked 8×
- [H(e^(jω)) and h[n] for y[n] = 0.3y[n−1] + x[n]](https://www.bctengineer.com/question.md?key=semester_4%2Fsignals_and_systems%3Adifference-equation-0-3) — Signals and Systems, chapter 6, asked 8×
- [Transfer function and magnitude for y[n] = 0.3y[n−1] + x[n]](https://www.bctengineer.com/question.md?key=semester_4%2Fsignals_and_systems%3Adifference-equation-0-3-plot) — Signals and Systems, chapter 6, asked 4×
- [Transfer function of y[n] = 0.4y[n−1] + x[n]](https://www.bctengineer.com/question.md?key=semester_4%2Fsignals_and_systems%3Adifference-equation-0-4) — Signals and Systems, chapter 6, asked 9×

## Related in Signals and Systems

- [Impulse and frequency response of y[n] = 0.5y[n−1] + x[n] + x[n+1]](https://www.bctengineer.com/question.md?key=semester_4%2Fsignals_and_systems%3Adifference-equation-noncausal) — Signals and Systems, chapter 6
- [Impulse and frequency response of y[n] + 0.55y[n−1] = x[n]](https://www.bctengineer.com/question.md?key=semester_4%2Fsignals_and_systems%3Adifference-equation-0-55) — Signals and Systems, chapter 6
- [Impulse response of y[n] − (3/4)y[n−1] + (1/8)y[n−2] = 2x[n]](https://www.bctengineer.com/question.md?key=semester_4%2Fsignals_and_systems%3Asecond-order-difference-equation) — Signals and Systems, chapter 6, asked 2×
- [Frequency response; ideal LPF impulse response](https://www.bctengineer.com/question.md?key=semester_4%2Fsignals_and_systems%3Aideal-lpf-cutoff-impulse) — Signals and Systems, chapter 5, asked 2×
- [First-order system impulse and step response](https://www.bctengineer.com/question.md?key=semester_4%2Fsignals_and_systems%3Afirst-order-system-response) — Signals and Systems, chapter 5
- [Frequency response of a CT LTI system](https://www.bctengineer.com/question.md?key=semester_4%2Fsignals_and_systems%3Act-frequency-response) — Signals and Systems, chapter 5, asked 3×

## Related in other subjects

- [Difference equation need; pole-zero, magnitude response](https://www.bctengineer.com/question.md?key=semester_7%2Fdigital_signal_analysis_and_processing%3Awhy-difference-eq-magnitude-response) — Digital Signal Analysis and Processing, chapter 3, asked 3×
- [Magnitude response of second order system](https://www.bctengineer.com/question.md?key=semester_7%2Fdigital_signal_analysis_and_processing%3Amagnitude-response-0-5-0-3) — Digital Signal Analysis and Processing, chapter 3, asked 2×
- [Difference equation example; poles/zeros response](https://www.bctengineer.com/question.md?key=semester_7%2Fdigital_signal_analysis_and_processing%3Apole-zero-define-difference-eq) — Digital Signal Analysis and Processing, chapter 3
- [Need for difference equation; LCCDE and system function](https://www.bctengineer.com/question.md?key=semester_7%2Fdigital_signal_analysis_and_processing%3Awhy-difference-equation-lccde) — Digital Signal Analysis and Processing, chapter 1, asked 2×
