Step Functions-Differential Equations and Transforms-Handout, Exercises of Differential Equations and Transforms

Dr. Saibya Ajkhyat distributed this handout at Ankit Institute of Technology and Science for Differential Equations and Transforms course. It includes: Step, Functions, Differential, Equations, Heaviside, Laplace, Transform, Switch, Interval

Typology: Exercises

2011/2012

Uploaded on 07/17/2012

saritae
saritae 🇮🇳

4.5

(10)

101 documents

1 / 13

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Differential Equations
© 2007 Paul Dawkins 24 http://tutorial.math.lamar.edu/terms.aspx
Step Functions
Before proceeding into solving differential equations we should take a look at one more function.
Without Laplace transforms it would be much more difficult to solve differential equations that
involve this function in g(t).
The function is the Heaviside function and is defined as,
()
0if
1if
c
tc
ut
tc
<
ì
=í
³
î
Here is a graph of the Heaviside function.
Heaviside functions are often called step functions. Here is some alternate notation for Heaviside
functions.
(
)
(
)
(
)
c
ututcHtc
=-=-
We can think of the Heaviside function as a switch that is off until t = c at which point it turns on
and takes a value of 1. So what if we want a switch that will turn on and takes some other value,
say 4, or -7?
Heaviside functions can only take values of 0 or 1, but we can use them to get other kinds of
switches. For instance 4uc(t) is a switch that is off until t = c and then turns on and takes a value
of 4. Likewise, -7uc(t) will be a switch that will take a value of -7 when it turns on.
Now, suppose that we want a switch that is on (with a value of 1) and then turns off at t = c. We
can use Heaviside functions to represent this as well. The following function will exhibit this
kind of behavior.
()
101if
1110if
c
tc
ut
tc
-=<
ì
-=
í
-
î
Prior to t = c the Heaviside is off and so has a value of zero. The function as whole then for t < c
has a value of 1. When we hit t = c the Heaviside function will turn on and the function will now
take a value of 0.
We can also modify this so that it has values other than 1 when it is one. For instance,
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Step Functions-Differential Equations and Transforms-Handout and more Exercises Differential Equations and Transforms in PDF only on Docsity!

© 2007 Paul Dawkins 24 http://tutorial.math.lamar.edu/terms.aspx

Step Functions

Before proceeding into solving differential equations we should take a look at one more function.

Without Laplace transforms it would be much more difficult to solve differential equations that

involve this function in g(t).

The function is the Heaviside function and is defined as,

0 if

1 if

c

t c u t t c

Ï <

= Ì

Ó ≥

Here is a graph of the Heaviside function.

Heaviside functions are often called step functions. Here is some alternate notation for Heaviside

functions.

uc ( t ) = u t ( - c ) = H ( t - c )

We can think of the Heaviside function as a switch that is off until t = c at which point it turns on

and takes a value of 1. So what if we want a switch that will turn on and takes some other value,

say 4, or -7?

Heaviside functions can only take values of 0 or 1, but we can use them to get other kinds of

switches. For instance 4 uc(t) is a switch that is off until t = c and then turns on and takes a value

of 4. Likewise, -7 uc(t) will be a switch that will take a value of -7 when it turns on.

Now, suppose that we want a switch that is on (with a value of 1) and then turns off at t = c. We

can use Heaviside functions to represent this as well. The following function will exhibit this

kind of behavior.

1 0 1 if 1 1 1 0 if

c

t c u t t c

Ï^ -^ =^ <

- = Ì

Ó -^ =^ ≥

Prior to t = c the Heaviside is off and so has a value of zero. The function as whole then for t < c

has a value of 1. When we hit t = c the Heaviside function will turn on and the function will now

take a value of 0.

We can also modify this so that it has values other than 1 when it is one. For instance,

© 2007 Paul Dawkins 25 http://tutorial.math.lamar.edu/terms.aspx

3 - 3 uc ( t )

will be a switch that has a value of 3 until it turns off at t = c.

We can also use Heaviside functions to represent much more complicated switches.

Example 1 Write the following function (or switch) in terms of Heaviside functions.

4 if 6

25 if 6 8

16 if 8 30

10 if 30

t

t f t t

t

Ï^ -^ <

Ô

Ô £^ <

= Ì

Ô

Ô ≥

Ó

Solution

There are three sudden shifts in this function and so (hopefully) it’s clear that we’re going to need

three Heaviside functions here, one for each shift in the function. Here’s the function in terms of

