Unit Step Functions


Unit Step Functions

Anna
The point of learning differential equations is ultimately to model real physical systems. So far, we have mainly built a toolkit for solving equations, but differential equations are valuable because they can describe how many real systems behave.

Michael
And real-world behavior is not always represented by perfectly smooth, continuous functions. A system might suddenly receive an input or be moved from one state to another, so we need functions that can represent jumps. The first important example is the unit step function.

Anna
We write the unit step function that begins at c as u_c of t. Its definition is simple: u_c of t equals zero when t is less than c, and it equals one when t is greater than or equal to c.

Michael
So its graph stays at zero until time c, jumps to one at c, and remains at one afterward. The value at c is one because the definition includes the phrase ‘greater than or equal to c.’

Anna
When we work with Laplace transforms, we focus on t greater than zero because the transform is defined using an integral from zero to infinity. But the step function is useful more generally as a mathematical model for an input that suddenly turns on.

Michael
For example, an electrical or mechanical system might respond to something that is jolted into action. In reality, the change would not happen instantaneously; it might look more like a rapid transition. Still, the idealized jump represented by the unit step function can be a useful analytic approximation.

Anna
That is an important modeling idea. An analytic model does not always describe every detail perfectly, but it can describe a system well enough to help us understand what will happen. Sometimes the model may describe the system completely, but for now we are interested in how step functions help us represent sudden changes.

Michael
Let’s construct a simple piecewise function. Suppose a function has value two until t reaches pi, and then it becomes zero forever. How can we build that using unit step functions?

Anna
Start with the constant value two. Before pi, the step function u_pi of t is zero, so consider two minus two times u_pi of t. When t is less than pi, that becomes two minus zero, which is two.

Michael
And at t equal to pi, the step function becomes one. The expression becomes two minus two times one, or zero. It stays zero after pi as well, so the full function is 2 - 2u_pi(t).

Anna
Now suppose we want the function to jump back up to two at t equal to 2pi. We can add another step function, 2u_2pi(t). It contributes nothing before 2pi, and after 2pi it contributes two, producing the desired second jump.

Michael
So the combined expression is 2 - 2u_pi(t) + 2u_2pi(t). This idea can be extended: linear combinations of unit step functions can create functions that jump up or down at many different times and to many different levels.

Anna
There is another construction that is especially useful. Suppose f of t is some arbitrary function, but we want a new function that is zero before time c and then follows the shape of f, shifted to the right so that it starts at c.

Michael
The horizontal shift comes from replacing t with t minus c. The expression f(t - c) shifts the graph of f to the right by c. To check that, set t equal to c: then the input to f is c minus c, or zero. If t is c plus one, the input is one, so the shifted function has the value that the original function had at one.

Anna
But f(t - c) alone would still contain the rest of the shifted graph before t reaches c. To eliminate everything before c, multiply by the unit step function. The constructed function is u_c(t)f(t - c).

Michael
Before c, u_c(t) is zero, so the product is zero regardless of the value of f(t - c). At and after c, u_c(t) is one, so the product becomes f(t - c). Thus this expression both shifts the function and turns it on at the desired time.

Anna
Now let’s find the Laplace transform of that construction. By definition, it is the integral from zero to infinity of e to the negative st times u_c(t)f(t - c), with respect to t.

Michael
The step function is zero before c, so the integrand contributes no area from zero to c. We can therefore replace the lower limit with c. From c onward, the step function equals one, so the transform becomes the integral from c to infinity of e to the negative st times f(t - c) dt.

Anna
That change of limits is not just a symbolic trick. The definite integral represents the accumulated area under the integrand, and the integrand is zero before c. There is simply no contribution from that interval.

Michael
Next, use the substitution x equals t minus c. Then t equals x plus c, and dx equals dt. When t equals c, x equals zero; when t approaches infinity, x also approaches infinity.

Anna
After substitution, the integral becomes the integral from zero to infinity of e to the negative s(x plus c) times f(x) dx. Split the exponential into e to the negative sx times e to the negative sc.

Michael
Because e to the negative sc does not depend on x, it can be factored outside the integral. What remains inside is the integral from zero to infinity of e to the negative sx times f(x) dx, which is exactly the Laplace transform of f.

Anna
Therefore, the key shifting theorem is: the Laplace transform of u_c(t)f(t - c) equals e to the negative cs times the Laplace transform of f(t). The letter used inside the definite integral does not matter; t, x, or another variable all represent the same dummy variable.

Michael
The important pattern is that shifting a function to the right by c in the time domain introduces the factor e to the negative cs in the Laplace domain. The unit step makes the shifted function begin at c, while the exponential factor records that shift.

Anna
Let’s apply the result to a familiar function. Consider the Laplace transform of u_pi(t) times sine of t minus pi. Here c is pi, and the unshifted function is sine of t.

Michael
The theorem gives e to the negative pi s times the Laplace transform of sine of t. Since the Laplace transform of sine of t is 1 over s squared plus 1, the result is e to the negative pi s divided by s squared plus 1.

Anna
So an expression that initially looks complicated can be transformed by identifying its two parts: the unit step u_c(t), which turns the function on at c, and the shifted function f(t - c). Once those are recognized, the Laplace transform follows directly from the theorem.

Michael
And that is why unit step functions matter in differential equations. They let us model inputs that begin at specific times, combine several sudden changes into one expression, and use Laplace transforms to analyze those time-shifted systems efficiently.

Ask anything
We've read this whole study set, so questions about it get the best answers.