Laplace Transforms, Signals and Plants¶
With Laplace transforms, differential equations become algebraic equations.
The Frequency Domain¶
The Laplace transform takes a signal from the time domain, in \(t\), to the frequency domain, using \(s\) as the symbol in the transform.
Because the integral operator is a linear operator, the Laplace transform is linear. In particular,
Let \(f(t)\) and \(g(t)\) be two integrable functions.
Let \(a\) and \(b\) be two coefficients, independent of \(t\).
Then
where
\(F(s)\) is the Laplace transform of \(f(t)\), and
\(G(s)\) is the Laplace transform of \(g(t)\).
Another set of properties involves delay and exponentials. For some constant coefficient \(a\), we have:
\(f(t - a)\) has Laplace transform \(e^{-as} F(s)\),
\(e^{-at} f(t)\) has Laplace transform \(F(s+a)\),
\(f(a t)\) has Laplace transform \(F(s/a)/a\).
What is s? Consider the Laplace transform of \(f(t) = 1\):
This leads to
Multiplying with \(s\) can be called a generalized differentiation.
Apply integration by parts: \(\displaystyle \int u dv = uv - \int v du\).
Applying the property of the Laplace transform repeatedly, we arrive at the following:
We next explore symbolic computing,
and the Laplace transform in SymPy.jl
. Consider:
@syms s, t
one = sympy.laplace_transform(1, t, s)
which returns (1/s, 0, True)
.
sympy.inverse_laplace_transform(one[1], s, t)
returns \(\theta(t)\), defined below:
The Heaviside function can also be seen as a limit of a smoothed step function, as
and shown in Fig. 99 for increasing values of \(k\).

