Loosely speaking, a residual is the error in a result. To be precise, suppose we want to find x such that
Given an approximation x0 of x, the residual is
whereas the error is
If we do not know x exactly, we cannot compute the error but we can compute the residual.
Similar terminology is used dealing with differential, integral and functional equations. For the approximation of the solution 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 , where the function is expected to approximate the solution , or some integral of a function of the difference, for example: