Chapter 14: Problem 10
If you are a fan of complex arithmetic, then you will like this exercise. Suppose that \(f(z)\) is infinitely smooth on the complex plane and \(f(z)\) is real when \(z\) is real. We wish to approximate \(f^{\prime}\left(x_{0}\right)\) for a given real argument \(x_{0}\) as usual. (a) Let \(h>0\), assumed small. Show by a Taylor expansion of \(f\left(x_{0}+i h\right)\) about \(x_{0}\) that $$ f^{\prime}\left(x_{0}\right)=\Im\left[f\left(x_{0}+t h\right)\right] / h+\mathcal{O}\left(h^{2}\right) $$ Thus, a second order difference formula is obtained that does not suffer the cancellation error that plagues all the methods in Sections \(14.1-14.3\). (b) Show that, furthermore, the leading term of the truncation error is the same as that of the centered formula that stars in Examples \(14.1\) and \(14.7\).
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.