Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Dynamical Systems

  "In short, a system is any process or entity that has one or more well-defined inputs and one or more well-defined outputs. Examples of systems include a simple physical object obeying Newtonian mechanics, and the US economy! Systems can be physical, or we may talk about a mathematical description of a system. The point of modeling is to capture in a mathematical representation the behavior of a physical system. As we will see, such representation lends itself to analysis and design, and certain restrictions such as linearity and time-invariance open a huge set of available tools." [hover_system_2022]

  Dynamical systems theory concerns the evolution of systems in time, where the state of a system can be described by a finite number of parameters. This framework applies to both continuous-time systems modeled by ordinary differential equations (ODEs) and discrete-time systems modeled by state machines or difference equations.

The focus of dynamical systems is to answer these central questions: What are the equilibrium or time-periodic solutions of the dynamics? Are these solutions stable controllable and/or observable? What is the long-time asymptotic behavior of the solutions?

1. Modeling Fundamentals

System State:

  • Minimal set of independent variables fully characterizing the system at time .
  • Given and the system dynamics, the future and past behavior can be predicted.
  • The choice of state variables is not unique: multiple valid representations exist.
  • Variables may be physical quantities measured directly (position, velocity, temperature) or abstract constructs that have no physical interpretation.

Ordinary Differential Equations

Linear ODEs

where is the system matrix and is the state vector.

Superposition: Let be a linear function, then

Representing Higher-Order ODEs as First-Order Systems

Any higher-order ODE can be reformulated as a system of first-order ODEs by introducing additional state variables. For the second-order equation: introduce state variables and , yielding:

Note that

Nonlinear ODEs

where is a nonlinear function.

Equilibrium Points: Static Operating Modes

Linear systems have only the origin as equilibrium when . Nonlinear systems may have multiple equilibrium points.

Classification of Equilibrium Points

The stability of an equilibrium point can be determined by the eigenvalues of the Jacobian matrix at that point. The classification is:

TypeConditionBehavior
Stable NodeAll Trajectories converge to equilibrium
Unstable NodeAll Trajectories diverge from equilibrium
Saddle PointMixed signs Stable in one direction, unstable in another
Focus/SpiralComplex with Spiral convergence with oscillation
CenterPurely imaginary Closed orbits (conservative systems)

TODO

Add time response vs pole zero map.

Phase Portraits: Visual Analysis of System Trajectories

A phase portrait is a geometric representation of all possible trajectories in the state space (phase space). For two-dimensional systems, the phase plane shows the complete qualitative behavior without solving the ODEs explicitly.

Vector Field and Integral Curves

At each point in the phase space, the vector indicates the instantaneous velocity of the trajectory. By plotting these velocity vectors at a grid of points, we obtain the vector field. The integral curves (solution trajectories) are curves that follow the vector field everywhere tangentially.

TODO2

add plot showing example phase portrait of a system.

2. Representations

State-Space Form (Time Domain)

The state-space representation is the standard form for modern control systems. It consists of two equations:

State Equation (Dynamics):

Output Equation (Measurement):

  • : state vector
  • : input vector ( inputs)
  • : output vector ( outputs)
  • : system matrix (determines open-loop dynamics and stability)
  • : input matrix (how controls influence each state)
  • : output matrix (which states are measured)
  • : feed-through matrix (direct coupling from input to output)

Advantages Over Transfer Functions

  1. Initial Conditions: State-space naturally incorporates non-zero initial conditions .
  2. MIMO Systems: Handles multiple inputs and outputs directly; transfer functions require transfer function matrices.
  3. State Feedback Control: Enables direct state feedback design: .

Transfer Functions (Frequency Domain)

The transfer function relates a system's output to the input through the Laplace transform, assuming zero initial conditions:

where is the complex frequency variable.

Rational Function Form

Transfer functions are typically expressed as ratios of polynomials:

RelationshipClassificationLimit Physical Realizability
Strictly ProperDecay to 0Realizable. Most physical systems fall here (inertial damping prevents instantaneous change).
properConstant Realizable. Indicates a direct feed-through from input to output (e.g., a resistor network).
ImproperGrowth to Not Realizable. Requires differentiation, which is non-causal in theory and amplifies noise in practice.

Note on "Proper": In general control theory, a system is considered Proper if (covering both the first two rows). This is the condition required for a system to have a valid State-Space representation.

Poles and Zeros: Frequency Domain Structure

Example

Time Domain Response Mappings ()

1. Real Pole ():

2. Complex Conjugate Poles ():

3. Zeros and Derivative Action: Let and .

4. RHP Zero (Non-Minimum Phase) (): Step response

Stability Criteria

Pole-Zero Plots

The pole-zero diagram plots poles (marked as ×) and zeros (marked as ○) on the complex -plane. The real axis represents damping (leftward = more damping), and the imaginary axis represents oscillation frequency. This visualization immediately reveals stability (all poles must be in the left-half plane for BIBO stability) and transient characteristics.

Discrete-Time Systems and Z-Transform

