Two lessons of methods have solved every separable and every first order linear equation, and almost nothing else, so the natural next question is what can be said about an equation that no method touches.
There are two questions, and they are independent. Does the initial value problem , have a solution at all? And if it has one, does it have only one? Both matter practically. If a model has two solutions from the same starting state, the model is not determining the future, whatever the physics claimed. If a solution stops existing at some finite time, a computer will happily keep printing numbers past that point, and they will be nonsense.
Picard's theorem
The result is due to Émile Picard and Ernst Lindelöf in the 1890s, and its statement is short. Suppose is continuous in a rectangle around the point , and suppose is continuous there too. Then the initial value problem has exactly one solution, defined on some interval around .
Three things about that statement are worth pressing on.
Continuity of alone gives existence. That is Peano's theorem, and it is genuinely weaker: it gives a solution but permits several.
Uniqueness needs the extra condition on , and what is really required is a Lipschitz condition, that for some constant . A bounded supplies one by the mean value theorem, which is why the derivative version is the one quoted. The condition says the equation's right side cannot respond infinitely fast to a change in .
The conclusion is local. There is an interval, and the theorem does not say how long it is. That is not slackness in the proof; solutions really do end, as the third section shows.
Example. Does with have exactly one solution near ?
Here is continuous everywhere and is continuous everywhere, so both hypotheses hold in any rectangle around . There is exactly one solution on some interval around zero. The theorem promises nothing beyond that interval, and in this case the promise would be false if it did: this solution blows up before .
Now you. Consider with , restricted to . Which hypothesis holds and which fails?
Answer
is continuous, so a solution exists. But is unbounded as , so the Lipschitz condition fails exactly at the initial point and uniqueness is not guaranteed.
The bucket that cannot say when it started draining
That second example is not a technicality. Solve it: separating, gives , so . With that is . But is also a solution, the constant one that separation discarded. And so is every function that sits at zero until some time and then leaves along : it is differentiable at the join, since both pieces have slope zero there, and it satisfies the equation on both sides. There are infinitely many solutions through the origin.
The physical version is a leaking tank. Torricelli's law says water drains from a hole at a rate proportional to the square root of the depth, so , which is the same equation with the sign reversed. Run it forwards and the tank empties at a definite time and stays empty. Run the film backwards and ask when a currently empty tank was full: the equation cannot say. Every emptying time is consistent with what you see now. Non-uniqueness here is a real property of the model, and it happens precisely because the rate becomes insensitive to the state, with infinite slope in , as the depth reaches zero.
Linear equations never do this. For the right side is , whose -derivative is , continuous wherever the coefficients are. So a linear initial value problem has exactly one solution on the whole interval where and are continuous, with no local hedge. That is the real reward for linearity.
Blow-up in finite time
The other failure is more common in practice. Take with . Separating, , so
which is finite and smooth up to and infinite there. Nothing in the equation is singular at that time; the coefficient functions are polynomials. The solution manufactures its own catastrophe by growing fast enough to feed its own growth, and where the catastrophe happens depends on the initial condition.
Example. For with , when does the solution cease to exist, and what is at ?
The formula gives , which is infinite at . At , . Halving the starting value doubled the survival time.
Now you. For with , when does the solution cease to exist, and what is at ?
Answer
, so it blows up at . At , .
The same happens without separability. with has solution , which ends at . A superlinear right side is the warning sign, and physical models that produce one, such as thermal runaway or an autocatalytic reaction, are describing systems that genuinely go somewhere the model stops being valid.
Picard's iteration, which is also the proof
The theorem is proved constructively, and the construction is worth seeing because it turns the differential equation into something a computer could run. Integrate both sides of from and use the initial condition:
This integral equation is equivalent to the initial value problem, and it has on both sides, which invites iteration. Start with the constant guess and define each next approximation by substituting the previous one into the right side.
For with the iterates are immediate. From , the first is . The next is . The next adds . The iterates are the partial sums of the Taylor series of , converging to it, which is the right answer. The Lipschitz condition is exactly what makes each iteration shrink the error by a fixed factor, so the sequence converges, and it is what fails for .
Picard iteration is rarely used for computation, since each step needs a symbolic integral. What is used is a cruder relative of the same idea.
Euler's method
Leonhard Euler's method, from 1768, is the tangent line taken seriously. At the equation gives the slope directly, so follow it for a small step :
and repeat. No solving is involved at any point, and the method needs nothing from except the ability to evaluate it.
Example. Take with and . Do two steps, and compare with the exact solution .
The first step uses the slope at , which is , giving at . The second uses the slope at , which is , giving at . The exact value is , so two steps have accumulated an error of , about per cent, and it is an underestimate because the solution is convex and the tangent lines all lie below it.
Now you. Take with and , and do two steps. The exact value at is .
Answer
Slope at is , so . Slope at is , so . The error is .
How wrong is it in general? One step's error is the remainder of a Taylor expansion truncated after the linear term, so it is proportional to . But reaching a fixed time takes steps, so the errors accumulate to something proportional to . Euler's method is first order: halve the step and you halve the error.
That is easy to see numerically. Integrating from to , where the exact answer is , Euler with gives , an error of . With it gives , error . With , error . Each halving of the step cuts the error by a factor approaching two, exactly as the analysis says. To get three decimal places this way needs tens of thousands of steps.
Runge-Kutta, and why it is worth the extra evaluations
Euler uses the slope at the start of the interval to cross the whole interval, which is systematically wrong whenever the slope changes. The improvements all sample the slope more than once.
The improved Euler or Heun method takes a trial Euler step, evaluates the slope at the far end, and steps with the average of the two slopes. The trial step costs one extra evaluation of and buys an order: the error goes as . On the same test problem it gives at , error , and at , error . The ratio is close to four, as second order predicts.
The classical fourth order Runge-Kutta method, published by Wilhelm Kutta in 1901, samples four slopes per step: one at the start, two at the midpoint, one at the end, and combines them with weights over . Its error goes as . On the same problem with , four steps and sixteen evaluations of give , an error of ; at the error is . Euler would need around twenty thousand steps to match the first of those. This is why almost every general purpose solver is a Runge-Kutta method or a relative, usually with the step size adjusted automatically by comparing two estimates of different order.
Where the numbers lie
A numerical solution is a sequence of numbers, and numbers always appear, whether or not a solution exists.
Run a solver on with past and it will keep producing values. They are meaningless: the solution ceased to exist at . A solver that suddenly needs tiny steps to keep its error estimate down is usually reporting a blow-up rather than a difficulty of its own, and the correct response is to ask what the model is doing, not to lower the tolerance.
The second trap is stiffness. Consider . Its solution settles onto something close to within about three milliseconds and then varies on a timescale of seconds, so a step size of a hundredth of a second should be ample for accuracy. It is catastrophic for stability: Euler's method applied to multiplies the error by each step, which exceeds one unless . Take a larger step and the computed solution oscillates with growing amplitude and diverges, while the true solution sits quietly on a cosine. Stiff problems, which are the norm in chemical kinetics and circuit simulation, need implicit methods that solve for rather than stepping to it.
The third is more mundane: halving the step doubles the number of arithmetic operations, so rounding error accumulates as the truncation error falls, and below some step size the total error starts to rise again.
None of this means numerics is second best. It means a number from a solver is a claim that needs the same scepticism as any other measurement, and the way to check it is to halve the step and see whether the answer moves by what the method's order predicts.
The tools so far give a formula when one exists and a table when it does not. Neither says anything about a solution's shape without computing it. The next lesson shows that for a large class of equations, the long-term behaviour can be read straight off the right side, with no solving and no stepping at all.