You are on page 1of 1

Lab 05 Laplace transform of convolution of two functions

Step 1: Start

Step 2: Define symbolic variables

Step 3: Read the first and second functions

Step 4: Compute inverse Laplace transforms

Step 5: Compute the Laplace transform of the convolution

Step 6: Compute the inverse Laplace transform of the convolution


Step 7: Display the results

Step 8: Stop

Code:

% Symbolic variables
syms s t;
% Define the functions
F = exp(-t); % First function
G = t^2; % Second function
% Compute the Laplace transforms
F = laplace(f, s);
G = laplace(G, s);
% Compute the Laplace transform of the convolution
H = F*G;
% Compute the inverse Laplace transform of the convolution
Convolution = ilaplace(H, s, t);
% Display the result
disp(['Laplace transform of convolution: ', char(H)]);
disp(['Inverse Laplace transform of convolution: ', char(Convolution)]);

Output:

Laplace transform of convolution: 2/(s^3*(s + 1))


Inverse Laplace transform of convolution: t^2 - 2*exp(-t) - 2*t + 2

Department of Mathematics KLE Institute of Technology, Hubli

You might also like