For digital implementations, continuous-time systems must be converted to discrete-time systems. This requires sampling and the Z-transform.

Sampling and Difference Equations

A continuous-time signal is sampled at rate :

where is the sampling period. Differential equations become difference equations:

Z-Transform Definition

The Z-transform is the discrete-time counterpart of the Laplace transform:

It converts difference equations into algebraic equations in the -domain, enabling algebraic analysis of discrete systems.

Discrete Transfer Function

For a discrete-time LTI system, the transfer function is:

The impulse response at samples is obtained by inverse Z-transforming .

Continuous-to-Discrete Conversion Methods

Several methods map continuous transfer functions to discrete transfer functions :

MethodMappingCharacteristics
Forward EulerSimple, but unstable for fast dynamics (large eigenvalues)
Backward EulerAlways stable, but lower accuracy
Tustin (Bilinear)Best frequency matching; preserves stability
Zero-Pole Match, Exact pole-zero mapping; good for control design

The Tustin (bilinear) transform is the industry standard because it preserves the stability property: continuous-stable poles map to discrete-stable poles inside the unit circle.


3. System Analysis

Stability Criteria: Predicting Long-Term Behavior

Stability analysis determines whether the system remains bounded and whether it converges to equilibrium over time. Different criteria apply to continuous and discrete systems.

Continuous-Time Stability

For a linear continuous-time system , stability is determined by the eigenvalues of the system matrix :

  • Asymptotically Stable (AS): All eigenvalues have negative real parts:

    • Equivalently: all poles lie in the Left-Half Plane (LHP) of the -plane
    • Behavior: every trajectory converges to the origin as
    • General solution: as
  • Marginally Stable (MS): Some eigenvalues on the imaginary axis (), rest in LHP

    • Example: undamped oscillator has poles at
    • Behavior: bounded oscillation without decay; limit cycles
  • Unstable: At least one eigenvalue with positive real part:

    • Behavior: exponential divergence from equilibrium
    • Solutions grow unboundedly

Discrete-Time Stability

For discrete-time systems, stability is determined by pole locations in the -plane:

  • Stable: All poles satisfy (inside unit circle)

    • Behavior: state decays exponentially to zero
    • Time-domain decay:
    • System response bounded for bounded inputs
  • Marginally Stable: Poles on unit circle

    • Behavior: bounded oscillation (no decay)
    • Exception: multiple poles at the same location on unit circle cause instability
  • Unstable: Poles outside unit circle

    • Behavior: exponential growth of state

Lyapunov Stability Theory for Nonlinear Systems

For nonlinear systems , Lyapunov theory provides a powerful framework that does not require solving the ODEs explicitly.

A scalar function is a Lyapunov function for an equilibrium \(\mathbf{x}^*\) if:

  1. \(V(\mathbf{x}^*) = 0\) (the equilibrium has zero "energy")
  2. for all \(\mathbf{x} \neq \mathbf{x}^*\) (positive definite)
  3. along trajectories (energy dissipation)

If a Lyapunov function exists, then:

  • The equilibrium is globally asymptotically stable (GAS)
  • All trajectories converge to \(\mathbf{x}^*\) regardless of initial condition

[stanford-lyapunov],[washington-lyapunov]

The Lyapunov function represents generalized "energy" that is not necessarily mechanical energy. If energy always decreases (except at equilibrium), the system must dissipate and settle at the equilibrium. This is a fundamental principle: systems naturally evolve toward states of lowest energy.

Frequency Response: Magnitude and Phase vs. Frequency

Frequency response characterizes how a system responds to sinusoidal inputs of varying frequencies. This is essential for understanding bandwidth, resonance, and control design.

When a linear system is driven by a sinusoidal input , the steady-state output is also sinusoidal:

The frequency response describes:

  • Magnitude (Gain): (amplitude scaling)
  • Phase Shift: (time delay expressed as phase)

A Bode plot consists of two semi-logarithmic graphs:

  1. Magnitude Plot:

    • Vertical axis: Gain in decibels:
    • Horizontal axis: Frequency in log scale: [rad/s]
    • Key frequency: -3 dB point marks the bandwidth
  2. Phase Plot:

    • Vertical axis: Phase angle in degrees:
    • Horizontal axis: Frequency in log scale

The logarithmic scale makes it easy to see the system response over multiple decades of frequency, and the dB scale makes multiplying gains (cascading systems) equivalent to adding them on the plot.

Asymptotic Approximation

  • Each zero at contributes:

    • dB/decade slope above the corner frequency
    • phase shift
  • Each pole at contributes:

    • dB/decade slope above the corner frequency
    • phase shift
  • A pole at the origin (integrator) contributes:

    • Initial slope of dB/decade
    • Phase shift of

This asymptotic method enables rapid sketching and visualization of frequency response without detailed computation.

Gain Margin and Phase Margin: Stability Robustness

Gain and phase margins quantify how much uncertainty or perturbation a system can tolerate before becoming unstable. They are critical for robust controller design.

Gain Margin (GM)

