Sample Nonlinear Control 1st 1E Hassan Khalil
Sample Nonlinear Control 1st 1E Hassan Khalil
edition edition
edition
Global
Nonlinear Control
For these Global Editions, the editorial team at Pearson has
collaborated with educators across the world to address
a wide range of subjects and requirements, equipping
students with the best possible learning tools. This Global
Edition preserves the cutting-edge approach and pedagogy
of the original, but also features alterations, customization
and adaptation from the North American version.
Nonlinear Control
Hassan K. Khalil
Khalil
This is a special edition of an established
title widely used by colleges and universities
throughout the world. Pearson published this
exclusive edition for the benefit of students
outside the United States and Canada. If you
purchased this book within the United States
or Canada you should be aware that it has
been imported without the approval of the
Publisher or Author.
Hassan K. Khalil
Department of Electrical and Computer Engineering
Michigan State University
Vice President and Editorial Assistant Project Editor,
Director, ECS: Marcia J. Horton Global Editions: Amrita Kar
Executive Editor: Andrew Gilfillan Art Director: Jayne Conte
Marketing Manager: Tim Galligan Cover Designer: Bruce Kenselaar
Managing Editor: Scott Disanno Cover Image: c HunThomas/Shutterstock
Project Manager: Irwin Zucker Full-Service Project Management/
Head of Learning Asset Acquisition, Composition: SPi Global
Global Editions: Laura Dent
Assistant Acquisitions Editor,
Global Editions: Aditee Agarwal
Credits and acknowledgments borrowed from other sources and reproduced, with permission, in
this textbook appear on appropriate page within text.
c Pearson Education Limited 2015
The rights of Hassan K. Khalil to be identified as the author of this work have been asserted by
him in accordance with the Copyright, Designs and Patents Act 1988.
Authorized adaptation from the United States edition, entitled Nonlinear Control, 1st Edition,
ISBN 978-0-133-49926-1, by Hassan K. Khalil, published by Pearson Education c 2015.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system,
or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or
otherwise, without either the prior written permission of the publisher or a license permitting
restricted copying in the United Kingdom issued by the Copyright Licensing Agency Ltd, Saffron
House, 6–10 Kirby Street, London EC1N 8TS.
All trademarks used herein are the property of their respective owners. The use of any
trademark in this text does not vest in the author or publisher any trademark ownership rights
in such trademarks, nor does the use of such trademarks imply any affiliation with or
endorsement of this book by such owners.
A catalogue record for this book is available from the British Library
10 9 8 7 6 5 4 3 2 1
and my grandchildren
Maryam, Tariq, Aya, and Tessneem
Contents
Preface 11
1 Introduction 13
1.1 Nonlinear Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.2 Nonlinear Phenomena . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.3 Overview of the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.4 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2 Two-Dimensional Systems 27
2.1 Qualitative Behavior of Linear Systems . . . . . . . . . . . . . . . . . . 29
2.2 Qualitative Behavior Near Equilibrium Points . . . . . . . . . . . . . . 33
2.3 Multiple Equilibria . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
2.4 Limit Cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2.5 Numerical Construction of Phase Portraits . . . . . . . . . . . . . . . . 43
2.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
7
8 CONTENTS
5 Passivity 115
5.1 Memoryless Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
5.2 State Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
5.3 Positive Real Transfer Functions . . . . . . . . . . . . . . . . . . . . . 124
5.4 Connection with Stability . . . . . . . . . . . . . . . . . . . . . . . . . 127
5.5 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
A Examples 341
A.1 Pendulum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
A.2 Mass–Spring System . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
A.3 Tunnel-Diode Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
A.4 Negative-Resistance Oscillator . . . . . . . . . . . . . . . . . . . . . . 347
A.5 DC-to-DC Power Converter . . . . . . . . . . . . . . . . . . . . . . . . 349
A.6 Biochemical Reactor . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
A.7 DC Motor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352
A.8 Magnetic Levitation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
A.9 Electrostatic Microactuator . . . . . . . . . . . . . . . . . . . . . . . . 354
A.10 Robot Manipulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356
A.11 Inverted Pendulum on a Cart . . . . . . . . . . . . . . . . . . . . . . . 357
A.12 Translational Oscillator with Rotating Actuator . . . . . . . . . . . . . 359
D Proofs 375
Bibliography 381
Symbols 392
Index 394
Preface
This book emerges from my earlier book Nonlinear Systems, but it is not a fourth
edition of it nor a replacement for it. Its mission and organization are different from
Nonlinear Systems. While Nonlinear Systems was intended as a reference and a text
on nonlinear system analysis and its application to control, this book is intended as
a text for a first course on nonlinear control that can be taught in one semester (forty
lectures). The writing style is intended to make it accessible to a wider audience
without compromising the rigor, which is a characteristic of Nonlinear Systems.
Proofs are included only when they are needed to understand the material; otherwise
references are given. In a few cases when it is not convenient to find the proofs in
the literature, they are included in the Appendix. With the size of this book about
half that of Nonlinear Systems, naturally many topics had to be removed. This is
not a reflection on the importance of these topics; rather it is my judgement of what
should be presented in a first course. Instructors who used Nonlinear Systems may
disagree with my decision to exclude certain topics; to them I can only say that those
topics are still available in Nonlinear Systems and can be integrated into the course.
An electronic solution manual is available to instructors from the publisher, not
the author. The instructors will also have access to Simulink models of selected
exercises. The Instructor Resource Center (IRC) for this book (www.pearsonglobal
editions.com/khalil) contains the solution manual, the Simulink models of selected
examples and the pdf slides of the course. To gain access to the IRC, please contact
your local Pearson sales representative.
The book was typeset using LATEX. Computations were done using MATLAB
and Simulink. The figures were generated using MATLAB or the graphics tool
of LATEX.
I am indebted to many colleagues, students, and readers of Nonlinear Systems,
and reviewers of this manuscript whose feedback was a great help in writing this
book. I am grateful to Michigan State University for an environment that allowed
me to write the book, and to the National Science Foundation for supporting my
research on nonlinear feedback control.
Hassan Khalil
Pearson would like to thank and acknowledge Lalu Seban (National Institute
of Technology, Silchar) and Zhiyun Lin (Zhejiang University) for their contribu-
tions to the Global Edition, and Sunanda Khosla (writer), Ratna Ghosh (Jadavpur
University), and Nikhil Marriwala (Kurukshetra University) for reviewing the Global
Edition.
11
Chapter 1
Introduction
The chapter starts in Section 1.1 with a definition of the class of nonlinear state
models that will be used throughout the book. It briefly discusses three notions
associated with these models: existence and uniqueness of solutions, change of
variables, and equilibrium points. Section 1.2 explains why nonlinear tools are
needed in the analysis and design of nonlinear systems. Section 1.3 is an overview
of the next twelve chapters.
We shall deal with dynamical systems, modeled by a finite number of coupled first-
order ordinary differential equations:
ẋ1 = f1 (t, x1 , . . . , xn , u1 , . . . , um )
ẋ2 = f2 (t, x1 , . . . , xn , u1 , . . . , um )
.. ..
. .
ẋn = fn (t, x1 , . . . , xn , u1 , . . . , um )
where ẋi denotes the derivative of xi with respect to the time variable t and u1 ,
u2 , . . ., um are input variables. We call x1 , x2 , . . ., xn the state variables. They
represent the memory that the dynamical system has of its past. We usually use
13
14 CHAPTER 1. INTRODUCTION
ẋ = A(t)x + B(t)u
y = C(t)x + D(t)u
ẋ = f (t, x) (1.3)
This case arises if there is no external input that affects the behavior of the system,
or if the input has been specified as a function of time, u = γ(t), a feedback function
of the state, u = γ(x), or both, u = γ(t, x). Substituting u = γ in (1.1) eliminates
u and yields an unforced state equation.
In dealing with equation (1.3), we shall typically require the function f (t, x) to
be piecewise continuous in t and locally Lipschitz in x over the domain of interest.
For a fixed x, the function f (t, x) is piecewise continuous in t on an interval J ⊂ R
if for every bounded subinterval J0 ⊂ J, f is continuous in t for all t ∈ J0 , except,
possibly, at a finite number of points where f may have finite-jump discontinuities.
1.1. NONLINEAR MODELS 15
This allows for cases where f (t, x) depends on an input u(t) that may experience
step changes with time. A function f (t, x), defined for t ∈ J ⊂ R, is locally
Lipschitz in x at a point x0 if there is a neighborhood N (x0 , r) of x0 , defined by
N (x0 , r) = {x − x0 < r}, and a positive constant L such that f (t, x) satisfies the
Lipschitz condition
f (t, x) − f (t, y) ≤ Lx − y (1.4)
|f (y) − f (x)|
≤L
|y − x|
which implies that on a plot of f (x) versus x, a straight line joining any two points
of f (x) cannot have a slope whose absolute value is greater than L. Therefore,
any function f (x) that has infinite slope at some point is not locally Lipschitz at
that point. For example, any discontinuous function is not locally Lipschitz at the
points of discontinuity. As another example, the function f (x) = x1/3 is not locally
Lipschitz at x = 0 since f (x) = (1/3)x−2/3 → ∞ as x → 0. On the other hand, if
f (x) is continuous at a point x0 then f (x) is locally Lipschitz at the same point
because continuity of f (x) ensures that |f (x)| is bounded by a constant k in a
neighborhood of x0 ; which implies that f (x) satisfies the Lipschitz condition (1.4)
over the same neighborhood with L = k.
More generally, if for t in an interval J ⊂ R and x in a domain D ⊂ Rn ,
the function f (t, x) and its partial derivatives ∂fi /∂xj are continuous, then f (t, x)
is locally Lipschitz in x on D.1 If f (t, x) and its partial derivatives ∂fi /∂xj are
continuous for all x ∈ Rn , then f (t, x) is globally Lipschitz in x if and only if
the partial derivatives ∂fi /∂xj are globally bounded, uniformly in t, that is, their
absolute values are bounded for all t ∈ J and x ∈ Rn by constants independent of
(t, x).2
1 See [74, Lemma 3.2] for the proof of this statement.
2 See [74, Lemma 3.3] for the proof of this statement.
16 CHAPTER 1. INTRODUCTION
−x1 + x1 x2
f (x) =
x2 − x1 x2
is continuously differentiable on R2 . Hence, it is locally Lipschitz on R2 . It is not
globally Lipschitz since ∂f1 /∂x2 and ∂f2 /∂x1 are not uniformly bounded on R2 . On
any compact subset of R2 , f is Lipschitz. Suppose we are interested in calculating
a Lipschitz constant over the set W = {|x1 | ≤ a, |x2 | ≤ a}. Then,
|f1 (x) − f1 (y)| ≤ |x1 − y1 | + |x1 x2 − y1 y2 |
|f2 (x) − f2 (y)| ≤ |x2 − y2 | + |x1 x2 − y1 y2 |
Using the inequalities
|x1 x2 − y1 y2 | = |x1 (x2 − y2 ) + y2 (x1 − y1 )| ≤ a|x2 − y2 | + a|x1 − y1 |
|x1 − y1 | |x2 − y2 | ≤ 12 |x1 − y1 |2 + 12 |x2 − y2 |2
we obtain
f (x) − f (y)2 = |f1 (x) − f1 (y)|2 + |f2 (x) − f2 (y)|2 ≤ (1 + 2a)2 x − y2
Therefore, f is Lipschitz on W with the Lipschitz constant L = 1 + 2a.
Example 1.2 The function
x2
f (x) =
−sat(x1 + x2 )
is not continuously differentiable on R2 . Using the fact that the saturation function
sat(·) satisfies |sat(η) − sat(ξ)| ≤ |η − ξ|, we obtain
f (x) − f (y)2 ≤ (x2 − y2 )2 + (x1 + x2 − y1 − y2 )2
≤ (x1 − y1 )2 + 2(x1 − y1 )(x2 − y2 ) + 2(x2 − y2 )2
Using the inequality
T
a 1 1 a 1 1
a
2
2
a + 2ab + 2b = 2
≤ λmax
×
b 1 2 b 1 2 b
we conclude that
√
f (x) − f (y) ≤ 2.618 x − y, ∀ x, y ∈ R2
Here we have used a property of positive semidefinite symmetric matrices; that is,
xT P x ≤ λmax (P ) xT x, for all x ∈ Rn , where λmax (·) is the maximum eigenvalue of
P . A more conservative (larger) Lipschitz constant will be obtained if we use the
more conservative inequality
a2 + 2ab + 2b2 ≤ 2a2 + 3b2 ≤ 3(a2 + b2 )
√
resulting in a Lipschitz constant L = 3.
1.1. NONLINEAR MODELS 17
The local Lipschitz property of f (t, x) ensures local existence and uniqueness of
the solution of the state equation (1.3), as stated in the following lemma.3
Lemma 1.1 Let f (t, x) be piecewise continuous in t and locally Lipschitz in x at
x0 , for all t ∈ [t0 , t1 ]. Then, there is δ > 0 such that the state equation ẋ = f (t, x),
with x(t0 ) = x0 , has a unique solution over [t0 , t0 + δ]. 3
Without the local Lipschitz condition, we cannot ensure uniqueness of the solu-
tion. For example, the state equation ẋ = x1/3 , whose right-hand side function is
continuous but not locally Lipschitz at x = 0, has x(t) = (2t/3)3/2 and x(t) ≡ 0 as
two different solutions when the initial state is x(0) = 0.
Lemma 1.1 is a local result because it guarantees existence and uniqueness of
the solution over an interval [t0 , t0 + δ], but this interval might not include a given
interval [t0 , t1 ]. Indeed the solution may cease to exist after some time.
Example 1.3 In the one-dimensional system ẋ = −x2 , the function f (x) = −x2
is locally Lipschitz for all x. Yet, when we solve the equation with x(0) = −1, the
solution x(t) = 1/(t − 1) tends to −∞ as t → 1.
The phrase “finite escape time” is used to describe the phenomenon that a solution
escapes to infinity at finite time. In Example 1.3, we say that the solution has a
finite escape time at t = 1.
In the forthcoming Lemmas 1.2 and 1.3,4 we shall give conditions for global
existence and uniqueness of solutions. Lemma 1.2 requires the function f to be
globally Lipschitz, while Lemma 1.3 requires f to be only locally Lipschitz, but
with an additional requirement that the solution remains bounded. Note that the
function f (x) = −x2 of Example 1.3 is locally Lipschitz for all x but not globally
Lipschitz because f (x) = −2x is not globally bounded.
Lemma 1.2 Let f (t, x) be piecewise continuous in t and globally Lipschitz in x for
all t ∈ [t0 , t1 ]. Then, the state equation ẋ = f (t, x), with x(t0 ) = x0 , has a unique
solution over [t0 , t1 ]. 3
The global Lipschitz condition is satisfied for linear systems of the form
ẋ = A(t)x + g(t)
when A(t) ≤ L for all t ≥ t0 , but it is a restrictive condition for general nonlinear
systems. The following lemma avoids this condition.
Lemma 1.3 Let f (t, x) be piecewise continuous in t and locally Lipschitz in x for
all t ≥ t0 and all x in a domain D ⊂ Rn . Let W be a compact (closed and bounded)
subset of D, x0 ∈ W , and suppose it is known that every solution of
ẋ = f (t, x), x(t0 ) = x0
lies entirely in W . Then, there is a unique solution that is defined for all t ≥ t0 . 3
3 See [74, Theorem 3.1] for the proof of Lemma 1.1. See [56, 62, 95] for a deeper look into exis-
tence and uniqueness of solutions, and the qualitative behavior of nonlinear differential equations.
4 See [74, Theorem 3.2] and [74, Theorem 3.3] for the proofs of Lemmas 1.2 and 1.3, respectively.
18 CHAPTER 1. INTRODUCTION
The trick in applying Lemma 1.3 is in checking the assumption that every so-
lution lies in a compact set without solving the state equation. We will see in
Chapter 3 that Lyapunov’s method for stability analysis provides a tool to ensure
this property. For now, let us illustrate the application of the lemma by an example.
Example 1.4 Consider the one-dimensional system
ẋ = −x3 = f (x)
The function f (x) is locally Lipschitz on R, but not globally Lipschitz because
f (x) = −3x2 is not globally bounded. If, at any instant of time, x(t) is positive,
the derivative ẋ(t) will be negative and x(t) will be decreasing. Similarly, if x(t) is
negative, the derivative ẋ(t) will be positive and x(t) will be increasing. Therefore,
starting from any initial condition x(0) = a, the solution cannot leave the compact
set {|x| ≤ |a|}. Thus, we conclude by Lemma 1.3 that the equation has a unique
solution for all t ≥ 0.
A special case of (1.3) arises when the function f does not depend explicitly on
t; that is,
ẋ = f (x)
in which case the state equation is said to be autonomous or time invariant. The
behavior of an autonomous system is invariant to shifts in the time origin, since
changing the time variable from t to τ = t−a does not change the right-hand side of
the state equation. If the system is not autonomous, then it is called nonautonomous
or time varying.
More generally, the state model (1.1)–(1.2) is said to be time invariant if the
functions f and h do not depend explicitly on t; that is,
Example 1.5 In Section A.4 two different models of the negative resistance oscil-
lator are given, which are related by the change of variables
−h(x1 ) − x2 /ε
z = T (x) =
x1
⎦ = −h (x1 ) −1/ε
∂T ∂x1 ∂x2
=⎣
∂x ∂T2 ∂T2 1 0
∂x1 ∂x2
Its determinant, 1/ε, is positive for all x. Moreover, T (x) is proper because
f (x) = 0
An equilibrium point could be isolated; that is, there are no other equilibrium points
in its vicinity, or there could be a continuum of equilibrium points. The linear
system ẋ = Ax has an isolated equilibrium point at x = 0 when A is nonsingular
or a continuum of equilibrium points in the null space of A when A is singular. It
5 The proof of the local result follows from the inverse function theorem [3, Theorem 7-5]. The
cannot have multiple isolated equilibrium points, for if xa and xb are two equilibrium
points, then by linearity any point on the line αxa + (1 − α)xb connecting xa and xb
will be an equilibrium point. A nonlinear state equation can have multiple isolated
equilibrium points. For example, the pendulum equation
• Finite escape time. The state of an unstable linear system goes to infinity
as time approaches infinity; a nonlinear system’s state, however, can go to
infinity in finite time.
• Multiple isolated equilibria. A linear system can have only one isolated equi-
librium point; thus, it can have only one steady-state operating point that
attracts the state of the system irrespective of the initial state. A nonlinear
system can have more than one isolated equilibrium point. The state may
converge to one of several steady-state operating points, depending on the
initial state of the system.
nonlinear systems that can go into oscillation of fixed amplitude and frequency,
irrespective of the initial state. This type of oscillation is known as limit cycles.
• Multiple modes of behavior. It is not unusual for two or more modes of be-
havior to be exhibited by the same nonlinear system. An unforced system
may have more than one limit cycle. A forced system with periodic excita-
tion may exhibit harmonic, subharmonic, or more complicated steady-state
behavior, depending upon the amplitude and frequency of the input. It may
even exhibit a discontinuous jump in the mode of behavior as the amplitude
or frequency of the excitation is smoothly changed.
In this book, we encounter only the first three of these phenomena.6 The phe-
nomenon of finite escape time has been already demonstrated in Example 1.3, while
multiple equilibria and limit cycles will be introduced in the next chapter.
1.4 Exercises
1.1 A general mathematical model that describes the system with n state variables,
m input variables and p output variables is given by
ẋ1 = f1 (x1 , . . . xn , u1 , . . . um ), ẋn = fn (x1 , . . . xn , u1 , . . . um )
y1 = g1 (x1 , . . . xn , u1 , . . . um ) yp = gp (x1 , . . . xn , u1 , . . . um )
where u is the input and y is the output. Linearise the model at an equilibrium
T T
point x̄ = [x̄1 , x̄2 , . . . x̄n ] and ū = [ū1 , ū2 , . . . ūm ] . Find the state space model.