Universidade Federal do Rio Grande do Sul (UFRGS)
Programa de Pós-Graduação em Engenharia Civil (PPGEC)
1. Introduction
2. Formal definition
3. Laplace transform of some basic functions
3.1. Unit step (Heaviside's) function
3.2. Unit impulse (Dirac's Delta) function
3.3. Sine and cosine functions
4. Translation theorems
5. Transform of derivatives
6. Transform of integrals
7. Convolution theorem
8. Assignment
Prof. Marcelo M. Rocha, Dr.techn. (ORCID)
Porto Alegre, RS, Brazil
Whenever a function f(t) is defined by means of a differential equation and a suitable set of boundary conditions, it may be convenient to transform the problem of finding f(t), a function of an independent variable t (time), into a new problem of finding ˉf(s), function of a transformed independent variable s (complex frequency). This linear operation may be generically expressed as:
ˉf(s)=∫baK(s,t)f(t)dtwhere the function K(s,t) is called transform kernel. If the integral limits a and b are finites, the function ˉf(s) is a finite transformation. Among many possibilities, we shall study the two most important kernels in our context of vibration analysis, namely the Laplace and the Fourier transforms. These transforms feature the possibility of being reversed in a unique way and can be used to find solutions of linear systems (differential equations) both algebraically or numerically.
In the particular case of Laplace Transform, we are concerned with the time domain solutions of the dynamic equilibrium equation for some special loading functions, such as the unit impulse and the unit step functions, which are of fundamental importance for understanding the dynamic behavior of structural systems.
Let f(t) be a function defined for all t>0. The Laplace Transform of f(t) is defined as:
L{f(t)}=ˉf(s)=∫∞0e−stf(t)dtThe transform kernel in this case is
K(s,t)=e−stwith s being a complex frequency s=σ+iω, with units in radians per second for t in seconds. Observing that one of the integral bounds is infinite, the function f(t) must fulfill some special conditions such that the integral convergence can be ensured. For instance, the function f(t) must have a finite number of finite descontinuities and no infinite descontinuity (be piecewise continuous) along the integration interval. We will not give further details about these conditions, for there will be no issues regarding the functions we will be addressing here.
Although the Laplace transform can be reversed in a unique way, its inverse form cannot be expressed in a closed form as the direct transform. The transform of a given function and its inverse constitutes a so-called transform pair, usually represented as:
f(t)⟺ˉf(s)The most straightforward way of using Laplace transforms is by means of lookup tables or CAS (Computer Algebra Systems). However, some fundamental functions and theorems must receive special attention as follows.
The unit step, also known as Heaviside's function, is defined as
H(t−τ)={0ift<τ1ift≥τand is depicted in the figure below (for τ=0):
By applying the Laplace transform to this function and adjusting integral limits gives:
L{H(t−τ)}=ˉH(s)=∫∞τe−st⋅1⋅dtand hence:
ˉH(s)=e−sτsFor the particular case where the discontinuity occurs for t=τ=0, it results:
ˉH(s)=1sThe Heaviside's function usually represents a sudden change in a otherwise static load, which may cause some significant dynamic response.
The unit impulse, also known as Dirac's Delta function, is defined as
δ(t−τ)={0ift≠τ∞ift=τand is depicted in the figure below (for τ=0):
The main point about Dirac's function is that, although the function goes to infinity at t=τ, the function has a finite integral:
∫∞−∞δ(t−τ)dt=1and this implies that for any function f(t):
∫∞−∞f(t)δ(t−τ)dt=f(τ)It can be observed that the Dirac's Delta is not a function in the classical sense, but rather a distribution, like the Gaussian probability density function. In fact, Dirac's Delta can be understood as a Gaussian density function with standard deviation equal to zero and mean value equal to τ or, in order words, a deterministic distribution. From this viewpoint, the integral above corresponds to the definition of the expected value of f(t), calculated as the function f(τ) at the deterministic time instant t=τ.
By applying the Laplace transform to this function it results:
L{δ(t−τ)}=ˉδ(s)=∫∞0e−stδ(t−τ)dtand hence:
ˉδ(s)=e−sτFor the particular case where the discontinuity occurs for t=τ=0:
ˉδ(s)=1The Dirac's Delta function usually represents an impulsive load with very short duration, which also may cause some significant dynamic response. By comparing the above plots for both the Heaviside's and the Dirac's Delta functions, it can be readily observed that they are related by integration or derivation as:
H(t−τ)=∫δ(t−τ)dtδ(t−τ)=dH(t−τ)dtWe will come back later on this relation.
The well known functions sin(ωt) and cos(ωt) can also undergo a Laplace transform, as shown in the following. The parameter ω is a frequency, usually in radians per second with time t in seconds, as depicted below for x=ωt.
Applying the Laplace transform to the sine function gives:
L{sin(ωt)}=∫∞0e−stsin(ωt)dt=ωs2+ω2and similarly for the cosine function:
L{cos(ωt)}=∫∞0e−stcos(ωt)dt=ss2+ω2In vibration analysis, the sine and cosine functions are used to represent both loadings and system response.
Note: Laplace transforms, both direct and inverse, are available at the
HP Prime calculator operating in CAS mode.
For instance, for cosine transform by typing laplace(cos(s*w),s)
will result in
s/(s^2 + w^2)
, while by typing invlaplace(s/(s^2 + w^2),s)
will result in
cos(s*|w|)
.
Hence, this calculator is a nice replacement for Laplace transform lookup tables.
Translation theorems are available both in time and in frequency domain. Let us start by calculating the Laplace transform of a function eωtf(t):
L{eωtf(t)}=∫∞0e−steωtf(t)dt=∫∞0e−(s−ω)tf(t)dtHence:
L{eωtf(t)}=ˉf(s−ω)which is the translation theorem in frequency domain. It means that a shift of s by ω corresponds, in time domain, to multiplying the function f(t) by the exponential function eωtf(t).
The other way around, let us replace the dummy variable t by ξ=t−τ in the definition of Laplace transform. Recognizing that dξ=dt and that for ξ=0 one has t=τ gives:
∫∞τe−s(t−τ)f(t−τ)dt=esτ∫∞0e−stH(t−τ)f(t−τ)dtand consequently:
L{H(t−τ)f(t−τ)}=e−sτˉf(s)which is the translation theorem in time domain. It means that by multiplying the transformed function ˉf(s) by e−sτ corresponds to shifting the time domain by τ and zeroing all function values before the instant τ.
It will be seen that the translation theorem in frequency domain is used to solve the equilibrium equation of linear damped systems.
The Laplace transform applied to derivatives is essential for solving differential equations. It is expressed as:
L{˙f(t)}=∫∞0e−st˙f(t)dtwhere the dot notation is used for time derivative:
˙f(t)=dfdtThis can be solved through integration by parts by defining:
u=e−stdv=˙f(t)dtdu=−se−stdtv=f(t)and replacing in:
∫udv=uv−∫vduto get:
∫∞0e−st˙f(t)dt=−f(0)+s∫∞0e−stf(t)dtand hence:
L{˙f(t)}=−f(0)+sˉf(s)where f(0) is the initial value of f(t) in time domain. For solving the dynamic equilibrium equation of linear systems, the second time derivative of f(t) will also be necessary. Applying again the derivation rule results:
L{¨f(t)}=−sf(0)−˙f(0)+s2ˉf(s)Time derivatives of higher order can be calculated but will not be necessary in the present context.
Although it is not necessary for solving the basic form of the dynamic equilibrium equation, the same technique used in the previous section can be used for transforming integrals as:
L{∫t0f(τ)dτ}=∫∞0e−st∫t0f(τ)dτdtThis can be also be solved through integration by parts by defining:
u=∫t0f(τ)dτdv=e−stdtdu=f(t)dtv=−e−st/sand replacing in:
∫udv=uv−∫vduto get:
∫∞0e−st∫t0f(τ)dτdt=0+1s∫∞0e−stf(t)dtand hence:
L{∫t0f(τ)dτ}=ˉf(s)sIt can be observed that integration or derivation in frequency domain is simply a matter of dividing or multiplying by complex frequency s, respectivelly. This can be exemplified by the Heaviside's and Dirac's Delta function by observing that:
ˉH(s)=ˉδ(s)sin agreement to the fact that:
H(t−τ)=∫δ(t−τ)dtas stated at the end of section 3.2.
The convolution between two functions f(t) e g(t) is defined as the integral:
f(t)∗g(t)=∫t0f(τ)g(t−τ)dτIt can be easily verified that this operation is both commutative and associative:
f(t)∗g(t)=g(t)∗f(t)[f(t)∗g(t)]∗h(t)=f(t)∗[g(t)∗h(t)]The convolution operation is graphically depicted in the figure below.
Applying the Laplace transform to the convolution gives:
L{f(t)∗g(t)}=∫∞0e−st∫t0f(τ)g(t−τ)dτdtThe upper limit for the inner integral can be changed by multiplying the integrand by the Heaviside's function:
g(t−τ)H(t−τ)={g(t−τ)ifτ≤t0ifτ>twhat gives:
L{f(t)∗g(t)}=∫∞0e−st∫∞0f(τ)g(t−τ)H(t−τ)dτdtBy re-ordering the terms and introducing a variable change ξ=t−τ gives:
L{f(t)∗g(t)}=∫∞0f(τ)∫∞0e−s(τ+ξ)g(ξ)H(ξ)dξdτRecognizing now that H(ξ)=1 for all domain allows the integration variables to be separated:
L{f(t)∗g(t)}=∫∞0e−sτf(τ)dτ⋅∫∞0e−sξg(ξ)dξwhat finally implies that:
L{f(t)∗g(t)}=ˉf(s)ˉg(s)This is the Convolution Theorem for Laplace transform. It implies that whenever a Laplace transform can be expressed as the product of two functions in the complex frequency s, the inverse Laplace of this product is the convolution between the inverse transform of each single function. This theorem will be used to solve the differential equilibrium equations of dynamic systems subjected to forced vibration.
import numpy as np
#a = np.array([1, 2, 3, 4]) #
#b = np.array([1, 2, 3, 4])
a = np.array([1, 1, 1])
print(np.convolve(a,a))
[1 2 3 2 1]
# Plotting a set of complex numbers
%matplotlib qt
import matplotlib.pyplot as plt
import numpy as np
t = np.linspace(-5,5,100)
s = np.exp(t + 1j*t)
plt.figure(1)
plt.scatter(s.real, s.imag, color='blue')
plt.axis([-20,5,-5,10])
plt.grid(True)
plt.show()