Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Overview

Suppose you want to write a program to compute exe^x, or solve a differential equation, or evaluate an integral. How would you do it?

The challenge is that computers are simple machines. They can only perform basic arithmetic: ++, -, ×\times, ÷\div. But scientific computing demands much more:

The solution: Approximate these objects using only arithmetic. Taylor polynomials let us write:

ex1+x+x22+x36+e^x \approx 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots

Now we can compute the right-hand side—it’s just additions and multiplications. The cost is an approximation error. Taylor’s theorem tells us exactly how large that error is:

f(x)=f(a)+f(a)(xa)++f(n)(a)n!(xa)ncomputable+Rn(x)errorf(x) = \underbrace{f(a) + f'(a)(x-a) + \cdots + \frac{f^{(n)}(a)}{n!}(x-a)^n}_{\text{computable}} + \underbrace{R_n(x)}_{\text{error}}

This is the starting point for all of numerical analysis.

Learning Outcomes

After completing this chapter, you should be able to: