Inverse Laplace Transform in Matlab Programming

MATLAB Illustration

The Laplace Transform converts linear time-invariant (LTI) differential equations into algebraic equations in the complex frequency domain ((s)-domain). Once you solve for a system transfer function in the (s)-domain, you must convert the expression back to the time domain ((t)-domain) using the Inverse Laplace Transform to obtain physical time-domain responses.

In MATLAB, the Symbolic Math Toolbox provides the ilaplace() function to compute exact analytical inverse Laplace transforms.

What Is the Inverse Laplace Transform?

The Inverse Laplace Transform converts a frequency-domain transfer function (F(s)) into its corresponding time-domain sequence (f(t)):

[f(t) = mathcal{L}^{-1}{F(s)}]

This conversion allows control engineers to inspect system transient responses, stability behavior, and time-domain step or impulse signals.

MATLAB Function Syntax: ilaplace()

MATLAB
f = ilaplace(F) f = ilaplace(F, s, t)
  • F: Symbolic transfer function in the Laplace domain.
  • s: Laplace variable (frequency domain).
  • t: Time variable (time domain).

Step-by-Step Examples

Example 1: Second-Order System Response

Find the inverse Laplace transform of:

[F(s) = frac{1}{s^2 + 4s + 3}]
MATLAB
syms s t F = 1 / (s^2 + 4*s + 3);
f = ilaplace(F, s, t)

Output:

MATLAB
f = (1/2)*exp(-t) - (1/2)*exp(-3*t)

The resulting time-domain expression consists of two decaying exponential terms characteristic of a stable second-order system response.

Example 2: Generalized Symbolic Constants

Compute the inverse Laplace transform containing a symbolic parameter a:

MATLAB
syms s a t F = a / (s^2 + a^2);
f = ilaplace(F, s, t)

Output:

MATLAB
f = sin(a*t)

Example 3: Control System Step Response

Find the time-domain response of the open-loop transfer function:

[G(s) = frac{5}{s(s + 2)}]
MATLAB
syms s t G = 5 / (s * (s + 2));
g_t = ilaplace(G, s, t)

Output:

MATLAB
g_t = (5/2) - (5/2)*exp(-2*t)

Plotting Time-Domain Responses in MATLAB

Visualize the resulting continuous analytical function using fplot():

MATLAB
figure;
f
plot(g_t, [0, 5], 'LineWidth', 1.5, 'Color', 'b');
title('System Step Response g(t)');
xlabel('Time t (seconds)');
ylabel('Amplitude g(t)');
grid on;
Verified Feedback

What Engineering Students Say

Real feedback from students across top engineering universities worldwide.

Verified Student

“I got full marks on my MATLAB DSP assignment! The filter design code was completely vectorized, the frequency response plots were exact, and the delivery was 8 hours before my deadline. Highly recommended!”

AS

Aditi Sharma

IIT Bombay • Signal Processing Coursework
Verified Student

“Our Simulink EV powertrain model had severe algebraic loop and solver errors. The MATLABSolutions team fixed the solver configuration in 4 hours and provided an annotated scope diagram. Lifesaver for my final year!”

JM

John M.

Monash University, Australia • Simulink Dynamic Model
Technical Knowledge Base

Latest MATLAB Guides & Tutorials

Explore deep-dive technical articles written by our engineering team to master complex MATLAB & Simulink topics.

MATLAB Guide 5 Min Read

Reinforcement Learning for Microgrid Energy Management in MATLAB & Simulink

Operating a modern microgrid is an ongoing balancing act. Between changing solar output, shifting wind speeds, volatile electricity pricing, and unpredictable consumer demand, a...

MATLAB Guide 5 Min Read

Physics-Informed Neural Networks (PINNs) for Microgrid Dynamics and Power Flow in MATLAB

Modern microgrids operate with low physical inertia, rapid inverter switching dynamics, and intermittent renewable power generation. Simulating these systems requir...