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;

What Our Students Say

★★★★★

“I got full marks on my MATLAB assignment! The solution was perfect and delivered well before the deadline. Highly recommended!”

Aditi Sharma, Mumbai
★★★★☆

“Quick delivery and excellent communication. The team really understood the problem and provided a great solution. Will use again.”

John M., Australia

Latest Blogs

Explore how MATLAB Solutions has helped clients achieve their academic and research goals through practical, tailored assistance.

How to Solve Differential Equations in MATLAB (ode45, ode15s, bvp4c)

Differential equation assignments usually boil down to three scenarios: standard initial value problems, stiff systems that crash normal solvers, and boundary value problems where conditions are split between two ends of a domain. This guide walks through how to pick the right MATLAB solv

Physics-Informed Neural Networks (PINNs) in MATLAB: Complete Guide

1. Why Standard AI Fails on Real-World Physics Problems If you've ever tried training a standard deep learning model to predict fluid dynamics, structural stress, or heat transfer, you've likely hit a wall. Standard neural networks excel at recognizing patterns in images or text, but wh