Presentation is loading. Please wait.

Presentation is loading. Please wait.

Solving DEs etc. Laplace transforming derivatives Etc.

Similar presentations


Presentation on theme: "Solving DEs etc. Laplace transforming derivatives Etc."— Presentation transcript:

1 Solving DEs etc

2 Laplace transforming derivatives Etc.

3 Solving LTI DEs

4 A=?, B=?, x(t)=?

5 Matlab “residue” help residue RESIDUE Partial-fraction expansion (residues). [R,P,K] = RESIDUE(B,A) finds the residues, poles and direct term of a partial fraction expansion of the ratio of two polynomials B(s)/A(s). If there are no multiple roots, B(s) R(1) R(2) R(n) ---- = -------- + -------- +... + -------- + K(s) A(s) s - P(1) s - P(2) s - P(n) Vectors B and A specify the coefficients of the numerator and denominator polynomials in descending powers of s. The residues are returned in the column vector R, the pole locations in column vector P, and the direct terms in row vector K. The number of poles is n = length(A)-1 = length(R) = length(P). The direct term coefficient vector is empty if length(B) < length(A), otherwise length(K) = length(B)-length(A)+1. If P(j) =... = P(j+m-1) is a pole of multplicity m, then the expansion includes terms of the form R(j) R(j+1) R(j+m-1) -------- + ------------ +... + ------------ s - P(j) (s - P(j))^2 (s - P(j))^m

6 Matlab “residue [B,A] = RESIDUE(R,P,K), with 3 input arguments and 2 output arguments, converts the partial fraction expansion back to the polynomials with coefficients in B and A. Warning: Numerically, the partial fraction expansion of a ratio of polynomials represents an ill-posed problem. If the denominator polynomial, A(s), is near a polynomial with multiple roots, then small changes in the data, including roundoff errors, can make arbitrarily large changes in the resulting poles and residues. Problem formulations making use of state-space or zero-pole representations are preferable.

7 Matlab example of ‘Residue’

8 Matlab: “tf2zp” help tf2zp TF2ZP Transfer function to zero-pole conversion. [Z,P,K] = TF2ZP(NUM,DEN) finds the zeros, poles, and gains: (s-z1)(s-z2)...(s-zn) H(s) = K --------------------- (s-p1)(s-p2)...(s-pn) from a SIMO transfer function in polynomial form: NUM(s) H(s) = -------- DEN(s) Vector DEN specifies the coefficients of the denominator in descending powers of s. Matrix NUM indicates the numerator coefficients with as many rows as there are outputs. The zero locations are returned in the columns of matrix Z, with as many columns as there are rows in NUM. The pole locations are returned in column vector P, and the gains for each numerator transfer function in vector K. For discrete-time transfer functions, it is highly recommended to make the length of the numerator and denominator equal to ensure correct results. You can do this using the function EQTFLENGTH in the Signal Processing Toolbox. However, this function only handles single-input single-output systems. See also zp2tf.

9 Example Matlab “tf2zp”

10 Calculator/Computer Usage Be able to use your calculator to manipulate complex numbers Be able to manipulate complex numbers by hand without your calculator Simplest problems by hand with paper and pencil Intermediate problems with calculators “real problems” with computers.

11 Shifting Sinusoidal waveforms

12 Complex Number Arithmetic Rectangular form Polar form Relationships (to each other, to triangle, to euler’s identity) Adding/subtracting (use retangular form) Multiplying/dividing (use polar form) Complex conjugate


Download ppt "Solving DEs etc. Laplace transforming derivatives Etc."

Similar presentations


Ads by Google