In 'Numerical methods for engineers' by Chapra and Canale there was an example in order to prove that Runge-Kutta-Fehlberg method is not always accurate, where given the equation $$\frac{dy}{dx}+0.6y=10e^{-(x-2)^2/[2(0.075)^2]}$$ with initial condition $y(0)=0.5$ the general solution is said to be $$y=0.5e^{-0.6x}$$
That way it is true (as easily seen by the graphs) that the approximate and the true solution are not in close agreement, but why is the error function term ignored by the general solution? If we take in consideration this term then the two solutions are not so different.
Look at a graph of the right side. Or consider that its exponent is $$ -\frac{(x-2)^2}{2\left(\frac3{40}\right)^2}=-\frac{1600(x-2)^2}{18} $$ and $\ln(10^{-17})=-39.14..$ which level the expression will reach for $|x-2|>0.66..$.
Thus from a numerical perspective, the right side does not exist before $x=1.3$ and after $x=2.7$, and on the segment $[0,1.3]$ the solution to the now homogeneous equation is indeed $0.5·e^{-0.6x}$.
Using classical RK4 estimating the error by repeating steps with half the step size (or more precisely, for every two steps one step for the same time interval using the double step size) I get the following picture for a relative error threshold of $10^{-4},10^{-5},10^{-6}$.
with a computation log for the $10^{-4}$ integration of
where one sees that at $x=1.62417033$, directly before the jump, the step size is increased to $dx=1.15353919$, thus neatly stepping over the bump even in the half step evaluations.
But this is more artefact of the implementation and a rather low error threshold. Already tightening the relative error margin to $10^{-6}$ corrects the solution to be as good as the best numerical solution.