Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
3.Dynamics.pdf
Скачиваний:
27
Добавлен:
23.08.2013
Размер:
742.21 Кб
Скачать

3.3 Ordinary Differential Equations

3.3 Ordinary Differential Equations

Consider the following description of a linear time-invariant dynamical system

dn y

a1

dn1 y

. . . an y b1

dn1u

b2

dn2u

. . . bnu, D3.5E

dtn

 

dtn1

 

dtn1

dtn2

where u is the input and y the output. The system is of order n order, where n is the highest derivative of y. The ordinary differential equations is a standard topic in mathematics. In mathematics it is common practice to have bn 1 and b1 b2 . . . bn1 0 in D3.5E. The form D3.5E adds richness and is much more relevant to control. The equation is sometimes called a controlled differential equation.

The Homogeneous Equation

If the input u to the system D3.5E is zero, we obtain the equation

dn y

a1

dn1 y

a2

dn2 y

. . . an y 0,

D3.6E

dtn

 

dtn1

 

dtn2

 

which is called the homogeneous equation associated with equation D3.5E. The characteristic polynomial of Equations D3.5E and D3.6E is

ADsE sn a1sn1 a2sn2 . . . an

D3.7E

The roots of the characteristic equation determine the properties of the solution. If ADα E 0, then yDtE Ceα t is a solution to Equation D3.6E.

If the characteristic equation has distinct roots α k the solution is

n

 

X

D3.8E

yDtE Ck eα kt,

k 1

where Ck are arbitrary constants. The Equation D3.6E thus has n free parameters.

Roots of the Characteristic Equation give Insight

A real root s α correspond to ordinary exponential functions eα t. These are monotone functions that decrease if α is negative and increase if α is positive as is shown in Figure 3.3. Notice that the linear approximations shown in dashed lines change by one unit for one unit of α t. Complex roots s σ iω correspond to the time functions.

eσ t sin ω t,

eσ t cosω t

which have oscillatory behavior, see Figure 3.4. The distance between zero crossings is π /ω and corresponding amplitude change is eσπ /ω .

77

Chapter 3.

Dynamics

 

 

 

 

 

 

 

 

 

1

 

α 0

 

 

3

 

α 0

 

 

 

 

 

 

 

2.5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0.8

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

y

0.6

 

 

 

 

y1.5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0.4

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0.2

 

 

 

 

0.5

 

 

 

 

 

 

0

 

 

 

 

0

 

 

 

 

 

 

0

1

α2 t

3

4

0

0.2

0.4α t

0.6

0.8

1

Figure 3.3 The exponential function yDtE eα t. The linear approximations of of the functions for small α t are shown in dashed lines. The parameter T 1/α is the time constant of the system.

 

0.6

σ 0.25ω

 

 

40

σ 0.25ω

 

 

 

 

 

 

 

30

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0.4

 

 

 

 

 

20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

y

0.2

 

 

 

 

y

10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

0

 

 

 

 

 

−0.2

 

 

 

 

 

−10

 

 

 

 

 

−0.4

 

 

 

 

 

−20

 

 

 

 

 

0

5

ω t

10

15

 

0

5

ω t

10

15

Figure 3.4 The exponential function yDtE eσ t sin ω t. The linear approximations of of the functions for small α t are shown in dashed lines. The dashed line corresponds to a first order system with time constant T 1/σ . The distance between zero crossings is π /ω .

Multiple Roots

When there are multiple roots the solution to Equation D3.6E has the form

n

 

X

D3.9E

yDtE CkDtEeα kt,

k 1

Where CkDtE is a polynomial with degree less than the multiplicity of the root α k. The solution D3.9E thus has n free parameters.

The Inhomogeneous Equation – A Special Case

The equation

dn y

a1

dn1 y

a2

dn2 y

. . . an y uDtE

D3.10E

dtn

dtn1

 

dtn2

 

78

 

 

 

 

3.3

Ordinary Differential Equations

has the solution

 

 

Ck1DtEeα kt Z0t hDt τ EuDτ Edτ ,

D3.11E

yDtE kn

1

 

X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

where f is the solution to the homogeneous equation

 

 

dn f

 

 

a1

dn1 f

. . . an f

0

 

 

 

 

 

 

 

 

 

dtn

 

 

dtn1

 

with initial conditions

 

 

 

 

 

 

 

 

f D0E 0, f PD0E 0, . . . , f Dn2ED0E 0,

f Dn1ED0E 1.

D3.12E

