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 , 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 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 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?
5 V. The solution is ; once the exponential dies, the output is the input delayed by , which on a ramp of 5 V/ms is a gap of V. It never catches up, and never falls further behind.
Name it
Standard form
A first-order linear equation can be written
and appear only to the first power, with no products. The RC circuit is one: .
The integrating factor
Multiply through by . Since , the left side becomes , by the product rule. So
For constant , .
What the answer looks like
For constant the solution is always
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 with :
After the transient, the output equals the input delayed by : a gap of .
Worked example
Solve with .
Show the solution
- Standard form. so the integrating factor is .
- Multiply through.
- Integrate by parts.
- Divide by the factor.
- Fit the start. gives .
Answer .
Worked example
Solve with .
Show the solution
- Integrating factor. , so
- Integrate.
- Fit the start. With , :
- Its shape. It rises from zero, peaks at , and decays at the input's slower rate.
Answer .
Worked example
Solve for with .
Show the solution
- Integrating factor. The coefficient varies, so
- Multiply through and integrate. The left side becomes :
- Fit the start. gives :
- Evaluate at .
- Large . For large the solution approaches , the particular part, and the term fades.
Answer , so .
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 = 3 ms?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
Solve with . What is ?
Check
Solve with . What is ?
Check
What is the integrating factor for (for )?
Check
Solve with (). What is ?
Check
Solve with .
(a)
What is at = 1?
(b)
What does approach?
Check
Solve with , using .
Step 1
. What is ?
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°.
Step 2
What is ?
Explain why
Why does multiplying by make the equation solvable?
The product rule says . Choosing with , which is exactly what satisfies, makes equal to . So after multiplying, the whole left side is the derivative of a single function, and integrating both sides gives directly. All the difficulty moves into one ordinary integral, .
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.