Docsity

Linearization of Nonlinear ODEs: Pendulum and Aircraft Applications - Prof. Craig A. Wools, Study notes of Aerospace Engineering

Toggle sidebar
bg1
Lecture 13: Linearization
Consider a set of nonlinear, time-invariant ODE’s. Recall that any nth order ODE can be re-written as n
first order ODE’s. We may therefore assume, without loss of generality, that the system takes the form
˙
x=f(x,u),(1)
where fis a vector-valued function of the state xand input u. While we may well know the form of the
input u, we do not necessarily know the resulting form of x(t), for a given initial state x(0). A solution or
trajectory of (1) is a pair (˜
x(t),˜
u(t)) satisfying
˙
˜
x=f(˜
x,˜
u).
Some solutions are special in the sense that they do not depend on time. An equilibrium is a solution
(˜
x(t),˜
u(t)) = (xe,ue) for which xeand ueare constant, that is
˙
xe=0=f(xe,ue).
To determine equilibria for a given system, one sets f(˜
x,˜
u) equal to zero and solves the resulting nonlinear
algebraic equations for x=xeand u=ue.
Linearization: View #1. Given a solution, and assuming that the components of fare suitably smooth,
one may expand the right-hand side of equation (1) in a multivariable Taylor series. Doing so, one obtains
˙
x=f(˜
x,˜
u) + µ∂f
∂x∗
(x−˜
x) + µ∂f
∂u∗
(u−˜
u) + h.o.t.,(2)
where the asterisk denotes that the quantity is evaluated along the solution (˜
x(t),˜
u(t)). So far, we have
said nothing new. Equation (2) is an equivalent representation of equation (1). Rearranging (2), we obtain
˙
x−˙
˜
x=µ∂f
∂x∗
(x−˜
x) + µ∂f
∂u∗
(u−˜
u) + h.o.t.,
where we have used the fact that (˜
x(t),˜
u(t)) is a solution in order to replace f(˜
x,˜
u) with ˙
˜
x. The
“linearization” occurs when we assume that k(x−˜
x)kand k(u−˜
u)kremain small, so that we may neglect
the higher order terms in the Taylor series expansion. We make the following definitions:
∆x=x−˜
x
∆u=u−˜
u
A(t) = µ∂f
∂x∗
B(t) = µ∂f
∂u∗
The linearized state equation is d
dt∆x=A(t)∆x+B(t)∆u
So long as ∆xand ∆uremain “small enough,” these equations will provide a good approximation to
equations (1). Note that the state itself need not remain small. Only the difference between its actual and
“nominal” values must remain small.
In general, the state matrix Aand the input matrix Bwill depend on time explicitly. Even though the
original nonlinear system is time-invariant, the dependence of the solution (˜
x(t),˜
u(t)) on time will carry
1
pf3
pf4
pf5

Partial preview of the text

Download Linearization of Nonlinear ODEs: Pendulum and Aircraft Applications - Prof. Craig A. Wools and more Study notes Aerospace Engineering in PDF only on Docsity!

Lecture 13: Linearization

Consider a set of nonlinear, time-invariant ODE’s. Recall that any nth^ order ODE can be re-written as n first order ODE’s. We may therefore assume, without loss of generality, that the system takes the form

x˙ = f (x, u), (1)

where f is a vector-valued function of the state x and input u. While we may well know the form of the input u, we do not necessarily know the resulting form of x(t), for a given initial state x(0). A solution or trajectory of (1) is a pair (˜x(t), u˜(t)) satisfying

x˜˙ = f (˜x, u˜).

Some solutions are special in the sense that they do not depend on time. An equilibrium is a solution (˜x(t), u˜(t)) = (xe, ue) for which xe and ue are constant, that is

x˙e = 0 = f (xe, ue).

To determine equilibria for a given system, one sets f (˜x, u˜) equal to zero and solves the resulting nonlinear algebraic equations for x = xe and u = ue.

Linearization: View #1. Given a solution, and assuming that the components of f are suitably smooth, one may expand the right-hand side of equation (1) in a multivariable Taylor series. Doing so, one obtains

x˙ = f (˜x, u˜) +

∂f ∂x

(x − x˜) +

∂f ∂u

(u − u˜) + h.o.t., (2)

where the asterisk denotes that the quantity is evaluated along the solution (˜x(t), u˜(t)). So far, we have said nothing new. Equation (2) is an equivalent representation of equation (1). Rearranging (2), we obtain

x˙ − x˜˙ =

∂f ∂x

(x − x˜) +

∂f ∂u

(u − u˜) + h.o.t.,

where we have used the fact that (˜x(t), u˜(t)) is a solution in order to replace f (˜x, u˜) with x˜˙. The “linearization” occurs when we assume that ‖(x − x˜)‖ and ‖(u − u˜)‖ remain small, so that we may neglect the higher order terms in the Taylor series expansion. We make the following definitions:

∆x = x − ˜x ∆u = u − u˜

A(t) =

∂f ∂x

B(t) =

∂f ∂u

The linearized state equation is d dt

∆x = A(t)∆x + B(t)∆u

So long as ∆x and ∆u remain “small enough,” these equations will provide a good approximation to equations (1). Note that the state itself need not remain small. Only the difference between its actual and “nominal” values must remain small.

In general, the state matrix A and the input matrix B will depend on time explicitly. Even though the original nonlinear system is time-invariant, the dependence of the solution (˜x(t), u˜(t)) on time will carry

μ

l

m

T

mg

bμ

Figure 1: A planar pendulum with linear damping and an input torque.

