Calculating Unit Impulse Response

Click For Summary
SUMMARY

This discussion focuses on calculating the unit impulse response of a linear time-invariant (LTI) system defined by the equation y[n+2] + y[n+1] + y[n] = x[n+1] - x[n]. The user, Paul Harris, correctly identifies the impulse response as h[n] and derives the initial values through iteration, ultimately concluding that the response is oscillatory. A respondent clarifies that h[0] does not need to be guessed and provides an alternative formulation using the z-transform for deeper insights into the problem.

PREREQUISITES
  • Understanding of Linear Time-Invariant (LTI) systems
  • Familiarity with impulse response and zero-state response concepts
  • Basic knowledge of difference equations
  • Introduction to z-transform techniques
NEXT STEPS
  • Review "Signals and Systems" to build foundational knowledge in DSP
  • Learn about solving second-order difference equations
  • Study the application of z-transform in analyzing LTI systems
  • Explore iterative methods for calculating impulse responses in DSP
USEFUL FOR

Students and self-learners in Digital Signal Processing (DSP), particularly those tackling LTI systems and impulse response calculations.

paul_harris77
Messages
50
Reaction score
0
I am trying to teach myself DSP, owing to bad lecture notes. In particular at the moment I'm trying to calculate impulse responses for LTI systems, given the system equation. I would really appreciate it if someone could tell me if my working and assumptions below are correct for the following question:

Homework Statement



Find the unit impulse response of the following LTI system:

y[n+2] + y[n+1] + y[n] = x[n+1] - x[n]

Homework Equations



-

The Attempt at a Solution



Rearrange for y[n+2]:

y[n+2] = x[n+1]-x[n]-y[n+1]-y[n]

Since input is an impulse, and output is impulse response, can replace x with delta (&) and y with h.

h[n+2] = &[n+1] - &[n] - h[n+1] - h[n]

By the definition of impulse response, it is a zero state response, i.e. h[n] = 0 for all n<=0 - IS THIS CORRECT?

Therefore h[0] = 0

Starting iteration at n = -1

h[1] = &[0] - &[-1] -h[0] - h[-1]
h[1] = 1-0-0-0 = +1

n=0
h[2] = &[1] - &[0] - h[1] - h[0]
h[2] = 0 -1 -1 -0 = -2

All delta (&) terms are zero from now on.

n=1
h[3] = -h[2] -h[1]
h[3] = +2 -1 = +1

n=2
h[4] = -h[3] - h[2]
h[4] = -1 +2 = +1

Continuing in this way shows that h[n] = {0, +1, -2, +1, +1, -2, +1, +1, -2, +1, +1, -2, ...)
i.e. oscillatory response.

Please could someone tell me if my working is all correct, and if this is the correct answer?

Many thanks

Paul Harris
 
Physics news on Phys.org
paul_harris77 said:
I am trying to teach myself DSP, owing to bad lecture notes. In
Since input is an impulse, and output is impulse response, can replace x with delta (&) and y with h.

h[n+2] = &[n+1] - &[n] - h[n+1] - h[n]
By the definition of impulse response, it is a zero state response, i.e. h[n] = 0 for all n<=0 - IS THIS CORRECT?
Paul Harris

Hi Paul,

Your answer seems fine to me.

You don't need to guess what h[0] is. It can be calculated by letting n=-2 in your last formula. This is a second order difference equation, by "find impulse response", you can assume h[-2]=h[-1]=0.

I would rewrite it as h[n]=&[n-1]+&[n-2]-h[n-1]-h[n-2], with h[n] identically 0 for n<0 which means causal and system is completely at rest before getting tickled. Actually, you only need to ensure h[-2] and h[-1] = 0. This is equivalent to finding particular integral of a second order differential equation with initial conditions as y(0)=0 and dy/dt(0)=0.

Solving h[n] this way is said to use "brutal force". You can use z-transform and it gives you more insights.

I suggest reviewing Signals and Systems first before jumping into DSP.

Good luck!
 
Hi Klondike

Thanks for the reply. Glad I'm on the right track :) We've been chucked in at the deep end with no prior experience in SP of any kind and just a load of notes with definitions and no explanation! There was a previous exam question like this yet no examples on how to do it...

Once again thanks!

Best wishes

Paul
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
952
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
2
Views
2K
Replies
2
Views
5K