Fig. 99 The Heaviside function as the limit of a smoothed step function.¶
The sympy.inverse_laplace_transform
used earlier
is formally defined below.
Observe the similarity between the Laplace transform of \(f(t)\) which is \(\displaystyle {\cal L}\{ f \} = \int_0^\infty f(t) e^{-s t} dt = F(s)\) with the continuous Fourier transforms:
Operational Calculus¶
To solve an Ordinary Differential Equation (ODE), do:
Transform the ODE into the frequency domain.
Solve the algebraic equation in \(s\).
Transform the solution into the time domain.
Consider the following example:
Denoting \({\cal L}\{y\} = Y(s)\), the transformed equation is
\[s^2 Y(s) + 3 s Y(s) + 2 Y(s) = \frac{1}{s}.\]We solve the algebraic equation: \(s ( s+1 ) (s+2) Y(s) = 1\).
\[Y(s) = \frac{1}{s (s+1) (s+2)} = \frac{1/2}{s} - \frac{1}{s+1} + \frac{1/2}{s+2}\]Transformed back into the time domain, the solution is
\[y(t) = \frac{1}{2} - e^{-t} + \frac{1}{2} e^{-2t}.\]
Consider the system of first order differential equations:
We apply the 3-step process:
Denoting \(X(s) = {\cal L}\{x\}\) and \(Y(s) = {\cal L}\{y\}\), the transformed system is
\[\begin{split}\left\{ \begin{array}{rcl} sX + 1 & = & -2X - 9Y \\ sY - 1 & = & \hphantom{-2}X - 2Y \end{array} \right. \quad \mbox{or} \quad \left\{ \begin{array}{rcl} (s + 2)X + 9Y & = & - 1 \\ -X + (s+2)Y & = & 1 \end{array} \right.\end{split}\]Use
SymPy
to solve the system.@syms X, Y eq1 = (s+2)*X + 9*Y + 1 eq2 = -X + (s+2)*Y - 1 sol = solve([eq1, eq2], [X, Y])
has output
Dict{Any, Any} with 2 entries: Y => (s + 1)/((s + 2)**2 + 9) X => -(s + 11)/(s**2 + 4*s + 13)
Transform the solution into the time domain.
xt = sympy.inverse_laplace_transform(sol[X], s, t)
returns \(-e^{-2t}(3 \sin(3t) + \cos(3t)) \theta(t)\) as \(x(t)\).
yt = sympy.inverse_laplace_transform(sol[Y], s, t)
returns \(-e^{-2t}(\sin(3t)/3 + \cos(3t)) \theta(t)\) as \(y(t)\).
Note: for \(t > 0\), we have \(\theta(t) = 1\) and we can drop \(\theta(t)\).
Generalizing the previous example to solving linear systems goes as follows. Let \(A\) be an n-by-n matrix and consider the system
Denoting \({\cal L}\{{\bf z}\} = {\bf Z}(s)\), the transformed equation is
\[s {\bf Z}(s) - {\bf z}_0 = A.\]The solution in the frequency domain is
\[{\bf Z}(s) = (s I - A)^{-1} {\bf z}_0,\]where \(I\) is the identity matrix.
If \(A\) has \(k\) distinct eigenvalues, then
\[\det(s I - A) = \prod_{i=1}^k (s - \lambda_k)^{m_k},\]where \(m_k\) is the multiplicity of the k-th eigenvalue \(\lambda_k\).
The matrix partial fraction expansion has then the form:
\[(s I - A)^{-1} = \sum_{k=1}^r \sum_{j=1}^{m_k} \frac{v_{j,k}}{(s-\lambda_k)^j}.\]Use the partial fraction expansion to transfer into the time domain.
Signals and Plants¶
We next define the convolution of continuous functions, make the connection between signals and ordinary differential equations.
Recall the discrete convolution \(\displaystyle y_k = \sum_{i=0}^k h_i u_{k-i}\), where
\(y_k\) is the k-th component of the output signal, \(y = h \star u\),
\(h\) is the response of the unit impulse, and
\(u\) is the input signal.
Applying the convolution to continous signals, for continuous input \(u(t)\), unit impulse response \(h(t)\), the output is then
is the continuous output of the filter. In the frequency domain:
where the Laplace transforms are
Examples of plants are: filters, mechanisms, circuits. By the linearity, time invariance, and causality, the plant is determined by its response to the unit impulse.
Plants can be defined by ordinary differential equations. For example, consider the plant defined by
where \(u(t)\) is the input and \(y(t)\) the output.
Convolutions are connected to the Laplace transform:
Set \(y(0) = 0\). The output of the plant is then
In the frequency domain:
Exercises¶
Verify the properties, for some constant \(a\), and function \(f\) with Laplace transform \(F(s)\):
\(f(t - a)\) has Laplace transform \(e^{-as} F(s)\),
\(e^{-at} f(t)\) has Laplace transform \(F(s+a)\),
\(f(a t)\) has Laplace transform \(F(s/a)/a\).
A model of a suspension mechanism, using the equation for damped harmonic motion, written in engineering notation:
\[\frac{d^2}{d~\!t^2} y(t) + 2 \zeta \omega \left( \frac{d}{d~\!t} y(t) \right) + \omega^2 y(t) = 0,\]with initial conditions:
\[y(0) = 1 \quad \mbox{and} \quad y'(0) = 0.\]Apply the 3-step operational calculus method to compute the solution of this model.
Consider again
\[\begin{split}\left\{ \begin{array}{rcl} x' & = & -2x - 9y \\ y' & = & \hphantom{-2}x - 2y \end{array} \right. \quad x(0) = -1, \quad y(0) = 1.\end{split}\]
Write the system in matrix format.
Compute the eigenvalues of the matrix.
Compare the eigenvalues with the previously computed solution, previously computed with the aid of
SymPy
.
Bibliography¶
Charles R. MacCluer, start of Chapter 10 of Industrial Mathematics. Modeling in Industry, Science, and Government, Prentice Hall, 2000.
Richard C. Dorf and Robert H. Bishop: Modern Control Systems. Nineth Edition, Prentice Hall, 2001.