3. Steps and impulses (2nd order)¶
The key transforms that apply when the forcing contains steps or impulses are
Note
Steps and impulses in forcing both produce steps in the solution.
3.1. Impulse forcing¶
For illustration, let’s start with an impulse on an undamped oscillator.
Example
Solve
for fixed \(T\ge 0\).
Solution
Taking the transform of everything and solving for \(X\) gives
where \(Y(s)=1/(s^2+1)\). We chose to write \(X\) this way so that we can apply the shift theorem,
In this case we have that \(y(t)=\sin(t)\), hence
That is, the solution is \(x(t)=H(t-T)\sin(t-T)\). Writing it piecewise,
Since the system in the previous example starts at rest, it remains at rest until the impulse at time \(T\). Note that \(x\) remains continuous at \(t=T\), but \(x'\) does not. In fact, \(x'(T^+)=\cos(0)=1\). This modifies in a basic way the impulse response we observed for first-order problems.
In a second-order linear ODE, the effect of a unit impulse is the same as an instantaneous increase by 1 in the derivative of the solution.
Example
Find the solution of \(x''+2x'+10x=6\delta(t-5)\), \(x(0)=x'(0)=0\).
Solution
Solving for the transform leads to
The shift theorem applied to \(e^{-5s}Y(s)\) requires us to define
and then find \(y(t)\). This \(Y\) is already in PFD form. One way to invert it is to complete the square in the denominator:
We now want to apply the transform pair
where \(a=-1\), because then \(Y(s)=F(s+1)\) if
Finally we can begin to unravel the tapestry. We see that \(f(t)=2\sin(3t)\). Our definitions and transform rules imply that \(y(t)=e^{-t}f(t)\) and \(x_p(t)=H(t-5)y(t-5)\). Hence
3.2. Step forcing¶
As a warm-up, let’s consider
Solving for the transform of the solution gives
This is in the form \(e^{-sT}Y(s)\), where \(Y(s)=1/[s(s^2+1)]\). An appropriate real PFD is
leading to the identity
From here it’s clear that \(A=1\), \(B=-1\), \(C=0\). Hence \(y(t)=1-\cos(t)\). Finally,
It only takes a moment to see that both \(x\) and \(x'\) are continuous at \(t=T\), which is the general situation with step forcing.
Example
Find a particular solution of \(x''-x=f(t)\), where \(f(t) = \begin{cases} 0, & 0 \le t < 3, \\ t, & t\ge 3. \end{cases}\)
Solution
The forcing function is \(f(t)=tH(t-3)\). This is not yet quite in a form we know how to transform. What we need is
in order to get
This requires the definition \(g(t-3)=t\), which means that \(g(t)=t+3\). Hence
Now we can solve for \(X_p\) to get
where
From here,
At \(s=0\) we get \(1=-B\). From \(s=1\) and \(s=-1\) we get \(2C=4\) and \(-2D=-2\). The coefficient of \(s^3\) on the right side is \(A+C+D\), which must be zero, so \(A=-3\). Thus
and \(y(t)=-3-t+2e^t + e^{-t}\). Finally, \(x_p(t) = H(t-3)y(t-3)\).
The Laplace transform systematizes the algebra needed to solve the kinds of linear ODEs we have encountered, but that does not mean that the algebra is simple. It’s an ideal setup for computer solutions. Most of the time, though, the method of undetermined coefficients is easier for hand computation.