Timedora

Laplace Transforms of Piecewise Inputs

A lesson on representing piecewise inputs with unit steps, applying the second shifting theorem, and checking transforms by direct integration.

Step functions, corrections, and time shifts

Build a piecewise function with step corrections

The unit step u(t−a)u(t-a) is 0 when t<at<a and 1 when t≥at\ge a. Multiplying a term by this step activates the term at time aa. To represent a change from an initial formula f0(t)f_0(t) to a new formula f1(t)f_1(t) at that time, add the activated difference:

f(t)=f0(t)+u(t−a)[f1(t)−f0(t)].f(t)=f_0(t)+u(t-a)\bigl[f_1(t)-f_0(t)\bigr].

Before the switch, the step is zero, so only the initial formula remains. At and after the switch, the step is one, and the added difference changes the formula to the new one. For multiple switches, add a correction for each change.

Apply the

If L{g(t)}=G(s)\mathcal L\{g(t)\}=G(s), then, for a≥0a\ge 0,

L{u(t−a)g(t−a)}=e−asG(s).\mathcal L\{u(t-a)g(t-a)\}=e^{-as}G(s).

The function paired with the step must be written using the shifted variable t−at-a. The factor e−ase^{-as} records the time at which the term is activated.

Example: a ramp becomes constant

Consider f(t)=tf(t)=t for 0≤t<20\le t<2, and f(t)=2f(t)=2 for t≥2t\ge2. The initial formula is tt; at time 2, the change is from tt to 2, so the correction is u(t−2)(2−t)u(t-2)(2-t). Thus,

f(t)=t+u(t−2)(2−t)=t−u(t−2)(t−2).f(t)=t+u(t-2)(2-t)=t-u(t-2)(t-2).

The correction is negative because after time 2 it must remove the ramp’s continued increase. The applies to the shifted form u(t−2)(t−2)u(t-2)(t-2). Since L{t}=1/s2\mathcal L\{t\}=1/s^2,

F(s)=1s2−e−2s1s2=1−e−2ss2.F(s)=\frac{1}{s^2}-e^{-2s}\frac{1}{s^2} =\frac{1-e^{-2s}}{s^2}.

The factor e−2se^{-2s} records the correction’s start time. The expression paired with the step is t−2t-2, the shifted variable—not the unshifted ramp tt.

Be careful about the variable inside the step

In the equivalent form

L{u(t−a)h(t)}=e−asL{h(t+a)},\mathcal L\{u(t-a)h(t)\}=e^{-as}\mathcal L\{h(t+a)\},

the function inside the transform on the right is found by replacing each tt in h(t)h(t) with t+at+a. For the ramp correction, h(t)=2−th(t)=2-t and a=2a=2, so h(t+2)=2−(t+2)=−th(t+2)=2-(t+2)=-t. Its transform is therefore −e−2s/s2-e^{-2s}/s^2, agreeing with the calculation above. This substitution prevents a common error: applying the exponential delay factor while leaving the accompanying function in the wrong variable.

Example: a finite-duration pulse

A pulse of height 3 that is on from t=1t=1 until t=4t=4, and zero elsewhere, turns on with a positive step and turns off with a negative one:

p(t)=3u(t−1)−3u(t−4).p(t)=3u(t-1)-3u(t-4).

Each step has transform L{u(t−a)}=e−as/s\mathcal L\{u(t-a)\}=e^{-as}/s. Therefore,

P(s)=3e−ss−3e−4ss=3(e−s−e−4s)s.P(s)=\frac{3e^{-s}}{s}-\frac{3e^{-4s}}{s} =\frac{3(e^{-s}-e^{-4s})}{s}.

The negative step cancels the height-3 contribution after time 4. In general, a pulse is represented by a positive step when it turns on and a negative step when it turns off.

and transform existence

Integrate one piece at a time

The definition of the Laplace transform lets you work directly from a piecewise function. If the formula is fk(t)f_k(t) on each interval [ak,ak+1)[a_k,a_{k+1}), integrate over that interval and add the results:

L{f(t)}=∫0∞e−stf(t) dt=∑k∫akak+1e−stfk(t) dt.\mathcal L\{f(t)\}=\int_0^\infty e^{-st}f(t)\,dt =\sum_k\int_{a_k}^{a_{k+1}}e^{-st}f_k(t)\,dt.

When appropriate, the final interval extends to infinity. This method does not require rewriting the function with unit steps and can also check a step-function calculation.

For the height-3 pulse that is on from 1 to 4, the only nonzero piece is 3 on [1,4)[1,4). Hence,

P(s)=∫143e−st dt=[−3se−st]14=3(e−s−e−4s)s.\begin{aligned} P(s)&=\int_1^4 3e^{-st}\,dt\\ &=\left[-\frac{3}{s}e^{-st}\right]_1^4\\ &=\frac{3(e^{-s}-e^{-4s})}{s}. \end{aligned}

This matches the result from the two step functions: the endpoint at 1 contributes the positive term, and the endpoint at 4 contributes the negative term.

Existence and switching-point values

Piecewise continuous inputs of exponential order have Laplace transforms for sufficiently large ss. This is a guarantee in that range; it does not claim that the transform exists for every value of ss.

The value assigned at a single switching point does not affect the transform. The integral is unchanged by changing a function at an isolated point, because that point contributes no interval of area. Thus, whether a piece’s endpoint is included in one interval or the next does not change the Laplace transform.

  • : A function that is 0 before time a and 1 from time a onward.

  • : A piecewise continuous input whose growth is bounded in the manner required for a Laplace transform to exist for sufficiently large ss.