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

A8 · Lesson 4 · Integrating factors

Solving any first-order linear equation

Feed a ramp into an RC low-pass filter, a voltage climbing steadily at 5 V per millisecond, and the output climbs at the same rate but stays a fixed distance behind, lagging by exactly one time constant. That lag is the tracking error of every first-order system following a steadily changing input: a thermostat chasing a rising setpoint, a sensor following a warming room. To find it, you need to solve τv˙+v=kt, which isn't separable. Every first-order linear equation, whatever its input, yields to one trick: multiply by the right factor and the left side becomes a single derivative.

  • The straight line is the input ramp, rising at k volts per millisecond. The curve is the RC filter's output, starting from zero.
  • After a few time constants the output runs parallel to the input. How far behind is it, in time and in volts?
  • Change τ and k and watch the gap.

Predict

An RC filter with τ = 1 ms follows a ramp rising at 5 V/ms. Once settled, how far below the input is the output?

Name it

Standard form

A first-order linear equation can be written

dydt+p(t)y=q(t)

y and y˙ appear only to the first power, with no products. The RC circuit is one: v˙+1τv=1τvin(t).

The integrating factor

Multiply through by μ(t)=e∫pdt. Since μ˙=pμ, the left side becomes μy˙+pμy=(μy)′, by the product rule. So

(μy)′=μqy=1μ(∫μqdt+C)

For constant p=a, μ=eat.

What the answer looks like

For constant p=a>0 the solution is always

y=Ce−at⏟natural response+yp(t)⏟forced response

The natural response is the same decaying exponential whatever the input; the forced response follows the input. That split, which lesson 14 used for steps and sines, holds for every input.

Tracking a ramp

For τv˙+v=kt with v(0)=0:

v(t)=k(t−τ)+kτe−t/τ

After the transient, the output equals the input delayed by τ: a gap of kτ.

Worked example

Solve τv˙+v=kt with v(0)=0.

Show the solution
  1. Standard form. v˙+vτ=ktτ so the integrating factor is μ=et/τ.
  2. Multiply through. (et/τv)′=kτtet/τ
  3. Integrate by parts. ∫kτtet/τdt=k(t−τ)et/τ+C
  4. Divide by the factor. v=k(t−τ)+Ce−t/τ
  5. Fit the start. v(0)=0 gives C=kτ.

Answer v=k(t−τ)+kτe−t/τ.

Worked example

Solve y˙+2y=e−t with y(0)=0.

Show the solution
  1. Integrating factor. μ=e2t, so (e2ty)′=et
  2. Integrate. e2ty=et+C
  3. Fit the start. With y(0)=0, C=−1: y=e−t−e−2t
  4. Its shape. It rises from zero, peaks at t=ln⁡2, and decays at the input's slower rate.

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

Worked example

Solve y˙+yt=1 for t>0 with y(1)=0.

Show the solution
  1. Integrating factor. The coefficient p(t)=1t varies, so μ=e∫dt/t=t
  2. Multiply through and integrate. The left side becomes (ty)′: (ty)′=tty=t22+C
  3. Fit the start. y(1)=0 gives C=−12: y=t2−12t
  4. Evaluate at t=2. y(2)=1−0.25=0.75
  5. Large t. For large t the solution approaches t/2, the particular part, and the 12t term fades.

Answer y=t2−12t, so y(2)=0.75.

Check

An RC filter with τ = 0.5 ms follows a ramp of 2 V/ms. Once settled, how far below the input is the output?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

A ramp of 2 V/ms drives an RC filter with τ = 1 ms, starting from 0 V. What is the output at t = 3 ms?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

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

Check

Solve y˙+4y=e−1t with y(0)=0. What is y(1)?

Check

What is the integrating factor for y˙+2ty=t (for t>0)?

Check

Solve y˙+yt=1 with y(1)=0 (t>0). What is y(3)?

Check

Solve y˙+3y=1 with y(0)=0.

(a)

What is y at t = 1?

(b)

What does y approach?

Check

Solve y˙+yt=1 with y(1)=0, using μ=t.

Step 1

(ty)′=t. What is ty?

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 multiplying by μ=e∫pdt make the equation solvable?

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.