ENع
←Step, impulse, ramp
Lesson 23 · Capacitors, inductors and first-order circuits

Step, impulse and ramp functions

14 min10 steps5 questionsIntermediate
About this lesson

Circuits switch, and switching needs its own maths. Follow one circuit, a programmable current source feeding an empty 1 µF capacitor, and watch three special functions appear. A 2 mA step u(t) charges the capacitor along a ramp r(t) at 2 V per millisecond. A 3 ms pulse, built from two steps, stores 6 µC and holds 6 V. Squeeze the same charge into less and less time and you reach the impulse δ(t), which makes the voltage jump. It builds on the Hardware lesson on resistors and capacitors and on "Switching and initial conditions".

You'll learn to

Tick what you feel confident about. These self-checks do not affect your lesson score.

Fig 23 · Interactive
01 / 10

A source that switches on

A current source is(t) feeds a 1 µF capacitor. The ammeter reads the current iC; the voltmeter reads the voltage vC. Before t = 0 the source gives nothing. At t = 0 it switches on to 2 mA, in no time at all.

circuit
  is(t)  programmable current source
  C      1 µF, empty at the start: vC(0) = 0
  A      ammeter in series: reads iC
  V      ideal voltmeter across C: draws no current

before t = 0   iC = 0 mA
after  t = 0   iC = 2 mA

The change takes zero time: a jump.
Loading figure…
or ← →
Read the lesson step by step
  1. A source that switches on

    A current source is(t) feeds a 1 µF capacitor. The ammeter reads the current iC; the voltmeter reads the voltage vC. Before t = 0 the source gives nothing. At t = 0 it switches on to 2 mA, in no time at all.

    circuit
      is(t)  programmable current source
      C      1 µF, empty at the start: vC(0) = 0
      A      ammeter in series: reads iC
      V      ideal voltmeter across C: draws no current
    
    before t = 0   iC = 0 mA
    after  t = 0   iC = 2 mA
    
    The change takes zero time: a jump.
  2. The unit step u(t)

    The unit step u(t) is 0 for t < 0 and 1 for t > 0. It models any switch closing at t = 0. Our source is 2u(t) mA: the step scaled by 2 mA. Watch the current plot jump.

    unit step
      u(t) = 0   for t < 0
      u(t) = 1   for t > 0
      at t = 0 it jumps (its value there
      has no agreed value; some take ½)
    
    scale it:  iC(t) = 2·u(t) mA
      t = −0.5 ms   iC = 0
      t = +0.5 ms   iC = 2 mA
  3. Delay it

    Replace t with t − t0 and the jump moves to t = t0. Here the source waits 1 ms: iC = 2u(t − 1) mA. It is 0 until t = 1 ms, then 2 mA. The minus sign means a delay.

    delayed step
      u(t − t0) = 0   for t < t0
      u(t − t0) = 1   for t > t0
    
    t0 = 1 ms:
      iC = 2·u(t − 1) mA
    
    u(t − t0) jumps late (t0 > 0)
    u(t + t0) jumps early
  4. A pulse is two steps

    Add a step up at 0 and a step down at 3 ms: iC = 2u(t) − 2u(t − 3) mA. The two steps cancel after 3 ms, leaving a rectangular pulse 2 mA high and 3 ms wide.

    pulse = step up − delayed step
      iC = 2u(t) − 2u(t − 3) mA
    
      t < 0         0 − 0 = 0 mA
      0 < t < 3     2 − 0 = 2 mA
      t > 3         2 − 2 = 0 mA
    
    Any piecewise-flat waveform is a
    sum of scaled, delayed steps.
  5. The capacitor builds a ramp

    Charge piles up on the capacitor: vC = q/C. A steady 2 mA adds 2 µC every millisecond, so vC climbs 2 V each ms. At 3 ms it reads 6 V. A line that starts rising at t = 0 is a ramp.

    capacitor: vC(t) = vC(0) + (1/C)·∫ iC dt
    
      iC = 2 mA = 2 µC per ms
      1/C = 1 V per µC
      slope = 2 V/ms = 2000 V/s
    
      t = 1 ms   vC = 2 V
      t = 3 ms   vC = 6 V
      t = 6 ms   vC = 12 V
  6. Ramp and step are a pair

    The unit ramp r(t) = t·u(t) is the area under u(t) so far: zero, then growing with slope 1. So vC = 2r(t) V, t in ms. Go back with a slope: iC = C·dvC/dt = 1 µF × 2000 V/s = 2 mA.

    unit ramp
      r(t) = 0   for t < 0
      r(t) = t   for t > 0
    
      r(t) = ∫ u dt      (integrate the step)
      u(t) = dr/dt       (slope of the ramp)
    
    check on the capacitor
      iC = C·dvC/dt
         = 1 µF × 2000 V/s = 2 mA  ✓
  7. A pulse charges, then holds

    Feed the pulse instead. vC ramps for 3 ms, then stops at 6 V: 2r(t) − 2r(t − 3). The pulse's area, 2 mA × 3 ms = 6 µC, is the charge stored. The capacitor keeps it after the current stops.

    vC = 2r(t) − 2r(t − 3) V
      t > 3 ms: 2t − 2(t − 3) = 6 V, flat
    
    charge = area of the pulse
      Q = 2 mA × 3 ms = 6 µC
      vC = Q/C = 6 V
    
    energy check (passive sign convention)
      source gives ∫vC·iC dt = 18 µJ
      C stores ½CvC² = 18 µJ
  8. Same charge, less time

    Now deliver the same 6 µC faster. 3 ms needs 2 mA, 1 ms needs 6 mA, 0.25 ms needs 24 mA. The pulse gets narrower and taller, but its area stays 6 µC, so vC still ends at 6 V.

    height = Q / width   (area fixed at 6 µC)
    
      width     height     vC at the end
      3 ms      2 mA       6 V
      1 ms      6 mA       6 V
      0.25 ms   24 mA      6 V
    
    The current axis stretches to 24 mA in this step,
    so even the tallest pulse fits.
    
    The voltage ramp gets steeper and
    shorter: it is turning into a jump.
  9. The unit impulse δ(t)

    Shrink the width to zero and keep area 1: that limit is the unit impulse δ(t). It is zero except at t = 0 and its area is 1. The current 6 µC·δ(t) dumps all the charge at once, so vC = 6u(t) V.

    unit impulse
      δ(t) = 0 for t ≠ 0
      ∫ δ(t) dt = 1   (area, not height)
      δ(t) = du/dt
    
    drawn as an arrow; the number beside
    it is its strength (area):
      iC = 6 µC · δ(t)
      vC = (6 µC / 1 µF)·u(t) = 6u(t) V
    
    A real source can only come close:
    a very short, very tall pulse.
  10. One family, linked by calculus

    Integrate δ and you get u; integrate u and you get r. Differentiate and you walk back. A capacitor integrates its current, so an impulse in gives a step out, and a step in gives a ramp out.

    δ(t)  --∫-->  u(t)  --∫-->  r(t)
    δ(t)  <--d/dt-- u(t) <--d/dt-- r(t)
    
    capacitor (C = 1 µF, starts empty)
      iC = 6 µC·δ(t)  ->  vC = 6u(t) V
      iC = 2u(t) mA    ->  vC = 2r(t) V (t in ms)
    
    sifting: ∫ f(t)·δ(t − t0) dt = f(t0)
      e.g. ∫ (t² + 3)·δ(t − 2) dt = 7

Quiz Unlocks after the last step.