stfwn
  • Introduction
  • Calculus
    • Gradient
    • Taylor Series
    • Miscellaneous
  • Computer Science
    • Basic Architecture and Assembly
  • Fixes & Snippets
    • Docker
    • HTML
    • LaTeX
    • Linux
    • Node.js
    • Miscellaneous
  • Linear Algebra
    • Orthogonality
    • The Gram-Schmidt Process
    • QR-Factorization
    • Orthogonal Diagonalization
    • Quadratic Forms
    • Least Squares Theorem
    • Singular Value Decomposition
    • Pseudoinverse
  • Miscellaneous
    • Digital Safety
    • Homelab
    • Links
    • Music
  • Reading
Powered by GitBook
On this page
  1. Calculus

Taylor Series

The idea of the Taylor series is to approximate a function around a point with a polynomial. This is done by adjusting the coefficients of the polynomial such that its derivates match that of the function that is being approximated to a certain degree.

f(x)=c0x0+c1x1+c2x2+c3x3...f(x) = c_0 x^0 + c_1 x^1 + c_2 x^2 + c_3 x^3 ...f(x)=c0​x0+c1​x1+c2​x2+c3​x3...

For the approximating polynomial, the nthn^{th}nth coefficient of each xnx^nxn-term is the value of the nthn^{th}nth derivative (of the original function) evaluated at 000, divided by n!n!n!. (3Blue1Brown)

This makes it so that first, the value of the two functions is identical at 000, then the slope is identical, then the rate of change, then the rate of change of the rate of change, and so on. The more terms you add, the closer the approximation.

You can craft the approximation for any point by evaluating the derivate at that point instead. The general equation for a Taylor series of a function f(x)f(x)f(x) turns out to be:

f(c)+f′(c)1!(x−c)2+f′′(c)2!(x−c)2+f′′′(c)3!(x−c)3f(c) + \frac{f'(c)}{1!}(x-c)^2 + \frac{f''(c)}{2!}(x-c)^2 + \frac{f'''(c)}{3!}(x-c)^3f(c)+1!f′(c)​(x−c)2+2!f′′(c)​(x−c)2+3!f′′′(c)​(x−c)3

TODO: add bit about approximations for functions with more than one variable.

PreviousGradientNextMiscellaneous

Last updated 5 years ago