Generic ECE-3340 supplementary note: Polynomials
                                                                 (c) Han Q. Le

1. What is a polynomial

2x+1 ;  x is a variable. It is a polynomial of x.

Suppl
            note_polynomials_1.png; x and c are constant (can be unknown), q is a variable. Then it is a polynomial of q

Suppl
            note_polynomials_2.png is a polynomial of x and y if both are variables.

In[4]:=

Suppl
        note_polynomials_3.png

Out[4]=

Suppl
        note_polynomials_4.gif

2. For a single-variable polynomial, what are the most fundamental parameters

Consider:           Suppl
            note_polynomials_5.png
Are coefficients 4,        28,      69,      -97,      52
the most fundamental parameters of the polynomial?

No. It is this:

Suppl
        note_polynomials_6.png

Suppl
        note_polynomials_7.png

It is the zeros or roots that are fundamental to a polynomial. We construct a polynomial from the roots (up).

Suppl
        note_polynomials_8.png

Suppl
        note_polynomials_9.png

We need just a proportional constant:

Suppl
        note_polynomials_10.png

Suppl
        note_polynomials_11.png

Hence: Suppl
            note_polynomials_12.png

For a real-coefficient polynomial, the fundamental way to express it is:
                     Suppl
            note_polynomials_13.png
where Suppl
            note_polynomials_14.png are a pair of conjugate roots, and Suppl
            note_polynomials_15.png, Suppl
            note_polynomials_16.png are real roots.

3. Linear system transfer function

In this course, the reason we are interested in the polynomial is that it can be used to represent the Laplaced-transformed response or transfer function of a linear system.
(please review course materials of circuit analysis, signal analysis, or signals and systems)

What determines the behavior of these circuits or linear systems? The roots (or poles) of their Laplace transfer/response functions.

3.1 Example 1:

Please go to this website to watch the behavior of second-order circuits as functions of the Laplace TF poles.

http://courses.egr.uh.edu/ECE/ECE3340/Class%20 Notes2100/Lab_6/ECE2100_Lab6_v2 _p1.htm

Read additional notes about filters.

3.2 Example 2: Allow the shockwave flash video to see.




3.3 Example 3:

Discussion of PID controllers.

4. Example of coding for transfer functions

4.1 Usage of Product function

In general, a transfer function can be written as:
             Suppl
            note_polynomials_18.png
where Suppl
            note_polynomials_19.png, i from 1 to p and Suppl
            note_polynomials_20.png, j from 1 to q are the roots of the numerator and the denominator.

The mathematical symbol, Suppl
            note_polynomials_21.png is known as “product” and it can be used directly in Mathematica code:

Suppl
        note_polynomials_22.gif

Suppl
        note_polynomials_23.png

To explicitly spell out the function without using the symbol, we can write:

Suppl
        note_polynomials_24.png

Suppl
        note_polynomials_25.png

Hence, suppose we have a list of roots, we can easily construct the TF programmatically. Below is an example.

4.2 Example 1

Suppose we have a list of desired Suppl
            note_polynomials_26.png, we first define function for the roots:

Suppl
        note_polynomials_27.png


What if it is a single real root? then we just use the root directly. So let the list of single real roots and  Suppl
            note_polynomials_28.png be:

Suppl
        note_polynomials_29.gif

What would be the polynomial? First, we get the root pairs:

Suppl
        note_polynomials_30.png

Suppl
        note_polynomials_31.png

Suppl
        note_polynomials_32.png

Suppl
        note_polynomials_33.png

The dimension above indicates that rootpr is a 3x2 array. But we want just a single list of 6. To do that, we need to flatten it by one level:

Suppl
        note_polynomials_34.png

Suppl
        note_polynomials_35.png

Suppl
        note_polynomials_36.png

Suppl
        note_polynomials_37.png

We see that it is just a list of 6 roots as expected. Now we are ready to construct the polynomial:

Suppl
        note_polynomials_38.gif

Suppl
        note_polynomials_39.png

Let’s do a plot test:

Suppl
        note_polynomials_40.gif

Suppl
        note_polynomials_41.png

Suppl
        note_polynomials_42.gif

Suppl
        note_polynomials_43.gif

Notice that we define the polynomial with formulated roots, but not numeric values. Yet, as soon as we assign numeric values to the various root parameters, Mathematica will substitute numerical values into those symbols and we can plot the actual function.

Suppl
        note_polynomials_44.gif

Suppl
        note_polynomials_45.gif

4.3 Example 3

This example is from HW3,
Let the lists of natural frequency and damping coefficient be:

Suppl
        note_polynomials_46.gif

Suppl
        note_polynomials_47.png

This is how you can see its structure:

Suppl
        note_polynomials_48.png

Suppl note_polynomials_49.png Suppl note_polynomials_50.png
Suppl note_polynomials_51.png Suppl note_polynomials_52.png

Suppl
        note_polynomials_53.png

Suppl
        note_polynomials_54.png

We can define the top row, after flatten it as root1 and the second row is root2.

Suppl
        note_polynomials_55.png

Suppl
        note_polynomials_56.png

Suppl
        note_polynomials_57.png

Suppl
        note_polynomials_58.png

Now we can define the low-pass, hi-pass, and band-pass TF:

Suppl
        note_polynomials_59.gif

We can put all into a function:

Suppl
        note_polynomials_60.png

Example:

Suppl
        note_polynomials_61.png

Suppl
        note_polynomials_62.png

This is how to get the output: create variables to be used later:

Suppl
        note_polynomials_63.png

Some additional functions that can be used in the HW:

Suppl
        note_polynomials_64.gif

Here is a test of the various functions developed:

Suppl
        note_polynomials_65.gif

Suppl note_polynomials_66.gif Suppl note_polynomials_67.gif Suppl note_polynomials_68.gif
Suppl note_polynomials_69.gif Suppl note_polynomials_70.gif Suppl note_polynomials_71.gif
Suppl note_polynomials_72.gif Suppl note_polynomials_73.gif Suppl note_polynomials_74.gif








Created with the Wolfram Language