Checking is not proving, and that is fine
A proof establishes a statement. A check tests it. The two do different jobs, and both are needed. Checks are fast, they catch most errors, and a single failed check is decisive: if an answer fails a correct test, the answer is wrong. A passed check only raises confidence. The aim of this guide is to make your checks independent of one another, so that passing several of them means something.
Two results serve as running examples. The first is an antiderivative; the second is a Laplace transform pair with a region of convergence.
Substitute back
The cheapest test of an antiderivative is to differentiate it. For (A), the product rule gives , which is the integrand. The check is complete and exact.
The same test shows why it is worth doing. A common slip in repeated integration by parts drops the last constant and produces the candidate . Its derivative is , not , so the error is caught in one line. For equations, substitution plays the same role: put the proposed solution back into the original equation and every side condition.
Special cases and limiting behavior
A general formula must agree with every special case you already know. For (B), these are cheap and independent of one another:
- No damping, : the formula becomes , the standard transform of .
- No oscillation, : the function is identically zero and so is the formula.
- Large : the initial value theorem says . Here . Going one order further, , which matches .
- Small with : , consistent with as .
- Region of convergence: the integrand behaves like , so for real the integral converges exactly when , and the formula has its poles at , on the boundary of that region.
Notice that each special case tests a different part of the formula. The undamped case tests the denominator's structure, the large-s behavior tests the numerator, and the region of convergence tests the hypothesis attached to the formula. A formula that passes all of them is not proved, but an error would have to be unusually well hidden to survive.
Sign and dimension checks
If measures time, then , and all carry units of inverse time, and carries the units of multiplied by time. The right side of (B) has units of , as it should. A formula such as would fail this test immediately.
Signs give a second test. For large real the kernel concentrates near , where is positive when , so the transform must be positive there. A sign slip in the shift, writing in place of , passes the sign test but moves the pole to , which would describe growth like instead of decay. The region-of-convergence check catches it.
Numerical spot checks
When an identity depends on parameters, evaluate both sides numerically at a few points chosen so that nothing special happens there.
Spot-checking both results numerically
Test (A) on and test (B) with , at three values of .
- By (A), . Simpson's rule with 20,000 subintervals gives the same value to twelve decimal places.
- A central difference of at with step gives , matching .
- For (B), truncate the integral at . The neglected tail is at most in absolute value, which is far below rounding error for .
- Numerical integration gives , and at , and . The formula gives , and .
- The incorrect variant gives at , twice the numerical value, and is rejected.
| Value of s | Numerical integral | Formula (B) |
|---|---|---|
An independent second method
The strongest check is to reach the result by a route that does not share the step you doubt. For (B), write and use only , valid for :
This derivation never uses the shift theorem, so it independently confirms a result that is often obtained from it. For (A), an independent check comes from the Gamma integral : the definite version of (A) on must equal , and indeed .
What labs can and cannot establish
Interactive tools, including the pages in the Math Lab, make numerical checks quick. Use them for what they are good at: catching errors, exploring how a result depends on its parameters, and building intuition about where it might fail.
- A numerical match at finitely many points does not establish an identity for all parameters. Two different functions can agree at the points you happened to test.
- Floating-point evaluation has limited precision, and improper integrals must be truncated. A good check states the truncation and its error bound, as in the example above.
- Numerical evidence says nothing about hypotheses. A formula can match numerically inside its region of validity and be meaningless outside it.
- A clear numerical mismatch, beyond the stated error, is strong evidence that something is wrong: the formula, the code, or the way the two were compared.
A practical rule follows. Use numerical checks freely while you work, and treat them as a filter: they decide which candidate results deserve the effort of a proof. Then, when a result matters, prove it, or cite a source that does, and keep the numerical check alongside as a record of how the statement was tested.
References
- George Pólya. How to Solve It. Princeton University Press, 1945. "Looking back": checking the result and the argument..
- Lokenath Debnath and Dambaru Bhatta. Integral Transforms and Their Applications, 3rd ed.. CRC Press, 2014. Standard Laplace transform pairs, shift theorem and initial value theorem..