Unit Step Functions

Here is a Maple definition of the unit step function, [Maple Math] , whose discontinuity occurs at [Maple Math] . Note that the Maple implementation puts the location of the jump, [Maple Math] , as the first argument of the function and the independent variable as the second argument.

>

> u := ( a, t ) -> piecewise( t<a, 0, t>=a, 1 ):

>

In order to better understand step functions and how they can be used in problems with piecewise-defined forcing functions, let's consider a few examples. First, consider the unit step function with jump at [Maple Math] :

> plot( u(2,t), t=0..5, view=[0..5,-0.2..2], discont=true );

>

Multplying a unit step function by another function has the effect of "turning off" the function until the step function "turns on" (at [Maple Math] ).

(Compare the following plot with the plot of [Maple Math] .)

> plot( t*u(2,t), t=0..5, discont=true );

>

A summation of terms involving step functions can be understood by simplifying the expression on each subinterval on which a different collection of step functions is activated. In this case we have the function that is zero for [Maple Math] < 1, t for 1 <= [Maple Math] < 3, and 3 for [Maple Math] >= 3.

> plot( t*u(1,t) + (3-t)*u(3,t), t=0..5, discont=true );

>

And, finally, let's compare the two functions [Maple Math] and [Maple Math] .

>

> f1 := sin(2*t)*u(1,t);

> f2 := sin(2*(t-1))*u(1,t);

[Maple Math]

[Maple Math]

> plot( f1, t=0..3 );

> plot( f2, t=0..3 );

Notice how the graph of [Maple Math] is the graph of [Maple Math] that is "turned off" until [Maple Math] . On the other hand, the graph of [Maple Math] looks like the sine function shifted one unit to the right. It is this latter form that is most convenient for use with Laplace transforms (see Table 8.2, p. 594).

>