Similar terminology is used dealing with differential, integral and functional equations. For the approximation f a {\displaystyle f_{\text{a}}} of the solution f {\displaystyle f} of the equation
the residual can either be the function
or can be said to be the maximum of the norm of this difference
over the domain X {\displaystyle {\mathcal {X}}} , where the function f a {\displaystyle f_{\text{a}}} is expected to approximate the solution f {\displaystyle f} ,
or some integral of a function of the difference, for example:
In many cases, the smallness of the residual means that the approximation is close to the solution, i.e.,
In these cases, the initial equation is considered as well-posed; and the residual can be considered as a measure of deviation of the approximation from the exact solution.
When one does not know the exact solution, one may look for the approximation with small residual.
Residuals appear in many areas in mathematics, including iterative solvers such as the generalized minimal residual method, which seeks solutions to equations by systematically minimizing the residual.
Shewchuk, Jonathan Richard (1994). "An Introduction to the Conjugate Gradient Method Without the Agonizing Pain" (PDF). p. 6. https://www.cs.cmu.edu/~quake-papers/painless-conjugate-gradient.pdf#page=12 ↩