Chapter 14: Problem 15
Consider the numerical differentiation of the function \(f(x)=c(x) e^{x / \pi}\) defined on \([0, \pi]\), where $$ c(x)=j, \quad .25(j-1) \pi \leq x<.25 j \pi $$ for \(j=1,2,3,4\). (a) Contemplating a difference approximation with step size \(h=n / \pi\), explain why it is a very good idea to ensure that \(n\) is an integer multiple of \(4, n=4 l\). (b) With \(n=4 l\), show that the expression \(h^{-1} c\left(t_{i}\right)\left(e^{x_{i+1} / \pi}-e^{x_{i} / \pi}\right)\) provides a second order approximation (i.e., \(\mathcal{O}\left(h^{2}\right)\) error) of \(f^{\prime}\left(t_{i}\right)\), where \(t_{i}=x_{i}+h / 2=(i+1 / 2) h, \quad i=\) \(0,1, \ldots, n-1\)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.