Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

7.5: Constant Coefficient Equations with Piecewise Continuous Forcing Functions

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

We’ll now consider initial value problems of the form

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

where a, b, and c are constants (a0) and f is piecewise continuous on [0,). Problems of this kind occur in situations where the input to a physical system undergoes instantaneous changes, as when a switch is turned on or off or the forces acting on the system change abruptly.

It can be shown (Exercises 8.5.23 and 8.5.24) that the differential equation in Equation ??? has no solutions on an open interval that contains a jump discontinuity of f. Therefore we must define what we mean by a solution of Equation ??? on [0,) in the case where f has jump discontinuities. The next theorem motivates our definition. We omit the proof.

Theorem 7.5.1

Suppose a,b, and c are constants (a0), and f is piecewise continuous on [0,). with jump discontinuities at t1, …, tn, where

0<t1<<tn.

Let k0 and k1 be arbitrary real numbers. Then there is a unique function y defined on [0,) with these properties:

  1. y(0)=k0 and y(0)=k1.
  2. y and y are continuous on [0,).
  3. y is defined on every open subinterval of [0,) that does not contain any of the points t1, …, tn, and ay+by+cy=f(t) on every such subinterval.
  4. y has limits from the right and left at t1,, tn.

We define the function y of Theorem 7.5.1 to be the solution of the initial value problem Equation ???.

We begin by considering initial value problems of the form