The solution D3.11E is thus a sum of two terms, the general solution to the homogeneous equation and a particular solution which depends on the input u. The solution has n free parameters which can be determined from initial conditions.

The Inhomogeneous Equation - The General Case

The Equation D3.5E has the solution

yDtE kn1

Ck1DtEeα kt Z0t nDt τ EuDτ Edτ ,

D3.13E

X

 

 

 

 

 

where the function n, called the impulse response, is given by

 

nDtE b1 f Dn1EDtE b2 f Dn2EDtE . . . bn f DtE.

D3.14E

The solution is thus the sum of two terms, the general solution to the homogeneous equation and a particular solution. The general solution to the homogeneous equation does not depend on the input and the particular solution depends on the input.

Notice that the impulse response has the form

 

n

 

nDtE

X

D3.15E

ckDtEeα kt.

k 1

It thus has the same form as the general solution to the homogeneous equation D3.9E. The coefficients ck are given by the conditions D3.12E.

The impulse response is also called the weighting function because the second term of D3.13E can be interpreted as a weighted sum of past inputs.

79

Chapter 3. Dynamics

The Step Response

Consider D3.13E and assume that all initial conditions are zero. The output is then given by

yDtE

Z0t nDt τ EuDτ Edτ ,

D3.16E

If the input is constant uDtE 1 we get

 

yDtE Z0t nDt τ EZ0t nDτ Edτ HDtE,

D3.17E

The function H is called the unit step response or the step response for short. It follows from the above equation that

t

dhDtE

D

3.18

E

dt

nD E

 

The step response can easily be determined experimentally by waiting for the system to come to rest and applying a constant input. In process engineering the experiment is called a bump test. The impulse response can then be determined by differentiating the step response.

Stability

The solution of system is described by the ordinary differential equation D3.5E is given by D3.9E. The solution is stable if all solutions go to zero. A system is thus stable if the real parts of all α i are negative, or equivalently that all the roots of the characteristic polynomial D3.7E have negative real parts.

Stability can be determined simply by finding the roots of the characteristic polynomial of a system. This is easily done in Matlab.

The Routh-Hurwitz Stability Criterion

When control started to be used for steam engines and electric generators computational tools were not available and it was it was a major effort to find roots of an algebraic equation. Much intellectual activity was devoted to the problem of investigating if an algebraic equation have all its roots in the left half plane without solving the equation resulting in the RouthHurwitz criterion. Some simple special cases of this criterion are given below.

The polynomial ADsE s a1 has its zero in the left half plane if a1 0.

The polynomial ADsE s2 a1s a2 has all its zeros in the left half plane if all coefficients are positive.

80

3.3 Ordinary Differential Equations

The polynomial ADsE s3 a2s2 a3 has all its zeros in the left half plane if all coefficients are positive and if a1a2 a 3.

Transfer Functions, Poles and Zeros

The model D3.5E is characterized by two polynomials

ADsE sn a1sn1 a2sn2 . . . an1s an

BDsE b1sn1 b2sn2 . . . bn1s bn

The rational function

D

E

ADsE

D

E

G s

 

BDsE

3.19

 

 

 

 

is called the transfer function of the system.

Consider a system described by D3.5E assume that the input and the output have constant values u0 and y0 respectively. It then follows from D3.5E that

an y0 bnu0

which implies that

y0 bn GD0E u0 an

The number GD0E is called the static gain of the system because it tells the ratio of the output and the input under steady state condition. If the input is constant u u0 and the system is stable then the output will reach the steady state value y0 GD0Eu0. The transfer function can thus be viewed as a generalization of the concept of gain.

Notice the symmetry between y and u. The inverse system is obtained

by reversing the roles of input and output. The transfer function of the

BDsE ADsE system is ADsE and the inverse system has the transfer function BDsE.

The roots of ADsE are called poles of the system. The roots of BDsE are called zeros of the system. The poles of the system are the roots of the characteristic equation, they characterize the general solution to to the homogeneous equation and the impulse response. A pole s λ corresponds to the component eλt of the solution, also called a mode. If ADα E 0, then yDtE eα t is a solution to the homogeneous equation D3.6E.

Differentiation gives

dk y α k yDtE dtk

and we find

 

 

 

 

 

 

 

 

dn y

a1

dn1 y

a2

dn2 y

. . . an y ADα EyDtE 0

 

dtn

dtn1

 

dtn2

 

 

 

 

 

 

 

 

 

81

Соседние файлы в предмете Электротехника