The maximum multiplicative increase in system gain before the closed-loop system becomes unstable.

Measured at the phase crossover frequency (where phase = ):

  • GM > 0 dB: System is stable
  • GM = 0 dB: System is marginally stable (critically damped)
  • GM < 0 dB: System is unstable

A typical design specification is dB, which allows the system to tolerate a gain increase by a factor of 2 before instability.

Phase Margin (PM)

Definition: The maximum phase lag increase before the closed-loop system becomes unstable.

Measured at the gain crossover frequency (where dB, i.e., unity gain):

or equivalently:

when using the convention that the phase of the open-loop transfer function is negative.

  • PM > 0°: System is stable
  • PM = 0°: System is marginally stable
  • PM < 0°: System is unstable

A typical design specification is , which means the system can tolerate up to 45° of additional phase lag from unmodeled dynamics.

Nyquist Criterion

In the Nyquist plot, the critical point is . Gain and phase margins are measures of distance from this critical point:

  • Gain margin: how far the magnitude can increase before the plot passes through
  • Phase margin: how much additional phase lag is tolerable before crossing

Controllability

Controllability determines whether the control input can drive the system to any desired state in finite time. This is essential for control system design.

LTI Continuous-Time Controllability

A system is controllable if, for any initial state and any desired final state f, there exists a finite time and control input , , such that .

Kalman Controllability Test

A system is controllable if and only if the controllability matrix has full rank:

where the controllability matrix is:

This is an matrix formed by stacking the matrices. The rank must equal the system order .

  • column: direct influence of input on the states
  • column: influence of input through one state transition (dynamics)
  • : influence through longer paths in the state space

If rank, some state direction is unreachable: the control input cannot affect that mode, making it impossible to steer the system to arbitrary states.

Observability

Observability determines whether we can uniquely estimate the internal > state from measurements of the system output. > This is essential for observer design and state feedback implementation.

LTI Continuous-Time Observability

A system with state dynamics and measurement is observable if, given the measurement over any finite time interval , the initial state can be uniquely determined.

Kalman Observability Test

A system is observable if and only if the observability matrix has full rank:

where the observability matrix is:

This is an matrix formed by stacking matrices. The rank must equal the system order .

  • row: direct measurement of states
  • row: information about states after one state transition
  • row: information over longer time horizons

If rank, some state component is unobservable: it affects the dynamics but never influences the measurements, making it impossible to determine that state from output alone.


4. Simulation

Initial Value Problems (IVP): Problem Formulation

An Initial Value Problem (IVP) is an ODE together with an initial condition. Numerical methods solve IVPs to simulate dynamical systems.

Standard Form

Given the function , the initial state , and the initial time , we seek the solution for \cite{frontiers-rk4}.

Existence and Uniqueness (Picard-Lindelöf Theorem)

A unique solution exists in a neighborhood of if:

  1. is continuous in both arguments
  2. is Lipschitz continuous in : for some constant

Most practical systems satisfy these conditions, ensuring that numerical solutions are meaningful.

Euler Integration: Forward Stepping

The Forward Euler method (also called RK1) is the simplest explicit numerical integrator. Given step size :

where .

From the Taylor series expansion:

The Euler method truncates after the first-order term, replacing the derivative with its value at the current time:

Error Analysis

  • Local Truncation Error (LTE): per step (from truncating the Taylor series)
  • Global Error: over a fixed time interval (accumulated over multiple steps)
  • Stability Requirement: For numerical stability of linear systems, the step size must satisfy , where is an eigenvalue

The stability constraint is severe for stiff systems (systems with wide range of timescales), requiring tiny step sizes \cite{frontiers-rk4}.

Disadvantages

  • Only first-order accurate (slow convergence with step size)
  • Unstable for stiff systems without prohibitively small time steps
  • Rarely used in practice for engineering applications

References

@book{hover_system_2022,
  title = {System {Design} for {Uncertainty}},
  url = {<https://eng.libretexts.org/Bookshelves/Mechanical_Engineering/System_Design_for_Uncertainty_(Hover_and_Triantafyllou)>},
  abstract = {This text covers the design, construction, and testing of field robotic systems, through team projects with each student responsible for a specific subsystem. Projects focus on electronics, instrumentation, and machine elements. Design for operation in uncertain conditions is a focus point, with ocean waves and marine structures as a central theme. Topics include basic statistics, linear systems, Fourier transforms, random processes, spectra, ethics in engineering practice, and extreme events with applications in design.},
  language = {en},
  urldate = {2025-12-24},
  publisher = {Engineering LibreTexts},
  author = {Hover, Franz S. and Triantafyllou, Michael S.},
  month = mar,
  year = {2022},
  note = {License: CC BY-NC-SA 4.0. Original source: MIT OpenCourseWare (Fall 2009)},
}


@article{aero_students_phase,
  title = {Phase {Portraits} and {Stability}},
  url = {http://www.aerostudents.com/courses/differential-equations/phasePortraitsAndStability.pdf},
  author = {{AeroStudents}},
}