Skip to content

Step, ramp and impulse functions

Write piecewise waveforms with steps, ramps and impulses, and differentiate them.

It opens on

A switch connects 10 V at t = 2 s and disconnects it at t = 5 s. Can one formula, with no cases, give the voltage at every time?

Why it matters

Every switch in a circuit turns a source on or off at an instant, and the step function writes that in one symbol; ramps and impulses follow from it, and the step response of the next lessons is the circuit's answer to u(t). Exams ask to write a sketched waveform with u and r, to differentiate it for a capacitor current, and to evaluate an integral with δ.

Good to know first

  • Piecewise functions
  • derivatives and integrals
  • the capacitor law i = C dv/dt

Step by step

  1. The unit step

    Define u(t) and the shifted step u(t − t₀), and write a rectangular pulse as the difference of two steps.

    To turn it off at 5 s, add −10u(t − 5). The sum is a pulse, v = 10[u(t − 2) − u(t − 5)] V.

    pulse = 10[u(t − 2) − u(t − 5)]

    A common mix-up

    u(t − 2) jumps at t = −2.

    In fact: It jumps where its argument is zero, at t = +2.

  2. Ramps and piecewise waveforms

    Define the ramp r(t) = t u(t), and write a waveform of straight pieces as a sum of ramps and steps by reading changes of slope and jumps.

    At t = 0 the slope goes from 0 to 5, so 5r(t). At t = 2 it goes from 5 to 0, so −5r(t − 2).

    A common mix-up

    A corner needs a step.

    In fact: a corner is a change of slope, which needs a ramp; only a vertical jump needs a step.

  3. The impulse and the sifting property

    Define δ(t) as the derivative of the step, with unit area, differentiate a piecewise waveform including its jumps, and evaluate integrals with the sifting property.

    Differentiate v term by term. The ramps give steps and the step gives an impulse, so dv/dt = 5u(t) − 5u(t − 2) − 10δ(t − 4) V/s.

    A common mix-up

    The impulse's height is its strength.

    In fact: Its height is infinite; the number in front is its area.

Try it

What is 3u(t) + 3u(t − 1) − 6u(t − 2) at t = 1.5 s?Answer

6 V

Hint: Two steps are on

What is 2r(t) − 2r(t − 3) at t = 5 s?Answer

6 V

Hint: The ramp stops rising at 3 s

Evaluate ∫ e−2tδ(t − 1) dt over all t.Answer

e−2 ≈ 0.135

Hint: Put t = 1 into e−2t

What is the pulse's value at t = 3 s and at t = 6 s?Answer

10 V at 3 s and 0 V at 6 s, since at 6 s both steps are on and cancel

Which term makes the drop from 10 V to 0 at t = 4 s?Answer

−10u(t − 4), a step down of 10 V at 4 s

Step, ramp and impulse functions

30 minutes every month. No card.