hedlund
- 34
- 0
I had a question on a math test which said that you should find an approximation for e^x which is very good for x \approx 0. First I declared the function f(x) = e^x. We have the interesting thing that f(x) = f'(x) = f''(x) = f'''(x) \ldots \ \forall x. And because of this we have f(0) = f'(0) = f''(0) = f'''(0) \ldots. Next I defined the function g(x) = ax^3+bx^2+cx+d and if we want g(x) \approx f(x) for x \approx 0. Using this it leads to that d=1, c=1, b = 1/2, a=1/6. So g(x) = x^3/6 + x^2/2 + x + 1. This formula is good for x \approx 0. So I tried with h(x) = ax^4+bx^3+cx^2+dx+e which leads to h(x) = x^4/24 + x^3/6 + x^2/2+x+1 which is better. I found a pattern, we have for an j degree polynom the formulas \sum_{u=0}^{j} \frac{ x^u}{u!}. But graphing e^x and a polynom of j degree we get better and better result when j \to \infty. So on my test I wrote done that a good approximation for e^x for x \approx 0 would be \sum_{u=0}^{\infty} \frac{x^u}{u!}. I've just started calculus and that stuff, so I don't know if this is the answer my teacher wanted. I only know of factioral and sums because I got to study discreet math instead of psychology. Using the same technique as I used for finding an approximation for e^x I gave formulas for \cos{x} and \sin{x}. The formulas are \sin{x} \approx \sum_{u=0}^{\infty} \frac{ \left( - 1 \right)^u \cdot x^{2u+1}}{ \left( 2u+1 \right)!} and \cos{x} \approx \frac{\left(-1 \right)^u \cdot x^{2u}}{ \left( 2u \right)!}. Are these formulas used for anything? And most important, are they correct - when I graph them they seem to be correct.