Solved Exercises on Step Functions and Dirac Delta Function in Laplace Transform

Master step functions and Dirac delta function: modeling discontinuous inputs, impulse responses, and solving differential equations with piecewise forcing functions through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Unit step function
Exercise 1
Find the Laplace transform of the piecewise function: \(f(t) = \begin{cases} 0 & \text{if } t < 2 \\ t-2 & \text{if } t \geq 2 \end{cases}\)
Definition:

Unit step function: The Heaviside function defined as \(u_c(t) = \begin{cases} 0 & \text{if } t < c \\ 1 & \text{if } t \geq c \end{cases}\). It models functions that "turn on" at time t = c.

Step function procedure:
  1. Express the piecewise function in terms of unit step functions
  2. Apply the time-shift property: \(\mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}F(s)\)
  3. Use linearity to find the complete transform
Piecewise
f(t) = (t-2)u_2(t)
Time-shift
\(\mathcal{L}\{u_2(t)(t-2)\} = e^{-2s}\mathcal{L}\{t\}\)
Transform
\(\frac{e^{-2s}}{s^2}\)
Function Definition
\(f(t) = \begin{cases} 0 & \text{if } t < 2 \\ t-2 & \text{if } t \geq 2 \end{cases}\)
Step Function Form
\(f(t) = (t-2)u_2(t)\)
where \(u_2(t) = \begin{cases} 0 & \text{if } t < 2 \\ 1 & \text{if } t \geq 2 \end{cases}\)
Step 1: Express in terms of step functions

The function is zero before t = 2 and equals (t-2) after t = 2

This can be written as: \(f(t) = (t-2)u_2(t)\)

Step 2: Apply the time-shift property

The time-shift property states: \(\mathcal{L}\{u_c(t)g(t-c)\} = e^{-cs}G(s)\)

Here, \(g(t-c) = t-2\), so \(g(t) = t\)

Therefore: \(\mathcal{L}\{u_2(t)(t-2)\} = e^{-2s}\mathcal{L}\{t\}\)

Step 3: Find the transform of the shifted function

\(\mathcal{L}\{t\} = \frac{1}{s^2}\)

Step 4: Apply the complete formula

\(\mathcal{L}\{f(t)\} = e^{-2s} \cdot \frac{1}{s^2} = \frac{e^{-2s}}{s^2}\)

\(\mathcal{L}\{f(t)\} = \frac{e^{-2s}}{s^2}\)
Final answer:

The Laplace transform of the given piecewise function is \(\frac{e^{-2s}}{s^2}\). This represents a function that "turns on" at t = 2 with a linear ramp.

Applied rules:

• Time-shift property: \(\mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}F(s)\)

• Basic transform: \(\mathcal{L}\{t\} = \frac{1}{s^2}\)

• Step function modeling: Represent piecewise functions using unit step functions

2 Multiple step functions
Exercise 2
Find the inverse Laplace transform of: \(F(s) = \frac{e^{-s}}{s+2} - \frac{e^{-3s}}{s+2}\)
Definition:

Multiple step functions: When a function involves multiple time shifts, we apply the time-shift property to each exponential term separately and combine the results using linearity.

Given
F(s) = e^{-s}/(s+2) - e^{-3s}/(s+2)
Inverse
f(t) = u_1(t)e^{-2(t-1)} - u_3(t)e^{-2(t-3)}
Piecewise
f(t) = {0, e^{-2(t-1)}, e^{-2(t-1)}-e^{-2(t-3)}}
Step 1: Identify the structure

We have: \(F(s) = \frac{e^{-s}}{s+2} - \frac{e^{-3s}}{s+2}\)

This can be written as: \(F(s) = e^{-s} \cdot \frac{1}{s+2} - e^{-3s} \cdot \frac{1}{s+2}\)

Step 2: Apply the time-shift property

