Inverse Laplace transform - MATLAB ilaplace (2024)

Inverse Laplace transform

collapse all in page

Syntax

f = ilaplace(F)

f = ilaplace(F,transVar)

f = ilaplace(F,var,transVar)

Description

example

f = ilaplace(F) returns the Inverse Laplace Transform of F. By default, the independent variable is s and the transformation variable is t. If F does not contain s, ilaplace uses the function symvar.

example

f = ilaplace(F,transVar) uses the transformation variable transVar instead of t.

example

f = ilaplace(F,var,transVar) uses the independent variable var and the transformation variable transVar instead of s and t, respectively.

Examples

collapse all

Inverse Laplace Transform of Symbolic Expression

Open Live Script

Compute the inverse Laplace transform of 1/s^2. By default, the inverse transform is in terms of t.

syms sF = 1/s^2;f = ilaplace(F)
f =t

Default Independent Variable and Transformation Variable

Open Live Script

Compute the inverse Laplace transform of 1/(s-a)^2. By default, the independent and transformation variables are s and t, respectively.

syms a sF = 1/(s-a)^2;f = ilaplace(F)
f =teat

Specify the transformation variable as x. If you specify only one variable, that variable is the transformation variable. The independent variable is still s.

syms xf = ilaplace(F,x)

Specify both the independent and transformation variables as a and x in the second and third arguments, respectively.

f = ilaplace(F,a,x)
f =xesx

Inverse Laplace Transforms Involving Dirac and Heaviside Functions

Open Live Script

Compute the following inverse Laplace transforms that involve the Dirac and Heaviside functions.

syms s tf1 = ilaplace(1,s,t)
f1 =δdirac(t)
F = exp(-2*s)/(s^2+1);f2 = ilaplace(F,s,t)
f2 =heaviside(t-2)sin(t-2)

Inverse Laplace Transform as Convolution

Open Live Script

Create two functions f(t)=heaviside(t) and g(t)=exp(-t). Find the Laplace transforms of the two functions by using laplace. Because the Laplace transform is defined as a unilateral or one-sided transform, it only applies to the signals in the region t0.

syms t positivef(t) = heaviside(t);g(t) = exp(-t);F = laplace(f);G = laplace(g);

Find the inverse Laplace transform of the product of the Laplace transforms of the two functions.

h = ilaplace(F*G)
h =1-e-t

According to the convolution theorem for causal signals, the inverse Laplace transform of this product is equal to the convolution of the two functions, which is the integral 0tf(τ)g(t-τ)dτ with t0. Find this integral.

syms tauconv_fg = int(f(tau)*g(t-tau),tau,0,t)
conv_fg =1-e-t

Show that the inverse Laplace transform of the product of the Laplace transforms is equal to the convolution, where h is equal to conv_fg.

isAlways(h == conv_fg)
ans = logical 1

Inverse Laplace Transform of Array Inputs

Find the inverse Laplace transform of the matrix M. Specify the independent and transformation variables for each matrix entry by using matrices of the same size. When the arguments are nonscalars, ilaplace acts on them element-wise.

syms a b c d w x y zM = [exp(x) 1; sin(y) 1i*z];vars = [w x; y z];transVars = [a b; c d];f = ilaplace(M,vars,transVars)
f =

(exδdirac(a)δdirac(b)ilaplace(sin(y),y,c)δdirac(d)i)

If ilaplace is called with both scalar and nonscalar arguments, then it expands the scalars to match the nonscalars by using scalar expansion. Nonscalar arguments must be the same size.

syms w x y z a b c df = ilaplace(x,vars,transVars)
f =

(xδdirac(a)δdirac(b)xδdirac(c)xδdirac(d))

Inverse Laplace Transform of Symbolic Function

Open Live Script

Compute the Inverse Laplace transform of symbolic functions. When the first argument contains symbolic functions, then the second argument must be a scalar.

syms F1(x) F2(x) a bF1(x) = exp(x);F2(x) = x;f = ilaplace([F1 F2],x,[a b])
f =(ilaplace(ex,x,a)δdirac(b))

If Inverse Laplace Transform Cannot Be Found

Open Live Script

If ilaplace cannot compute the inverse transform, then it returns an unevaluated call to ilaplace.

syms F(s) tF(s) = exp(s);f(t) = ilaplace(F,s,t)
f(t) =ilaplace(es,s,t)

Return the original expression by using laplace.

F(s) = laplace(f,t,s)
F(s) =es

Input Arguments

collapse all

FInput
symbolic expression | symbolic function | symbolic vector | symbolic matrix

Input, specified as a symbolic expression, function, vector, or matrix.

varIndependent variable
s (default) | symbolic variable | symbolic expression | symbolic vector | symbolic matrix

Independent variable, specified as a symbolic variable, expression, vector, or matrix. This variable is often called the "complex frequency variable." If you do not specify the variable, then ilaplace uses s. If F does not contain s, then ilaplace uses the function symvar to determine the independent variable.

transVarTransformation variable
t (default) | x | symbolic variable | symbolic expression | symbolic vector | symbolic matrix

Transformation variable, specified as a symbolic variable, expression, vector, or matrix. It is often called the "time variable" or "space variable." By default, ilaplace uses t. If t is the independent variable of F, then ilaplace uses x.

More About

collapse all

Inverse Laplace Transform

The inverse Laplace transform of F(s) is the signal f(t) such that laplace(f(t),t,s) is F(s). The inverse Laplace transform ilaplace(F(s),s,t) may only match the original signal f(t) for t ≥ 0.

Tips

  • If any argument is an array, then ilaplace acts element-wise on all elements of the array.

  • If the first argument contains a symbolic function, then the second argument must be a scalar.

  • To compute the direct Laplace transform, use laplace.

  • For a signal f(t), computing the Laplace transform (laplace) and then the inverse Laplace transform (ilaplace) of the result may not return the original signal for t<0. This is because the definition of laplace uses the unilateral transform. This definition assumes that the signal f(t) is only defined for all real numbers t≥0. Therefore, the inverse result is not unique for t<0 and it may not match the original signal for negative t. One way to retrieve the original signal is to multiply the result of ilaplace by a Heaviside step function. For example, both of these code blocks:

    syms t;laplace(sin(t))

    and

    syms t;laplace(sin(t)*heaviside(t))

    return 1/(s^2 + 1). However, the inverse Laplace transform

    syms s;ilaplace(1/(s^2 + 1))

    returns sin(t), not sin(t)*heaviside(t).

Version History

Introduced before R2006a

See Also

fourier | ifourier | iztrans | laplace | ztrans | rewrite

Topics

  • Solve Differential Equations of RLC Circuit Using Laplace Transform

MATLAB Command

You clicked a link that corresponds to this MATLAB command:

 

Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.

Inverse Laplace transform - MATLAB ilaplace (1)

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list:

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
  • 日本 (日本語)
  • 한국 (한국어)

Contact your local office

Inverse Laplace transform - MATLAB ilaplace (2024)
Top Articles
Latest Posts
Article information

Author: Domingo Moore

Last Updated:

Views: 6016

Rating: 4.2 / 5 (73 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Domingo Moore

Birthday: 1997-05-20

Address: 6485 Kohler Route, Antonioton, VT 77375-0299

Phone: +3213869077934

Job: Sales Analyst

Hobby: Kayaking, Roller skating, Cabaret, Rugby, Homebrewing, Creative writing, amateur radio

Introduction: My name is Domingo Moore, I am a attractive, gorgeous, funny, jolly, spotless, nice, fantastic person who loves writing and wants to share my knowledge and understanding with you.