How Is a Simplified DSP Transfer Function Derived?

In summary, the conversation is about solving a transfer function and finding the simplified denominator using Euler's formula and trigonometry. The solution involves expanding the function using FOIL method, simplifying terms with common factors, and simplifying terms with exponentials. There are some errors in the process, but the final result is correct.
  • #1
Jag1972
40
0
I have taken this example from a Digital Signal Processing book. I have got the simplified transfer function; however do not understand how it was done. I have had a go could someone please look at it and let me know where I am going wrong.

I have attached my working out on a Word document.
Thanks in advance.
 

Attachments

  • I have taken this example from a Digital Signal Processing book.doc
    35 KB · Views: 214
Engineering news on Phys.org
  • #2
You're not doing too badly, everything you need to solve the problem is in that word document, but let's try a different approach, because that denominator is crazy long (but might be right, I didn't check the math)

Instead of converting re^(j*pi/2) and re^(-j*pi/2) by Euler's formula, expand the function first using the FOIL method (First pair, Outer pair, Inner pair, Last pair).

Looking at the 2nd and 3rd terms, they have a common factor, so factorise them, and then convert using Euler's formula and simplify. (At what point does the cosine curve cross the x-axis?)

Now looking at the 4th term, when you multiply two exponential's together, you add their indices right? So simplify this term.

And now, what are you left with, keeping in mind that r = 0.937?
 
  • #3
Remember the IDEA behind what the Euler formula is telling you: the exponential of an imaginary number is very similar to a trig function.

You should know that the trig functions of angles like pi/2 have nice simple values.

Using those facts, you should be able to see that the denominator is just

(z - rj)(z+rj)
= z^2 - (rj)^2
= z^2 + r^2

That was almost as easy as the numerator :smile:
 
  • #4
Zryn\AlphaZero:
Thank you very much to both of you. Your helps sorts my issue out completely :)

Jag.
 
  • #5
Zyrn: I know what the answer is as AlephZero’s post solves it however can not work it out the maths as you described. Could you please tell me where I am going wrong?
This is where I am currently:
 

Attachments

  • zryn.doc
    28 KB · Views: 228
  • #6
The maths I describe is the way of showing that AlephZero's shortcuts (based on the things he knows to be true since he has done it the long way before) is correct.

(z-re(j*pi/2))(z-re(-j*pi/2)) --> z^2 - zre(-j*pi/2) - zre(j*pi/2) + zre(j*pi/2 - j*pi/2)

This is not a correct expansion of the original equation, your fourth term is wrong.

Term 2 & 3 can be simplified as: -zre(-j*pi/2 + j*pi/2)

No they can't. You can only add the indices when the terms are multiplied together. Taking into account that you were told to use eulers formula and think about when the cos curve crosses the x-axis, and that this simplification results in e^0 = 1 and has no cos functions in it, it should have clicked that something went wrong.

The fourth term is raised to the power of 0, therefore that is equal to zr as e^0=1.

This is true, but the fourth term is wrong, so it doesn't help.
 
  • #7
Thanks again Zryn: I think I know where I went wrong, whenever you have time could you please let me know if its correct.

Original equation:

[tex]\frac{(z-1)(z+1)}{(z-re^{j\frac{\pi}{2}}}[/tex])(z-re[tex]^{-j\frac{\pi}{2}}[/tex])


The top (Numerator) I think is straight forward.

I think the bottom should look like this:

z[tex]^{2}[/tex]-zre[tex]^{(-j\frac{\pi}{2})}[/tex]-zre[tex]^{(j\frac{\pi}{2})}+r^{2}e^{j\frac{\pi}{2})-(-j\frac{\pi}{2}}

Using Eulers formulae terms 2 and 3 become

-z*r(cos(^{pi/2})-jsin^{\pi/2})-z*r(cos^{\pi/2}+jsin^{\pi/2})

trig rules: cos^{\pi/2} is 0
sin^{\pi/2}=1
therefore:

-z*r(0-1)-z*r(0+1)
+z*r-z*r

terms 2 and 3 = 0

term 4 is:

r^{2}e^{0}
r^{2}

therefore final result is:

H(Z)=\frac{z^2-1}{z^2+r^2}

I apologise for not using the latex code in the first place as you had rewrite it to reply to me.
Thnaks in advance.
 
  • #8
