Laplace & Integral Transforms
The Laplace transform is a powerful integral transform that maps functions from the time domain () to the complex frequency domain (). In university-level analysis and engineering, it serves as the primary tool for solving linear ordinary differential equations (ODEs), particularly those involving discontinuous forcing functions or impulsive inputs where traditional methods like undetermined coefficients or variation of parameters become cumbersome.
1. Formal Definition and the Region of Convergence (ROC)
Let be a function defined for . The unilateral Laplace transform of , denoted by or , is defined by the improper integral:
where is a complex variable.
The Region of Convergence (ROC)
The integral exists only if it converges. For a function to have a Laplace transform, it must be piecewise continuous on every finite interval in and of exponential order. A function is of exponential order if there exist constants and such that for all .
If is of exponential order , then the integral converges for . This half-plane in the complex -domain is known as the Region of Convergence (ROC).
2. Fundamental Properties
The utility of the Laplace transform stems from its operational properties, which allow us to manipulate calculus problems algebraically.
Linearity
The Laplace transform is a linear operator. For constants and functions :
Scaling
If , then for :
First Shifting Theorem (Frequency Shifting)
3. Differentiation and Integration in the s-domain
The “core magic” of the Laplace transform lies in how it handles derivatives.
Differentiation of the Original Function
Given is continuous and is piecewise continuous:
In general, for the -th derivative:
Integration of the Original Function
4. Solving Initial Value Problems (IVPs)
The Laplace transform is uniquely suited for IVPs because the initial conditions are incorporated directly into the transformation process. Unlike the method of undetermined coefficients, we do not need to solve for a general solution and then find the constants.
Consider the second-order linear ODE:
Taking the Laplace transform of both sides yields an algebraic equation:
Solving for :
The solution is then recovered via the Inverse Laplace Transform , often using partial fraction decomposition.
5. Discontinuous Forcing: Step and Impulse Functions
In physical systems, inputs often switch on/off (step) or occur instantaneously (impulse).
Heaviside Step Function
Defined as: Its transform is:
Second Shifting Theorem:
Dirac Delta Function
The Dirac delta is a generalized function (distribution) representing an idealized unit impulse at : Its transform is remarkably simple:
6. The Convolution Theorem
The convolution of two functions and is defined as:
The Convolution Theorem states:
This is vital for finding inverse transforms. If we recognize a transform as a product , the time-domain solution is the convolution of their respective inverses. This often avoids complex partial fraction decompositions.
7. Transfer Functions and System Dynamics
In control theory, the relationship between input and output of a linear time-invariant (LTI) system is defined by the Transfer Function :
If the input is an impulse , then , and . Thus, the inverse transform is the impulse response of the system.
Stability, Poles, and Zeros
The roots of the denominator of are the poles, and the roots of the numerator are the zeros.
- A system is stable if all its poles lie in the left half-plane (LHP) of the -domain ().
- Poles on the imaginary axis correspond to oscillations; poles in the right half-plane indicate exponential divergence (instability).
8. Connection to the Fourier Transform
The Laplace transform can be viewed as a generalization of the Fourier transform. If we set (i.e., ), the unilateral Laplace transform of a function that is zero for becomes the Fourier transform:
The term in the Laplace transform acts as a “convergence factor,” allowing us to transform functions that do not have a Fourier transform (e.g., ).
Python Implementation with SymPy
We can use Python’s sympy library to handle symbolic Laplace transforms, inverse transforms, and partial fraction expansions.
import sympy as sp
# Define symbols
t, s = sp.symbols('t s')
a = sp.symbols('a', real=True, positive=True)
# 1. Compute Laplace Transform
f = sp.exp(-a*t) * sp.sin(t)
F = sp.laplace_transform(f, t, s)
print(f"Laplace transform of {f}: {F[0]}")
# 2. Partial Fraction Decomposition
# Let G(s) = (3s + 1) / (s^2 + s)
G_expr = (3*s + 1) / (s**2 + s)
G_pfrac = sp.apart(G_expr)
print(f"Partial fraction of {G_expr}: {G_pfrac}")
# 3. Inverse Laplace Transform
# Recover g(t) from G_pfrac
g = sp.inverse_laplace_transform(G_pfrac, s, t)
print(f"Inverse Laplace: {g}")