through to the components of A and B. Linearizing about an equilibrium (xe, ue), however, gives n first order, linear time-invariant ODE’s d dt

∆x = A∆x + B∆u.

Example. Consider the planar pendulum shown in Figure 1. Summing moments about the pivot gives the following equation of motion ml^2 ¨θ = −mgl sin θ − b θ˙ + T.

Letting

x =

θ θ^ ˙

and u = T,

we may rewrite this second order, nonlinear, time-invariant ODE as two first order equations ( x˙ 1 x ˙ 2

x 2 − g l sin x 1 − (^) mlb 2 x 2 + (^) ml^12 u

More compactly, we say x˙ = f (x, u)

where

f (x, u) =

x 2 − g l sin x 1 − (^) mlb 2 x 2 + (^) ml^12 u

One equilibrium of the system (3) is (xe, ue) = ( 0 , 0). (4)

The equilibrium (4) corresponds to the case where the pendulum hangs vertically downward at rest. (There is one other equilibrium for which ue = 0, corresponding to the pendulum standing vertically “on end.”) Linearizing equations (3) about the equilibrium (4), as described above, we first obtain

∂f ∂x

( (^) ∂f 1 ∂x 1

∂f 1 ∂f^ ∂x^2 2 ∂x 1

∂f 2 ∂x 2

− g l cos x 1 − (^) mlb 2

and

∂f ∂u

( (^) ∂f 1 ∂f^ ∂u 2 ∂u

1 ml^2

Evaluating these matrices at the equilibrium (4) gives

A =

− g l − (^) mlb 2

and B =

1 ml^2

−200 0 1 2 3 4 5 6 7 8 9 10

−

−

−

0

50

100

150

200

Time (s)

θ^ (deg)

Angle versus Time for a Simple Pendulum True System ResponseLinear Approximation

Figure 3: Initial Condition Response: θ 0 = 179. 9 ◦.

−200 0 1 2 3 4 5 6 7 8 9 10

−

−

−

0

50

100

150

200

Time (s)

θ^ (deg)

Angle versus Time for a Simple Pendulum

True System ResponseLinear Approximation

Figure 4: Initial Condition Response: θ 0 = 180◦.

Linearization: View #2. Another way to think about linearization is to suppose that a system is slightly disturbed from a nominal state of motion. In this view, the actual state x is the sum of the nominal state x˜ and the state disturbance ∆x. Similarly, the actual input u is the sum of the nominal input ˜u and the input disturbance ∆u.

For the pendulum equations ( x˙ 1 x ˙ 2

x 2 − g l sin x 1 − (^) mlb 2 x 2 + (^) ml^12 u

let x = ˜x + ∆x and u = ˜u + ∆u, where ˜x is a nominal value of the state (e.g., an equilibrium value) and u˜ is a nominal value of the input. Substituting above gives ( (^) ˙ x˜ 1 + (^) dtd ∆x 1 x˜^ ˙ 2 + d dt ∆x^2

x˜ 2 + ∆x 2 − g l sin(˜x 1 + ∆x 1 ) − (^) mlb 2 (˜x 2 + ∆x 2 ) + (^) ml^12 (˜u + ∆u)

˜x 2 + ∆x 2 − g l (cos ˜x 1 sin ∆x 1 + sin ˜x 1 cos ∆x 1 ) − (^) mlb 2 (˜x 2 + ∆x 2 ) + (^) ml^12 (˜u + ∆u)

The equations above are equivalent to the original equations. The “linearization” takes place when we

assume that the disturbance is small. In that case, cos ∆x 1 ≈ 1 and sin ∆x 1 ≈ ∆x 1 and the equations above can be re-written as ( (^) ˙ x˜ 1 x˜^ ˙ 2

d dt

∆x 1 ∆x 2

x˜ 2 − g l sin ˜x 1 − (^) mlb 2 x˜ 2 + (^) ml^12 u˜

∆x 2 − g l cos ˜x 1 ∆x 1 − (^) mlb 2 ∆x 2 + (^) ml^12 ∆u

Now, the nominal state ˜x and input ˜u about which we have linearized are a assumed to be a solution of the dynamic equations: (^) ( ˜x˙ 1 ˜x^ ˙ 2

x˜ 2 − g l sin ˜x 1 − (^) mlb 2 x˜ 2 + (^) ml^12 u˜

Subtracting this equation from the one above leaves the “small disturbance” or “perturbation” equation

d dt

∆x 1 ∆x 2

∆x 2 − g l cos ˜x 1 ∆x 1 − (^) mlb 2 ∆x 2 + (^) ml^12 ∆u

If we consider the nominal state (˜x, ˜u) = ( 0 , 0), as before, then these equations are identical to the linearized equations obtained previously.

Nominal flight condition for a rigid airplane. Consider a rigid airplane with a reference frame fixed in the body at the center of gravity such that the xz-plane is a plane of symmetry. Written in this frame, the kinematic equations are

 

x ˙ y ˙ z ˙

 (^) = RIB(φ, θ, ψ)v

φ^ ˙ θ^ ˙ ψ^ ˙

 (^) = LIB(φ, θ)ω

and the dynamic equations are

m v˙ + ω × mv =

X(v, ω, u) Y (v, ω, u) Z(v, ω, u)

 (^) + mg

− sin θ cos θ sin φ cos θ cos φ

I ω˙ + ω × Iω =

L(v, ω, u) M (v, ω, u) N (v, ω, u)

xB

yB

zB

V 0

Figure 5: Stability Axes.

One of the fundamental questions to be answered, before one can linearize the aircraft equations of motion and analyze dynamic stability, is: “How should the body-fixed reference frame be oriented?” To start with,