That looks close, though I think your Latex broke somewhere in the middle of the equation.

When I did it, I grouped the 2nd & 3rd term and came up with:

factorised: -zr[ e^(-j*pi/2) + e^(-j*pi/2) ]
eulers: -zr[ cos(-pi/2) + jsin(-pi/2) + cos(pi/2) + jsin(pi/2) ]
simplify: -zr [ - cos(pi/2) - jsin(pi/2) + cos(pi/2) + jsin(pi/2) ] (the 4 terms sum to 0 here)
simplify: -zr [ - 0 - j + 0 + j ] (can see the 4 terms sum to 0 more easily than above)

-z*r(0-1)-z*r(0+1)

Slightly different to yours, as when you went from eulers to simplifying I think you left out the 'j' in front of the sin(-pi/2) and sin(pi/2), but since they sum to 0 in this case you got the right answer.

and the 4th term:

-re^(-j*pi/2) * -re^(j*pi/2)
simplify: [-r*-r] * e^(-j*pi/2 + j*pi/2)
simplify: [r^2] * e^(0)

And you know the answer, so its all good.
 
  • #9
Thanks Zryn: I was thinking about what I wrote and I found a mistake in my solution, however that doesn't quite match yours, my working our is as follows. I am just going to show the denominator:

= (z-re[tex]^{-j\pi/2}[/tex])(z-re[tex]^{j\pi/2}[/tex])

= z[tex]^{2}[/tex] - zre[tex]^{j\pi/2}[/tex] - zre[tex]^{-j\pi/2}[/tex] + r[tex]^{2}[/tex]e[tex]^{-j\pi/2 + j\pi/2}[/tex]

= -zr(e[tex]^{j\pi/2}[/tex] + e[tex]^{-j\pi/2}[/tex])

= -zr((cos[tex]\pi/2[/tex] + jsin [tex]\varpi/2[/tex])+(cos [tex]\varpi/2[/tex] - jsin [tex]\pi/2[/tex])

= -zr((0+1)+(0-1))

= -zr(1-1) -> -zr(0)

Terms 2 & 3 are 0.

Term 4 is the same as your solution:

r[tex]^{2}[/tex]e(0) -> r[tex]^{2}[/tex]

Thanks in advance Zyrn :smile:
 
  • #10
= -zr((0+1)+(0-1))

I believe this step is wrong again, for the same reason as before, but everything else looks good.

When you simplify j*sin(pi/2) and -j*sin(pi/2) you get j*1 and -j*1 not just 1 and -1, so that line should be:

-zr((0+j)+(0-j))

Alternatively you could just say j*sin(pi/2) + -j*sin(pi/2) = 0, but to put the 1 and -1 in there is incorrect.

-zr(1-1) -> -zr(0)

As per the previous mistake, it should be -zr(j-j) -> -zr(0), so you get the same answer, but you're just not taking into account the j factor and may be marked down because of it. Unless this is just a typing mistake as you entered all the math into Latex :smile:.
 
  • #11
Zryn: Thanks a lot, it was not a typing mistake I was failing to account for j. I can see where I have been going wrong now thanks. I have defo learned something :smile:
 

1. What is a transfer function in DSP?

A transfer function in DSP (Digital Signal Processing) is a mathematical representation of the relationship between the input and output signals of a system. It describes how the system responds to different input signals and can be used to analyze and design digital filters or other DSP systems.

2. How is a transfer function simplified?

A transfer function can be simplified by reducing its complexity through mathematical operations such as factoring or canceling out common terms. This process is often done to make the transfer function easier to analyze or implement in a DSP system.

3. What are the benefits of using a simplified transfer function?

Using a simplified transfer function can make it easier to understand and work with the DSP system. It can also reduce the computational complexity and improve the efficiency of the system.

4. What are some common methods for simplifying transfer functions?

Some common methods for simplifying transfer functions include factoring, partial fraction expansion, and using properties of complex numbers such as conjugates and symmetry.

5. Can a simplified transfer function affect the accuracy of a DSP system?

Yes, a simplified transfer function can affect the accuracy of a DSP system. Depending on the simplification method used, some information or details from the original transfer function may be lost, which can impact the accuracy of the system's output. Therefore, it is important to carefully consider the trade-offs between simplification and accuracy when working with transfer functions in DSP.

Back
Top