Overview
In this section we will examine how the Laplace Transform can be used to solve a variety of engineering problems involving differential equations.
Objective
-
The student will examine how the Laplace Transform can be used to solve a variety of engineering problems involving differential equations.
Many engineering problems involve relationships between functions and their derivatives. One example would be a relationship that involves both displacement (x) and its first derivative with respect to time, velocity (dx/dt).
Equations such as this are referred to as differential equations. Often these relationships are complicated enough that a direct solution using the calculus of integration is not possible.
However, by using the Laplace Transform approach, we have another tool by which such problems can be solved. This discussion will cover:
- The difference between time domain and frequency domain
- The mathematical concept of the Laplace Transform and Inverse Laplace Transform
- The use of common transforms
- Solution of engineering problems involving differential equations by use of Laplace.
Topic 1 – Time and Frequency Domains
We often refer to the Laplace Transform (named after its inventor Pierre-Simon Laplace) as taking us from the time domain into the frequency domain and the Inverse Laplace Transform as taking us from the frequency domain to the time domain. This statement in and of itself confuses many students from the outset. So, let us begin by examining what we mean by these two domains.
Here is a practical application which will help with our understanding. The figure below is a complex electrical signal (an example could be the output of an accelerometer mounted on a running engine). It is difficult to make sense of this data.
However, using a computer and the mathematical algorithms of curve fitting, it is possible to derive a time-based function that represents this signal over a small time period.
And once that function has been derived, the computer can perform operations to break that function into its components of sine and cosine (This process uses another transform, called the Fourier Transform). The computer can then produce a plot of individual discrete frequency sinusoidal waves that make up the complex signal. This concept is shown in the next figure.
unknown origin
This can turn a time domain signal that looks like one on the upper left of the figure below into a frequency domain spectrum like that shown on the lower right of the same figure. It is then possible to relate the responses at various frequencies to their sources within the machine.
Original image : dplot.com
This demonstrates how the time domain and the frequency domain are two completely different ways of looking at exactly the same thing. Thus, when the Laplace Transform takes us from one domain to the other, we have not changed the problem, we are merely looking at it from a different perspective. If, in this new domain, the problem can be solved more easily, we can then Inverse Transform back to the original domain with our answer.
We live in the time domain, and that is how we like to look at things. Thus, we would like to look at a simple time domain relationship, such as the displacement of an object with time. But if we have a complicated relationship in the time domain that involves displacement, velocity (time derivative of displacement) and acceleration (time derivative of velocity or second time derivative of displacement) then we often cannot see a way to solve for that simple relationship of displacement with time. However, if we can transform the relationship to the frequency domain, solve the problem there, and then inverse transform back to the time domain, we have obtained exactly what we wanted, a time domain expression for the displacement as a function of time.
In the world of Laplace, we often refer to the frequency domain as the “S” domain, because when Laplace transformed a function with variable x in the time domain, and transformed the function to the frequency domain, he used the variable s to avoid confusion between use of the same variable name in two different domains.
Topic 2 – Laplace Transforms
Laplace transforms can be used to solve differential equations for the analysis of systems varying with time.
If we can create a simplified model of a system (i.e. functions or equations which describe the system) then we can solve dynamic problems involving
- Electrical circuits
- Harmonic oscillators
- Optical devices
- Mechanical systems
Laplace Transforms are often interpreted as a transformation from the time domain to the frequency domain (or “s” domain where s is a complex number of the form a + bi, recalling that a and b are real numbers and i is an imaginary number representing the square root of negative one)
- Time Domain : Inputs and outputs are functions of time (unit is usually seconds)
- Frequency Domain : Inputs and outputs are functions of complex angular frequency (units of radians/second)
The Laplace Transform is mathematically defined as the following interval
Where F(s) is a function F of variable s in the frequency domain and it is the Laplace Transform of f(t) which is a function f of variable t in the time domain. F(s) is a complex function, where s is a complex variable as previously discussed, L is the operational symbol for the Laplace Integral.
The Inverse Laplace Transform, returning from the frequency domain to the time domain is defined by the following:
Fortunately, we seldom have to perform the actual integration, because others have done the work of transforming typical functions and building tables of the transforms, thus allowing us to simply use the following tables.
1 | 1 | |
2 | ||
3 | ||
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 |
|
|
24 |
|
|
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 |
Table data from Ogata
Note that for any function F(s) which can be broken into components, such that
Then the inverse transform is the sum of the inverses of the individual terms
Application 1
Find the Laplace Transform of f(t)
(Note: recall from Trig that sin (A + B) = sinAcosB + cosAsinB)
Transform using lines 10 and 11 of the chart
Application 2
Find the Laplace Transform of f(t)
Transform using lines 2 and 11 of the chart
Application 3
Find the Inverse Laplace Transform of F(s)
Inverse transform using lines 2 and 3 of the chart
Topic 3 – Inverse Laplace Transforms using Partial Fractions
When our function in the “s” domain is more complicated, we may have to use the concept of Partial Fractions to simplify the F(s) function such that we can use the terms in the table.
To do this, we need to recall zeros and poles. Consider a function like G(s)
The poles of this function are values of s at which G(s) = infinity (i.e. the denominator of the function goes to zero). In this example the poles are = 4, 0, -6, -15 and -15
NOTE: -15 is referred to as a repeated pole, since it appears twice due to (s + 15) being squared in the denominator
The zeros of this function are values of s at which G(s) = 0 (i.e. the numerator of the function goes to zero). In this example the poles are -3 and -20. Technically, the function should have as many zeros as poles. (in which case for this example the zeros are -2, -10 and three repeated zeros at infinity)
For a function F(s) = B(s)/A(s) F(s) can be expanded using Partial Fractions and the poles of A(s)
Where the pn values are the poles and each an (named the “residue) can be found from
evaluated at
When the denominator contains repeated poles, as in A(s) = (s+1)2 then the expansion must use both (s+1) and (s+1)2
So the partial fraction expansion is
And
evaluated at
But a1 comes from the derivative
evaluated at
This may be best understood by looking at an example.
Application 1
Find the inverse Laplace Transform of F(s)
We must use partial fractions to get F(s) into a form that will allow us to use the chart
Finding the a and b coefficients:
evaluated at
evaluated at
evaluated at
evaluated at
So
Inverse transform using lines 6 and 7 of the chart
Topic 4 - Laplace Transforms of derivatives
When we need to take the Laplace Transform of a time domain function which involves derivatives, we need to understand how to treat the derivative terms.
While transforms to
transforms to
where f(0) is the initial condition for the function f(t), i.e. the value of f(t) when t = 0
transforms to
where f’(0) is the initial condition for the derivative of the function f(t), i.e. the value of f’(t) when t = 0
and similarly for any derivative
transforms to
where f(n-1)’(0) is the n-1 derivative of f(t) evaluated at t = 0
Thus, if we have a differential equation in the time domain, we can convert the differential equation to a simple algebraic equation in terms of s in the frequency domain by using the Laplace Transform.
We can convert the differential equation by changing , , etc. per the explanation just given. We can then solve this new equation in the frequency domain for F(s) and then the time solution f(t) is obtained by taking the Inverse Laplace Transform of the expression we just derived for F(s)
Application 1
Find the solution f(t) for the differential equation x” + 3x’ + 2x = 0 with initial conditions x(0) = 1 and x’(0) = -1
Take the transform of the DE
solve for X(s)
Inverse Transform using line 6 of the chart
Topic 5 - Laplace Transforms as a Solution Approach to Differential Equations
Let us consider the general equation of motion for a simple spring-mass system shown here.
The equation of motion, derived from Newton’s Second Law, would involve a mass times acceleration term (mx”), and forces derived from the spring (spring rate times displacement = kx) and the damper (velocity times damping coefficient = cx’) and any externally applied force, f(t)
The resulting equation of motion would be mx” + cx’ + kx = f(t)
Where m is mass, c is damping, k is spring rate, x is displacement, and x’ and x” are its derivatives (velocity and acceleration) and f(t) is a forcing function that varies with time
We will now examine a couple of equations of this form
Application 1
Begin by assuming no damping (c = 0) and no forcing function, f(t) = 0
So we have
Rearrange to and let
So we have
Laplace transform this:
Assume an initial displacement, but no initial velocity, so the initial conditions (IC) are:
Apply these IC:
Rearrange:
And inverse transform using line 10 of the chart:
Let’s examine this solution
- It is an oscillating response of amplitude 5 and frequency ω
- 5 was the initial displacement, so it is oscillating at the amplitude we initially gave it
- And it is oscillating at the frequency ω, which you will recall we set as ω = (k/m) ½
In vibration theory, the square root of k over m is referred to as the natural frequency, which is the frequency that any spring-mass system in nature will oscillate at if caused to vibrate on its own. So our answer is exactly what vibration theory would lead us to expect.
Application 2
Let’s return to our spring-mass system and assume m = 1, k = 1 and c = 0 (undamped). But with a forcing function which is sinusoidal, sin3t. We will choose initial conditions of zero, i.e. x(0) = 0 and x’(0) = 0
So we have
Transform this equation using line 10 of the chart
Solve this for X(s)
Manipulate this using partial fractions into a form that can be used with the chart
Inverse transform using line 10 of the chart
Let’s again examine our result.
- There is an aspect of this which is a sinusoidal oscillation at frequency 3t, which would correspond to the forcing function which was sin3t
- There is also a sinusoidal oscillation at frequency 1t, which would correspond to the natural frequency ω = (k/m)½ = (1/1)½ = 1
So not surprisingly, there is a portion of the response due to the applied force and a portion at the natural frequency due to our having given it an excitation
Application 3
Let us return to our simple spring-mass system
And let Let k = 4 lb/ft, c = 0.4 lb-sec/ft, m = 0.1 lb-sec2/ft
Apply Laplace (assume x’0 = 0, initially at rest)
Solve for X(s)
Inverse Laplace using lines 20 and 21
Again examine the response and find these bits which will result in the decaying sinusoidal response shown
Application 4
Consider another spring-mass system which has the equation of motion with initial conditions
Transform the equation using line 3 of the chart
Rearrange in preparation for Inverse Transform
Inverse transform using lines 3 and 10 from the table
Summary
The Laplace Transform and Inverse Laplace Transform allow us to move functional relationships between the time domain and the frequency domain so as to allow us to solve difficult time domain relationships in the frequency domain and then convert our solution back into the time domain.
TASK 1
Tutorial problems will allow the student to practice the concepts shown in this discussion.
References and Bibliography
Ogata, K. (2004). System Dynamics, 4th edition. Upper Saddle River, USA: Pearson Prentice Hall.