Xerobit

Laplace Transform Calculator

This laplace transform calculator evaluates forward and inverse Laplace transforms for a library of standard mathematical functions. Type an expression in the time domain variable t or the frequency domain variable s, and the matching transform is returned immediately. The tool runs entirely in your browser, so no data is uploaded to any server.

Result

  • Input f(t)
    1
  • Transform F(s)
    1/s

How to use the laplace transform calculator

  1. Select Forward to convert from the time domain (t) to the s domain, or Inverse for the reverse.
  2. Type your expression in the input field using standard notation like t^2, e^(3t), or 1/(s^2+1).
  3. The laplace transform calculator updates automatically as you type.
  4. Read the result row for the transformed expression.

What is the Laplace transform?

The Laplace transform converts a function of time, f(t), into a function of a complex variable s, written F(s). It is defined by the integral from zero to infinity of f(t) multiplied by e^(-st) with respect to t. Engineers and mathematicians use it to turn differential equations into algebraic equations, which are much easier to solve.

This laplace transform calculator does not evaluate the integral numerically. Instead, it matches your input against a built-in table of known transform pairs. This approach is fast, exact, and covers the functions most commonly encountered in coursework and control systems design.

How the forward transform works

For the forward direction, the tool parses your expression to identify the base function and any coefficients. Consider the input t^2. The general rule for t raised to the power n is that the transform equals n factorial divided by s raised to the power n plus one. With n equal to 2, the factorial of 2 is 2, and n plus one is 3, giving the result 2/s^3.

For an exponential like e^(3t), the rule states that the transform of e^(at) is 1 divided by (s minus a). Substituting a equals 3 yields 1/(s - 3). Trigonometric functions follow similar fixed patterns: sin(at) maps to a divided by (s squared plus a squared).

Common Laplace transform pairs

The table below lists several standard pairs used by the laplace transform calculator. These cover polynomials, exponentials, and trigonometric functions.

f(t)F(s)
11/s
t1/s^2
t^nn! / s^(n+1)
e^(at)1/(s - a)
sin(at)a / (s^2 + a^2)
cos(at)s / (s^2 + a^2)
sinh(at)a / (s^2 - a^2)
cosh(at)s / (s^2 - a^2)

When working with more advanced problems, you may need tools like a matrix calculator for state-space representations or an exponent calculator to verify intermediate arithmetic steps.

Inverse Laplace transforms

The inverse Laplace transform recovers f(t) from F(s). Selecting the inverse direction tells the calculator to expect an expression in s. For example, entering 1/(s+5) matches the pattern 1/(s - a) where a is negative five, producing e^(-5t).

Entering 3/(s^2+9) matches the pattern a/(s^2 + a^2) with a equal to 3, returning sin(3t). The parser extracts the coefficient and the constant inside the denominator to reconstruct the original time-domain function exactly.

Formatting rules and limitations

To get correct results, follow these formatting conventions:

  • Use t as the time variable for forward transforms and s for inverse transforms.
  • Write powers with a caret: t^2, not t2 or t**2.
  • Wrap exponents of e in parentheses: e^(3t) or e^(-2t).
  • Always include the multiplication sign or parentheses for function arguments: sin(2t), not sin2t.
  • Coefficients must appear before the function: 3t^2 or 5sin(t).

The calculator supports single-term expressions from its lookup table. It does not currently handle sums, products of different function types, or partial fraction decomposition. For solving systems of linear equations that arise after transforming, a dedicated equation solver is useful.

Applications in engineering and physics

Laplace transforms are central to control theory, circuit analysis, and signal processing. In electrical engineering, they convert integro-differential circuit equations into algebraic transfer functions. Mechanical engineers use them to model spring-mass-damper systems and analyze stability through pole locations in the s-plane.

Because the method replaces calculus with algebra, it simplifies the analysis of transient responses and steady-state behavior. Students studying differential equations encounter the transform early, making a reliable laplace transform calculator a practical reference for checking hand-computed results quickly.

Worked examples

Each result below was produced by the same code the tool runs, so you can check your own numbers against them.

ExampleInputResult
Forward: t squaredDirection: forward; Expression: t^2Input f(t): t^2; Transform F(s): 2/s^3
Forward: exponential decayDirection: forward; Expression: e^(-3t)Input f(t): e^(-3t); Transform F(s): 1/(s + 3)
Inverse: simple poleDirection: inverse; Expression: 1/(s+5)Input F(s): 1/(s+5); Transform f(t): e^(-5t)
Forward: sine waveDirection: forward; Expression: sin(4t)Input f(t): sin(4t); Transform F(s): 4/(s^2 + 16)

FAQ

What inputs does this laplace transform calculator accept?

It accepts single-term expressions such as constants, t^n, e^(at), sin(at), cos(at), sinh(at), and cosh(at) for the forward direction, and their corresponding s-domain forms for the inverse direction.

Can I enter a sum of two functions?

Not directly. The calculator matches single terms against its internal table. You can compute each term separately and add the results yourself, since the Laplace transform is a linear operator.

Why do I get an error for my expression?

Check the formatting rules. Use carets for powers, parentheses for exponents and function arguments, and ensure you are using t for forward and s for inverse transforms.

Is the computation done on a server?

No. The tool runs entirely in your browser using JavaScript. Your expressions are never sent over the network.

What is the region of convergence?

The region of convergence depends on the specific function and is not displayed by this calculator. For most standard engineering applications, it is assumed that s is large enough for the integral to converge.

Does it support the unit step function?

The current version focuses on elementary continuous functions. The unit step (Heaviside) function and Dirac delta are not yet included in the lookup table.