The Heaviside step function is defined as follows:
uc(t)=u(t−c)=H(t−c)={1ift≥c0ift<c
The unit step function is useful in the sense that piecewise continuous functions can be written in terms of step functions.
Example 1. Write f(t)=⎩⎨⎧2ift<15if1≤t<43ift≥4 in terms of step functions.
OK. We have here two switches at points 1 and 4, so we need 2 step functions, namely u1(t) and u4(t).
When t<1, both step functions are 0, and we need 2; so, the first term is 2.
On the interval [1,4), u1(t)=1, and we need 5; so, the second term (not forgetting about the first term 2) is (5−2)u1(t).
On the last interval, both step functions are 1; so, the third term (don't forget that summing up the first and second terms gives us 5) is (3−5)u4(t).
This process can be extended on functions that are not constant.
Example 2. Write f(t)=⎩⎨⎧t2ift<1tif1≤t<4t−1ift≥4 in terms of step functions.
OK. We have here two switches at points 1 and 4; so, we need 2 step functions, namely u1(t) and u4(t).
When t<1, both step functions are 0, and we need t2; so, the first term is t2.
On the interval [1,4), u1(t)=1, and we need t; so, the second term (not forgetting about the first term t2) is (t−t2)u1(t).
On the last interval, both step functions are 1; so, the third term (don't forget that summing up the first and second terms gives us t) is (t−1−t)u4(t).
Notice how we used above definition of the step function: on the interval [0,t), the step function is 0; so, the integral is also 0, and on the interval [t,∞), the step function is 1.
Now, using the change of variable, substitute t−c=u (or t=u+c); then, du=dt, and, since t is changing from c to ∞, u is changing from c−c=0 to ∞−c=∞.
So, ∫c∞e−stf(t−c)dt=∫0∞e−s(u+c)f(u)du=e−sc∫0∞e−suf(u)du=e−scF(s)
L(uc(t)f(t−c))=e−scF(s).
Taking the inverse Laplace of both sides gives that uc(t)f(t−c)=L−1(e−scF(s)).
Now, if we take f(t)=f(t−c)=1, we have that F(s)=L(f(t))=s1 and
L(uc(t))=se−sc, or uc(t)=L−1(se−sc).
All these results give a way to find the Laplace transform of piecewise functions: write a function in terms of step functions, perform the necessary shift, and take the Laplace transform of the given terms.
Example 3. Find the Laplace transform of f(t)={3ift<1tift≥1
First, write the function in terms of step functions: f(t)=3+(t−3)u1(t).
The second term must be in the form u1(t)f1(t−1); so, rewrite f1(t−1)=t−3 as t−1−2, so that it looks like f1(t)=t−2.
Example 4. Find the Laplace transform of f(t)=⎩⎨⎧0ift<3t2if3≤t<5cos(2t)+t2ift≥5
Writing the function in terms of the Heaviside function gives f(t)=t2u3(t)+cos(2t)u5(t). However, neither of the functions is shifted, so there is a work to shift them.
t2 should be in the form of f1(t−3); so, rewrite it: (t−3+3)2=(t−3)2+6(t−3)+9. This gives that f1(t)=t2+6t+9.
Next, cos(2t) should be in the form of f2(t−5); so, rewrite it: cos(2(t−5)+10). Therefore, f2(t)=cos(2t+10).
Of course, finding the Laplace transform of piecewise functions with the help of the Heaviside function can be a messy thing. Another way is to find the Laplace transform on each interval directly by definition (a step function is not needed, we just use the property of additivity of an integral). However, a step function is really useful when we need to find the inverse Laplace transform.
There will not be many examples on finding the inverse Laplace transform, because partial fraction decomposition and the convolution integral are the same main techniques. Just one thing has changed: if you see e−cs in the numerator, factor it out and keep in mind that the inverse transform will involve uc(t). The rest is the same as in the previous sections.
Example 5. Calculate L−1(s2+1e−5s).
This is a simple example. Factor out e−5s and use the fact that L−1(s2+11)=sin(t).
L(e−5ss2+11)=u5(t)sin(t−5)
Example 6. Calculate L−1((s+2)(s+3)se−3s+e−2s+se−5s).