This requires working knowledge of sigma notation and familiarity with calculus.
Whereas a line segment can approximate a function at a small interval, a Maclaurin series can approximate the same function at a larger interval, by using a high-order polynomial.
In practice, a few terms is sufficient, as long as x0 is within the radius of convergence of 0. Factorials grow faster than polynomials; if the series converges for all real numbers, then there will most likely be a factorial in the denominator of each term.
sketch of proof
Suppose a power series representation of a function exists, centered at x=0, with the xn term being cnxn.
When taking the nth derivative, all the terms of lower degree go to 0, and the higher terms stay, but upon evaluating at x=0, they become zero as well.
From differentiation of polynomials, the exponent is brought down and reduced by one. So with each higher derivatives the new factor also decreases by one.
f(n)(0)=n!⋅cn
Hence,
cn=n!f(n)(0)
A few examples
ex=1+x+2!x2+3!x3⋯=n=0∑∞n!xn
sinx=x−3!x3+5!x5⋯=n=0∑∞(2n+1)!(−1)nx2n+1
1−x1=1+x+x2⋯=n=0∑∞xn,∣x∣<1
The last series has a radius of convergence of ∣x∣<1. Testing radius of convergence is beyond scope of this course. However, this last one is a geometric series, which converges for ∣x∣<1.
This can be verified by applying the definition of Maclaurin series.
Note that in the expansions, we ignored all the x4 and higher terms. The 272x3 comes from 272(x⋅2x2+2x2⋅x).
differentiation
Example: Find the Maclaurin series expansion for cosx.
cosx=dxdsinx=dxdn=0∑∞(2n+1)!(−1)nx2n+1
Note that same series can be expressed with different starting index. Here the general form above starts with n=0. Just make sure first index evaluates to first term, which is x in this case. n is a constant with respect to x.
Example: Find the Maclaurin series expansion for ln(1+x).
We start from the series for 1+x1 above in an example. Because the radius of convergence is ∣x∣<1 for series expansion of 1+x1, there is no need for absolute value when taking the integral.
The last step was a nifty trick using the substitution m=n+1.
Since n does not exist outside the summation, and is a placeholder variable, the summation can be also written as
ln(1+x)=n=1∑∞n(−1)n+1(x)n=−n=1∑∞n(−x)n
Tip:lnx=−lnx1=−ln(1−xx−1), which makes this series expansion way more powerful than it seems.
Tip: If the sigma notations are throwing you off, you can often just write a few terms of the series and manipulate it that way, whenever you do not need the general term.
Use in limits
An alternative way to evaluate limits of the indeterminate form as x approaches 0 is to calculate the Maclaurin series and find the limit for the first few terms of the resulting series.
Example: Evaluate
x→0limx3ln(1+x3)sin(x2)−x2
This involves
sinx=x−3!x3+5!x5−…
and
ln(1+x)=x−2x2+3x3−…
where we replace each x by x2 and x3 respectively.
After writing out the Maclaurin expansions, we factored out a x6 out of both numerator and denominator. Then we were able to split L into a ratio of two finite limits.
Use in differential equations
For a differential equation
dxdy=f(x,y)
Repeated implicit differentiation of f(x,y) allow one to find the higher derivatives used in the definition of Maclaurin series. Substitute values of (0,y(0)) and lower derivatives to find the next derivative.
This is not exactly a satisfying answer, but the series (with infinite number of terms) is a solution to the differential equation. Typically you will be asked to differentiate once or twice, depending on the complexity of the derivatives.