Advanced maths

Numerical inverse Laplace transform calculator from a transform expression

Approximate an inverse Laplace transform at positive times using the Gaver–Stehfest formula.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Approximate an inverse Laplace transform at positive times using the Gaver–Stehfest formula. The method evaluates the entered transform on positive real arguments and combines them with alternating weights. The result includes neighboring-order sensitivity and a cancellation indicator. It is useful for selected well-behaved transforms but is not a general symbolic inversion or a certified solution for every transform expression.

THE FORMULAf(t)≈(log 2/t)Σ_k V_k F(k log 2/t).

A worked example

The transform F(s)=1/(s+1) has exact inverse e^−t. At t=1 the exact value is about 0.36787944; the finite-term Stehfest estimate differs. Neighboring term counts expose sensitivity, but agreement between them alone does not certify inverse-transform accuracy.

Good to know

1–100 times in [0.01,100], supported real-axis transform expression and 6/8/10/12 main terms. Neighboring terms are diagnostic. Severe cancellation, singularities and oscillatory transforms may be unreliable; no exact symbolic inverse, complex contour method or rigorous error bound.

The entered expression is a transform

Supply F of s, expressed with the parser’s x variable representing the Laplace argument. The page returns approximate f of t at the requested positive times.

Do not enter the original time-domain function or its derivative by mistake. The transform must be finite at all sampled positive real arguments. A pole at one of those arguments makes the formula unusable for that input, even if a mathematical inverse exists under another contour method.

Inverse Laplace approximation samples a transform to recover time valuesF(s) = 1/(s+1)f(t) = e⁻ᵗAt t=1: ≈ 0.36788Check cancellation
The transform F(s)=1/(s+1) has exact inverse e^−t. At t=1 the exact value is about 0.36787944; the finite-term Stehfest estimate differs. Neighboring term counts expose sensitivity, but agreement between them alone does not certify inverse-transform accuracy. Static schematic; numerical labels define the example.

Inverts a supplied transform numerically rather than finding a forward symbolic transform. The One dimensional Fokker Planck probability density calculator offers a complementary calculation under its own stated assumptions.

Alternating weights create sensitivity

The Stehfest approximation is a weighted sum of transform evaluations at multiples of log two divided by time. Its weights grow rapidly and alternate in sign, so large terms can cancel to produce a modest answer.

Increasing the number of terms is therefore not a guaranteed accuracy improvement in ordinary floating-point arithmetic. The interface offers a small supported set of even orders rather than inviting arbitrarily large orders that can amplify roundoff catastrophically.

Worked example and mathematical rule

The transform F(s)=1/(s+1) has exact inverse e^−t. At t=1 the exact value is about 0.36787944; the finite-term Stehfest estimate differs. Neighboring term counts expose sensitivity, but agreement between them alone does not certify inverse-transform accuracy.

f(t)≈(log 2/t)Σ_k V_k F(k log 2/t).

Neighboring orders are diagnostics

The calculator compares the selected order with nearby even orders and reports their disagreement. Agreement is encouraging for that numerical experiment, but several approximations can agree on a biased value.

The cancellation ratio measures total term magnitude relative to the final sum and highlights loss-of-significance risk. Neither diagnostic is a rigorous error bound. A result with severe cancellation should be checked with higher precision or a different inversion family before being used quantitatively.

Time range changes sampled arguments

Small times sample the transform at large positive arguments, while large times sample closer to the origin. Singularities, transform evaluation error and asymptotic behavior can therefore affect different requested times differently.

A method that works well at one time need not work across the entire interval. The calculator excludes zero time because the sampling formula divides by t. Initial values at zero require a separate limit or a suitable initial-value theorem with its own assumptions.

Oscillation and discontinuities

Real-axis Stehfest inversion can perform poorly for strongly oscillatory functions, delayed responses and discontinuities. A smooth-looking list of approximate values does not overcome that limitation.

Near jumps, inversion conventions and approximation behavior need careful interpretation. The page does not automatically choose among Talbot, de Hoog or other contour-based algorithms. Use known transform pairs to assess whether this method is appropriate for the class of response you are studying.

A reproducible verification workflow

Start with a transform having a known inverse, such as a shifted reciprocal producing an exponential. Compare several positive times and orders rather than only one default value.

Then inspect cancellation and neighboring-order sensitivity for the target transform. Record the exact expression, time points and order with the result. Avoid reporting all displayed digits as accurate: the formula is approximate, and the uncertainty can be much larger than the last rounded digit.

A few questions, answered

Which symbol represents the transform argument?

Use x in the expression; mathematically it represents s.

Does more Stehfest terms always improve accuracy?

No. Larger alternating weights can increase cancellation and roundoff.

Is neighboring-order agreement a proof of accuracy?

No. It is a sensitivity diagnostic.

Can I evaluate at time zero?

No. The supported sampling formula requires positive time.

Find your calculator

Start typing to explore the library.