The foundation for representing functions as power series is the formula for the sum of an infinite geometric series.
This formula is valid only when the series converges, which happens when the absolute value of the common ratio r is less than 1.
GOAL: Algebraically manipulate a given function `f(x)` until it matches the form `a / (1-r)`. Then, you can directly convert it into a power series.
Let's represent `f(x) = 1 / (1 + x)` as a power series.
$$ f(x) = \frac{1}{1+x} = \frac{1}{1 - (-x)} $$
By comparing, we see that a = 1 and r = -x.
$$ \sum_{n=0}^{\infty} (1)(-x)^n = \sum_{n=0}^{\infty} (-1)^n x^n $$
Use the condition `|r| < 1`:
$$ |-x| < 1 \implies |x| < 1 $$
This means the IoC is (-1, 1) and the RoC is R = 1.
To center a series at a value `c`, you need to create an `(x-c)` term.
Example: `f(x) = 1/x` centered at `c = 1`.
$$ f(x) = \frac{1}{x} = \frac{1}{1 + (x-1)} = \frac{1}{1 - (-(x-1))} $$
a = 1 and r = -(x-1).
$$ \sum_{n=0}^{\infty} (-(x-1))^n = \sum_{n=0}^{\infty} (-1)^n (x-1)^n $$
$$ |-(x-1)| < 1 \implies |x-1| < 1 \implies -1 < x-1 < 1 $$
The IoC is (0, 2) and RoC is R = 1.
If the `a` position isn't 1, factor it out from the denominator.
Example: `f(x) = 1 / (3 - x)` centered at `c = 0`.
$$ f(x) = \frac{1}{3(1 - x/3)} = \frac{1/3}{1 - x/3} $$
a = 1/3 and r = x/3.
$$ \sum_{n=0}^{\infty} \frac{1}{3} \left(\frac{x}{3}\right)^n = \sum_{n=0}^{\infty} \frac{x^n}{3 \cdot 3^n} = \sum_{n=0}^{\infty} \frac{x^n}{3^{n+1}} $$
$$ |x/3| < 1 \implies |x| < 3 $$
The IoC is (-3, 3) and RoC is R = 3.
You can perform operations like multiplication and addition on series.
Example: `f(x) = x^3 / (x+2)`
First, find the series for `1/(x+2)`, which is `\sum (-1)^n x^n / 2^(n+1)`. Then, multiply the result by `x^3`.
The IoC is determined by the original series, which for `1/(x+2)` is `(-2, 2)`.
Example: `f(x) = 3 / (x^2 + x - 2)`
Step 1: Decompose the fraction.
$$ \frac{3}{(x+2)(x-1)} = \frac{-1}{x+2} + \frac{1}{x-1} $$
Step 2: Find the power series for each part.
For `\frac{-1}{x+2}`: $$ \sum_{n=0}^{\infty} \frac{(-1)^{n+1} x^n}{2^{n+1}} \quad \text{IoC: } (-2, 2) $$
For `\frac{1}{x-1}`: $$ \sum_{n=0}^{\infty} -x^n \quad \text{IoC: } (-1, 1) $$
Step 3: Combine the series and find the final IoC.
$$ \sum_{n=0}^{\infty} \left( \frac{(-1)^{n+1}}{2^{n+1}} - 1 \right) x^n $$
The final IoC is the intersection of the individual intervals. The intersection of `(-2, 2)` and `(-1, 1)` is (-1, 1).