2.8 Laplace Transform
We start our study of Laplace transform by motivating it as an extension of the Fourier transform.
2.8.1 Motivation to the Laplace transform
The Fourier analysis is not able to provide a representation for some specific signals. For example, the signal , does not have a Fourier transform because the integral
does not converge. Note that one should evaluate
considering that (this limit is not and L’Hospital’s rule is not appropriate).
This limitation in the representational power of Fourier analysis can be circumvented with the trick of pre-multiplying the input signal by an exponential. Assuming the continuous-time domain, this corresponds to multiplying by an exponential , , and then taking the Fourier transform of . For example, if , then pre-multiplying by leads to the following Fourier transform for :
The signal could be recovered from the inverse Fourier transform of and a post-multiplication by . This trick can be adopted with several different values of . For example, would also work in the previous example, as well as all values of such that (note that the exponent of uses , not ).
Based on this motivation, the Laplace transform , where is a complex number, can be interpreted as the Fourier transform of the signal multiplied by the exponential , as follows:
| (2.50) |
The pair of Laplace equations is defined as:
| (2.51) |
where is a real number so that the contour path of integration is in the region of convergence of . Because there are two parameters, and , the values that can assume as the independent variable of a Laplace transform compose a plane, while in the Fourier transform the independent variable the angular frequency (the abscissa line, not a plane).
As will be discussed in Chapter 3, the choice of and the corresponding popularity of the Laplace transform is due to their use as a tool for analyzing systems not signals.
2.8.2 Advanced: Laplace transform basis functions
One can interpret the Laplace transform as having basis functions with two parameters and . The Laplace transform can then be seen as obtaining coefficients from inner products , given that the complex conjugate of the basis function is .
But an interesting distinction between the Fourier and Laplace transforms is the following. When using the Fourier transform, if the signal coincides with a given basis function (e. g., ), a signal impulse represents the signal in the transform domain ( for the given example). This impulse indicates that a single basis functions represents the input signal . Such situations do not occur when the Laplace transform is used. The transform domain does not use impulses and there is no signal that is represented by a single basis function.
It is intuitive that the Fourier basis functions, which are limited in amplitude, are not the most adequate to represent a signal such as the , which has magnitude increasing with for . Consider picking a very large value for the Fourier “coefficient” corresponding to the basis function , this value would scale the basis along all the time axis, eventually failing to provide a sharp increase in magnitude because and have amplitudes limited to the range .
As mentioned, the Laplace transform multiplies by an exponential weighting function , where can control the amplitude of the exponential, which increases and decreases with for and , respectively. By multiplying the exponential sinusoid by , the new basis function can represent a broader variety of signals.
As an example, the left graph in Figure 2.20 was obtained with Listing 2.3 and the second graph used ( is denoted in the code as sigma), with both showing the real part of , with . The envelope imposes the peak amplitude of the sinusoid of 5 Hz.
1sigma = -0.3; w = 2*pi*5; %frequency of 5 Hz 2z=-sigma+1j*w; %define a complex variable z 3t=linspace(0,3,1000); %interval from [0, 3] sec. 4x=exp(z*t); %the Laplace basis function 5envelope = exp(-sigma*t); %the signal envelope 6subplot(121);plot(t,real(x));hold on,plot(t,envelope,':r')
The basis functions have some peculiarities. If their amplitudes reach when . If their amplitudes reach when . Therefore, the Laplace transform is more useful in the analysis of one-sided signals, such as the ones that incorporate (right-sided, also called causal) or (left-sided or anti-causal). In these cases, the basis function do not create mathematical problems at infinite because the ROC is chosen in a way that the signal itself is zero at the problematic limiting values or .
2.8.3 Laplace transform of one-sided exponentials
Using Eq. (2.50) and assuming a complex-valued , it is useful to calculate and get familiar with the Laplace transform for the causal and anti-causal signals. Before discussing ROCs in general, it is useful to study the ROCs and transform pairs of these two signals:
| (2.52) |
and
| (2.53) |
These pairs are widely proved and discussed in the literature (see, e. g. [ url2roc]). The next example proves Eq. (2.52).
Example 2.20. A time-domain complex exponential leads to a rational function in . Consider and the following Laplace transform pair
This result is proved as follows:
Given that , the limit can be obtained as
when (note and only the numerator defines the convergence).
Knowing does not suffice to uniquely identify , because the two different signals have the same Laplace transform . Hence, the information about the values of for which the Fourier transform in Eq. (2.50) converges, must be known too in order to properly identify the original when recovering it from . In summary, distinct signals can have the same , differing only in their regions of convergence. This fact will be further explored in the next subsections.
2.8.4 Region of convergence for a Laplace transform
The values of for which the associated Fourier transform converges compose the so-called region of convergence (ROC) of the Laplace transform. Observing Eq. (2.52) and Eq. (2.53), one can conclude that for these signals, the ROC is a region at the left of or at the right ().
This can be generalized and, in fact, the ROC of Laplace transforms are always defined by ranges that depend solely on (the angular frequency does not influence ROCs). For any signal , the Laplace transform convergence depends on , and the ROCs are regions formed at the left or right of a given value . When is right-sided, the ROC is the area at the right of some , while for left-sided the ROC is the area at the left of a value . When is composed by several parcel, the ROC is the intersection of the ROCs of these parcels.
For instance, has Laplace transform with ROC . The anti-causal signal has Laplace transform with ROC . Because the Laplace is a linear transform, the bilateral signal has Laplace transform with the ROC being , the intersection between the ROCs of and .
Another example that can be recovered from the knowledge of and its associated ROC is the following.
Example 2.21. Distinct signals may have the same Laplace transform, and only the ROC can disambiguate. Given the Laplace transform , one should find the corresponding signal . In fact, there are two possible signals, depending on the ROC. The pole is at and assuming the ROC is , then . If the ROC is , then .
2.8.5 Inverse Laplace of rational functions via partial fractions
In general, the inverse Laplace transform is calculated using Eq. (2.51). But for the specific, and very important category of Laplace transforms that are ratios of two polynomials, one can use partial fraction expansion (see Appendix A.10) to conveniently calculate the inverse .
The inverse transform of a rational function can be obtained by the following steps:
- f 1.
- make sure the degree of the denominator is larger than the degree of the numerator, that is, . If this is not the case, perform some steps of polynomial division until being able to rewrite as , such that the degree of is . Perform partial fraction expansion on instead of .
- f 2.
- find the poles (roots of ) and expand the rational function ( or ) in partial fractions as discussed in Appendix A.10. These parcels can be written as , where is the residue of the pole . If a pole has multiplicity larger than 1, partial fractions also compose the expansion.
- f 3.
- Based on the region of convergence of , determine for each partial fraction whether it should generate a causal or non-causal time-domain signal. Then convert the parcel from the transform to the time domain accordingly. For instance, if the ROC is and the parcel is , the corresponding time-domain signal is . But if the ROC associated to is , then . At this step, if there are poles with multiplicity larger than 1, the following property of the Laplace transform is useful: .
- f 4.
- Assuming the coefficients of are real-valued, if there are complex conjugate poles, their respective residues will be also complex conjugates. Rearrange each pair of partial fractions corresponding to complex conjugate poles to obtain a simplified time-domain representation.
The next example illustrates the inverse Laplace transform and other concepts.
Example 2.22. Zeros and poles of a Laplace transform. Assume that the Laplace transform of a causal signal is given by
| (2.54) |
with ROC , which corresponds to the intersection between the ROCs of individual parcels of . Figure 2.21 depicts the positions of the poles and zeros in the S-plane. And Figure 2.22 and Figure 2.23 show the magnitude (in dB) and phase of , respectively.
The values for which are called zeros and the ones that lead to are called poles. Figure 2.21 and Figure 2.22 provide complementary views of the positions of the zero at and the tree poles, as well as their impacts on the magnitude of . The locations of zeros appear as “valleys” while the poles are located at “volcanoes”. It is intuitive that the ROC cannot include poles because they are the positions for which , which violates “convergence”. For the example in Figure 2.22, the ROC is because is right-sided and the right-most poles (assuming the orientation of the -axis is from to ) are at .
Figure 2.23 shows the phase of . In most cases the phase is less instructive than the magnitude. Figure 2.23 emphasizes that the poles are conventionally signalized with “x” marks while zeros are represented by “o” marks.
The inverse Laplace transform can be obtained via partial faction decomposition (see Appendix A.10). Using the method residue in Python or Matlab/Octave is very convenient. For instance, in the case of Matlab/Octave:
gives the residues r for each pole in p. This allows to write:
| (2.55) |
When all coefficients of are real-valued, the pair of residues corresponding to complex conjugate poles are also complex conjugates. This is the case of the residues in Eq. (2.55). By inspection of each of the three parcels and knowing is causal, one can obtain the inverse transform as
It is convenient to expand the second (in blue) and third (in black) parcels and rewrite this equation as:
Grouping the parcels that can be written as a cosine and a sine, multiplying them by and , and then using Eq. (A.1) (Euler’s formula), one can write as:
This result can be obtained with symbolic math. For instance, using method ilaplace for the inverse Laplace transform in Matlab/Octave:
1syms s % define s as a symbolic variable 2Xs = (s-1)/(s^3 + 4*s^2 + 9*s + 10) 3xt = ilaplace(Xs) 4pretty(simplify(xt))
These commands provide the same calculated here.
An interesting fact is that the Laplace transform is a redundant representation and could be eventually recovered from if is in the ROC. The following subsection will explore the possibility of finding the Fourier transform (if it exists) from the Laplace transform, by imposing the restriction of . From this Fourier transform, one can eventually recover , which illustrates the point that a Laplace transform has considerable redundancy in its representation of .
2.8.6 Calculating the Fourier transform from a Laplace transform
The Fourier transform basis function is equivalent to the Laplace’s when . Hence, the Laplace transform properties and pairs are similar to the Fourier ones.
Knowing that the Fourier transform of can be derived from its Laplace transform, i. e.,
| (2.56) |
in case is in the ROC of and, consequently, has a Fourier transform.
Repeating this important result: Eq. (2.56) is valid only if the signal has a valid Fourier transform. Using Example 2.21, note that the axis is part of the ROC of , which then has a Fourier transform
In contrast, does not have a valid Fourier transform: does not converge and using Eq. (2.56) would lead to a wrong result!
When the signal has both Fourier and Laplace transforms, a graph of incorporates the corresponding graph of . Figure 2.24 shows the magnitude values for (the axis) as a curve in black, superimposed to Figure 2.22. Alternatively, Figure 2.25 shows only the values of at the axis.
Both representations in Figure 2.24 and Figure 2.25 are three-dimensional and difficult to work with. Figure 2.26 depicts the frequency response in the conventional way, which is much easier to interpret than looking at Figure 2.25, for example. However, it is interesting to compare the figures and note that the peaks in Figure 2.26 are related to the position of the poles and draw conclusions such as that, the closer the pole is to the axis, the more evident is the corresponding peak at the Fourier transform. In filter design, it is sometimes necessary to locate poles in the vicinity of the axis because this conducts to filters with high quality factor.
The need to use the Laplace as an alternative to the Fourier transform would be even greater if impulses were not allowed in Fourier analysis. The use of impulses in both the time and frequency domains allows a much larger class of signals to be represented with Fourier equations. For example, the ramp signal , strictly does not have a Fourier transform because the following integral does not converge:
However, using impulses, it is possible to use Fourier representations of signals such as , and . This fact influences the main applications of the Laplace transform to be the representation of systems, not signals. For example, in terms of signals, while has the transform , an infinite-duration sinusoid is not represented in the Laplace transform domain.
Because most signals that are analyzed with the Laplace transform are right-sided, sometimes the adopted definition is
| (2.57) |
which is called the unilateral Laplace transform (in contrast to the bilateral definition of Eq. (2.51)). Both coincide if the signal is right-sided (e. g., by the action of ).