Processing math: 81%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

8.4: The Unit Step Function

( \newcommand{\kernel}{\mathrm{null}\,}\)

In the next section we’ll consider initial value problems

ay+by+cy=f(t),y(0)=k0,y(0)=k1,

where a, b, and c are constants and f is piecewise continuous. In this section we’ll develop procedures for using the table of Laplace transforms to find Laplace transforms of piecewise continuous functions, and to find the piecewise continuous inverses of Laplace transforms.

Example 8.4.1

Use the table of Laplace transforms to find the Laplace transform of

f(t)={2t+1,0t<2,3t,t2

(Figure 8.4.1 ).

clipboard_e94e7d2604511848a7c8bb76ef9b58277.png
Figure 8.4.1 : The piecewise continuous function Equation ???.
Solution

Since the formula for f changes at t=2, we write

L(f)=0estf(t)dt=20est(2t+1)dt+2est(3t)dt.

To relate the first term to a Laplace transform, we add and subtract

2est(2t+1)dt

in Equation 8.4.3 to obtain

L(f)=0est(2t+1)dt+2est(3t2t1)dt=0est(2t+1)dt+2est(t1)dt=L(2t+1)+2est(t1)dt.

To relate the last integral to a Laplace transform, we make the change of variable x=t2 and rewrite the integral as

2est(t1)dt=0es(x+2)(x+1)dx=e2s0esx(x+1)dx.

Since the symbol used for the variable of integration has no effect on the value of a definite integral, we can now replace x by the more standard t and write

2est(t1)dt=e2s0est(t+1)dt=e2sL(t+1).

This and Equation 8.4.6 imply that

L(f)=L(2t+1)+e2sL(t+1).

Now we can use the table of Laplace transforms to find that

L(f)=2s2+1s+e2s(1s2+1s).

Laplace Transforms of Piecewise Continuous Functions

We’ll now develop the method of Example 8.4.1 into a systematic way to find the Laplace transform of a piecewise continuous function. It is convenient to introduce the unit step function, defined as

U(t)={0,t<01,t0.

Thus, U(t) “steps” from the constant value 0 to the constant value 1 at t=0. If we replace t by tτ in Equation ???, then

U(tτ)={0,t<τ,1,tτ;

that is, the step now occurs at t=τ (Figure 8.4.2 ).

clipboard_e54ae0f0300f79bb3341c8a1e1f04d5e0.png
Figure 8.4.2 : y=U(tτ)

The step function enables us to represent piecewise continuous functions conveniently. For example, consider the function

f(t)={f0(t),0t<t1,f1(t),tt1,

where we assume that f0 and f1 are defined on [0,), even though they equal f only on the indicated intervals. This assumption enables us to rewrite Equation ??? as

f(t)=f0(t)+U(tt1)(f1(t)f0(t)).

To verify this, note that if t<t1 then U(tt1)=0 and Equation ??? becomes

f(t)=f0(t)+(0)(f1(t)f0(t))=f0(t).

If tt1 then U(tt1)=1 and Equation ??? becomes

f(t)=f0(t)+(1)(f1(t)f0(t))=f1(t).

We need the next theorem to show how Equation ??? can be used to find L(f).

Theorem 8.4.1

Let g be defined on [0,). Suppose τ0 and L(g(t+τ)) exists for s>s0. Then L(U(tτ)g(t)) exists for s>s0, and

L(U(tτ)g(t))=esτL(g(t+τ)).

Proof

By definition,

L(U(tτ)g(t))=0estU(tτ)g(t)dt.

From this and the definition of U(tτ),

L(U(tτ)g(t))=τ0est(0)dt+τestg(t)dt.

The first integral on the right equals zero. Introducing the new variable of integration x=tτ in the second integral yields

L(U(tτ)g(t))=0es(x+τ)g(x+τ)dx=esτ0esxg(x+τ)dx.

Changing the name of the variable of integration in the last integral from x to t yields

L(U(tτ)g(t))=esτ0estg(t+τ)dt=esτL(g(t+τ)).

Example 8.4.2

Find L(U(t1)(t2+1)).

Solution

Here τ=1 and g(t)=t2+1, so

g(t+1)=(t+1)2+1=t2+2t+2.

Since

L(g(t+1))=2s3+2s2+2s,

Theorem 8.4.1 implies that

L(U(t1)(t2+1))=es(2s3+2s2+2s).

Example 8.4.3

Use Theorem 8.4.1 to find the Laplace transform of the function

f(t)={2t+1,0t<2,3t,t2,

from Example 8.4.1 .

Solution

We first write f in the form Equation ??? as

f(t)=2t+1+U(t2)(t1).

Therefore

L(f)=L(2t+1)+L(U(t2)(t1))=L(2t+1)+e2sL(t+1) (from Theorem 8.4.1)=2s2+1s+e2s(1s2+1s),

which is the result obtained in Example 8.4.1 .

Formula Equation ??? can be extended to more general piecewise continuous functions. For example, we can write

f(t)={f0(t),0t<t1,f1(t),t1t<t2,f2(t),tt2,

as

f(t)=f0(t)+U(tt1)(f1(t)f0(t))+U(tt2)(f2(t)f1(t))

if f0, f1, and f2 are all defined on [0,).

Example 8.4.4

Find the Laplace transform of

f(t)={1,0t<2,2t+1,2t<3,3t,3t<5,t1,t5

(Figure 8.4.3 ).

clipboard_e97c70af41208889def240d4d2847187d.png
Figure 8.4.3 : The piecewise continuous function Equation ???
Solution

In terms of step functions,

f(t)=1+U(t2)(2t+11)+U(t3)(3t+2t1)=+U(t5)(t13t),

or

f(t)=12U(t2)t+U(t3)(5t1)U(t5)(2t+1).

Now Theorem 8.4.1 implies that

L(f)=L(1)2e2sL(t+2)+e3sL(5(t+3)1)e5sL(2(t+5)+1)=L(1)2e2sL(t+2)+e3sL(5t+14)e5sL(2t+11)=1s2e2s(1s2+2s)+e3s(5s2+14s)e5s(2s2+11s).

The trigonometric identities

sin(A+B)=sinAcosB+cosAsinB

cos(A+B)=cosAcosBsinAsinB

are useful in problems that involve shifting the arguments of trigonometric functions. We’ll use these identities in the next example.

Example 8.4.5

Find the Laplace transform of

f(t)={sint,0t<π2cost3sint,π2t<π3cost,tπ

(Figure 8.4.4 ).

clipboard_eb2aa8d97b471b88d6b62bb7f7bad9c42.png
Figure 8.4.4 : The piecewise continuous function Equation ???.
Solution

In terms of step functions,

f(t)=sint+U(tπ/2)(cost4sint)+U(tπ)(2cost+3sint).

Now Theorem 8.4.1 implies that

L(f)=L(sint)+eπ2sL(cos(t+π2)4sin(t+π2))+eπsL(2cos(t+π)+3sin(t+π)).

Since

cos(t+π2)4sin(t+π2)=sint4cost

and

2cos(t+π)+3sin(t+π)=2cost3sint,

we see from Equation ??? that

\begin{align*} {\mathscr L}(f)&={\mathscr L}(\sin t)-e^{-\pi s/2}{\mathscr L}(\sin t+4\cos t) -e^{-\pi s}{\mathscr L}(2\cos t+3\sin t)\\[4pt]&={1\over s^2+1}-e^{-{\pi\over 2}s}\left({1+4s\over s^2+1}\right) -e^{-\pi s}\left({3+2s\over s^2+1}\right). \end{align*}\nonumber

The Second Shifting Theorem

Replacing g(t) by g(t-\tau) in Theorem 8.4.1 yields the next theorem.

Theorem 8.4.2 : Second Shifting Theorem

If \tau\ge0 and {\mathscr L}(g) exists for s>s_0 then {\mathscr L}\left({\mathscr U}(t-\tau)g(t-\tau)\right) exists for s>s_0 and

{\mathscr L}({\mathscr U}(t-\tau)g(t-\tau))=e^{-s\tau}{\mathscr L}(g(t)),\nonumber

or, equivalently,

\label{eq:8.4.12} \mbox{if } g(t)\leftrightarrow G(s),\mbox{ then }{\mathscr U}(t-\tau)g(t-\tau)\leftrightarrow e^{-s\tau}G(s).

Note

Recall that the First Shifting Theorem (Theorem 8.1.3 states that multiplying a function by e^{at} corresponds to shifting the argument of its transform by a units. Theorem 8.4.2 states that multiplying a Laplace transform by the exponential e^{−\tau s} corresponds to shifting the argument of the inverse transform by \tau units.

Example 8.4.6

Use Equation \ref{eq:8.4.12} to find

{\mathscr L}^{-1}\left(e^{-2s}\over s^2\right). \nonumber

Solution

To apply Equation \ref{eq:8.4.12} we let \tau=2 and G(s)=1/s^2. Then g(t)=t and Equation \ref{eq:8.4.12} implies that

{\mathscr L}^{-1}\left(e^{-2s}\over s^2\right)={\mathscr U}(t-2)(t-2).\nonumber

Example 8.4.7

Find the inverse Laplace transform h of

H(s)={1\over s^2}-e^{-s}\left({1\over s^2}+{2\over s}\right)+ e^{-4s}\left({4\over s^3}+{1\over s}\right),\nonumber

and find distinct formulas for h on appropriate intervals.

Solution

Let

G_0(s)={1\over s^2},\quad G_1(s)={1\over s^2}+{2\over s},\quad G_2(s)={4\over s^3}+{1\over s}.\nonumber

Then

g_0(t)=t,\; g_1(t)=t+2,\; g_2(t)=2t^2+1.\nonumber

Hence, Equation \ref{eq:8.4.12} and the linearity of {\mathscr L}^{-1} imply that

\begin{aligned} h(t)&={\mathscr L}^{-1}\left(G_0(s)\right)-{\mathscr L}^{-1}\left(e^{-s}G_1(s)\right)+{\mathscr L}^{-1}\left(e^{-4s}G_2(s)\right)\\[4pt]&=t-{\mathscr U}(t-1)\left[(t-1)+2\right]+{\mathscr U}(t-4)\left[2(t-4)^2+1\right]\\[4pt]&=t-{\mathscr U}(t-1)(t+1)+{\mathscr U}(t-4)(2t^2-16t+33),\end{aligned}\nonumber

which can also be written as

h(t)=\left\{\begin{array}{cl} t,&0\le t<1,\\[4pt]-1,&1\le t<4,\\[4pt]2t^2-16t+32,&t\ge4. \end{array}\right.\nonumber

Example 8.4.8

Find the inverse transform of

H(s)={2s\over s^2+4}-e^{-{\pi\over 2}s} {3s+1\over s^2+9}+e^{-\pi s}{s+1\over s^2+6s+10}. \nonumber

Solution

Let

G_0(s)={2s\over s^2+4},\quad G_1(s)=-{(3s+1)\over s^2+9},\nonumber

and

G_2(s)={s+1\over s^2+6s+10}={(s+3)-2\over (s+3)^2+1}.\nonumber

Then

g_0(t)=2\cos 2t,\quad g_1(t)=-3\cos 3t-{1\over 3}\sin 3t,\nonumber

and

g_2(t)=e^{-3t}(\cos t-2\sin t).\nonumber

Therefore Equation \ref{eq:8.4.12} and the linearity of {\mathscr L}^{-1} imply that

\begin{aligned} h(t)&=2\cos 2t-{\mathscr U}(t-\pi/2)\left[3\cos 3(t-\pi/2)+{1\over 3}\sin 3\left(t-{\pi\over 2}\right)\right]\\[4pt] &= +{\mathscr U}(t-\pi)e^{-3(t-\pi)}\left[\cos (t-\pi)-2\sin (t-\pi)\right].\end{aligned}\nonumber

Using the trigonometric identities Equation \ref{eq:8.4.8} and Equation \ref{eq:8.4.9}, we can rewrite this as

\label{eq:8.4.13} \begin{align} h(t)&=2\cos 2t+{\mathscr U}(t-\pi/2)\left(3\sin 3t- {1\over 3}\cos 3t\right) \\[4pt] &= -{\mathscr U}(t-\pi)e^{-3(t-\pi)} (\cos t-2\sin t) \end{align}

(Figure 8.4.5 ).

clipboard_e5a17aaafa9e42fd097fa788bfb479dbe.png
Figure 8.4.5 : The piecewise continuous function Equation \ref{eq:8.4.13}.

This page titled 8.4: The Unit Step Function is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by William F. Trench.

Support Center

How can we help?