1. Home
  2. Explore
  3. Mathematics
  4. Unit Step Functions

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Unit Step Functions

Unit Step Functions and Time Shifting in Laplace Transforms

1. Why Discontinuous Functions Matter in Differential Equations

Differential equations are used to model real physical systems, including mechanical, electrical, and other systems that change over time. Solving differential equations analytically provides a mathematical model that can describe how a system behaves.

Many introductory problems involve smooth, continuous functions. However, real systems may experience sudden changes, such as:

  • A switch being turned on in an electrical circuit

  • A force suddenly being applied to a mechanical system

  • A device being activated at a particular time

  • An input being removed or changed abruptly

  • A system receiving a short impulse or jolt

A perfectly instantaneous jump is an idealization. Physical systems cannot usually change position or state with absolute instantaneousness, but a discontinuous function can serve as a useful analytic approximation of a rapid transition.

The unit step function is one of the primary tools for representing inputs that begin at a specific time.


2. The Unit Step Function

The unit step function that begins at time ccc is written as

uc(t)u_c(t)uc​(t)

and is defined by

uc(t)={0,t<c,1,t≥c.u_c(t)= \begin{cases} 0, & t<c,\\ 1, & t\geq c. \end{cases}uc​(t)={0,1,​t<c,t≥c.​

The subscript ccc identifies the time at which the function changes from 000 to 111.

The unit step function is zero before time ccc and equal to one at and after time ccc.

Graphical Interpretation

The graph consists of:

  • A horizontal segment at 000 for all t<ct<ct<c

  • A jump at t=ct=ct=c

  • A horizontal segment at 111 for all t≥ct\geq ct≥c

Because the definition includes the condition t≥ct\geq ct≥c, the value at t=ct=ct=c is 111. Graphically, this is represented by:

  • An open circle at (c,0)(c,0)(c,0)

  • A filled circle at (c,1)(c,1)(c,1)

In Laplace-transform applications, the independent variable is generally restricted to t≥0t\geq 0t≥0, because the Laplace transform is defined using an integral beginning at 000:

L{f(t)}=∫0∞e−stf(t) dt.\mathcal{L}\{f(t)\} = \int_0^\infty e^{-st}f(t)\,dt.L{f(t)}=∫0∞​e−stf(t)dt.

Physical Interpretation

The unit step function represents an input that is switched on at time ccc:

  • Before ccc, the input is absent.

  • At ccc, the input is activated.

  • After ccc, the input remains active at a constant level of 111.

Although the mathematical graph contains an instantaneous jump, it can approximate a real-world input that changes very rapidly.


3. Constructing Piecewise Functions with Unit Steps

Unit step functions can be multiplied by constants and added together to construct functions that jump between different levels.

The general idea is:

  • A positive multiple of uc(t)u_c(t)uc​(t) creates an upward jump at t=ct=ct=c.

  • A negative multiple of uc(t)u_c(t)uc​(t) creates a downward jump at t=ct=ct=c.

  • Adding several step functions creates a function with multiple jumps.

These constructions are examples of linear combinations of unit step functions.


4. Example: A Function That Drops from 222 to 000

Suppose a function has the value 222 before t=πt=\pit=π and drops to 000 at t=πt=\pit=π:

g(t)={2,t<π,0,t≥π.g(t)= \begin{cases} 2, & t<\pi,\\ 0, & t\geq \pi. \end{cases}g(t)={2,0,​t<π,t≥π.​

Initially, the function has the constant value 222. To make it drop by 222 at t=πt=\pit=π, subtract 2uπ(t)2u_\pi(t)2uπ​(t):

g(t)=2−2uπ(t).g(t)=2-2u_\pi(t).g(t)=2−2uπ​(t).

Verification

For t<πt<\pit<π:

uπ(t)=0,u_\pi(t)=0,uπ​(t)=0,

so

g(t)=2−2(0)=2.g(t)=2-2(0)=2.g(t)=2−2(0)=2.

For t≥πt\geq \pit≥π:

uπ(t)=1,u_\pi(t)=1,uπ​(t)=1,

so

g(t)=2−2(1)=0.g(t)=2-2(1)=0.g(t)=2−2(1)=0.

Therefore,

g(t)=2−2uπ(t)\boxed{g(t)=2-2u_\pi(t)}g(t)=2−2uπ​(t)​

correctly represents the desired function.

Interpretation

The term 222 establishes the initial level. The term −2uπ(t)-2u_\pi(t)−2uπ​(t) introduces a downward jump of size 222 at t=πt=\pit=π.


5. Example: A Function That Drops and Then Rises

Now suppose the function:

  • Starts at 222

  • Drops to 000 at t=πt=\pit=π

  • Rises back to 222 at t=2πt=2\pit=2π

The first drop is represented by

−2uπ(t).-2u_\pi(t).−2uπ​(t).

The upward jump at t=2πt=2\pit=2π is represented by

+2u2π(t).+2u_{2\pi}(t).+2u2π​(t).

Thus, the function is

g(t)=2−2uπ(t)+2u2π(t).g(t)=2-2u_\pi(t)+2u_{2\pi}(t).g(t)=2−2uπ​(t)+2u2π​(t).

Verification by Intervals

Before t=πt=\pit=π

Both step functions are zero:

g(t)=2−2(0)+2(0)=2.g(t)=2-2(0)+2(0)=2.g(t)=2−2(0)+2(0)=2.

For π≤t<2π\pi\leq t<2\piπ≤t<2π

The first step has activated, but the second has not:

g(t)=2−2(1)+2(0)=0.g(t)=2-2(1)+2(0)=0.g(t)=2−2(1)+2(0)=0.

For t≥2πt\geq 2\pit≥2π

Both step functions have activated:

g(t)=2−2(1)+2(1)=2.g(t)=2-2(1)+2(1)=2.g(t)=2−2(1)+2(1)=2.

Therefore, the expression produces the pattern

2⟶0⟶2.2\longrightarrow 0\longrightarrow 2.2⟶0⟶2.

General Construction Principle

A function with many jumps can be constructed by adding the appropriate step term for each jump:

g(t)=initial value+∑jump size×ujump time(t).g(t)=\text{initial value} +\sum \text{jump size}\times u_{\text{jump time}}(t).g(t)=initial value+∑jump size×ujump time​(t).

For example:

  • A jump upward by AAA at t=ct=ct=c contributes Auc(t)Au_c(t)Auc​(t).

  • A jump downward by AAA at t=ct=ct=c contributes −Auc(t)-Au_c(t)−Auc​(t).

This makes unit step functions useful for modeling piecewise-constant inputs and complicated switching behavior.


6. Shifting an Arbitrary Function

Unit step functions can also be used to turn on a nonconstant function at a particular time.

Suppose f(t)f(t)f(t) is an arbitrary function. The expression

f(t−c)f(t-c)f(t−c)

shifts the graph of f(t)f(t)f(t) to the right by ccc units.

Why f(t−c)f(t-c)f(t−c) Shifts the Function Right

At t=ct=ct=c,

f(t−c)=f(c−c)=f(0).f(t-c)=f(c-c)=f(0).f(t−c)=f(c−c)=f(0).

Thus, the value of the shifted function at t=ct=ct=c equals the original function’s value at t=0t=0t=0.

One unit after t=ct=ct=c, namely at t=c+1t=c+1t=c+1,

f(t−c)=f(c+1−c)=f(1).f(t-c)=f(c+1-c)=f(1).f(t−c)=f(c+1−c)=f(1).

Therefore:

  • The original point at input 000 appears at t=ct=ct=c.

  • The original point at input 111 appears at t=c+1t=c+1t=c+1.

  • Every point in the original graph is displaced to the right by ccc units.

This confirms that f(t−c)f(t-c)f(t−c) is the original function shifted right by ccc.


7. Turning the Shifted Function On at t=ct=ct=c

The expression f(t−c)f(t-c)f(t−c) shifts the function to the right, but by itself it does not necessarily make the function zero before t=ct=ct=c. The shifted expression may still produce values for t<ct<ct<c.

To force the function to be zero before t=ct=ct=c, multiply by the unit step function:

uc(t)f(t−c).u_c(t)f(t-c).uc​(t)f(t−c).

This is called a shifted function activated at time ccc.

Behavior Before t=ct=ct=c

When t<ct<ct<c,

uc(t)=0.u_c(t)=0.uc​(t)=0.

Therefore,

uc(t)f(t−c)=0⋅f(t−c)=0.u_c(t)f(t-c)=0\cdot f(t-c)=0.uc​(t)f(t−c)=0⋅f(t−c)=0.

The function is completely suppressed before t=ct=ct=c.

Behavior at and After t=ct=ct=c

When t≥ct\geq ct≥c,

uc(t)=1.u_c(t)=1.uc​(t)=1.

Therefore,

uc(t)f(t−c)=1⋅f(t−c)=f(t−c).u_c(t)f(t-c)=1\cdot f(t-c)=f(t-c).uc​(t)f(t−c)=1⋅f(t−c)=f(t−c).

The function behaves like the shifted function after the activation time.

The expression uc(t)f(t−c)u_c(t)f(t-c)uc​(t)f(t−c) is zero before t=ct=ct=c and equals the right-shifted function f(t−c)f(t-c)f(t−c) for t≥ct\geq ct≥c.

This construction models a time-dependent process that begins at time ccc and then follows the shape of fff.


8. The Second Shifting Theorem

The expression

uc(t)f(t−c)u_c(t)f(t-c)uc​(t)f(t−c)

has a particularly useful Laplace transform. The goal is to evaluate

L{uc(t)f(t−c)}.\mathcal{L}\{u_c(t)f(t-c)\}.L{uc​(t)f(t−c)}.

By the definition of the Laplace transform,

L{uc(t)f(t−c)}=∫0∞e−stuc(t)f(t−c) dt.\mathcal{L}\{u_c(t)f(t-c)\} = \int_0^\infty e^{-st}u_c(t)f(t-c)\,dt.L{uc​(t)f(t−c)}=∫0∞​e−stuc​(t)f(t−c)dt.

At first, this integral appears complicated because it contains both a unit step function and a shifted function.


9. Simplifying the Integral Using the Unit Step Function

The unit step function satisfies

uc(t)=0for t<c.u_c(t)=0 \quad \text{for } t<c.uc​(t)=0for t<c.

Therefore, the entire integrand is zero before t=ct=ct=c:

e−stuc(t)f(t−c)=0for t<c.e^{-st}u_c(t)f(t-c)=0 \quad \text{for } t<c.e−stuc​(t)f(t−c)=0for t<c.

Consequently, the portion of the integral from 000 to ccc contributes no area. The lower limit can be changed from 000 to $c:

L{uc(t)f(t−c)}=∫c∞e−stuc(t)f(t−c) dt.\mathcal{L}\{u_c(t)f(t-c)\} = \int_c^\infty e^{-st}u_c(t)f(t-c)\,dt.L{uc​(t)f(t−c)}=∫c∞​e−stuc​(t)f(t−c)dt.

On the interval t≥ct\geq ct≥c, the unit step function equals 111, so it can be removed:

L{uc(t)f(t−c)}=∫c∞e−stf(t−c) dt.\mathcal{L}\{u_c(t)f(t-c)\} = \int_c^\infty e^{-st}f(t-c)\,dt.L{uc​(t)f(t−c)}=∫c∞​e−stf(t−c)dt.

This is the key simplification: the unit step function changes the effective starting point of the integral.


10. Substitution for the Shifted Argument

Use the substitution

x=t−c.x=t-c.x=t−c.

Solving for ttt gives

t=x+c.t=x+c.t=x+c.

Differentiating gives

dx=dt.dx=dt.dx=dt.

Changing the Limits

When t=ct=ct=c:

x=c−c=0.x=c-c=0.x=c−c=0.

When t→∞t\to\inftyt→∞:

x=t−c→∞.x=t-c\to\infty.x=t−c→∞.

Thus,

∫c∞e−stf(t−c) dt=∫0∞e−s(x+c)f(x) dx.\int_c^\infty e^{-st}f(t-c)\,dt = \int_0^\infty e^{-s(x+c)}f(x)\,dx.∫c∞​e−stf(t−c)dt=∫0∞​e−s(x+c)f(x)dx.

Expand the exponent:

e−s(x+c)=e−sx−sc=e−sxe−sc.e^{-s(x+c)} = e^{-sx-sc} = e^{-sx}e^{-sc}.e−s(x+c)=e−sx−sc=e−sxe−sc.

Therefore,

∫0∞e−s(x+c)f(x) dx=∫0∞e−sxe−scf(x) dx.\int_0^\infty e^{-s(x+c)}f(x)\,dx = \int_0^\infty e^{-sx}e^{-sc}f(x)\,dx.∫0∞​e−s(x+c)f(x)dx=∫0∞​e−sxe−scf(x)dx.

Since e−sce^{-sc}e−sc is constant with respect to xxx, it can be factored outside the integral:

L{uc(t)f(t−c)}=e−sc∫0∞e−sxf(x) dx.\mathcal{L}\{u_c(t)f(t-c)\} = e^{-sc}\int_0^\infty e^{-sx}f(x)\,dx.L{uc​(t)f(t−c)}=e−sc∫0∞​e−sxf(x)dx.

The remaining integral is the Laplace transform of fff:

L{f(t)}=∫0∞e−stf(t) dt.\mathcal{L}\{f(t)\} = \int_0^\infty e^{-st}f(t)\,dt.L{f(t)}=∫0∞​e−stf(t)dt.

The variable of integration is arbitrary, so the use of xxx instead of ttt makes no difference.


11. The Time-Shifting Formula

The resulting theorem is

L{uc(t)f(t−c)}=e−csL{f(t)}\boxed{ \mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}\mathcal{L}\{f(t)\} }L{uc​(t)f(t−c)}=e−csL{f(t)}​

This is the second shifting theorem, also called the time-shifting theorem for the Laplace transform.

If

L{f(t)}=F(s),\mathcal{L}\{f(t)\}=F(s),L{f(t)}=F(s),

then

L{uc(t)f(t−c)}=e−csF(s)\boxed{ \mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}F(s) }L{uc​(t)f(t−c)}=e−csF(s)​

Meaning of the Formula

The time-domain function is:

  • Shifted to the right by ccc through f(t−c)f(t-c)f(t−c)

  • Turned on at t=ct=ct=c through uc(t)u_c(t)uc​(t)

In the Laplace domain, this operation corresponds to multiplying the original transform by

e−cs.e^{-cs}.e−cs.

Thus:

  • A delay of ccc units in time becomes a factor of e−cse^{-cs}e−cs.

  • The original Laplace transform F(s)F(s)F(s) remains unchanged apart from this exponential factor.


12. Example: A Delayed Sine Function

Consider

uπ(t)sin⁡(t−π).u_\pi(t)\sin(t-\pi).uπ​(t)sin(t−π).

This function is a sine wave shifted right by π\piπ units and activated at t=πt=\pit=π.

The general formula gives

L{uc(t)f(t−c)}=e−csL{f(t)}.\mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}\mathcal{L}\{f(t)\}.L{uc​(t)f(t−c)}=e−csL{f(t)}.

For this example:

  • c=πc=\pic=π

  • f(t)=sin⁡tf(t)=\sin tf(t)=sint

  • f(t−c)=sin⁡(t−π)f(t-c)=\sin(t-\pi)f(t−c)=sin(t−π)

Therefore,

L{uπ(t)sin⁡(t−π)}=e−πsL{sin⁡t}.\mathcal{L}\{u_\pi(t)\sin(t-\pi)\} = e^{-\pi s}\mathcal{L}\{\sin t\}.L{uπ​(t)sin(t−π)}=e−πsL{sint}.

The known Laplace transform is

L{sin⁡t}=1s2+1.\mathcal{L}\{\sin t\} = \frac{1}{s^2+1}.L{sint}=s2+11​.

Hence,

L{uπ(t)sin⁡(t−π)}=e−πss2+1\boxed{ \mathcal{L}\{u_\pi(t)\sin(t-\pi)\} = \frac{e^{-\pi s}}{s^2+1} }L{uπ​(t)sin(t−π)}=s2+1e−πs​​

A function that appears complicated in the time domain can therefore be transformed directly using the shifting theorem.


13. Important Distinctions

A Shifted Function Alone

The expression

f(t−c)f(t-c)f(t−c)

shifts the graph to the right, but it may not be zero before t=ct=ct=c.

A Unit Step Function Alone

The expression

uc(t)u_c(t)uc​(t)

creates a jump from 000 to 111 at t=ct=ct=c, but it does not reproduce an arbitrary function after that point.

A Delayed, Activated Function

The combined expression

uc(t)f(t−c)u_c(t)f(t-c)uc​(t)f(t−c)

both:

  1. Shifts the function right by ccc

  2. Makes the function zero before t=ct=ct=c

This combined form is the one to which the time-shifting formula applies directly.


14. Applications to Physical Systems

The unit step function and its Laplace-transform rule are useful when a system receives an input at a specified time.

Examples include:

  • An electrical circuit switched on at t=ct=ct=c

  • A mechanical force applied after a delay

  • A heating system activated at a particular time

  • A control signal that changes abruptly

  • A piecewise-defined external force

  • A system that changes behavior after an event occurs

A delayed input can be written as

uc(t)f(t−c),u_c(t)f(t-c),uc​(t)f(t−c),

and its Laplace transform can be found without directly integrating the discontinuous expression:

L{uc(t)f(t−c)}=e−csF(s),\mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}F(s),L{uc​(t)f(t−c)}=e−csF(s),

