Control Systems/Transforms

From testwiki
Jump to navigation Jump to search

Template:Control Systems/Page

Transforms

There are a number of transforms that we will be discussing throughout this book, and the reader is assumed to have at least a small prior knowledge of them. It is not the intention of this book to teach the topic of transforms to an audience that has had no previous exposure to them. However, we will include a brief refresher here to refamiliarize people who maybe cannot remember the topic perfectly. If you do not know what the Laplace Transform or the Fourier Transform are yet, it is highly recommended that you use this page as a simple guide, and look the information up on other sources. Specifically, Wikipedia has lots of information on these subjects.

Transform Basics

A transform is a mathematical tool that converts an equation from one variable (or one set of variables) into a new variable (or a new set of variables). To do this, the transform must remove all instances of the first variable, the "Domain Variable", and add a new "Range Variable". Integrals are excellent choices for transforms, because the limits of the definite integral will be substituted into the domain variable, and all instances of that variable will be removed from the equation. An integral transform that converts from a domain variable a to a range variable b will typically be formatted as such:

𝒯[f(a)]=F(b)=Cf(a)g(a,b)da

Where the function f(a) is the function being transformed, and g(a,b) is known as the kernel of the transform. Typically, the only difference between the various integral transforms is the kernel.

Laplace Transform

Template:Wikipedia Template:MATLAB CMD

The Laplace Transform converts an equation from the time-domain into the so-called "S-domain", or the Laplace domain, or even the "Complex domain". These are all different names for the same mathematical space and they all may be used interchangeably in this book and in other texts on the subject. The Transform can only be applied under the following conditions:

  1. The system or signal in question is analog.
  2. The system or signal in question is Linear.
  3. The system or signal in question is Time-Invariant.
  4. The system or signal in question is causal.

The transform is defined as such:

Template:Eqn

F(s)=[f(t)]=0f(t)estdt

Laplace transform results have been tabulated extensively. More information on the Laplace transform, including a transform table can be found in the Appendix.

If we have a linear differential equation in the time domain:

y(t)=ax(t)+bx(t)+cx(t)

With zero initial conditions, we can take the Laplace transform of the equation as such:

Y(s)=aX(s)+bsX(s)+cs2X(s)

And separating, we get:

Y(s)=X(s)[a+bs+cs2]

Inverse Laplace Transform

Template:MATLAB CMD

The inverse Laplace Transform is defined as such: Template:- Template:Eqn

f(t)=1{F(s)}=12πicic+iestF(s)ds

The inverse transform converts a function from the Laplace domain back into the time domain.

Matrices and Vectors

The Laplace Transform can be used on systems of linear equations in an intuitive way. Let's say that we have a system of linear equations:

y1(t)=a1x1(t)
y2(t)=a2x2(t)

We can arrange these equations into matrix form, as shown:

[y1(t)y2(t)]=[a100a2][x1(t)x2(t)]

And write this symbolically as:

𝐲(t)=A𝐱(t)

We can take the Laplace transform of both sides:

[𝐲(t)]=𝐘(s)=[A𝐱(t)]=A[𝐱(t)]=A𝐗(s)

Which is the same as taking the transform of each individual equation in the system of equations.

Example: RL Circuit

Template:SideBox

Here, we are going to show a common example of a first-order system, an RL Circuit. In an inductor, the relationship between the current, I, and the voltage, V, in the time domain is expressed as a derivative:

V(t)=LdI(t)dt

Where L is a special quantity called the "Inductance" that is a property of inductors.

Template:TextBox

Partial Fraction Expansion

Template:SideBox Laplace transform pairs are extensively tabulated, but frequently we have transfer functions and other equations that do not have a tabulated inverse transform. If our equation is a fraction, we can often utilize Partial Fraction Expansion (PFE) to create a set of simpler terms that will have readily available inverse transforms. This section is going to give a brief reminder about PFE, for those who have already learned the topic. This refresher will be in the form of several examples of the process, as it relates to the Laplace Transform. People who are unfamiliar with PFE are encouraged to read more about it in Calculus.

Example: Second-Order System

Template:TextBox

Example: Fourth-Order System

Template:TextBox

Example: Complex Roots

Template:TextBox

Example: Sixth-Order System

Template:TextBox

Final Value Theorem

The Final Value Theorem allows us to determine the value of the time domain equation, as the time approaches infinity, from the S domain equation. In Control Engineering, the Final Value Theorem is used most frequently to determine the steady-state value of a system. The real part of the poles of the function must be <0.

Template:Eqn

limtx(t)=lims0sX(s)

From our chapter on system metrics, you may recognize the value of the system at time infinity as the steady-state time of the system. The difference between the steady state value and the expected output value we remember as being the steady-state error of the system. Using the Final Value Theorem, we can find the steady-state value and the steady-state error of the system in the Complex S domain.

Example: Final Value Theorem

Template:TextBox

Initial Value Theorem

Akin to the final value theorem, the Initial Value Theorem allows us to determine the initial value of the system (the value at time zero) from the S-Domain Equation. The initial value theorem is used most frequently to determine the starting conditions, or the "initial conditions" of a system.

Template:Eqn

x(0)=limssX(s)

Common Transforms

We will now show you the transforms of the three functions we have already learned about: The unit step, the unit ramp, and the unit parabola. The transform of the unit step function is given by:

[u(t)]=1s

And since the unit ramp is the integral of the unit step, we can multiply the above result times 1/s to get the transform of the unit ramp:

[r(t)]=1s2

Again, we can multiply by 1/s to get the transform of the unit parabola:

[p(t)]=1s3

Fourier Transform

Template:Wikipedia

The Fourier Transform is very similar to the Laplace transform. The fourier transform uses the assumption that any finite time-domain signal can be broken into an infinite sum of sinusoidal (sine and cosine waves) signals. Under this assumption, the Fourier Transform converts a time-domain signal into its frequency-domain representation, as a function of the radial frequency, ω, The Fourier Transform is defined as such:

Template:Eqn

F(jω)=[f(t)]=0f(t)ejωtdt

Template:MATLAB CMD

We can now show that the Fourier Transform is equivalent to the Laplace transform, when the following condition is true:

s=jω

Because the Laplace and Fourier Transforms are so closely related, it does not make much sense to use both transforms for all problems. This book, therefore, will concentrate on the Laplace transform for nearly all subjects, except those problems that deal directly with frequency values. For frequency problems, it makes life much easier to use the Fourier Transform representation.

Like the Laplace Transform, the Fourier Transform has been extensively tabulated. Properties of the Fourier transform, in addition to a table of common transforms is available in the Appendix.

Inverse Fourier Transform

Template:MATLAB CMD

The inverse Fourier Transform is defined as follows: Template:- Template:Eqn

f(t)=1{F(jω)}=12πF(jω)ejωtdω

This transform is nearly identical to the Fourier Transform.

Complex Plane

Using the above equivalence, we can show that the Laplace transform is always equal to the Fourier Transform, if the variable s is an imaginary number. However, the Laplace transform is different if s is a real or a complex variable. As such, we generally define s to have both a real part and an imaginary part, as such:

s=σ+jω

And we can show that s = jω if σ = 0.

Since the variable s can be broken down into 2 independent values, it is frequently of some value to graph the variable s on its own special "S-plane". The S-plane graphs the variable σ on the horizontal axis, and the value of jω on the vertical axis. This axis arrangement is shown at right.

Template:-

Euler's Formula

There is an important result from calculus that is known as Euler's Formula, or "Euler's Relation". This important formula relates the important values of e, j, π, 1 and 0:

ejπ+1=0

However, this result is derived from the following equation, setting ω to π:

Template:Eqn

ejω=cos(ω)+jsin(ω)

This formula will be used extensively in some of the chapters of this book, so it is important to become familiar with it now.

MATLAB

The MATLAB symbolic toolbox contains functions to compute the Laplace and Fourier transforms automatically. The function laplace, and the function fourier can be used to calculate the Laplace and Fourier transforms of the input functions, respectively. For instance, the code:

t = sym('t');
fx = 30*t^2 + 20*t;
laplace(fx)

produces the output:

ans =

60/s^3+20/s^2

We will discuss these functions more in The Appendix.

Further reading

Template:Control Systems/Nav