# Control Systems/Standard Forms

## Companion FormEdit

A **companion form** contains the coefficients of a corresponding characteristic polynomial along one of its far rows or columns. For example, one companion form matrix is:

and another is:

There are two companion forms that are convenient to use in control theory, namely the observable canonical form and the controllable canonical form. These two forms are roughly transposes of each other (just as observability and controllability are dual ideas). When placed in one of these forms, the design of controllers or observers is simplified because the structure of the system is made apparent (and is easily modified with the desired control).

### Observable Canonical FormEdit

**Observable-Canonical Form** is useful in a number of cases, especially for designing observers.

The observable-canonical form is as follows:

### Controllable Canonical FormEdit

**Controllable-Canonical Form** is useful in a number of cases, especially for designing controllers when the full state of the system is known.

The controllable-canonical form is as follows:

If we have two spaces, space *v* which is the original space of the system (*A*, *B*, *C*, and *D*), then we can transform our system into the *w* space which is in controllable-canonical form (*A _{w}*,

*B*,

_{w}*C*,

_{w}*D*) using a transformation matrix

_{w}*T*. We define this transformation matrix as:

_{w}Where ζ is the controlability matrix.

Notice that we know beforehand *A _{w}* and

*B*, since we know both the form of the matrices and the coefficients of the equation (e.g. a linear ODE with constant coefficients or a transfer function).

_{w}If we know these two matrices, then we can form ζ_{w}. We can then use this matrix to create our transformation matrix.

We will discuss the controllable canonical form later when we discuss state-feedback and closed-loop systems.

### Phase Variable FormEdit

The **Phase Variable Form** is obtained simply by renumbering the phase variables in the opposite order of the controllable canonical form. Thus:

## Modal FormEdit

In this form, the state matrix is a diagonal matrix of its (non-repeated) eigenvalues. The control has a unitary influence on each eigenspace, and the output is a linear combination of the contributions from the eigenspaces (where the weights are the complex residuals at each pole).

### Jordan FormEdit

This "almost diagonal" form handles the case where eigenvalues are repeated. The repeated eigenvalues represent a multi-dimensional eigenspace, and so the control only enters the eigenspace once and its integrated through the other states of that small subsystem.

## Computing Standard Forms in MATLABEdit

MATLAB contains a function for automatically transforming a state space equation into a companion (e.g., controllable or observable canonical form) form.

[Ap, Bp, Cp, Dp, P] = canon(A, B, C, D, 'companion');

Moving from one companion form to the other usually involves elementary operations on matrices and vectors (e.g., transposes or interchanging rows). Given a vector with the coefficients of a characteristic polynomial, MATLAB can compute a companion form with the coefficients in the top row (there are other 3 possible companion forms not generated by that function)

compan(P)

Given another vector with the coefficients of a transfer function's numerator polynomial, the `canon` command can do the same.

[Ap, Bp, Cp, Dp, P] = canon(tf(Pnum,Pden), 'companion');

To transform a state space equation into a modal (e.g., diagonal) form, the same command can be used.

[Ap, Bp, Cp, Dp, P] = canon(A, B, C, D, 'modal');

However, MATLAB also includes a command to compute the Jordan form of a matrix, which is a modified modal form suited for matrices that have repeated eigenvalues.

jordan(A)

**Control Systems**book is a stub. You can help by expanding this page, but make sure to follow the

**local manual of style**. If you would like to help, but you don't know how, you can ask on the

**main discussion page**.

**(All Stubs)**