4.6.31 · D3Ordinary Differential Equations

Worked examples — Heaviside step function and Dirac delta function

2,826 words13 min readBack to topic

The scenario matrix

Every problem on this topic is one (or a mix) of the cells below. The final column names the worked example that covers it.

Cell Scenario class What makes it tricky Example
A Un-shifted is not already written as — must rewrite first Ex 1
B Multi-piece step assembly several boxcars, several delay stamps Ex 2
C Delta inside an integral (sifting) plain evaluation, no ODE Ex 3
D Degenerate and at the very start Ex 4
E Delta at a shifted time driving an ODE gate + shift on the output Ex 5
F Step forcing an ODE, watch steady state limiting value as Ex 6
G Both a step and a delta on the RHS superpose two responses Ex 7
H Word problem (real impulse: a hammer/kick) translate physics → Ex 8
I Exam twist: delta before , or evaluate a delta outside its window the sift lands where nothing is measured Ex 9

We now sweep the matrix top to bottom.


Ex 1 — Cell A: un-shifted

Takeaway for cell A: whenever the multiplier is a bare , substitute and expand before touching the theorem.


Ex 2 — Cell B: assembling a multi-piece input

Figure — Ex 2 input graph. The blue segment is the constant on ; the yellow line is the ramp on ; the green segment is after . The open circle at and filled circle at mark the genuine downward jump (red arrow); the second red arrow marks the switch-off at . This is exactly the graph our boxcar sum reproduces.

Figure — Heaviside step function and Dirac delta function

Ex 3 — Cell C: pure sifting, no ODE


Ex 4 — Cell D: the degenerate


Ex 5 — Cell E: a delta at a shifted time drives an ODE

Figure — Ex 5 kicked oscillator. The green segment shows before the kick; the red arrow at is the impulse ; the blue curve is the resulting sine that switches on only for . Note the curve starts at height (position continuous) but with a nonzero slope (velocity kicked).

Figure — Heaviside step function and Dirac delta function

Ex 6 — Cell F: step forcing and the steady-state limit

Figure — Ex 6 step-forced rise. The green segment is before the switch at (red arrow); the yellow curve is the exponential rise; the dashed blue line marks the steady value that the curve approaches but never overshoots.

Figure — Heaviside step function and Dirac delta function

Ex 7 — Cell G: a step AND a delta together


Ex 8 — Cell H: a real-world hammer blow


Ex 9 — Cell I: exam twist, spike outside the window


Recall

Recall Which cell, which fix? (hide and answer)

For with not shifted, first rewrite as ::: , then expand. A delta of strength at on a first-order makes jump at by ::: exactly . A delta on the RHS of a second-order system jumps the ::: velocity (not the position — position stays continuous). equals only when ::: (the spike is inside ); otherwise it is . The delay stamp inverts to ::: — never forget the gate . means ::: run the Laplace machine backwards — recover the time function from its transform .