ay+by+cy={f0(t),0t<t1,f1(t),tt1,y(0)=k0,y(0)=k1,

where the forcing function has a single jump discontinuity at t1.

Howto: Solve Constant Coefficient Equations with Piecewise Continuous Forcing Functions

We can solve Equation ??? by the these steps:

  • Step 1. Find the solution y0 of the initial value problem ay+by+cy=f0(t),y(0)=k0,y(0)=k1.
  • Step 2. Compute c0=y0(t1) and c1=y0(t1).
  • Step 3. Find the solution y1 of the initial value problem ay+by+cy=f1(t),y(t1)=c0,y(t1)=c1.
  • Step 4. Obtain the solution y of Equation ??? as y={y0(t),0t<t1y1(t),tt1.

It is shown in Exercise 8.5.23 that y exists and is continuous at t1. The next example illustrates this procedure.

Example 7.5.1

Solve the initial value problem

y+y=f(t),y(0)=2,y(0)=1,

where

f(t)={1,0t<π2,1,tπ2.

clipboard_e927f5199b4946521a03eee18386e1b2f.png
Figure 7.5.1: Graph of Equation ???

Solution

The initial value problem in Step 1 is

y+y=1,y(0)=2,y(0)=1.

We leave it to you to verify that its solution is

y0=1+costsint.

Doing Step 2 yields y0(π/2)=0 and y0(π/2)=1, so the second initial value problem is

y+y=1,y(π2)=0,y(π2)=1.

We leave it to you to verify that the solution of this problem is

y1=1+cost+sint.

Hence, the solution of Equation ??? is

y={1+costsint,0t<π2,1+cost+sint,tπ2

If f0 and f1 are defined on [0,), we can rewrite Equation ??? as

ay+by+cy=f0(t)+u(tt1)(f1(t)f0(t)),y(0)=k0,y(0)=k1,

and apply the method of Laplace transforms. We’ll now solve the problem considered in Example [example:8.5.1} by this method.

Example 7.5.2

Use the Laplace transform to solve the initial value problem

y+y=f(t),y(0)=2,y(0)=1,

where

f(t)={1,0t<π2,1,tπ2.

Solution

Here

f(t)=12u(tπ2),

so Theorem 7.5.1 (with g(t)=1) implies that

L(f)=12eπs/2s.

Therefore, transforming Equation ??? yields

(s2+1)Y(s)=12eπs/2s1+2s,

so

Y(s)=(12eπs/2)G(s)+2s1s2+1,

with

G(s)=1s(s2+1).

The form for the partial fraction expansion of G is

1s(s2+1)=As+Bs+Cs2+1.

Multiplying through by s(s2+1) yields

A(s2+1)+(Bs+C)s=1,

or

(A+B)s2+Cs+A=1.

Equating coefficients of like powers of s on the two sides of this equation shows that A=1, B=A=1 and C=0. Hence, from Equation ???,

G(s)=1sss2+1.

Therefore

g(t)=1cost.

From this, Equation ???, and Theorem 8.4.2,

y=1cost2u(tπ2)(1cos(tπ2))+2costsint.

Simplifying this (recalling that cos(tπ/2)=sint) yields

y=1+costsint2u(tπ2)(1sint),

or

y={1+costsint,0t<π21+cost+sint,tπ2

which is the result obtained in Example 7.5.1.

Note

It isn’t obvious that using the Laplace transform to solve Equation ??? as we did in Example 7.5.2 yields a function y with the properties stated in Theorem 7.5.1; that is, such that y and y are continuous on [0,) and y has limits from the right and left at t1. However, this is true if f0 and f1 are continuous and of exponential order on [0,). A proof is sketched in Exercises 8.6.11–8.6.13.

Example 7.5.3

Solve the initial value problem

yy=f(t),y(0)=1,y(0)=2,

where

f(t)={t,0t<1,1,t1.

Solution

Here

f(t)=tu(t1)(t1),

so

L(f)=L(t)L(u(t1)(t1))=L(t)esL(t) (from Theorem 8.4.1)=1s2ess2.

Since transforming Equation ??? yields

(s21)Y(s)=L(f)+2s,

we see that

Y(s)=(1es)H(s)+2ss21,

where

H(s)=1s2(s21)=1s211s2;

therefore

h(t)=sinhtt.

Since

L1(2ss21)=2sinhtcosht,

we conclude from Equation ???, Equation ???, and Theorem 7.5.1 that

y=sinhttu(t1)(sinh(t1)t+1)+2sinhtcosht,

or

y=3sinhtcoshttu(t1)(sinh(t1)t+1)

We leave it to you to verify that y and y are continuous and y has limits from the right and left at t1=1.

Example 7.5.4

Solve the initial value problem

y+y=f(t),y(0)=0,y(0)=0,

where

f(t)={0,0t<π4cos2tπ4t<π0,tπ

Solution

Here

f(t)=u(tπ/4)cos2tu(tπ)cos2t,

so

L(f)=L(u(tπ/4)cos2t)L(u(tπ)cos2t)=eπs/4L(cos2(t+π/4))eπsL(cos2(t+π))=eπs/4L(sin2t)eπsL(cos2t)=2eπs/4s2+4seπss2+4.

Since transforming Equation ??? yields

(s2+1)Y(s)=L(f),

we see that

Y(s)=eπs/4H1(s)+eπsH2(s),

where

H1(s)=2(s2+1)(s2+4) and H2(s)=s(s2+1)(s2+4).

To simplify the required partial fraction expansions, we first write

1(x+1)(x+4)=13[1x+11x+4].

Setting x=s2 and substituting the result in Equation ??? yields

H1(s)=23[1s2+11s2+4] and H2(s)=13[ss2+1ss2+4].

The inverse transforms are

h1(t)=23sint+13sin2t and h2(t)=13cost+13cos2t.

From Equation ??? and Theorem 8.4.2,

y=u(tπ4)h1(tπ4)+u(tπ)h2(tπ).

Since

h1(tπ4)=23sin(tπ4)+13sin2(tπ4)=23(sintcost)13cos2t

and

h2(tπ)=13cos(tπ)+13cos2(tπ)=13cost+13cos2t,

Equation ??? can be rewritten as

y=13u(tπ4)(2(sintcost)+cos2t)+13u(tπ)(cost+cos2t)

or

{0,0t<π423(sintcost)13cos2t,π4t<π,23sint+1+23cost,tπ

We leave it to you to verify that y and y are continuous and y has limits from the right and left at t1=π/4 and t2=π (Figure 7.5.2).

clipboard_e6cb2e1543a8a16e2d55b3da1ca579f94.png
Figure 7.5.2: Graph of Equation ???

This page titled 7.5: Constant Coefficient Equations with Piecewise Continuous Forcing Functions 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?