Question 8 of 8: Damped Mass–Spring Response to a Square-Wave Force
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
National Exams — May 2017 — 04-BS-1 Mathematics. Three-hour, closed-book exam (one double-sided aid sheet permitted, approved calculator allowed). Format: eight questions offered; any five constitute a complete paper and only the first five appearing in the answer book are marked. All eight are solved below for completeness.
Reference texts: Kreyszig, Advanced Engineering Mathematics (10th ed., Wiley) — ODEs, systems of ODEs, Laplace transforms, line/surface integrals, Stokes'/divergence theorems; Stewart, Calculus: Early Transcendentals (9th ed., Cengage) — Lagrange multipliers, planes and surfaces in space.
Question 8: Damped Mass–Spring Response to a Square-Wave Force 20 marks
Given. An overdamped second-order system at rest, forced by a unit-height square pulse active only on $1\le t<2$.
Find. The response $y(t)$ for all $t\ge0$.
Approach. Write the pulse as a difference of unit step functions, $r(t)=u(t-1)-u(t-2)$, transform with zero initial conditions, and use the second shifting theorem to invert.
Laplace-transform the equation. With $y(0)=y'(0)=0$ and $\mathcal L\{u(t-a)\}=e^{-as}/s$:
$$\big(s^2+3s+2\big)Y(s)=\frac{e^{-s}-e^{-2s}}{s}\ \Rightarrow\ Y(s)=\frac{e^{-s}-e^{-2s}}{s(s+1)(s+2)}.$$
Note $s^2+3s+2=(s+1)(s+2)$.
Partial fractions of the transfer factor.
$$\frac{1}{s(s+1)(s+2)}=\frac{1/2}{s}-\frac{1}{s+1}+\frac{1/2}{s+2}.$$
Invert the unit-step response $h(\tau)$. This is the response to a single unit step at $t=0$:
$$h(\tau)=\frac12-e^{-\tau}+\frac12e^{-2\tau},\qquad\tau\ge0.$$
Apply the second shifting theorem. Since $Y(s)=\big(e^{-s}-e^{-2s}\big)H(s)$, the time response is $y(t)=h(t-1)u(t-1)-h(t-2)u(t-2)$:
$$\boxed{y(t)=\begin{cases}0,&0\le t<1\\[2pt]\dfrac12-e^{-(t-1)}+\dfrac12e^{-2(t-1)},&1\le t<2\\[4pt]\left[e^{-(t-2)}-e^{-(t-1)}\right]+\dfrac12\left[e^{-2(t-1)}-e^{-2(t-2)}\right],&t\ge2\end{cases}}$$
(the $t\ge2$ branch is $h(t-1)-h(t-2)$ expanded and simplified; the constant $\tfrac12-\tfrac12=0$ terms cancel).
(Check: substituting the middle branch back into $y''+3y'+2y$ on $1