A827 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A8 · Lesson 27 · Variation of parameters

A formula for any input

Guessing the forced response works for steps, exponentials and sines. Real inputs are messier: a speech waveform, a sensor's noise, a pulse train with odd timing. Variation of parameters handles any input with an integral instead of a guess. Pushed one step further, it says something remarkable: if you know how a linear circuit responds to a single sharp kick, its impulse response, you know how it responds to everything. Every input is a stream of tiny kicks, and the output adds up their responses. That idea, convolution, is the foundation of signals and systems.

  • The solid curve is the impulse response h(t) of y¨+2ζy˙+y=0: what happens after one sharp kick.
  • The dashed curve is its running integral, which is the step response: a step is a steady stream of kicks.
  • Change ζ. The step response settles where the impulse response's total area says it should.

Predict

You know a circuit's response to one sharp kick at t=0. Can you predict its response to a long, arbitrary input?

Name it

Variation of parameters

For y¨+py˙+qy=g(t) with homogeneous solutions y1, y2 and Wronskian W=y1y˙2−y˙1y2, a particular solution is

yp=−y1∫y2gWdt+y2∫y1gWdt

It comes from letting the constants in c1y1+c2y2 vary with time, u1(t)y1+u2(t)y2, and imposing u˙1y1+u˙2y2=0 to keep the algebra simple. It needs no guess and works for any continuous g, even with variable p and q.

The impulse response

The impulse response h(t) is the solution starting at rest that's kicked at t=0: h(0)=0, h˙(0)=1. For constant coefficients, variation of parameters rearranges into the convolution formula: starting from rest,

y(t)=∫0th(t−s)g(s)ds
Equationh(t)
y˙+ay=ge−at
y¨+ω2y=gsin⁡ωtω
roots r1≠r2er1t−er2tr1−r2
roots −σ±jωde−σtsin⁡ωdtωd

The step response is ∫0th(s)ds: the impulse response's running area.

Worked example

Use convolution to find the step response of y¨+3y˙+2y=1 from rest.

Show the solution
  1. Impulse response. The roots are −1 and −2, so h(t)=e−t−e−2t
  2. Convolve with the step. y=∫0t(e−(t−s)−e−2(t−s))ds=(1−e−t)−12(1−e−2t)=12−e−t+12e−2t
  3. Compare. It's the same answer undetermined coefficients gives.

Answer y=12−e−t+12e−2t.

Worked example

Find a particular solution of y¨+y=sec⁡t, for which no guess works.

Show the solution
  1. Homogeneous solutions. y1=cos⁡t and y2=sin⁡t, with Wronskian W=1.
  2. Variation of parameters. yp=−cos⁡t∫sin⁡tsec⁡tdt+sin⁡t∫cos⁡tsec⁡tdt=cos⁡tln⁡|cos⁡t|+tsin⁡t

Answer yp=cos⁡tln⁡|cos⁡t|+tsin⁡t.

Worked example

Find the impulse response of y¨+3y˙+2y=δ(t) and its peak.

Show the solution
  1. What an impulse does. An impulse leaves the system at rest in position but with y˙(0+)=1.
  2. Fit the homogeneous solution. With roots −1 and −2, h=c1e−t+c2e−2t with h(0)=0 and h˙(0)=1, so h=e−t−e−2t
  3. Time of the peak. It peaks where −e−t+2e−2t=0 so e−t=12, at t=ln⁡2=0.693.
  4. Peak value. h=12−14=0.25
  5. Why it matters. Every other response of this system is a convolution with this one curve.

Answer h=e−t−e−2t, which peaks at 0.25 when t=0.693.

Check

What is the Wronskian of cos⁡5t and sin⁡5t?

Check

A system has characteristic roots −1 and −4. What is its impulse response at t = 1?

Check

What is the impulse response of y¨+22y=g at t = 0.3?

Check

Using h(t)=e−t−e−2t, what is the step response of y¨+3y˙+2y=1 at t = 1?

Check

A first-order system y˙+2y=g at rest gets a pulse: g=1 from 0 to T = 1, then 0. Using convolution with h=e−at, what is y at t = 4?

Check

Why can variation of parameters handle inputs that undetermined coefficients can't?

Check

Find the impulse response of y¨+(1+3)y˙+1⋅3y=δ(t).

(a)

When does it peak?

(b)

What is the step response's final value?

Check

The impulse response of y˙+ay=δ(t) is h=e−at. Find the step response by convolution.

Step 1

What is ∫0te−aτdτ?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Explain why a linear, time-invariant circuit's response to any input is the convolution of the input with its impulse response.

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.