Separation failed on equations as simple as , and those are exactly the equations that describe a system being driven from outside.
A first order linear equation is one where the unknown and its derivative appear only to the first power and never multiplied together, so it can always be arranged as
with the coefficient and the forcing. Separation needs the right side to factor as a function of times a function of , and does not factor unless is constant or zero. This lesson finds the method that does work, and it works for every equation of this shape, whatever and are.
What we would like the left side to be
The whole difficulty is that is a sum of two unrelated-looking things. If instead the left side were the derivative of a single product, the equation could be integrated on sight, because the fundamental theorem would undo it in one step.
So demand it. Multiply the whole equation by an as-yet-unknown positive function :
and ask what would make the left side exactly . By the product rule , so the two agree for all precisely when
That is a separable equation for , and we can already solve it: . No constant of integration is needed, since any constant multiple of works equally well and would cancel later. This is the integrating factor, and it exists for every that can be integrated at all.
With it, the equation reads , so integrating both sides,
That formula solves the entire class. It is worth remembering the derivation rather than the formula, because in practice you compute , write the left side as a derivative, and integrate, which is less error-prone than substituting into a memorised expression.
Notice what has happened structurally. The single constant enters the answer multiplied by , and everything else comes from the forcing. Every first order linear equation therefore has a solution of the form "one particular response to the forcing, plus a constant times a decaying (or growing) function that remembers the initial condition". That split runs through the rest of the course.
Example. Solve with , for .
First put it in standard form by dividing by : . Then , so . Multiplying through,
Integrating, , so . The condition gives , so and . At that is . Checking the original equation at any is a two-line differentiation, and it holds.
Now you. Solve with , for .
Answer
Here , so and . The equation becomes , so and . Then gives , so .
Transient and steady state
Take the commonest case, constant and constant forcing . The integrating factor is , and the solution is
Two pieces, with quite different characters. The constant is the steady state: it is what the equation settles to, and it depends only on the forcing and the coefficient, not on where the system started. The exponential is the transient: it carries the whole memory of the initial condition and decays with time constant , reaching of its starting size after , and under one per cent after .
This is why identical devices with different histories end up behaving identically, and why the time constant, rather than the initial condition, is what an engineer quotes. It also explains the earlier direction field for , whose solutions all approached the line : that line is the response to the forcing , and the that distinguishes one solution from another is the transient.
Charging a capacitor
A resistor in series with a capacitor across a source obeys Kirchhoff's voltage law: the source equals the drop across the resistor plus the voltage on the capacitor. With the current through both,
which is the standard form with . Its solution from is .
Example. A kΩ resistor charges a μF capacitor from a V supply. How long until the capacitor reads V, and what is its voltage after one time constant?
The time constant is s. Setting , , so and s. After one time constant the capacitor holds V, which is the origin of the per cent rule quoted in electronics.
Now you. A kΩ resistor charges a μF capacitor from a V supply. Find the time constant and the time to reach V.
Answer
s. Then , so s.
The stirred tank
The same equation with different names governs any well-mixed reservoir. A tank holds litres, brine of concentration enters at litres per minute, and the mixture leaves at the same rate, so the volume stays fixed. The salt mass obeys
The removal term is the crucial modelling step: the outflow carries the tank's own concentration , which is what makes the equation linear in rather than merely an accounting identity. The time constant is , the time to pass one tankful through, and the steady state is , at which the tank has simply reached the inflow concentration.
Example. A litre tank starts full of pure water. Brine at kg per litre enters at litres per minute and the mixture leaves at litres per minute. When does the tank hold kg of salt?
The time constant is minutes and the steady state is kg, so . Setting gives and minutes. The tank never actually reaches kg, and asking for would give an infinite answer, which is the correct answer to a badly posed question.
Now you. A litre tank starts with kg of salt dissolved in it. Brine at kg per litre enters at litres per minute and leaves at the same rate. When does the tank hold kg?
Answer
The time constant is minutes and the steady state is kg, so . Setting gives and minutes.
If the outflow rate differs from the inflow, the volume changes with time, , and the coefficient becomes a function of . The equation is still linear, the integrating factor still exists, and it is now a power of rather than an exponential. Nothing about the method changes, which is the advantage of having derived it in general.
Forcing that does not settle
Steady state was easy because the forcing was constant. Drive the same circuit with a sinusoid, , and the integrating factor still works: multiply by , integrate by parts twice, and after the transient dies the surviving part of the answer is
The output is a sinusoid at the same frequency, smaller and late. How much smaller depends on : with s and a Hz drive, , the amplitude is cut to of the input, and the lag is degrees. Slow signals pass and fast ones are attenuated, which is what makes this circuit a low-pass filter, and the frequency at which the amplitude falls to is exactly .
Nothing about that calculation is specific to circuits. Any linear system driven at one frequency responds at that frequency, with an amplitude and a phase that depend on the frequency, and the whole content of the system's behaviour under periodic driving is those two functions. That is the frequency response, and it returns in force when the equations become second order and the amplitude curve grows a peak.
Equations that become linear
Some nonlinear equations are linear in disguise. A Bernoulli equation has the form , and substituting turns it linear: , and multiplying the original equation by gives .
The logistic equation is the case . Written as , the substitution gives , whose integrating factor is and whose solution is . Inverting recovers the logistic curve of the previous lesson without any partial fractions. This is a real technique rather than a curiosity: recognising that a change of variable linearises an equation is often the difference between a closed form and a numerical solution.
What is now settled, and what is not
Every first order linear equation is solved, at least down to an integral. That is a complete theory for a class that includes charging circuits, stirred tanks, first order chemical kinetics, and linear drag. Solutions of linear equations also exist as long as and do, with none of the sudden endings that the circle solution had in the previous lesson.
Nonlinear first order equations have no such theory. The logistic yielded to a substitution, and yields to nothing. So two questions are now pressing, and the next lesson takes both. Does a solution exist at all when no method applies, and is it unique? And if it exists but has no formula, how do you get numbers out of it?