Heaviside functions.

f ( t ) = - 4 + 29 u 6 ( t ) - 9 u 8 ( t ) - 6 u 30 ( t )

It’s fairly easy to verify this.

In the first interval, t < 6 all three Heaviside functions are off and the function has the value

f ( t ) = - 4

Notice that when we know that Heaviside functions are on or off we tend to not write them at all

as we did in this case.

In the next interval, 6 £ t < 8 the first Heaviside function is now on while the remaining two are

still off. So, in this case the function has the value.

f ( t ) = - 4 + 29 = 25

In the third interval, 8 £ t < 30 the first two Heaviside functions are one while the last remains

off. Here the function has the value.

f ( t ) = - 4 + 29 - 9 = 16

In the last interval, t ≥ 30 all three Heaviside function are one and the function has the value.

f ( t ) = - 4 + 29 - 9 - 6 = 10

So, the function has the correct value in all the intervals.

All of this is fine, but if we continue the idea of using Heaviside function to represent switches,

we really need to acknowledge that most switches will not turn on and take constant values. Most

switches will turn on and vary continually with the value of t.

So, let’s consider the following function.

© 2007 Paul Dawkins 27 http://tutorial.math.lamar.edu/terms.aspx

Notice that we took advantage of the fact that the Heaviside function will be zero if t < c and 1

otherwise. This means that we can drop the Heaviside function and start the integral at c instead

of 0. Now use the substitution u = t – c and the integral becomes,

{ ( )^ (^ )}

( )

0

0

c

s u c

su c s

u t f t c f u du

f u du

  • (^) -
  • =

Ú

Ú

e

e e

L

The second exponential has no u ’s in it and so it can be factored out of the integral. Note as well

that in the substitution process the lower limit of integration went back to 0.

{ ( )^ (^ )} (^ ) c 0

c s su u t f t c f u du

  • • -
  • = Ú

L e e

Now, the integral left is nothing more than the integral that we would need to compute if we were

going to find the Laplace transform of f(t). Therefore, we get the following formula

{ (^) c^ (^ )^ (^ )} (^ )

c s u t f t c F s

L - = e (2)

In order to use (2) the function f(t) must be shifted by c , the same value that is used in the

Heaviside function. Also note that we only take the transform of f(t) and not f(t-c)! We can also

turn this around to get a useful formula for inverse Laplace transforms.

{ (^ )} (^ )^ (^ )

1 c

c s F s u t f t c

L e = - (3)

We can use (2) to get the Laplace transform of a Heaviside function by itself. To do this we will

consider the function in (2) to be f(t) = 1. Doing this gives us

{ ( )} { ( ) } { }

c c^1

c s c s c s u t u t s s

= = = =

e L L g e L e

Putting all of this together leads to the following two formulas.

{ ( )} ( )

1 c c

c s c s

u t u t s s

      • Ï^ ¸ = (^) Ì ˝=

Ó ˛

e e L L (4)

Let’s do some examples.

Example 2 Find the Laplace transform of each of the following.

(a) (^) ( ) ( ) ( ) ( ) (^) ( ) ( )

(^3 12 )

12 6 4

t g t u t t u t u t

= + - - - e [Solution]

(b) ( ) ( ) ( ) ( )

2 f t = - t u 3 (^) t + cos t u 5 t [Solution]

(c) ( )

4

4

if 5

3sin if 5 10 2

t t

h t (^) t t t

Ï <

Ô

= Ì Ê ˆ

+ Á - ˜ ≥

Ô

Ó Ë^ ¯

[Solution]

(d) ( )

2

if 6

8 6 if 6

t t

f t t t

Ï^ <

Ô

= Ì

Ô-^ +^ -^ ≥

Ó

[Solution]

© 2007 Paul Dawkins 28 http://tutorial.math.lamar.edu/terms.aspx

Solution

In all of these problems remember that the function MUST be in the form

uc ( t ) f ( t - c )

before we start taking transforms. If it isn’t in that form we will have to put it into that form!

(a) (^) ( ) ( ) ( ) ( ) (^) ( ) ( )

(^3 12 ) (^10 12 2 6 6 7 )

t g t u t t u t u t

= + - - - e

So there are three terms in this function. The first is simply a Heaviside function and so we can

use (4) on this term. The second and third terms however have functions with them and we need

to identify the functions that are shifted for each of these. In the second term it appears that we

are using the following function,

