I have a PDE which looks like Helmholtz wave equation on one dimensional domain. $$\dfrac{d^2u(x)}{dx^2}+\pi^2u(x)=f(x)$$ where $-\infty <x<\infty $
Also, $f(x)= 1$ for $-0.25<x<0.25$, I call this region "inner region"
$f(x)=0$ elsewhere
I truncated the computational domain using absorbing boundary conditions into $-1<x<1$
I chose mesh size as $\lambda/10$ at 1 GHz.
Finally I plotted the answer as shown below. How can I test its trueness of its? Why do I observe decrease in the inner region?