Skip to content

2502 Step and Box Functions

Heaviside Unit Step Function

The unit step function is defined by The reason for the name unit step can be seen in the graph.

The first graph shows the function . The second graph shows , which is simply shifted to the right. A few details need to be highlighted. 1. is also called the Heaviside function. 2. is not defined when . Looking at the graph we see that has a jump discontinuity at . 3. The graph shows that and . Here, means the limit of as approaches 0 from the left –called the left-hand limit. Likewise, means the limit of as approaches 0 from the right. 4. In the graphs we used dashed lines at the jump discontinuity. These lines are not part of the graph and we could have left them out. It is also common to use solid lines. Strictly speaking this is incorrect, but it gives nicer looking figures (for more on this see the next section).

Models

We can use to model an on/off process. Suppose a light turns on; first it is dark, then it is light. The basic model is the unit step function.
Of course a light doesn't reach its steady state instantaneously; it takes a small amount of time. If we use a finer time scale, you can see what happens. It might move up smoothly; it might overshoot; it might move up in fits and starts as different elements come on line. If we zoomed in near the graph might actually look like

At the longer time scale, we don't care about these details. Modeling the process by lets us ignore them.

Box Functions

When we modeled the light with we assumed the light went on and stayed on forever. Eventually the light will be turned off or burn out. To be general, let's assume the light goes on at time and off at time . We can model this with the function The graph of this is

The graph shows why this is often called a box function. If you plot and on the same axes you will find that We will usually dispense with the notation and the formuala for the box function.

Switches

By multiplying by a function we can use step and box functions as switches to turn on or off.

The graphs show step and box functions acting as switches.

  • The first plot shows .
  • The second shows being used to switch on at . That is, is 0 for and agrees with for .
  • The third shows being used to turn on in the window and off outside it.
  • The fourth graph shows . That is, first is translated to the right units and the result is switched on at time .

-format and Cases Format

We now have two ways to express functions that change formulas for different intervals of .

Example. Suppose is 0 for , for , for and for . Express in both and cases formats.
Solution. Cases format expresses by specifying the formula for each case: -format uses step and box functions to turn on and off expressions: Notice how each case tells us which step or box functions to use as switches and how each function tells us where the cases change.

Example. Write in cases format.
Solution. Notice how there are no off switches in the expression for , so in cases format the number of terms in each successive case grows as the -switches turn on.