3 3 f t = 2 t fi f t - 6 = 2 t - 6

and this has been shifted by the correct amount.

The third term uses the following function,

3 3 (^4 ) 12 3 7 4 7 7

t t t f t f t

  • -^ - - = - e fi - = - e = - e

which has also been shifted by the correct amount.

With these functions identified we can now take the transform of the function.

12 6 4 3 1

12 6 4 3 1

s s s

s s s

G s s s s s

s s s s

Ê ˆ

= + - Á - ˜

Ë + ¯

Ê ˆ

= + - Á - ˜

Ë + ¯

e e e

e e e

[Return to Problems]

(b) ( ) ( ) ( ) ( )

2 f t = - t u 3 (^) t +cos t u 5 t

This part is going to cause some problems. There are two terms and neither has been shifted by

the proper amount. The first term needs to be shifted by 3 and the second needs to be shifted by

  1. So, since they haven’t been shifted, we will need to force the issue. We will need to add in the

shifts, and then take them back out of course. Here they are.

2 f t = - t - 3 + 3 u 3 (^) t + cos t - 5 + 5 u 5 t

Now we still have some potential problems here. The first function is still not really shifted

correctly, so we’ll need to use

(^2 2 ) a + b = a + 2 ab + b

to get this shifted correctly.

The second term can be dealt with in one of two ways. The first would be to use the formula

cos ( a + b ) = cos ( a ) cos ( b ) - sin ( a ) sin( b )

to break it up into cosines and sines with arguments of t -5 which will be shifted as we expect.

There is an easier way to do this one however. From our table of Laplace transforms we have

#16 and using that we can see that if

© 2007 Paul Dawkins 30 http://tutorial.math.lamar.edu/terms.aspx

(d) ( )

2

if 6

8 6 if 6

t t

f t

t t

Ï^ <

Ô

= Ì

Ô-^ +^ -^ ≥

Ó

Again, the first thing that we need to do is write the function in terms of Heaviside functions.

2 f t = t + - 8 - t + t - 6 u 6 t

We had to add in a “-8” in the second term since that appears in the second part and we also had

to subtract a t in the second term since the t in the first portion is no longer there. This subtraction

of the t adds a problem because the second function is no longer correctly shifted. This is easier

to fix than the previous example however.

Here is the corrected function.

( (^ )^ (^ ) ) ( )

( (^ )^ (^ ) ) ( )

2 6 2 6 2 6 8 6 6 6

f t t t t u t

t t t u t

t t t u t

So, in the second term it looks like we are shifting

2 g t = t - t - 14

The transform is then,

6 2 3 2

(^1 2 1 14) s F s s s s s

Ê ˆ -

= + Á - - ˜

Ë ¯

e

[Return to Problems]

Without the Heaviside function taking Laplace transforms is not a terribly difficult process

provided we have our trusty table of transforms. However, with the advent of Heaviside

functions, taking transforms can become a fairly messy process on occasion.

So, let’s do some inverse Laplace transforms to see how they are done.

Example 3 Find the inverse Laplace transform of each of the following.

(a) ( )

4

s s H s s s

=

e [Solution]

(b) ( )

6 11

2

s s

G s s s

=

e e [Solution]

(c) ( )

s s F s s s

=

e [Solution]

(d) ( )

20 3 7

2

s s s s s G s s s


=

e e e [Solution]

© 2007 Paul Dawkins 31 http://tutorial.math.lamar.edu/terms.aspx

Solution

All of these will use (3) somewhere in the process. Notice that in order to use this formula the

exponential doesn’t really enter into the mix until the very end. The vast majority of the process

is finding the inverse transform of the stuff without the exponential.

In these problems we are not going to go into detail on many of the inverse transforms. If you

need a refresher on some of the basics of inverse transforms go back and take a look at the

previous section.

(a) ( )

4

s s H s s s

=

e

In light of the comments above let’s first rewrite the transform in the following way.

4 4

s s s H s F s s s

= =

e e

Now, this problem really comes down to needing f(t). So, let’s do that. We’ll need to partial

fraction F(s) up. Here’s the partial fraction decomposition.

A B

F s s s

Setting numerators equal gives,

s = A s ( - 2 ) + B ( 3 s + 2 )

We’ll find the constants here by selecting values of s. Doing this gives,

s B B

s A A

= = fi =

= - - = - fi =

So, the partial fraction decomposition becomes,

1 1 4 4 2 3 3 2

