Given $f(x)=\arctan(10x)$, there would be a problem when we interpolate it by using Lagrange's method. This would have something to do with the derivatives of $f(x)$. I plotted some derivatives of $f$ but I did not come up with an answer. Can anybody tell me what goes wrong if we interpolate $arctan(10x)$ and why this comes from the derivatives of $f(x)$. thanks :-)
Oh.. second question: I also would like to know why this problem does not occur when using cubic Hermite interpolation... In addition, I want to know why this problem does not occur when using cubic spline interpolation ? I can not figure this out
If what you got is something like this:
where dashed lines are the interpolant.
Then this is Runge's phenomenon. What you said is a typical example of this phenomenon that using high degree polynomial to approximate a continuous function on evenly spaced sample points. This happens when we approximate some smooth function on a given interval, given $n$ evenly distributed sample points, and using a single globally defined polynomial.
If you use cubic Hermite spline, we would not have this phenomenon because of this interpolation's piecewise nature, it is piecewisely defined on each small interval. We have multiple locally defined polynomials, we only glue these different polynomials together using continuity (namely $f$ and $f'$ are continuous across the sample points).