"

Laplace Transform

4.5 Laplace Transform of Piecewise Functions

A. Step function

In this section, we explore how to apply the Laplace Transform to piecewise continuous functions. In the next section, we will address solving initial value problems that involve second-order differential equations with constant coefficients where the forcing function f(t) is a continuous piecewise function.

Jump discontinuities often occur in physical situations like switching mechanisms or abrupt changes in forces acting on the system. To handle such discontinuities in the Laplace domain, we utilize the unit step function to transform piecewise functions into a form amenable to Laplace transforms and subsequently find piecewise continuous inverses of Laplace transforms for the solution.

The unit step function (Heaviside function) u(t) is defined as

 u(t)={0t<01t0

It steps (or jumps) from 0 to 1 at t=0. By shifting the input argument t, we can move the step to different locations.

 u(t-a)={0t-a<01t-a0          ua(t)=u(t-a)={0t<a1ta

The step function can also be transformed, e.g., shifted, stretched, or compressed. For example, by multiplying u(t) by some constant M>1, we can stretch it vertically.

 Mu(t-a)={0t<aMta

Or by combined shifting and reflecting u(t), we can opposite the way the function switches on and off.

 1-u(t-a)={1t<a0ta

The step function enables us to represent any piecewise continuous function conveniently. For instance, consider the function

 f(t)={f0(t) 0t<af1(t)ta

 =f0(t){1 0t<a0ta +f1(t){0 0t<a1ta

 =f0(t)(1-u(t-a))+f1(t)u(t-a)

It can be rewritten as

 f(t)=f0(t)+u(t-a)(f1(t)-f0(t)) (4.5.1)

We can extend Equation 4.5.1 to more general continuous piecewise functions.

 f(t)={f0(t) 0t<af1(t)at<bf2(t)tb

 f(t)=f0(t)+u(t-a)(f1(t)-f0(t)) +u(t-b)(f2(t)-f1(t)) (4.5.2)

B. Laplace Transform of Piecewise Functions

The Laplace Transform of the step-modulated function is key in solving differential equations with piecewise forcing functions.

Theorem: Laplace Transform of a Step-Modulated Function. Let g(t)  be defined on [0,), suppose a0, and assume L{g(t+a)} exists for s>s0. Then

 L{u(t-a)g(t)}=e-asL{g(t+a)}  (4.5.3)

This theorem enables the transformation of step-modulated functions into the Laplace domain, which can then be manipulated algebraically.

 

Example 4.5.1: Find Laplace Transform of a Step-Modulated Function

Find the Laplace transform of u(t-1)3t2.

Show/Hide Solution

To apply Equation 4.5.3, we take g(t)=3t2  and  a=1. Therefore, we have

 g(t+1)=3(t+1)2 =3t2+6t+3

From the table then, we find L{g(t+1)}.

 L{g(t+1)}  =L{3t2+6t+3}

 =3L{t2} +6L{t} +L{3}

 =6s3+6s2+3s

Thus by Equation 4.5.3, we have

 L{u(t-1)3t2}=e-s(6s3+6s2+3s)

 

Example 4.5.2: Find Laplace Transform of a Piecewise Function

Find the Laplace transform of

 f(t)={2t-1  0t<24tt2

Show/Hide Solution

 

We first write f(t) in terms of the step function using Equation 4.5.1 with a=2f0(t)=2t-1, and f1(t)=4t.

 f(t)=2t-1+u(t-2)(4t-2t+1)

 =2t-1+u(t-2)(2t+1)

Taking the Laplace transform, we have

 L{f(t)}=L{2t-1} +L{u(t-2)(2t+1)}

To apply Equation 4.5.3 to the second term, we take g(t)=2t+1 and  a=2 .

 g(t+2)=2(t+2)+1 =2t+5

We have then

 L{f(t)}=L{2t-1} +e-2sL{g(t+2)}

 =L{2t}-L{1} +e-2sL{2t+5}

 =2s2-1s+e-2s(2s2+5s)

 

Try an Example

 

C. Inverse Laplace Transform of Piecewise Functions

The previous theorem also allows us to determine the inverse Laplace Transform of functions that arise from piecewise functions. However, it will be more convenient to shift the argument of g(t) and replace g(t) with g(t-a).

Translation in t Theorem. If a0  and L(g) exists for s>s0, then

 L{u(t-a)g(t-a)}=e-asL{g(t)}

Given G(s)=L{g(t)}, it is equivalent to

 u(t-a)g(t-a)  e-asG(s) (4.5.4)

 

Example 4.5.3: Find Inverse Laplace Transform

Find the inverse Laplace transform of the given function and find distinct formulas for h(t) on appropriate intervals.

 H(s)=2s-ss2+1+e-π2s(s-1s2+1)

Show/Hide Solution

Since H(s) has e-as as a factor, we use Equation 4.5.4 to determine the inverse.

Letting H0(s)=2s-ss2+1 and H1(s)=s-1s2+1, we obtain

 h0(t)=L-1{2s-ss2+1} =2-cos(t)

 h1(t)=L-1{ss2+1-1s2+1} =cos(t)-sin(t)

Using Equation 4.5.4 with a=π2 and linearity of L-1, we have

 h(t)= L-1{H0(s)} +L-1{e-π2sH1(s)}

    =h0(t) +u(t-π2)(h1(t-π2))

 =2-cos(t) +u(t-π2)(cos(t-π2)-sin(t-π2))

We simplify it using trigonometric identities: cos(t-π2)=sin(t) and sin(t-π2)=-cos(t). Applying these identities yields

 h(t)=2-cos(t) +u(t-π2)(sin(t)+cos(t))

From Equation 4.5.1, we recognize that

  • The expression without a unit function, 2-cos(t), corresponds to f0(t), the function active before the step.
  • The expression multiplied by the unit function, sin(t)+cos(t), represents the change in the function at the step, thus corresponding to f1-f0.

Given f0(t)=2-cos(t) , we can solve for f1(t).

 f1-f0=sin(t)+cos(t)

 f1-(2-cos(t))=sin(t)+cos(t)

f1(t)=sin(t)+2

We can now express h(t) as a piecewise function.

 h(t)={2-cos(t)  0t<π2sin(t)+2tπ2

 

Try an Example

 

Section 4.5 Exercises

  1. Find the Laplace transform, F(s) of f(t).

     f(t)={0ift<32(t-3)if3t<78ift>7.

    Show/Hide Answer

    F(s)=2e-3ss2-2e-7ss2

  2. Take the inverse Laplace transform to determine y(t). Enter ua(t) for u(t-a) if the unit function is a part of the inverse.

     Y(s)=e-2ss2+4s+8

    Show/Hide Answer

    y(t)=12sin(2(t-2))e-2(t-2)u2(t)

  3. Apply the Laplace transform to the differential equation, and solve for Y(s).

    y+9y=4(t-2)u2(t)-4(t-3)u3(t),  y(0)=y(0)=0

    Show/Hide Answer

     Y(s)=4e-2s-4e-3ss2(s2+9)

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Differential Equations Copyright © 2024 by Amir Tavangar is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.