Question about arg function

  • Thread starter pyro_dragun
  • Start date
  • Tags
    Function
In summary, calculating the argument of a complex number involves finding the angle subtended from the origin to the point on the complex plane, which can be done using trigonometric ratios and the modulus of the number. In the context of filter design, the transfer function can be evaluated at z=e^{j\omega T} to find the frequency response, where T is the sample period and \omega is the digital frequency variable, which represents frequencies from 0 to \pi while the actual system frequencies range from 0 to \omega_N.
  • #1
Alright, after seeing it for a few time in my courses, I am still confused on how to actually calculate this function. I know that the arg function describes the phase of a signal, and that's all fine and dandy, but I would like some sort of mathematical equation to calculate it. I know it has something to do with an arctan.

For example, in my DSP book, these transfer functions are given:

H1(z) = (z+b)/(z+a) 0<|a|<1
H2(z) = (bz+1)/(z+a) 0<|b|<1

It then goes on to calculate the arg without showing any steps:

arg[H1(e^jw)] = arctan(sin w/(b+cos w)) - arctan(sin w/(a+cos w))

and

arg[H2(e^jw)] = arctan(b*sin w/(1+b*cos w)) - arctan(sin w/(a+cos w))



Could anyone explain to me how this is calculated?

Thanks.
 
Mathematics news on Phys.org
  • #2
Draw a complex plane. Find an arbitrary point (a,b), which represents the value a+bi. Draw a line that connects point (a,b) to the origin. Then draw a line from (a,b) to (a,0), then another from (a,0) to the origin. The angle subtended from the origin to the point (a,b) is the argument of the number a+bi. As it can be seen, the length of the segment that connects (a,b) and (0,0) is the modulus of the number, or [itex]\sqrt{a^2+b^2}[/itex].

One can easily see that the line connecting (a,0) and (a,b) has length of b, and line connecting the origin to (a,0) has a length of a.

Simple Trig shows us that [itex]\tan \theta = b/a[/tex].

I hope that answers your question.

Edit: Note there are also more complex ways to calculate the argument, such as [itex]\arcsin (b/\sqrt{a^2+b^2})[/itex], but that just makes things harder for us.
 
Last edited:
  • #3
Ahh I just read your post properly and I just realized I didn't address it too well. All I can say is convert the [itex]e^{jw}[/itex] to [itex]\cos w + j\sin w[/itex] and try to see what that relates to what I told you. Use trig to find other expressions for the lengths of the sides.

Edit: Just asking, your studying this from a physics perspective yes? the use of j instead of i gives it away :)
 
  • #4
Gib Z said:
Ahh I just read your post properly and I just realized I didn't address it too well. All I can say is convert the [itex]e^{jw}[/itex] to [itex]\cos w + j\sin w[/itex] and try to see what that relates to what I told you. Use trig to find other expressions for the lengths of the sides.

Edit: Just asking, your studying this from a physics perspective yes? the use of j instead of i gives it away :)

Studying it from an EE perspective ;). I'm learning about filter design modeled by simple transfer functions in the Z-domain right now. I think I managed to figure out how the formula was derived from the your first post though, so thanks. Pretty sure that [itex]z = e^{jw}[/itex] in that example from the book.
 
  • #5
pyro_dragun said:
Studying it from an EE perspective ;). I'm learning about filter design modeled by simple transfer functions in the Z-domain right now. I think I managed to figure out how the formula was derived from the your first post though, so thanks. Pretty sure that [itex]z = e^{jw}[/itex] in that example from the book.

Hi Pyro, Have you looked at the frequency response of (linear) continuous time systems yet, or did you jump straight into discrete time systems first?

Continous time systems are the easiest to deal with in regard to frequency response. Here you only need to substitute [tex]s = j\omega[/tex] into the transfer function to evaluate the frequency response (magnitude and phase). In other words, the "s" variable of the continuous time system transfer function corresponds directly to the complex frequency variable.

For discete time systems it's a little different, as you have already obvserved. The variable "z" of the discrete time transfer function actually corresponds to a forward time shift of one sample period "T". You can show that a time shift of "T" has the effect of multplying the Fourier Transform by [tex]e^{j \omega T}[/tex]. So the frequency response of the discrete time system is found by evaluating the "z" transfer function at,

[tex]z=e^{j \omega T}[/tex].

Note that,

[tex]T = \frac{2 \pi }{\omega_S} = \frac{\pi}{\omega_N}[/tex],

where [tex]\omega_S[/tex] is the sample frequency in radians/sec and [tex] \omega_N[/tex] is the Nyquist frequency in rad/sec.

So evaluating the TF at [tex]z=e^{j \omega T}[/tex] is the same as using [tex]z=e^{j \pi \frac{\omega}{\omega_N}}[/tex].

Thus if you simple substitute [tex]z=e^{j v}[/tex] then "digital frequency" variable [tex]v[/tex] has the interpretation that it is a linearly scaled frequency variable that ranges from zero to [tex]\pi[/tex] while the actual system frequency it represents ranges from zero to [tex]\omega_N[/tex].
 
Last edited:
  • #6
uart said:
Hi Pyro, Have you looked at the frequency response of (linear) continuous time systems yet, or did you jump straight into discrete time systems first?

Continous time systems are the easiest to deal with in regard to frequency response. Here you only need to substitute [tex]s = j\omega[/tex] into the transfer function to evaluate the frequency response (magnitude and phase). In other words, the "s" variable of the continuous time system transfer function corresponds directly to the complex frequency variable.

For discete time systems it's a little different, as you have already obvserved. The variable "z" of the discrete time transfer function actually corresponds to a forward time shift of one sample period "T". You can show that a time shift of "T" has the effect of multplying the Fourier Transform by [tex]e^{j \omega T}[/tex]. So the frequency response of the discrete time system is found by evaluating the "z" transfer function at,

[tex]z=e^{j \omega T}[/tex].

Note that,

[tex]T = \frac{2 \pi }{\omega_S} = \frac{\pi}{\omega_N}[/tex],

where [tex]\omega_S[/tex] is the sample frequency in radians/sec and [tex] \omega_N[/tex] is the Nyquist frequency in rad/sec.

So evaluating the TF at [tex]z=e^{j \omega T}[/tex] is the same as using [tex]z=e^{j \pi \frac{\omega}{\omega_N}}[/tex].

Thus if you simple substitute [tex]z=e^{j v}[/tex] then "digital frequency" variable [tex]v[/tex] has the interpretation that it is a linearly scaled frequency variable that ranges from zero to [tex]\pi[/tex] while the actual system frequency it represents ranges from zero to [tex]\omega_N[/tex].
I've seen continuous time transforms before quite a few times, but they were in past classes. This class focuses more on discrete finite transforms, because those are used most often in practical applications.

Also, thanks for the explanation of the variable "z."
 

Suggested for: Question about arg function

Replies
3
Views
225
Replies
5
Views
247
Replies
2
Views
612
Replies
4
Views
239
Replies
12
Views
1K
Replies
9
Views
1K
Replies
2
Views
754
Replies
20
Views
2K
Back
Top