Start with y″ − y′ − 2y = 0. It is second order, so a candidate needs two derivatives, and it is linear, so each of y″, y′ and y appears once with a number in front. Try y = e^(2t). Then y′ = 2e^(2t) and y″ = 4e^(2t), and the residual is 4e^(2t) − 2e^(2t) − 2e^(2t), which is (4 − 2 − 2)·e^(2t) = 0. A solution.
Now try y = eᵗ, the same shape with a different rate. Here y′ = eᵗ and y″ = eᵗ, and the residual is eᵗ − eᵗ − 2eᵗ = −2eᵗ. The coefficient −2 is not zero and eᵗ is never zero, so the residual is not zero at any t, and the candidate fails everywhere. The two exponentials differ only in the number in the exponent, and the equation accepts one and rejects the other.
y″ − y′ − 2y = 0
candidate y′ y″ residual verdict
e^(2t) 2e^(2t) 4e^(2t) 0 a solution
eᵗ eᵗ eᵗ −2·eᵗ not a solution
A coefficient that depends on t
The equation t·y′ = 2y has t multiplying the derivative, and the substitution carries it along. For y = 5t² the derivative is 10t, so t·y′ = 10t², and 2y = 10t², and the residual is 0. The candidate 5t² is a solution, and so would be t² or −3t²: each is a constant multiple of t², and in a linear equation with zero on the right that is allowed.
A candidate y = 5t makes a good contrast. Its derivative is 5, the left side is 5t, the right side is 10t, and the residual is −5t. At t = 0 both sides are zero, so a check at that one point would pass it. Type 5t into the lab and read the residual: it is not zero.
A nonlinear equation
Now y′ = y². Take y = 1/(1 − t). By the chain rule its derivative is 1/(1 − t)², and y² is 1/(1 − t)² as well, so the residual is 0. The lab decides this one exactly, because a ratio of polynomials in t can be differentiated without rounding, and it labels the equation nonlinear because y is squared.
Theorem · What linear buys, stated and usedIn a linear equation whose right side is 0, a constant multiple of a solution is a solution, and the sum of two solutions is a solution. For a nonlinear equation neither is guaranteed.
The linear case follows from the residual being built from sums and constant multiples; the lab demonstrates it on the presets and does not prove it. The nonlinear case is easy to watch fail: take y′ = y² and double the solution to 2/(1 − t). Its derivative is 2/(1 − t)² and its square is 4/(1 − t)², so the residual is −2/(1 − t)², which is never zero (the lab prints it expanded, as −2/(t² − 2t + 1)). The doubling that was harmless in the linear equation breaks this one.
One limit of the lab belongs here. A ratio of polynomials in t, and exponential or sine and cosine candidates in a linear equation, are decided exactly. An exponential candidate in a nonlinear equation is not: the lab then evaluates the residual at five values of t in floating point and says so in the verdict, which reads that it checked at five points only. That is a spot check, and it is labelled as one.