F s s s

Notice that we factored a 3 out of the denominator in order to actually do the inverse transform.

The inverse transform of this is then,

2 3 2

t t f t

= e + e

Now, let’s go back and do the actual problem. The original transform was,

4 s H s F s

= e

Note that we didn’t bother to plug in F(s). There really isn’t a reason to plug it back in. Let’s just

use (3) to write down the inverse transform in terms of symbols. The inverse transform is,

© 2007 Paul Dawkins 33 http://tutorial.math.lamar.edu/terms.aspx

Setting coefficient equal and solving gives,

2

1

0

s A B

s B C A B C

s A C

Ô

  • = (^) ˝ fi = = - =

Ô

  • = ˛

Substituting back into the transform gives and fixing up the numerators as needed gives,

3 3 2 2

s F s s s

s

s s s

Ê -^ + ˆ

Á ˜

Ë +^ + ¯

Ê ˆ

Á ˜

Ë +^ +^ + ¯

As we did in the previous section we factored out the common denominator to make our work a

little simpler. Taking the inverse transform then gives,

cos 3 sin 3 13 3

t f t t t

Ê - ˆ

Á ˜

Ë ¯

e

At this point we can go back and start thinking about the original problem.

( ) (^) ( ) ( )

6 11

6 11

s s

s s

G s F s

F s F s

e e

e e

We’ll also need to distribute the F(s) through as well in order to get the correct inverse transform.

Recall that in order to use (3) to take the inverse transform you must have a single exponential

times a single transform. This means that we must multiply the F(s) through the parenthesis. We

can now take the inverse transform,

g t ( ) = 5 u 6 ( t ) f ( t - 6 ) - 3 u 11 ( t ) f ( t - 11 )

where,

cos 3 sin 3 13 3

t f t t t

Ê - ˆ

= Á - + ˜

Ë ¯

e

[Return to Problems]

(c) ( )

s s F s s s

=

e

In this case, unlike the previous part, we will need to break up the transform since one term has a

constant in it and the other has an s. Note as well that we don’t consider the exponential in this,

only its coefficient. Breaking up the transform gives,

s s s F s G s H s s s s s

= + = +

e e

We will need to partial fraction both of these terms up. We’ll start with G(s).

A B

G s s s

© 2007 Paul Dawkins 34 http://tutorial.math.lamar.edu/terms.aspx

Setting numerators equal gives,

4 s = A s ( + 2 ) + B s ( - 1 )

Now, pick values of s to find the constants.

s B B

s A A

= - - = - fi =

= = fi =

So G(s) and its inverse transform is,

4 8 3 3

2

t t

G s s s

g t

= e + e

Now, repeat the process for H(s).

A B

H s s s

Setting numerators equal gives,

1 = A s ( + 2 ) + B s ( - 1 )

Now, pick values of s to find the constants.

1 2 1 3 3

s B B

s A A

= - = - fi = -

= = fi =

So H(s) and its inverse transform is,

1 1 3 3

2

t t

H s s s

h t

= e - e

Putting all of this together gives the following,

s F s G s H s

f t g t u t h t

= +

e

where,

and 3 3 3 3

t t t t g t h t

= e + e = e - e

[Return to Problems]

© 2007 Paul Dawkins 36 http://tutorial.math.lamar.edu/terms.aspx

Pick values of s to find the constants.

s C C

s B B

s A B C A A

= - = fi =

= = fi =

= = + + = + fi = -

So H(s) and its inverse transform is,

1 1 1 9 3 9 2

3

t

H s s s s

h t t

= - + + e

Now, let’s go back to the original problem, remembering to multiply the transform through the

parenthesis.

3 20 7 3 2 8 6

s s s G s F s F s H s H s


= - e + e + e

Taking the inverse transform gives,

g t ( ) = 3 f ( t ) - 2 u 3 ( t ) f ( t - 3 ) + 8 u 20 ( t h t ) ( - 20 ) + 6 u 7 ( t h t ) ( - 7 )

[Return to Problems]

So, as this example has shown, these can be a somewhat messy. However, the mess is really only

that of notation and amount of work. The actual partial fraction work was identical to the

previous sections work. The main difference in this section is we had to do more of it. As far as

the inverse transform process goes. Again, the vast majority of that was identical to the previous

section as well.

So, don’t let the apparent messiness of these problems get you to decide that you can’t do them.

Generally they aren’t as bad as they seem initially.