45. Taylor and Maclaurin Series
Dated: 30-10-2024
One of the early applications of calculus
was to approximate numerical values of functions
1 such as \(\sin (x)\) and \(\ln (x)\) etc.
To do this, we would approximate the function
1 using polynomials
2 and then later approximating the numerical values from that.
Problem
Given a function
1 \(f(x)\) and a point \(a\) over the x axis
, find a polynomial
2 of a specified degree that best approximates the \(f(x)\) over the vicinity of the point \(a\).
Solution
Imagine we have a polynomial
2
The polynomial
2 \(P(x)\) has \(n + 1\) coefficients. Therefore, it is reasonable to think that we can impose \(n + 1\) conditions over it.
Assume that our point of interest is \(a = 0\) then to have a high degree of resemblance between \(f(x)\) and \(P(x)\), we find the coefficients of \(P(x)\) such that
Once we start finding some of these derivatives
,3 we will get a pattern that is
So the general coefficient \(c_n\) for \(P(0)\) will be
Maclaurin Series
Plugging the \(c_n\) term into our polynomial
,2 we get
This is the case at \(x = 0\)
Taylor Series
If we make the case for \(x = a\) then maclaurin series becomes
and if \(f(x)\) has derivatives
of all orders of \(a\) then
References
Read more about notations and symbols.