Second derivative approximation at the endpoint of a bounded function

3.1k Views Asked by At

I have a function defined on [a, b] and trying to approximate its second derivative using finite differences method. The centered finite difference formula works for interior points, but not for $x=b$. For $f''(b)$, it needs $f(b+h)$ which is not defined.

How could I tackle the problem at $x=b$? Is there a numerical way to approximate it by all means?