THE LAPLACE TRANSFORM

advertisement
1. The Laplace Transform
The Laplace transform technique will be the most important mathematical tool at our disposal in
this course. In this section we will not spend too much time deriving it rigorously, or proving zones
of convergence. Instead, we will focus on using the transform technique to solve ordinary
differential equations.
In performing the Laplace transform, we will convert equations from the time domain to the sdomain, where s is a complex number. As we will see, transforming an equation into the s domain
will convert it from an ODE into an algebraic equation that we will find much easier to manipulate.
The Laplace tranform of a function f(t) is defined as
∞
𝐿[𝑓(𝑑)] = 𝐹(𝑠) = ∫ 𝑓(𝑑)𝑒 −𝑠𝑑 𝑑𝑑
(1.1)
0
Please observe the notation used during the transform
(1.2)
𝑓(𝑑) → 𝐹(𝑠)
In this class, functions in the time domain will be written in lowercase, while functions in the sdomain will be written in uppercase. We can take the inverse Laplace transform to go from the sdomain back to the time domain.
𝐿−1 [𝐹(𝑠)] = 𝑓(𝑑)
(1.3)
To illustrate the technique, let us perform a few simple examples
𝑓(𝑑) = 1
∞
𝑓(𝑑) = 𝐴
𝑓(𝑑) = 𝐡𝑑
∞
𝐹(𝑠) = ∫ 𝑓(𝑑)𝑒 −𝑠𝑑 𝑑𝑑
0
∞
𝐹(𝑠) = ∫ 𝑓(𝑑)𝑒 −𝑠𝑑 𝑑𝑑
𝐹(𝑠) = ∫ 𝑓(𝑑)𝑒 −𝑠𝑑 𝑑𝑑
0
∞
𝐹(𝑠) = ∫ 𝑒
0
∞
−𝑠𝑑
𝑑𝑑
0
𝐹(𝑠) = ∫ 𝐴𝑒
∞
−𝑠𝑑
𝐹(𝑠) = ∫ 𝐡𝑑𝑒 −𝑠𝑑 𝑑𝑑
𝑑𝑑
0
∞
0
∞
1
𝐹(𝑠) = − 𝑒 −𝑠𝑑 |
𝑠
0
𝐴
𝐹(𝑠) = − 𝑒 −𝑠𝑑 |
𝑠
0
1
𝐹(𝑠) = − (𝑒 −π‘ βˆ™∞ − 𝑒 π‘ βˆ™0 )
𝑠
1
𝐹(𝑠) =
𝑠
𝐴
𝐹(𝑠) = − (𝑒 −π‘ βˆ™∞ − 𝑒 π‘ βˆ™0 )
𝑠
𝐴
𝐹(𝑠) =
𝑠
𝐹(𝑠) =
𝐹(𝑠) = −
−𝑠𝑑 − 1 −𝑠𝑑 ∞
𝐡𝑒 |
𝑠2
0
𝐡
[(𝑠 βˆ™ ∞ + 1)𝑒 −π‘ βˆ™∞ − 1(𝑒 π‘ βˆ™0 ) ]
𝑠2
𝐡
𝐹(𝑠) = 2
𝑠
1
𝑓(𝑑) = 𝑒 −𝑐𝑑
𝑓(𝑑) = 𝑑 2
∞
∞
𝐹(𝑠) = ∫ 𝑓(𝑑)𝑒 −𝑠𝑑 𝑑𝑑
𝐹(𝑠) = ∫ 𝑓(𝑑)𝑒 −𝑠𝑑 𝑑𝑑
0
∞
0
∞
𝐹(𝑠) = ∫ 𝑒 −𝑐𝑑 𝑒 −𝑠𝑑 𝑑𝑑
𝐹(𝑠) = ∫ 𝑑 2 𝑒 −𝑠𝑑 𝑑𝑑
0
∞
0
∞
𝑠 2 𝑑 2 + 2𝑠𝑑 + 2 −𝑠𝑑
𝐹(𝑠) = −
𝑒 |
𝑠3
0
𝐹(𝑠) = ∫ 𝑒 −(𝑐+𝑠)𝑑 𝑑𝑑
0
∞
1
−(𝑐+𝑠)𝑑
𝐹(𝑠) = −
𝑒
|
𝑐+𝑠
0
𝐹(𝑠) = [−
𝐹(𝑠) = [−
1
1
𝑒 −(𝑐+𝑠)βˆ™∞ ] +
𝑒0
𝑐+𝑠
𝑐+𝑠
1
𝐹(𝑠) =
𝑐+𝑠
𝑠 2 βˆ™ ∞2 + 2𝑠 βˆ™ ∞ + 2 −∞
2
𝑒 ] + [ 3 𝑒 0]
3
𝑠
𝑠
𝐹(𝑠) =
2
𝑠3
Clearly, performing the Laplace transforms by hand is tedious and time-consuming. Therefore, for
the remainder of the course we will make use of the Laplace transform tables on pages 18-19 in your
textbook. Let us perform a few examples using this table
𝑓(𝑑) = 𝑑 4
𝑓(𝑑) = 20 sin 5𝑑
𝑓(𝑑) = 𝑒 5𝑑 − 𝑒 −5𝑑
Row 5
Row 10
Row 6 (or Row 12)
𝐹(𝑠) =
24
𝑠5
20 βˆ™ 5
𝑠 2 + 52
100
𝐹(𝑠) = 2
𝑠 + 25
𝐹(𝑠) =
1
1
−
𝑠−5 𝑠+5
𝑠+5
𝑠−5
𝐹(𝑠) =
−
(𝑠 − 5)(𝑠 + 5) (𝑠 − 5)(𝑠 + 5)
𝐹(𝑠) =
𝐹(𝑠) =
𝑠2
𝑓(𝑑) = 10𝑒 −5𝑑 cos 100𝑑
𝑓(𝑑) = 𝐴 + 𝐡 cos 𝑐𝑑
Row 21
Rows 1 and 11
𝐹(𝑠) = 10 βˆ™
𝑠+5
(𝑠 + 5)2 + 10,000
𝐹(𝑠) =
10
− 25
𝐴
𝐡𝑠
+ 2
𝑠 𝑠 + 𝑐2
2
Laplace Transform of Derivatives
So far this seems like a relatively useless mathematical exercise. The true usefulness of the Laplace
transform lies in its ability to change differential equations into algebraic equations. To see how this
might work, let’s try to take the Laplace transform of the derivative of a function.
∞
𝑑𝑑
𝑑𝑓 −𝑠𝑑
𝐿[ ] = ∫
𝑒 𝑑𝑑
𝑑𝑑
𝑑𝑑
(1.4)
0
To perform the integration, we’ll use the “integration by parts” formula.
(1.5)
∫ 𝑒 𝑑𝑣 = 𝑒 𝑣 − ∫ 𝑣 𝑑𝑒
In this case
𝑣 = 𝑓(𝑑)
𝑑𝑣 =
𝑑𝑓
𝑑𝑑
𝑑𝑑
𝑒 = 𝑒 −𝑠𝑑
𝑑𝑒 =
𝑑𝑒
𝑑𝑑 = −𝑠𝑒 −𝑠𝑑 𝑑𝑑
𝑑𝑑
(1.6)
Substituting these into the integration by parts formula we have
∞
𝑑𝑓
−𝑠𝑑
𝐿 [ ] = 𝑓(𝑑)𝑒 −𝑠𝑑 |∞
𝑑𝑑
0 + 𝑠 ∫ 𝑓(𝑑)𝑒
𝑑𝑑
∞
𝐿[
(1.7)
0
𝑑𝑓
] = −𝑓(0) + 𝑠 ∫ 𝑓(𝑑)𝑒 −𝑠𝑑 𝑑𝑑
𝑑𝑑
(1.8)
0
but, from the definition of the Laplace transform
∞
𝐹(𝑠) = ∫ 𝑓(𝑑)𝑒 −𝑠𝑑 𝑑𝑑
0
Thus, we have
𝐿[
𝑑𝑓
] = 𝑠𝐹(𝑠) − 𝑓(0)
𝑑𝑑
(1.9)
Similarly, the transform of the second derivative is
𝐿[
𝑑2𝑓
] = 𝑠 2 𝐹(𝑠) − 𝑠𝑓(0) − 𝑓̇ (0)
𝑑𝑑 2
(1.10)
and for the third
3
𝑑3𝑓
𝐿 [ 3 ] = 𝑠 3 𝐹(𝑠) − 𝑠 2 𝑓(0) − 𝑠𝑓̇ (0) − π‘“Μˆ (0)
𝑑𝑑
(1.11)
In other words, a derivative in the time domain is equivalent to multiplying a function by s in the
Laplace domain. In this way we can convert differential equations in the time domain into algebraic
equations in the Laplace domain. To show how useful this is, we will try an example.
Example: Estimate the cooking time for a baked potato. Assume the oven is at θoven, and the potato is
a sphere of water with mass m and surface area A. Let the convective heat transfer coefficient be h.
First we must know something about the physics of baking. If we draw a control volume at the skin
of the potato, we can write a statement of conservation of energy at this boundary. In words, the
statement is:
energy flux entering potato from oven = rate of change in internal energy of potato
The energy enters the potato through convection, thus
π‘Š
π‘žΜ‡ π‘œπ‘£π‘’π‘› = β„Žπ΄(πœƒπ‘œπ‘£π‘’π‘› − πœƒ) = ( 2 ) (π‘š2 )(𝐾) = π‘Š
π‘š βˆ™πΎ
(1.12)
And the rate of change in energy of the potato is
π‘‘πœƒ
𝐽
𝐾
= (π‘˜π‘”) (
)( ) = π‘Š
𝑑𝑑
π‘˜π‘” βˆ™ 𝐾 𝑠
(1.13)
π‘šπΆπ‘
π‘‘πœƒ
= β„Žπ΄(πœƒπ‘œπ‘£π‘’π‘› − πœƒ)
𝑑𝑑
(1.14)
π‘šπΆπ‘
π‘‘πœƒ
+ β„Žπ΄πœƒ = β„Žπ΄πœƒπ‘œπ‘£π‘’π‘›
𝑑𝑑
(1.15)
β„Žπ΄
π‘šπΆπ‘
(1.16)
π‘žΜ‡ π‘π‘œπ‘‘π‘Žπ‘‘π‘œ = π‘šπΆπ‘
Equating these two quantities gives
or
Dividing through by mCp and defining
𝐢=
gives
π‘‘πœƒ
+ πΆπœƒ = πΆπœƒπ‘œπ‘£π‘’π‘›
𝑑𝑑
(1.17)
Taking the Laplace transform of both sides gives
4
(π‘ Θ − πœƒ0 ) + πΆΘ =
πΆπœƒπ‘œπ‘£π‘’π‘›
𝑠
(1.18)
Solving this equation for Θ gives
Θ=
πœƒ0
πΆπœƒπ‘œπ‘£π‘’π‘›
+
𝑠 + 𝐢 (𝑠 + 𝐢)𝑠
(1.19)
From this we can take the inverse Laplace transform (row 14), giving
πœƒ(𝑑) = πœƒ0 𝑒 −𝐢𝑑 + πœƒπ‘œπ‘£π‘’π‘› (1 − 𝑒 −𝐢𝑑 )
(1.20)
πœƒ(𝑑) = πœƒπ‘œπ‘£π‘’π‘› + (πœƒ0 − πœƒπ‘œπ‘£π‘’π‘› )𝑒 −𝐢𝑑
(1.21)
This is the desired solution. The method of the Laplace transform provided us with a simple,
methodical way of solving an ordinary differential equation subject to initial conditions. To
reinforce the method, we will perform a few more examples.
Example
Find the solution to the following second order differential equation.
(1.22)
π‘¦Μˆ + 4𝑦̇ + 20𝑦 = 𝛿
where δ is the unit impulse. Assume that y(0) = 0 and 𝑦̇ (0) = 3.
Solution: First, take the Laplace transform of both sides
𝑠 2 π‘Œ − 𝑠𝑦(0) − 𝑦̇ (0) + 4(π‘ π‘Œ − 𝑦(0)) + 20π‘Œ = 1
π‘Œ(𝑠 2 + 4𝑠 + 20) = 1 + 3
4
π‘Œ=
(𝑠 + 2)2 + 16
(1.23)
Now take the inverse transform, using Row 20 in the table
𝑦(𝑑) = 𝑒 −2𝑑 sin 4𝑑
(1.24)
Example
Find the solution to the following second order differential equation
π‘¦Μˆ + 4𝑦 = 𝑑
(1.25)
Assume that initial conditions are zero.
Solution: First, take the Laplace transform of both sides
5
𝑠 2 π‘Œ − 𝑠𝑦(0) − 𝑦̇ (0) + 4π‘Œ =
(𝑠 2 + 4)π‘Œ =
1
𝑠2
π‘Œ=
1
𝑠2
1
𝑠 2 (𝑠 2 + 4)
1
8
π‘Œ= [ 2 2
]
8 𝑠 (𝑠 + 4)
(1.26)
(1.27)
This looks like the transform in Row 26. Taking the inverse gives
1
𝑦(𝑑) = (2𝑑 − sin 2𝑑)
8
(1.28)
Example
Find the solution to the following second order differential equation
π‘¦Μˆ + 𝑦 = sin 5𝑑
(1.29)
Assume that initial conditions are zero.
Solution: The Laplace transform of the left side of the equation is the same as in the first example.
On the right side we use Row 10 to obtain
5
+ 25
5
(𝑠 2 + 1)π‘Œ = 2
𝑠 + 25
1
5
π‘Œ=[ 2
][ 2
]
𝑠 + 1 𝑠 + 25
5
π‘Œ= 4
𝑠 + 26𝑠 2 + 25
𝑠 2 π‘Œ − 𝑠𝑦(0) − 𝑦̇ (0) + π‘Œ =
𝑠2
(1.30)
Looking at the Laplace transform table, it’s obvious that there is no readily-available inverse
transform for the above expression. We need to transform it into a simpler form that we can find in
the table. One way to do this is through the use of partial fractions. We can expand polynomial
fractions of the type shown above as follows:
6
π‘Žπ‘š 𝑠 π‘š + π‘Žπ‘š−1 𝑠 π‘š−1 + β‹― + π‘Ž1 𝑠 + π‘Ž0
𝑏𝑛 𝑠 𝑛 + 𝑏𝑛−1 𝑠 𝑛−1 + β‹― + 𝑏1 𝑠 + 𝑏0
π‘Ÿ1
π‘Ÿ2
π‘Ÿπ‘›
=
+
+ β‹―+
+ π‘˜0 + π‘˜1 𝑠 + β‹― + π‘˜π‘š−𝑛 𝑠 π‘š−𝑛
𝑠 − 𝑝1 𝑠 − 𝑝2
𝑠 − 𝑝𝑛
(1.31)
The r terms are called the residues of the polynomial fraction while the p terms are called the poles.
They are called poles because whenever s = pi the fraction goes to infinity. The k terms are called
direct terms. Normally there will be no direct terms, since the denominator is of higher order than the
numerator for most dynamic systems.
There are analytical methods for doing the partial fraction expansion, all of which are tedious. For
this class, we choose to use the residue function in Matlab. If you type the following expression
num = [5];
den = [1 0 26 0 25];
[r,p,k]=residue(num,den)
you will get the following result
r =
0
0
0
0
+
+
0.0208i
0.0208i
0.1042i
0.1042i
+
+
-
5.0000i
5.0000i
1.0000i
1.0000i
p =
0
0
0
0
k =
[]
This means that our fraction can be written
π‘Œ=
0.0208𝑗 −0.0208𝑗 −0.1042𝑗 0.1042𝑗
+
+
+
𝑠 − 5𝑗
𝑠 + 5𝑗
𝑠−𝑗
𝑠+𝑗
(1.32)
There are still no rows in our table that look exactly like this, but let’s try combining the first two
terms
7
π‘Œ=−
1
5
5
1
+
2
2
24 𝑠 + 25 24 𝑠 + 1
(1.33)
Finally, here is form we can use! Both terms look like Row 10 in the table. Performing the inverse
transform we have
𝑦(𝑑) =
5
1
sin 𝑑 − sin 5𝑑
24
24
(1.34)
MathCAD also has a built-in Laplace and inverse Laplace transform routine, but this is sometimes
difficult to use.
Impulses and Time Shifting
We are often interested in the response of a system to a single disturbance that is limited in time.
For example, the behavior of a car after hitting a bump in the road is an important part of
suspension design. Or we may be interested in the transient response of a loudspeaker system (as to
a snare drum hit, for example). Such disturbances may be modeled mathematically by an impulse.
An impulse is a disturbance of infinite magnitude that occurs in zero time. Obviously, impulses do
not exist as such in nature, but any disturbance that is of short duration relative to the speed of
response of a system can be considered an impulse. We denote the impulse with the symbol δ(t-a),
where a is the time at which the impulse occurs.
y(t)
y(t)
a
t
a
Unit impulse and Step Functions
t
Similarly, the step function is defined as a change in magnitude that occurs in zero time. The step
function is written 1(t – a), where a is the time at which the step occurs.
We can combine two step functions to create a pulse, which is similar to an impulse, but with finite
duration.
𝑦(𝑑) = 1(𝑑 − π‘Ž) − 1(𝑑 − 𝑏)
(1.35)
8
y(t)
a
b
t
A pulse of duration b-a
Shifting a function by a time α has the effect of multiplying the Laplace transform by e-αt (see pages
19-21 in text) so that
𝐿[𝑓(𝑑 − 𝛼)1(𝑑 − 𝛼)] = 𝑒 −𝛼𝑠 𝐹(𝑠)
(1.36)
Using this, we can find the Laplace tranform of a unit pulse to be
𝐹(𝑠) =
𝑒 −π‘Žπ‘  𝑒 −𝑏𝑠
−
𝑠
𝑠
(1.37)
1
(1 − 𝑒 −𝑏𝑠 )
𝑠
(1.38)
If a = 0, that is, if the pulse starts at t = 0, then
𝐹(𝑠) =
Example
Solve the first-order differential equation shown below
𝑦̇ + 2𝑦 = 1(𝑑) − 1(𝑑 − 3)
(1.39)
Assume y(0) = 0.
Solution: Take the Laplace transform of both sides
1
(1 − 𝑒 −3𝑠 )
𝑠
1
(𝑠 + 2)π‘Œ = (1 − 𝑒 −3𝑠 )
𝑠
1
𝑒 −3𝑠
π‘Œ=
−
𝑠(𝑠 + 2) 𝑠(𝑠 + 2)
π‘ π‘Œ − 𝑦(0) + 2π‘Œ =
(1.40)
Taking the inverse transform, we have
𝑦(𝑑) =
1
1
(1 − 𝑒 −2𝑑 ) − (1 − 𝑒 −2(𝑑−3) )1(𝑑 − 3)
2
2
(1.41)
9
0.5
0.4
y ( t ) 0.3
0.2
0.1
0
0
1
2
3
4
5
6
t
10
Download