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

A8 · Lesson 26 · Undetermined coefficients

Guessing the forced response

Drive a circuit with a step and its output settles to a constant. Drive it with a sine and the output is a sine of the same frequency. Drive it with a decaying exponential and you get the same exponential back, scaled. The forced response looks like the input, so you can guess its shape and solve only for the size. That guess-and-check method is called undetermined coefficients, and when the input happens to match one of the circuit's own natural responses, the guess needs a twist.

  • The equation is y¨+3y˙+2y=e−ct. Its forced response is Ae−ct, and the curve shows the size A against the input's decay rate c.
  • Move c toward 1 or 2. Why does A blow up there?
  • Those are the circuit's own natural rates: the roots of r2+3r+2=0 are −1 and −2.

Predict

For y¨+3y˙+2y=4, a constant input, what is the forced response?

Name it

The structure

For y¨+py˙+qy=g(t) (constant p, q), every solution is

y=yh+yp

where yh=c1y1+c2y2 is the general solution with g=0 (the natural response, from the roots) and yp is any one particular solution (the forced response). Find yp first, then fit c1 and c2 to the starting values using the whole y.

The guesses

Input g(t)Guess for yp
constant KA
polynomial of degree ngeneral polynomial of degree n
eatAeat
cos⁡ωt or sin⁡ωtAcos⁡ωt+Bsin⁡ωt
eatcos⁡ωteat(Acos⁡ωt+Bsin⁡ωt)

Substitute, match coefficients, solve for A, B, ....

For g=eat the guess gives A(a2+pa+q)=1: the characteristic polynomial evaluated at the input's rate. In C9 and A10 that becomes the transfer function, 1s2+ps+q at s=a.

The modification rule

If the guess already solves the homogeneous equation (the input's rate is a root), substitution gives 0=1. Multiply the guess by t (by t2 if the root is double). For g=ert with r a simple root, yp=tert2r+p. The growing factor t is resonance: input and system share a rate.

Worked example

Solve y¨+3y˙+2y=4 with y(0)=0, y˙(0)=0.

Show the solution
  1. Particular and homogeneous parts. yp=2yh=c1e−t+c2e−2t
  2. Fit the start. With y=2+c1e−t+c2e−2t, the conditions y(0)=0 and y˙(0)=0 give 2+c1+c2=0−c1−2c2=0 so c1=−4 and c2=2.

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

Worked example

Find a particular solution of y¨+3y˙+2y=e−t.

Show the solution
  1. Choose the guess. −1 is a root, so Ae−t fails; try yp=Ate−t.
  2. Differentiate. y˙p=A(1−t)e−ty¨p=A(t−2)e−t
  3. Substitute. The equation gives A[(t−2)+3(1−t)+2t]e−t=Ae−t so A=1 and yp=te−t.
  4. Check with the formula. The formula 12r+p=1−2+3 agrees.

Answer yp=te−t.

Worked example

Find a particular solution of y¨+2y˙+5y=10t.

Show the solution
  1. Guess. The input is a polynomial of degree 1, so guess yp=at+b. Then y˙p=a and y¨p=0.
  2. Substitute. 2a+5(at+b)=10t
  3. Match coefficients. Matching the t terms and then the constants, 5a=102a+5b=0 so a=2 and b=−0.8.
  4. Read it. The output tracks the ramp with a fixed lag.

Answer yp=2t−0.8, which tracks the ramp with a fixed lag.

Check

What is the forced response of y¨+3y˙+2y=6?

Check

What is A in the forced response Ae−4t of y¨+3y˙+2y=e−4t?

Check

What is the amplitude of the forced response of y¨+2y˙+9y=cos⁡(2t)?

Check

The forced response of y¨+3y˙+2y=t is at+b. What is b?

Check

y¨+4y˙+3y=e−1t has characteristic roots −1 and −3. The input matches a root, so yp=Ate−1t. What is A?

Check

Solve y¨+3y˙+2y=2 with y(0)=y˙(0)=0. What is y(0.5)?

Check

Find yp=pt+q for y¨+2y˙+5y=6t.

(a)

What is p?

(b)

What is q?

Check

Find the particular solution of y¨+4y=Acos⁡wt by guessing yp=Kcos⁡wt (with w≠2).

Step 1

Substituting gives K(4−w2)cos⁡wt=Acos⁡wt. What multiplies K?

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

Why does the guess Ae−t fail for y¨+3y˙+2y=e−t, and what does the fix mean physically?

Practice

Keep practicing

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