Consider the piecewise constant interpolation of the function $f(x) = ln(x)$ , $10 ≤ x ≤ 11$ , at points $x_i = 10+ih$, where $h = 0.1$. Thus, our interpolant satisfies $v(x) = ln(10+ih)$, $10 + ih − 0.5h ≤ x < 10 + ih + 0.5h$, for $i = 0, 1, . . . , 11$.
Find a bound for the error in this interpolation, i.e. find a (reasonably small) constant M such that $|f(x) − v(x)| < M$ for any $10 ≤ x ≤ 11$.
I decided to first plug in all the i's so I can get my x's:
$x_0 = 10$
$x_1 = 10.1$
$x_2 = 10.2$
$x_3 = 10.3$
$x_4 = 10.4$
$x_5 = 10.5$
$x_6 = 10.6$
$x_7 = 10.7$
$x_8 = 10.8$
$x_9 = 10.9$
$x_10 = 11$
$x_11 = 11.1$
I also plugged in the the lowest i and highest i in $10 + ih − 0.5h ≤ x < 10 + ih + 0.5h$ and I got the interval of $9.95 ≤ x ≤ 11.15$, which all my x's fall in the interval of.
I'm not entirely sure how to start this (other than what I've done), if I could get a few pointers on what to do next would be great.