Courses / Computer Science I
Calculus

Taylor Series and Approximation

Computers cannot directly evaluate x or e^x; they use Taylor series to approximate smooth functions with polynomials built from derivatives.

Computer Science I 191 words Free to read

Computers cannot directly evaluate sinx\sin x or exe^x; they use Taylor series to approximate smooth functions with polynomials built from derivatives.

The Taylor series of ff about point aa is:

f(x)=n=0f(n)(a)n!(xa)nf(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x - a)^n

TermWhat it matches
Constant f(a)f(a)Value at aa
Linear f(a)(xa)f'(a)(x-a)Slope at aa
QuadraticCurvature at aa

Truncating this gives a Taylor polynomial that hugs the function near aa. Setting a=0a = 0 yields a Maclaurin series, such as ex=1+x+x22!+e^x = 1 + x + \frac{x^2}{2!} + \dots.

Term by term, matched to a named feature of the curve --- not the

Accuracy and Pitfalls

To compute efficiently, we replace a hard function by an easy polynomial matching it locally. The linear approximation f(x)f(a)+f(a)(xa)f(x) \approx f(a) + f'(a)(x-a) is the simplest case and underpins numerical algorithms.

FeatureTaylor Polynomial
Best RegionNear aa
Error BehaviorGrows as xa|x - a| increases
Common Pitfall: Expecting a truncated polynomial to work far from aa. More terms extend the valid region, but finite polynomials remain strictly local approximations.

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

11practice questions
2interactive scenes

Calculus