Processed online by Toolvito
Laplace Transform Calculator
Type a function of t to get its Laplace transform F(s), or a function of s to get the inverse transform f(t), with the table rule used for each term. Unit steps u(t − a), delta functions and functions in pieces work too, and a differential equation with initial conditions can be solved by the transform.
How to use it
- Choose Laplace transform and the direction: ℒ{f(t)} (from t to s) or ℒ⁻¹{F(s)} (from s to t).
- Type the function, such as t^2 e^(-3t), 3 + 2t − 4sin(2t), (t − 2)u(t − 2) or (s + 1)/(s^2 + 2s + 5). For a function in pieces type one piece per line, such as t for 0 <= t < 2 and 2 for t >= 2.
- Select Transform. Read the steps, the answer and the checks; download the worked solution (text and JSON) and the graph of f(t).
Writing steps, deltas and pieces
- u(t − a), H(t − a) or step(t − a) is the unit step: 0 before t = a and 1 from t = a. It is how a function is switched on later.
- delta(t − a) (or dirac(t − a)) is the Dirac delta function, an impulse at t = a. Its transform is e^(−as).
- A function in pieces is written with unit steps first (each piece switched on at its start and off at its end), then each part is transformed with the second shifting theorem.
- Letters other than t and s, such as a, b or ω, are positive constants.
The rules in the steps
- Linearity, powers ℒ{tⁿ} = n!/sⁿ⁺¹, exponentials ℒ{e^(at)} = 1/(s − a), sine and cosine ℒ{sin bt} = b/(s² + b²) and ℒ{cos bt} = s/(s² + b²), and the hyperbolic functions.
- First shifting theorem ℒ{e^(at)·g(t)} = G(s − a), multiplication by tⁿ ℒ{tⁿ·g(t)} = (−1)ⁿ·dⁿG/dsⁿ, second shifting theorem ℒ{g(t)·u(t − a)} = e^(−as)·ℒ{g(t + a)}.
- Inverse transforms: partial fractions, each fraction matched to a table entry (completing the square for quadratic factors, tⁿ⁻¹e^(at)/(n − 1)! for repeated factors), e^(−as) factors moved by the second shifting theorem, and delta functions for the part of an improper fraction. The convolution theorem ℒ⁻¹{F·G} = ∫₀ᵗ f(τ)g(t − τ) dτ is offered as a method too.
- The region of convergence Re(s) > a is given with each forward transform.
Differential equations
Type a linear equation with constant coefficients, such as y'' + 3y' + 2y = e^(−3t), and the conditions at t = 0, such as y(0) = 1 and y'(0) = 0. Both sides are transformed with ℒ{y′} = sY − y(0) and ℒ{y″} = s²Y − sy(0) − y′(0), the equation is solved for Y(s), and the inverse transform gives y(t). The right side may contain unit steps and delta functions. Equations with other coefficients and conditions at other points are solved by the Differential Equation Solver.
How the answers are checked
A forward transform is compared with a numerical integral ∫₀^∞ e^(−st) f(t) dt at two values of s (mpmath quadrature, split at the jumps), and the inverse transform of the answer is compared with f. An inverse transform is transformed forward again and compared with mpmath’s numerical inversion (Talbot or de Hoog) at several times. An ODE solution is put back into the equation and its conditions and compared with SciPy’s numerical solver. A job stops after about 85 seconds rather than giving a guess.