For the first term: \(\mathcal{L}^{-1}\{e^{-s} \cdot \frac{1}{s+2}\} = u_1(t) \cdot \mathcal{L}^{-1}\{\frac{1}{s+2}\}_{t \to t-1}\)

\(\mathcal{L}^{-1}\{\frac{1}{s+2}\} = e^{-2t}\), so the first term is: \(u_1(t)e^{-2(t-1)}\)

Step 3: Apply the time-shift property to the second term

For the second term: \(\mathcal{L}^{-1}\{e^{-3s} \cdot \frac{1}{s+2}\} = u_3(t) \cdot \mathcal{L}^{-1}\{\frac{1}{s+2}\}_{t \to t-3}\)

The second term is: \(u_3(t)e^{-2(t-3)}\)

Step 4: Combine using linearity

\(\mathcal{L}^{-1}\{F(s)\} = u_1(t)e^{-2(t-1)} - u_3(t)e^{-2(t-3)}\)

Step 5: Express as a piecewise function

\(f(t) = \begin{cases} 0 & \text{if } t < 1 \\ e^{-2(t-1)} & \text{if } 1 \leq t < 3 \\ e^{-2(t-1)} - e^{-2(t-3)} & \text{if } t \geq 3 \end{cases}\)

\(f(t) = u_1(t)e^{-2(t-1)} - u_3(t)e^{-2(t-3)}\)
Final answer:

The inverse Laplace transform is \(f(t) = u_1(t)e^{-2(t-1)} - u_3(t)e^{-2(t-3)}\). This represents a function that turns on at t = 1 with an exponential decay, then turns off part of the response at t = 3.

Applied rules:

• Linearity: \(\mathcal{L}^{-1}\{aF(s) + bG(s)\} = a\mathcal{L}^{-1}\{F(s)\} + b\mathcal{L}^{-1}\{G(s)\}\)

• Time-shift property: \(\mathcal{L}^{-1}\{e^{-cs}F(s)\} = u_c(t)f(t-c)\)

• Exponential transform: \(\mathcal{L}^{-1}\left\{\frac{1}{s+a}\right\} = e^{-at}\)

3 Dirac delta function
Exercise 3
Find the Laplace transform of: \(f(t) = \delta(t-4) + 2\delta(t-6)\), where \(\delta(t)\) is the Dirac delta function.
Definition:

Dirac delta function: A generalized function that represents an impulse at a single point. \(\delta(t-c) = 0\) for \(t \neq c\), and \(\int_{c-\epsilon}^{c+\epsilon} \delta(t-c) dt = 1\) for any \(\epsilon > 0\).

Function
f(t) = δ(t-4) + 2δ(t-6)
Transform
\(\mathcal{L}\{f(t)\} = e^{-4s} + 2e^{-6s}\)
Property
\(\mathcal{L}\{\delta(t-c)\} = e^{-cs}\)
Step 1: Identify the components

We have: \(f(t) = \delta(t-4) + 2\delta(t-6)\)

This is a sum of two Dirac delta functions at different times with different strengths.

Step 2: Apply the fundamental property of the Dirac delta

The Laplace transform of a Dirac delta function is: \(\mathcal{L}\{\delta(t-c)\} = e^{-cs}\)

This represents an impulse of strength 1 at time t = c.

Step 3: Apply linearity

\(\mathcal{L}\{f(t)\} = \mathcal{L}\{\delta(t-4)\} + \mathcal{L}\{2\delta(t-6)\}\)

\(\mathcal{L}\{f(t)\} = \mathcal{L}\{\delta(t-4)\} + 2\mathcal{L}\{\delta(t-6)\}\)

Step 4: Apply the transform property

\(\mathcal{L}\{\delta(t-4)\} = e^{-4s}\)

\(\mathcal{L}\{\delta(t-6)\} = e^{-6s}\)

Therefore: \(\mathcal{L}\{f(t)\} = e^{-4s} + 2e^{-6s}\)

Step 5: Interpret the result

The transform shows two exponential terms, representing impulses at t = 4 and t = 6

The coefficient 2 indicates the second impulse has twice the strength of the first

\(\mathcal{L}\{f(t)\} = e^{-4s} + 2e^{-6s}\)
Final answer:

The Laplace transform of the given function is \(e^{-4s} + 2e^{-6s}\). This represents two impulses: one of strength 1 at t = 4 and one of strength 2 at t = 6.

Applied rules:

• Delta function transform: \(\mathcal{L}\{\delta(t-c)\} = e^{-cs}\)

• Linearity: \(\mathcal{L}\{af(t) + bg(t)\} = a\mathcal{L}\{f(t)\} + b\mathcal{L}\{g(t)\}

• Impulse strength: The coefficient determines the magnitude of the impulse

Rules and methods, laws,...
\(\mathcal{L}\{u_c(t)\} = \frac{e^{-cs}}{s}, \quad \mathcal{L}\{\delta(t-c)\} = e^{-cs}\)
Step and Delta Function Transforms
Unit Step
\(\mathcal{L}\{u_c(t)\} = \frac{e^{-cs}}{s}\)
Heaviside function
Time-shift
\(\mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}F(s)\)
Delay property
Dirac Delta
\(\mathcal{L}\{\delta(t-c)\} = e^{-cs}\)
Impulse function
Key definitions:

Unit step function: \(u_c(t) = \begin{cases} 0 & \text{if } t < c \\ 1 & \text{if } t \geq c \end{cases}\), used to model functions that turn on at time t = c

Dirac delta function: \(\delta(t-c)\) represents an idealized impulse of infinite magnitude but zero duration at time t = c, with area (strength) of 1

Time-shift property: Allows modeling delayed functions and impulses in the s-domain

Impulse response: The response of a system to a Dirac delta input, which characterizes the system completely

Complete methodology:
  1. Identify the function type: Determine if it's a step function, delta function, or combination
  2. Express in standard form: Write piecewise functions using unit step functions
  3. Apply properties: Use time-shift property for delayed functions
  4. Use linearity: Apply transforms to each component separately
  5. Simplify: Combine terms and express in simplest form
Tip 1: To express piecewise functions, multiply each piece by the appropriate step function that "turns it on" at the right time.
Tip 2: The Dirac delta function represents instantaneous impulses that affect the system's state instantaneously.
Tip 3: When finding inverse transforms with step functions, express the result as a piecewise function.
Tip 4: The exponential term e^{-cs} in the s-domain indicates a time delay of c units in the time domain.
Common errors: Forgetting to adjust the function argument in time-shift property, misapplying linearity, confusing step and delta functions.
Applications: Switching circuits, impact loads, signal processing, control systems, and modeling sudden changes in physical systems.
Formulas to know by heart:

• \(\mathcal{L}\{u_c(t)\} = \frac{e^{-cs}}{s}\)

• \(\mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}F(s)\)

• \(\mathcal{L}\{\delta(t-c)\} = e^{-cs}\)

• \(\mathcal{L}^{-1}\{e^{-cs}F(s)\} = u_c(t)f(t-c)\)

• \(\int_{-\infty}^{\infty} \delta(t-c)g(t)dt = g(c)\) (sifting property)

Solution: Exercises 4 to 5
4 IVP with step function
Exercise 4
Solve the initial-value problem: \(y'' + 4y = u_2(t)\), \(y(0) = 0\), \(y'(0) = 0\). Interpret the physical meaning.
Definition:

Step function in IVP: When a differential equation has a step function as forcing, the solution changes behavior at the switching time. The system responds to the "on" condition of the forcing function.

Equation
y'' + 4y = u_2(t)
Laplace
(s² + 4)Y(s) = e^{-2s}/s
Solution
y(t) = (1/4)u_2(t)[1 - cos(2(t-2))]
Step 1: Take the Laplace transform of both sides

\(\mathcal{L}\{y'' + 4y\} = \mathcal{L}\{u_2(t)\}\)

\(\mathcal{L}\{y''\} + 4\mathcal{L}\{y\} = \mathcal{L}\{u_2(t)\}\)

Step 2: Apply Laplace transform properties

Let \(\mathcal{L}\{y\} = Y(s)\)

\(\mathcal{L}\{y''\} = s^2Y(s) - sy(0) - y'(0) = s^2Y(s) - 0 - 0 = s^2Y(s)\)

\(\mathcal{L}\{u_2(t)\} = \frac{e^{-2s}}{s}\)

Substituting: \(s^2Y(s) + 4Y(s) = \frac{e^{-2s}}{s}\)

Step 3: Solve for Y(s)

\(Y(s)(s^2 + 4) = \frac{e^{-2s}}{s}\)

\(Y(s) = \frac{e^{-2s}}{s(s^2 + 4)}\)

Step 4: Apply partial fractions to the non-exponential part

For \(\frac{1}{s(s^2 + 4)}\), let's use: \(\frac{1}{s(s^2 + 4)} = \frac{A}{s} + \frac{Bs + C}{s^2 + 4}\)

\(1 = A(s^2 + 4) + (Bs + C)s = As^2 + 4A + Bs^2 + Cs = (A + B)s^2 + Cs + 4A\)

Comparing coefficients: \(A + B = 0\), \(C = 0\), \(4A = 1\)

So \(A = \frac{1}{4}\), \(B = -\frac{1}{4}\), \(C = 0\)

Therefore: \(\frac{1}{s(s^2 + 4)} = \frac{1/4}{s} - \frac{1/4 \cdot s}{s^2 + 4}\)

Step 5: Rewrite Y(s)

\(Y(s) = e^{-2s}\left(\frac{1/4}{s} - \frac{1/4 \cdot s}{s^2 + 4}\right)\)

Step 6: Apply inverse Laplace transform using time-shift property

\(y(t) = \mathcal{L}^{-1}\left\{e^{-2s}\left(\frac{1/4}{s} - \frac{1/4 \cdot s}{s^2 + 4}\right)\right\}\)

Using \(\mathcal{L}^{-1}\{e^{-cs}F(s)\} = u_c(t)f(t-c)\):

\(y(t) = u_2(t)\left[\frac{1}{4} - \frac{1}{4}\cos(2(t-2))\right]\)

\(y(t) = \frac{1}{4}u_2(t)[1 - \cos(2(t-2))]\)

Step 7: Express as piecewise function

\(y(t) = \begin{cases} 0 & \text{if } t < 2 \\ \frac{1}{4}[1 - \cos(2(t-2))] & \text{if } t \geq 2 \end{cases}\)

\(y(t) = \frac{1}{4}u_2(t)[1 - \cos(2(t-2))]\)
Final answer:

The solution is \(y(t) = \frac{1}{4}u_2(t)[1 - \cos(2(t-2))]\). The system remains at rest until t = 2, then responds with oscillatory motion due to the step input.

Applied rules:

• Step function forcing: System responds only after the switch-on time

• Time-shift property: \(\mathcal{L}^{-1}\{e^{-cs}F(s)\} = u_c(t)f(t-c)\)

• Oscillatory response: Sinusoidal terms appear due to the natural frequency of the system

5 IVP with delta function
Exercise 5
Solve the initial-value problem: \(y'' + 9y = 3\delta(t-1)\), \(y(0) = 0\), \(y'(0) = 0\). Explain the physical interpretation.
Definition:

Delta function in IVP: A Dirac delta function represents an instantaneous impulse that changes the velocity of the system instantaneously at the specified time, without changing the position.

Equation
y'' + 9y = 3δ(t-1)
Laplace
(s² + 9)Y(s) = 3e^{-s}
Solution
y(t) = (1/3)u_1(t)sin(3(t-1))
Step 1: Take the Laplace transform of both sides

\(\mathcal{L}\{y'' + 9y\} = \mathcal{L}\{3\delta(t-1)\}\)

\(\mathcal{L}\{y''\} + 9\mathcal{L}\{y\} = 3\mathcal{L}\{\delta(t-1)\}\)

Step 2: Apply Laplace transform properties

Let \(\mathcal{L}\{y\} = Y(s)\)

\(\mathcal{L}\{y''\} = s^2Y(s) - sy(0) - y'(0) = s^2Y(s) - 0 - 0 = s^2Y(s)\)

\(\mathcal{L}\{\delta(t-1)\} = e^{-s}\)

Substituting: \(s^2Y(s) + 9Y(s) = 3e^{-s}\)

Step 3: Solve for Y(s)

\(Y(s)(s^2 + 9) = 3e^{-s}\)

\(Y(s) = \frac{3e^{-s}}{s^2 + 9}\)

Step 4: Apply inverse Laplace transform using time-shift property

\(Y(s) = 3e^{-s} \cdot \frac{1}{s^2 + 9} = 3e^{-s} \cdot \frac{1}{3} \cdot \frac{3}{s^2 + 9}\)

\(Y(s) = e^{-s} \cdot \frac{1}{s^2 + 9}\)

Wait, let's be more careful: \(Y(s) = \frac{3e^{-s}}{s^2 + 9} = e^{-s} \cdot \frac{3}{s^2 + 9}\)

Using \(\mathcal{L}^{-1}\{e^{-cs}F(s)\} = u_c(t)f(t-c)\) where \(\mathcal{L}^{-1}\left\{\frac{3}{s^2 + 9}\right\} = \sin(3t)\):

\(y(t) = u_1(t)\sin(3(t-1))\)

Step 4 (Corrected): Apply inverse Laplace transform

\(Y(s) = \frac{3e^{-s}}{s^2 + 9} = 3e^{-s} \cdot \frac{1}{s^2 + 9}\)

Since \(\mathcal{L}^{-1}\left\{\frac{1}{s^2 + 9}\right\} = \frac{1}{3}\sin(3t)\):

\(y(t) = 3u_1(t) \cdot \frac{1}{3}\sin(3(t-1)) = u_1(t)\sin(3(t-1))\)

Step 5: Express as piecewise function

\(y(t) = \begin{cases} 0 & \text{if } t < 1 \\ \sin(3(t-1)) & \text{if } t \geq 1 \end{cases}\)

Step 6: Physical interpretation

The system is initially at rest. At t = 1, an impulse of strength 3 is applied.

This instantaneously changes the velocity, causing the system to oscillate with amplitude dependent on the impulse strength.

The natural frequency is 3 rad/s, so the oscillation is \(\sin(3(t-1))\).

\(y(t) = u_1(t)\sin(3(t-1))\)
Final answer:

The solution is \(y(t) = u_1(t)\sin(3(t-1))\). The impulse at t = 1 instantaneously changes the system's velocity, initiating sinusoidal oscillation with frequency 3.

Applied rules:

• Delta function property: Impulses affect velocity, not position

• Impulse response: The system's response to a delta function characterizes its behavior

• Oscillatory behavior: Natural frequency determines the oscillation pattern

Key Concepts: Step Functions, Dirac Delta, Applications
\(\mathcal{L}\{u_c(t)\} = \frac{e^{-cs}}{s}, \quad \mathcal{L}\{\delta(t-c)\} = e^{-cs}\)
Fundamental Transform Properties
Key definitions:

Unit step function: \(u_c(t) = \begin{cases} 0 & \text{if } t < c \\ 1 & \text{if } t \geq c \end{cases}\), used to model functions that turn on at time t = c

Dirac delta function: \(\delta(t-c)\) represents an idealized impulse of infinite magnitude but zero duration at time t = c, with area (strength) of 1

Time-shift property: \(\mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}F(s)\), allows modeling delayed functions

Sifting property: \(\int_{-\infty}^{\infty} \delta(t-c)g(t)dt = g(c)\), extracts function value at impulse location

Complete methodology:
  1. Function identification: Determine if step functions or delta functions are present
  2. Standard form: Express piecewise functions using unit step functions
  3. Transform application: Apply appropriate Laplace transform properties
  4. Algebraic solution: Solve for Y(s) in the s-domain
  5. Inverse transform: Apply inverse Laplace transform to get y(t)
  6. Physical interpretation: Understand the real-world meaning of the solution
Tip 1: To model a function that starts at time c, multiply by u_c(t).
Tip 2: Delta functions represent instantaneous changes that affect the derivative of the solution.
Tip 3: The exponential e^{-cs} in the s-domain indicates a time delay of c units in the time domain.
Tip 4: When solving IVPs with discontinuous forcing, the solution changes behavior at switching times.
Common applications: Switching circuits, impact loads, signal processing, control systems, and modeling sudden changes in physical systems.
Physical meaning: Step functions model gradual changes, delta functions model instantaneous impulses.
Essential formulas and concepts:

• \(\mathcal{L}\{u_c(t)\} = \frac{e^{-cs}}{s}\)

• \(\mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}F(s)\)

• \(\mathcal{L}\{\delta(t-c)\} = e^{-cs}\)

• \(\mathcal{L}^{-1}\{e^{-cs}F(s)\} = u_c(t)f(t-c)\)

• \(\int_{-\infty}^{\infty} \delta(t-c)g(t)dt = g(c)\) (sifting property)

• \(\mathcal{L}\{t^n\} = \frac{n!}{s^{n+1}}\)

Questions & Answers

Question: How do I convert a piecewise function into a combination of unit step functions?

Answer: To convert a piecewise function to step functions, follow these steps:

For a function like:

\(f(t) = \begin{cases} g_1(t) & \text{if } t < c_1 \\ g_2(t) & \text{if } c_1 \leq t < c_2 \\ g_3(t) & \text{if } t \geq c_2 \end{cases}\)

Method:

  1. Start with the first piece: \(g_1(t)\)
  2. Add the second piece times its activation function: \(g_2(t)u_{c_1}(t)\)
  3. Subtract the first piece when the second starts: \(-g_1(t)u_{c_1}(t)\)
  4. Add the third piece times its activation function: \(g_3(t)u_{c_2}(t)\)
  5. Subtract the second piece when the third starts: \(-g_2(t)u_{c_2}(t)\)

So: \(f(t) = g_1(t) + [g_2(t) - g_1(t)]u_{c_1}(t) + [g_3(t) - g_2(t)]u_{c_2}(t)\)

This ensures the correct function is active in each interval.

Question: What's the difference between the effect of a step function and a delta function in a differential equation?

Answer: The key differences are:

Step function effect:

  • Represents a constant input that "turns on" at time t = c
  • Affects the position (value) of the solution gradually
  • Causes continuous change in the solution
  • Like turning on a constant force or voltage

Delta function effect:

  • Represents an instantaneous impulse at time t = c
  • Affects the velocity (derivative) of the solution instantaneously
  • Causes a jump discontinuity in the first derivative
  • Like hitting a system with a hammer or applying an instantaneous force

In the solution, a step function typically adds a term that starts growing at time c, while a delta function adds a term that represents an immediate change in the rate of change.

Question: How do step functions and delta functions relate to real-world systems?

Answer: These functions model common real-world phenomena:

Step functions appear in:

  • Switching circuits (power turned on/off)
  • Control systems (setpoints changed)
  • Heating systems (thermostat activated)
  • Production systems (machines turned on)
  • Biological systems (drug administered)

Delta functions appear in:

  • Mechanical impacts (ball hitting wall)
  • Electrical pulses (switching transients)
  • Seismic events (earthquake shocks)
  • Biological shocks (sudden medication dose)
  • Communication signals (digital pulses)

They provide mathematical tools to model discontinuous inputs that are common in engineering and physical systems, allowing us to analyze system responses to realistic inputs.