Laplace Transform & ODE Solver
Built for engineering and BS Mathematics students. Find Laplace and inverse Laplace transforms, or solve a linear differential equation with initial conditions, with every step shown and the final answer checked numerically.
Use * for multiplication (2t and 3sin(2t) also work), ^ for powers, e^(...) or exp(), sin, cos, sinh, cosh. In ODEs write y', y'', y''' (up to third order, constant coefficients).
What it can solve
| Mode | Handles |
|---|---|
| Laplace | Sums of tn, eat, sin, cos, sinh, cosh and their products, using the table, first shifting theorem and multiplication by tn |
| Inverse Laplace | Proper rational functions N(s)/D(s): real, repeated and complex roots via partial fractions |
| ODE | Linear equations with constant coefficients up to order 3, any forcing term above, with initial conditions |
Worked example
Solve y′′ + 3y′ + 2y = 0 with y(0) = 1, y′(0) = 0. Transform: (s²Y − s) + 3(sY − 1) + 2Y = 0, hence Y = (s + 3)/((s+1)(s+2)) = 2/(s+1) − 1/(s+2). Inverse: y = 2e−t − e−2t.
How the answer is checked
For equations the solution is differentiated and substituted back into the ODE at several values of t, and the initial conditions are tested. For inverse transforms the partial fractions are recombined and compared with F(s). A green “verified” badge means those tests passed.
Not supported yet
Unit step and Dirac delta functions, variable-coefficient equations, systems of equations, and non-linear equations. In those cases Calvo shows a message instead of guessing.
The transforms you need most
- L{1} = 1/s and L{tⁿ} = n!/sⁿ⁺¹
- L{e^(at)} = 1/(s − a)
- L{sin bt} = b/(s² + b²) and L{cos bt} = s/(s² + b²)
- L{sinh bt} = b/(s² − b²) and L{cosh bt} = s/(s² − b²)
- First shifting theorem: L{e^(at) f(t)} = F(s − a)
- Derivatives: L{y′} = sY − y(0) and L{y″} = s²Y − s·y(0) − y′(0)
Worked transforms
L{t² e^(−3t)}: start with L{t²} = 2/s³, then shift s to s + 3 to get 2/(s + 3)³. L{e^(2t) cos 3t}: start with s/(s² + 9) and replace s by s − 2 to get (s − 2)/((s − 2)² + 9).
Inverse transform by partial fractions
To invert 1/(s(s + 1)), write it as 1/s − 1/(s + 1). Then L⁻¹ gives 1 − e^(−t). When the denominator has a repeated root, include one term for each power: for 1/(s²(s + 1)) you need A/s + B/s² + C/(s + 1).
A first-order ODE from start to finish
Solve y′ + 2y = e^(−t) with y(0) = 0. Transform: sY + 2Y = 1/(s + 1), so Y = 1/((s + 1)(s + 2)). Partial fractions give 1/(s + 1) − 1/(s + 2). Inverting: y = e^(−t) − e^(−2t). Check the initial condition: y(0) = 1 − 1 = 0. ✓ Check the equation at t = 0: y′(0) = −1 + 2 = 1, and y′ + 2y = 1 + 0 = 1 = e⁰. ✓
Common mistakes
- Leaving out the initial-condition terms when transforming y′ or y″.
- Shifting in the wrong direction: e^(at) replaces s by s − a, so e^(−3t) replaces s by s + 3.
- Forgetting the extra partial-fraction terms for a repeated root.
Laplace methods turn differential equations into algebra, which is why they are used for electrical circuits, control systems and vibrations in engineering courses.
FAQ
How do I solve a differential equation with the Laplace transform?
Transform both sides using L{y'} = sY − y(0) and L{y''} = s²Y − s y(0) − y'(0). Solve the algebraic equation for Y(s), split into partial fractions and take the inverse transform.
What is the Laplace transform of sin(at)?
a / (s² + a²).
What is the first shifting theorem?
If L{f(t)} = F(s) then L{eat f(t)} = F(s − a).
Why use Laplace transforms instead of direct methods?
They handle initial conditions automatically and make forcing terms such as steps and impulses easy to include. The price is that you must be comfortable with partial fractions to get back to a function of t.
What does the numerical check mean?
After finding an exact answer, the solver substitutes it back into the equation at several values of t. If the two sides agree, the answer is shown as verified.