Goal: Learn how to construct piecewise functions using unit step functions and apply them to solve differential equations.
1. Building Piecewise Functions with Unit Step Functions
Unit Step Function
Definition: The unit step function is defined by
\[ u(t - a) = \begin{cases} 0, & t < a \\ 1, & t \ge a \end{cases} \]Laplace Transform: The Laplace transform of the unit step function is
\[ \mathcal{L}\{u(t - a)\} = \frac{e^{-as}}{s}, \quad a \ge 0 \]Translation on the \(t\)-Axis
Theorem (Translation on the \(t\)-Axis): Suppose \( \mathcal{L}\{f(t)\} = F(s) \) exists for \( s > c \). Then for \( a > 0 \),
for \( s > c + a \).
The function \( u(t-a)f(t-a) \) represents a delayed version of \( f(t) \):
Representing Piecewise Functions
Idea: Piecewise functions can be rewritten using unit step functions.
Example 1.1
Problem: Find the Laplace transform of the function
Solution:
- Rewrite \(f(t)\) using the unit step function:
- Apply the Laplace transform using linearity and the Translation on the \(t\)-Axis theorem:
- Final Answer:
Since the step occurs at \(t = 3\), we shift the variable to match the Translation on the \(t\)-Axis theorem:
Practice Problems
Question 1
Find the inverse Laplace transform:
Question 2
Find the inverse Laplace transform:
Question 3
Find the Laplace transform of the piecewise function:
Question 4
Find the Laplace transform of the piecewise function:
Question 5
Find the Laplace transform of the piecewise function:
2. Applications to Differential Equations
Example 2.1
A mass of 1 slug (\(= 32 \) lb) is attached to a spring with constant \(k = 4\) lb/ft. The mass is initially at rest at equilibrium. Beginning at time \(t = 0\) (seconds), an external force \(f(t) = \cos 2t\) is applied to the mass, but at time \(t = 2 \pi\) this force is turned off (abruptly discontinued) and the mass is allowed to continue its motion unimpeded:
Find the resulting position \(x(t)\) of the mass for \(t \ge 0\).
Solution:
- Write the forcing function using unit step functions:
- Write the differential equation for the mass-spring system:
- Take the Laplace transform of both sides:
- Solve for \(X(s)\):
- Take the inverse Laplace transform using linearity and the Second Shifting Theorem:
- Compute the first term:
- Use Translation on the \(t\)-Axis for the second term:
- Combine the two terms to get \(x(t)\):
Example 2.2
Problem: Consider a mass-spring-dashpot system with \(m = 1\), \(k = 4\), and \(c = 0\). The system is governed by the differential equation:
The external forcing function is defined by:
Solution:
- Express the forcing function using the unit step function:
- Write the differential equation explicitly:
- Take the Laplace transform:
- Compute the inverse Laplace transform of the first term using partial fractions and tables:
- Use Translation on the \(t\)-Axis for the second term:
- Combine to get the complete solution:
Example 2.3
Note: You are allowed to use a calculator if needed for this problem.
Problem: The values of the elements of an RLC circuit are given. Solve the initial value problem with the given impressed voltage \(e(t)\):
Given values:
- \(L = 1\)
- \(R = 10\)
- \(C = 4 \cdot 10^{-2}\)
- \(e(t) = \begin{cases} 20t, & 0 \le t < 1 \\ 0, & t \ge 1 \end{cases} \)
Practice Example Problems:
The values of mass \(m\), spring constant \(k\), and dashpot resistance \(c\) are given for each mass–spring–dashpot system. Solve the initial value problems with the corresponding external force \(f(t)\) and initial conditions.
- \(m=1, \; k=4, \; c=0, \quad f(t)=1 \text{ for } 0 \le t < \pi, \; f(t)=0 \text{ for } t\ge\pi, \quad x(0)=0, \; x'(0)=0\)
- \(m=1, \; k=4, \; c=5, \quad f(t)=1 \text{ for } 0 \le t < 2, \; f(t)=0 \text{ for } t\ge 2, \quad x(0)=0, \; x'(0)=0\)
- \(m=1, \; k=9, \; c=0, \quad f(t)=\sin t \text{ for } 0 \le t \le 2\pi, \; f(t)=0 \text{ for } t>2\pi, \quad x(0)=0, \; x'(0)=0\)
- \(m=1, \; k=4, \; c=4, \quad f(t)=t \text{ for } 0 \le t \le 2, \; f(t)=0 \text{ for } t>2, \quad x(0)=0, \; x'(0)=0\)