where

F(s)=L{f(t)}.F(s)=\mathcal{L}\{f(t)\}.F(s)=L{f(t)}.

This allows differential equations with delayed or switched inputs to be handled using the same Laplace-transform techniques used for ordinary continuous inputs.


15. Summary of Core Results

  • The unit step function is defined by

    uc(t)={0,t<c,1,t≥c.u_c(t)= \begin{cases} 0, & t<c,\\ 1, & t\geq c. \end{cases}uc​(t)={0,1,​t<c,t≥c.​
  • A downward jump of magnitude AAA at t=ct=ct=c can be represented by

    −Auc(t).-Au_c(t).−Auc​(t).
  • An upward jump of magnitude AAA at t=ct=ct=c can be represented by

    Auc(t).Au_c(t).Auc​(t).
  • Multiple jumps can be modeled using linear combinations of unit step functions.

  • The expression f(t−c)f(t-c)f(t−c) shifts f(t)f(t)f(t) right by ccc units.

  • The expression uc(t)f(t−c)u_c(t)f(t-c)uc​(t)f(t−c) makes the shifted function zero before t=ct=ct=c.

  • The time-shifting theorem is

    L{uc(t)f(t−c)}=e−csL{f(t)}\boxed{ \mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}\mathcal{L}\{f(t)\} }L{uc​(t)f(t−c)}=e−csL{f(t)}​
  • If L{f(t)}=F(s)\mathcal{L}\{f(t)\}=F(s)L{f(t)}=F(s), then

    L{uc(t)f(t−c)}=e−csF(s)\boxed{ \mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}F(s) }L{uc​(t)f(t−c)}=e−csF(s)​
  • For example,

    L{uπ(t)sin⁡(t−π)}=e−πss2+1.\mathcal{L}\{u_\pi(t)\sin(t-\pi)\} = \frac{e^{-\pi s}}{s^2+1}.L{uπ​(t)sin(t−π)}=s2+1e−πs​.

The central idea is that delaying a function by ccc units in time corresponds to multiplying its Laplace transform by the exponential factor e−cse^{-cs}e−cs.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent