Laplace of a Piecewise Function

Quick Answer

The Laplace of a piecewise function is computed by expressing each piece using Heaviside step functions u(t−a) and applying the time-shifting property: L{f(t−a)u(t−a)} = e^(−as)F(s). A function equaling f₁(t) on [0,a) and f₂(t) on [a,∞) becomes f₁(t) + [f₂(t)−f₁(t)]u(t−a).

Piecewise Laplace Transform: Step-by-Step Method

A piecewise Laplace transform converts a function defined by different expressions on different intervals into a single s-domain expression. The method has three steps. First, rewrite the piecewise function using Heaviside step functions: if f(t) = g₁(t) for 0 ≤ t < a and g₂(t) for t ≥ a, then f(t) = g₁(t) + [g₂(t) − g₁(t)]u(t−a). Second, distribute and apply the Laplace transform to each term. Third, use the second shifting theorem L{h(t−a)u(t−a)} = e^(−as)H(s) for shifted terms. The result is a combination of standard transforms multiplied by exponential delay factors e^(−as).

Key Formulas

Try it: Laplace transform

Change the example and press Calculate. Use * for multiplication and ^ for powers.

Laplace of a Piecewise Function: Worked Examples

Consider f(t) = t for 0 ≤ t < 2 and f(t) = 4 for t ≥ 2. Rewrite: f(t) = t + (4−t)u(t−2). Now L{t} = 1/s². For (4−t)u(t−2), substitute τ = t−2: when t = 2, τ = 0, and 4−t = 2−τ, so the term becomes (2−τ)u(τ)|_{τ=t−2} which is (2−(t−2))u(t−2). Apply shifting: L{(2−(t−2))u(t−2)} = e^(−2s)(2/s − 1/s²). The complete transform is F(s) = 1/s² + e^(−2s)(2/s − 1/s²). Each piece contributes clearly, and the exponentials track the switching times.

Piecewise Laplace Calculator: Automating Complex Decompositions

A piecewise Laplace calculator automates the decomposition and transform process for functions with multiple intervals. For a three-piece function with breakpoints at t = a and t = b, the calculator generates f₁(t) + [f₂(t)−f₁(t)]u(t−a) + [f₃(t)−f₂(t)]u(t−b), applies the shifting theorem to each Heaviside-weighted term, and combines the results. This is particularly valuable for engineering inputs like trapezoidal pulses (ramp up, hold, ramp down), staircase functions, and piecewise-linear approximations of nonlinear signals.

Common Piecewise Functions in Engineering Applications

Engineering frequently requires piecewise Laplace transforms for standard input types. A rectangular pulse of height A from t = a to t = b: A[u(t−a) − u(t−b)] with transform A(e^(−as) − e^(−bs))/s. A triangular pulse rising from 0 to A over [0,T] then falling back to 0 over [T,2T]: (A/T)t − (2A/T)(t−T)u(t−T) + (A/T)(t−2T)u(t−2T). A sawtooth wave on one period can be transformed and extended using the periodic function property. These standard piecewise inputs model realistic forcing functions in circuits, mechanical loading, and control system disturbances.

Tips for Simplifying Piecewise Laplace Transforms

Several techniques simplify piecewise Laplace transforms. First, always express shifted terms in the form g(t−a)u(t−a) rather than g(t)u(t−a), since only the former directly applies the shifting theorem. This often requires algebraic manipulation to rewrite expressions. Second, combine like terms before transforming—sometimes pieces cancel or simplify. Third, for symmetric or periodic piecewise functions, exploit symmetry properties to reduce computation. Fourth, verify results by checking the initial value theorem: lim(s→∞) sF(s) should match f(0⁺).

Frequently Asked Questions

Rewrite the piecewise function using Heaviside step functions u(t−a) to represent each interval transition. Then apply the second shifting theorem L{f(t−a)u(t−a)} = e^(−as)F(s) to each shifted term. The total transform is the sum of all individual transforms, with exponential factors encoding the breakpoints.

Step & Piecewise Laplace Calculator

Type heaviside(t - a), pulses, impulses or piecewise functions and get F(s) with a plot. Free.

Open the step function calculator

Related Topics