Suppose an input stays off for two seconds and then starts to rise like a ramp. In words the input is easy to describe, but Laplace transforms are easiest to use with a single formula valid for all t≥0, and it matters whether the ramp starts from zero at the switch or jumps straight to the height it would have had all along. This lesson writes switched inputs with the Heaviside step function, rewrites each piece in the time elapsed since its switch, and uses the second shifting theorem and a formula for periodic inputs. Throughout, t≥0 is time, a prime means a derivative with respect to t, and s is a complex number.
Key terms
Heaviside step function
Definition For a real number a, the Heaviside step function at a is
u(t−a)={0,1,t<a,t>a.Its value at t=a is a matter of convention, and 0, 1 and 21 are all in use. That value changes no integral, so it changes no Laplace transform. When the behavior of a solution at the switch matters, the differential equation decides it, not the value assigned to the step. Multiplying a function g by u(t−a) gives a function equal to 0 for t<a and to g(t) for t>a. For a≤0 the step equals 1 at every t>0, so only a>0 produces a real switch in a one-sided signal. For a≥0 and Res>0,
L{u(t−a)}(s)=∫a∞e−stdt=se−as.In plain words The step is a switch that is off before time a and on after it. Multiplying by it keeps a formula only from the switching time onward.
Example The step u(t−2) is 0 for 0≤t<2 and 1 for t>2, and its Laplace transform is e−2s/s for Res>0. A difference of two steps makes a window. The function u(t−1)−u(t−3) equals 1 for 1<t<3 and 0 for 0≤t<1 and for t>3, so multiplying a signal by it keeps the signal only between the times 1 and 3. Its Laplace transform is ∫13e−stdt=(e−s−e−3s)/s, valid for every s=0 because the window is zero after t=3.
Time shift
Definition Let f be defined for t≥0 and let a≥0. The signal f delayed by a is
u(t−a)f(t−a),which is 0 for 0≤t<a and f(t−a) for t>a. Its graph is the graph of f moved a units to the right. It reads f at the elapsed time τ=t−a since the switch, so after the switch it repeats the history of f from its own time 0. The step factor is part of the shift. Without it, the formula f(t−a) on 0≤t<a would need values of f at negative times, which a one-sided signal does not have. A delay is different from switching on the original signal, u(t−a)f(t), which reads f on the original clock. The two coincide only if f(t−a)=f(t) for every t>a, as for a constant f, so in general they are different inputs.
In plain words The step decides when the signal is on, and the argument of f decides which clock it reads. A delayed signal starts its own clock at the switch, while a switched-on signal has been running unseen since time 0.
Example Take f(t)=t and a=2. The delayed ramp u(t−2)(t−2) is 0 before t=2 and rises from height 0 with slope 1 after it, so it equals 1 at t=3. The switched-on ramp u(t−2)t is also 0 before t=2, but just after the switch it already has height 2, and it equals 3 at t=3. For t>2 the two differ by the constant 2, so the switched-on ramp jumps by 2 at the switch and the delayed ramp does not jump at all.
Definition Let 0<a1<a2<⋯<an be switching times. Suppose an input f is given by a formula g0(t) for 0≤t<a1, by gk(t) for ak<t<ak+1 when 1≤k<n, and by gn(t) for t>an. Then at every t≥0 other than the switching times
f(t)=g0(t)+k=1∑nu(t−ak)ck(t),where ck(t)=gk(t)−gk−1(t) is the correction at the kth switch, the new formula minus the old one. For aj<t<aj+1, or for t>an when j=n, exactly the first j corrections are on, and their sum telescopes to gj(t)−g0(t), which is why the formula is right. Before taking the Laplace transform, rewrite each correction in its own elapsed time, as ck(t)=dk(t−ak) with dk(τ)=ck(τ+ak). Then every term has the form of a delayed signal.
In plain words Start with the first formula. At each switch, add a step times what has to change, the new formula minus the old one. Then express each change in the time since its own switch.
Example An input is 0 for 0≤t<2, equals t−2 for 2≤t<4 and stays at 2 for t≥4, a ramp that levels off. The corrections are (t−2)−0 at t=2 and 2−(t−2)=−(t−4) at t=4, so
f(t)=u(t−2)(t−2)−u(t−4)(t−4).Both corrections are already written in their elapsed times. For t>4 the formula gives (t−2)−(t−4)=2, as it should. The second shifting theorem below then gives
F(s)=s2e−2s−e−4s,Res>0.Second shifting theorem
Definition Let f be defined for t≥0 and integrable on every bounded interval, let F=L{f}, and let a≥0. At every s where F(s) exists,
L{u(t−a)f(t−a)}=e−asF(s).The integrand vanishes for t<a. On [a,a+b] substitute τ=t−a, which splits the weight as e−st=e−ase−sτ,
∫aa+be−stf(t−a)dt=e−as∫0be−sτf(τ)dτ,and let b→∞. Read from right to left, the theorem inverts delays. If f=L−1{F}, then L−1{e−asF(s)}=u(t−a)f(t−a), so invert F first and then delay the whole function. For a signal that is switched on rather than delayed, the same substitution gives L{u(t−a)g(t)}=e−asL{g(t+a)}, which is the rewriting step done in one line.
In plain words Delaying a signal by a multiplies its Laplace transform by e−as, but only when the signal is written in the time elapsed since the switch. The exponential factor records when the signal starts, and F records what it does after that.
Example The delayed ramp u(t−2)(t−2) is the ramp f(t)=t, with F(s)=1/s2, delayed by 2. Its Laplace transform is e−2s/s2 for Res>0. The switched-on ramp u(t−2)t is not of this form yet. Writing t=(t−2)+2 gives
L{u(t−2)t}=e−2sL{t+2}=e−2s(s21+s2).The extra term 2e−2s/s is the Laplace transform of 2u(t−2), the jump to height 2 that the switched-on ramp starts with. Using e−2s/s2 for this input would describe the delayed ramp instead. Read backward, the theorem gives for instance L−1{e−3s/(s+1)}=u(t−3)e−(t−3).
Definition Let f be piecewise continuous on [0,∞) and periodic with period T>0, so f(t+T)=f(t) for all t≥0. Then for Res>0
F(s)FT(s)=1−e−sTFT(s),=∫0Te−stf(t)dt.The function f is bounded, because it repeats its values on [0,T], where it is bounded. So it is of exponential order 0, and F(s) exists for Res>0. Split [0,∞) into the blocks [nT,(n+1)T] and substitute t=τ+nT in the nth block. That block then contributes e−nsTFT(s), and the blocks form a geometric series with ratio e−sT, whose modulus e−TRes is less than 1. Summing the series gives the formula. Only one period enters the numerator, and the denominator accounts for all the repeats.
In plain words A periodic input is one block repeated forever. Each repeat is the first block delayed by another period, so it contributes the same integral times another factor e−sT, and these factors add up to 1/(1−e−sT).
Example Let f have period 2, with f(t)=1 for 0≤t<1 and f(t)=0 for 1≤t<2, a train of square pulses. One period gives F2(s)=∫01e−stdt=(1−e−s)/s. Since 1−e−2s=(1−e−s)(1+e−s), for Res>0
F(s)=s(1−e−2s)1−e−s=s(1+e−s)1.A single pulse u(t)−u(t−1) has the Laplace transform (1−e−s)/s, so the division by 1−e−2s is exactly what the repetition adds. As s→0+ the product sF(s) tends to 21, the average value of the pulse train. The same formula applied to sint with period 2π uses the one-period integral (1−e−2πs)/(s2+1) and returns the familiar L{sint}=1/(s2+1).
Check yourself
- Write the input that is 0 for 0≤t<1, equals 3 for 1<t<4 and is 0 for t>4 with step functions, and find its Laplace transform.
Show the answer
The corrections are 3−0=3 at t=1 and 0−3=−3 at t=4, so f(t)=3u(t−1)−3u(t−4). Each step u(t−a) has the Laplace transform e−as/s, so
F(s)=s3(e−s−e−4s).
Linearity gives this for Res>0. Because the input is zero after t=4, the integral ∫143e−stdt in fact converges for every s, the formula holds for every s=0, and F(0)=9 is the area of the pulse.
- A classmate writes L{u(t−3)t2}=2e−3s/s3. Explain the mistake and find the correct Laplace transform.
Show the answer
The factor e−3s may only multiply the Laplace transform of the active formula written in elapsed time. The classmate’s answer is the Laplace transform of u(t−3)(t−3)2, a parabola that starts from height 0 at t=3, whereas u(t−3)t2 jumps to 9 there. In the elapsed time τ=t−3 we have t=τ+3, so the active formula t2 becomes
(τ+3)2=τ2+6τ+9,
whose Laplace transform is 2/s3+6/s2+9/s. Hence, for Res>0,
L{u(t−3)t2}=e−3s(s32+s26+s9).
- Solve y′+y=u(t−2)(t−2) with y(0)=0 by the Laplace transform, and check the solution at the switch.
Show the answer
Since L{y′}=sY−y(0)=sY, the Laplace transform of the equation is (s+1)Y=e−2s/s2, so
Y(s)=e−2ss2(s+1)1.
Invert the undelayed fraction first. Partial fractions give
s2(s+1)1=−s1+s21+s+11,
which is the Laplace transform of g(t)=t−1+e−t. Then delay the whole function,
y(t)=u(t−2)g(t−2),
so y(t)=0 for 0≤t≤2 and y(t)=t−3+e2−t for t>2. On 0≤t<2 the zero solution satisfies y′+y=0 and y(0)=0. For t>2 the derivative is y′=1−e2−t, so y′+y=t−2, which is the input. At the switch y(2+)=2−3+1=0 and y′(2+)=1−1=0, so the solution and even its derivative join the zero solution without a jump. Multiplying the undelayed function by the step, as in u(t−2)(t−1+e−t), would put a jump of about 1.135 into the solution at t=2, which a first-order equation with a bounded input cannot produce.