| Thread Closed |
Approximations for e^x, sin and cos |
Share Thread |
| Aug14-04, 02:36 PM | #1 |
|
|
Approximations for e^x, sin and cos
I had a question on a math test which said that you should find an approximation for [tex] e^x [/tex] which is very good for [tex] x \approx 0 [/tex]. First I declared the function [tex] f(x) = e^x [/tex]. We have the intresting thing that [tex] f(x) = f'(x) = f''(x) = f'''(x) \ldots \ \forall x [/tex]. And because of this we have [tex] f(0) = f'(0) = f''(0) = f'''(0) \ldots [/tex]. Next I defined the function [tex] g(x) = ax^3+bx^2+cx+d[/tex] and if we want [tex] g(x) \approx f(x) [/tex] for [tex] x \approx 0 [/tex]. Using this it leads to that [tex] d=1 [/tex], [tex] c=1 [/tex], [tex] b = 1/2 [/tex], [tex] a=1/6 [/tex]. So [tex] g(x) = x^3/6 + x^2/2 + x + 1 [/tex]. This formula is good for [tex] x \approx 0 [/tex]. So I tried with [tex] h(x) = ax^4+bx^3+cx^2+dx+e [/tex] which leads to [tex] h(x) = x^4/24 + x^3/6 + x^2/2+x+1 [/tex] which is better. I found a pattern, we have for an [tex] j [/tex] degree polynom the formulas [tex] \sum_{u=0}^{j} \frac{ x^u}{u!} [/tex]. But graphing [tex] e^x [/tex] and a polynom of [tex] j [/tex] degree we get better and better result when [tex] j \to \infty [/tex]. So on my test I wrote done that a good approximation for [tex] e^x [/tex] for [tex] x \approx 0 [/tex] would be [tex] \sum_{u=0}^{\infty} \frac{x^u}{u!} [/tex]. 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 [tex] e^x [/tex] I gave formulas for [tex] \cos{x} [/tex] and [tex] \sin{x} [/tex]. The formulas are [tex] \sin{x} \approx \sum_{u=0}^{\infty} \frac{ \left( - 1 \right)^u \cdot x^{2u+1}}{ \left( 2u+1 \right)!} [/tex] and [tex] \cos{x} \approx \frac{\left(-1 \right)^u \cdot x^{2u}}{ \left( 2u \right)!} [/tex]. Are these formulas used for anything? And most important, are they correct - when I graph them they seem to be correct.
|
| Aug14-04, 02:39 PM | #2 |
|
|
What you have are the "Taylor series" for ex, sin(x), and cos(x).
If you got those without knowing the general formula to start with, I'm impressed! |
| Aug14-04, 02:42 PM | #3 |
|
|
|
| Aug14-04, 03:12 PM | #4 |
|
|
Approximations for e^x, sin and cos
They are supremely important, and yes, the formulas (the infinite series) are correct for ANY choice of x (not only small).
|
| Aug14-04, 05:07 PM | #5 |
|
|
You can use the series for e^x to approximate things like the integral of e^-x^2.
The series of sin and cos were used to make the trig tables before calculators. |
| Aug17-04, 05:37 AM | #6 |
|
|
I had math today, and after the lesson was over my teacher told me to stay in class. She said that she had started correcting the tests, and that she was impressed with the formulas. So I guess that is good ...
|
| Aug17-04, 07:10 PM | #7 |
|
|
I must say that I'm impressed with your doing that without knowing about Taylor series. Basically, a Taylor series is an approximation of a function using infinite polynomials. They can be centered around various numbers, and are of the following form, where a is the center of the number:
[tex]f(x) = f(a) + f'(a)(x-a) + \frac{f''(a)(x-a)^2}{2!} + \frac{f'''(a)(x-a)^3}{3!}+...+\frac{f^{(n)}(a)(x-a)^n}{n!}+...[/tex] Using zero as a center, as you did, is a special case also known as a Maclaurin series. Though not all Taylor series converge for all values, the ones for e^x, sin x, and cos x do. In fact, you can easily prove De Movire's Theorem using Taylor series. |
| Aug18-04, 01:04 PM | #8 |
|
|
|
| Aug18-04, 01:23 PM | #9 |
|
|
de Moivre's theorem: (cos(x) + isin(x))^n = cos(nx) + isin(nx). It can also be proved easily using Euler's formula...
|
| Aug19-04, 10:38 PM | #10 |
|
|
|
| Aug20-04, 10:15 AM | #11 |
|
|
Actually, (cos(x)+ i sin(x))n= cos(nx)+ i sin(nx) can be proved directly without using Taylor series or Euler's formula:
(cos(x)+ i sin(x))2= cos2(x)+ 2i sin(x)cos(x)- sin2(x)= (cos2(x)- sin[sup[2][/sup](x))+ i (2sin(x)(cos(x)) which is equal to cos(2x)+ i sin(2x) by trig identities. The general formula can be done by induction. |
| Aug20-04, 10:17 AM | #12 |
|
|
Actually, (cos(x)+ i sin(x))n= cos(nx)+ i sin(nx) can be proved directly without using Taylor series or Euler's formula:
(cos(x)+ i sin(x))2= cos2(x)+ 2i sin(x)cos(x)- sin2(x)= (cos2(x)- sin2(x))+ i (2sin(x)(cos(x)) which is equal to cos(2x)+ i sin(2x) by trig identities. The general formula can be done by induction. |
| Aug20-04, 01:23 PM | #13 |
|
|
you should look into maclaurin series at http://mathworld.wolfram.com/MaclaurinSeries.html -has all the answers for your questions
|
| Aug20-04, 02:47 PM | #14 |
|
|
|
| Aug25-04, 12:51 PM | #15 |
|
|
Thanks |
| Aug31-04, 02:15 PM | #16 |
|
|
Sure. I will show the method for the approximate h(x) = ax^3 + bx^2 + cx + d, we have f(x) = e^x, and f'(x) = e^x, f''(x) = e^x and so on. We want h(x) = f(x), h'(x) = f'(x), h''(x) = f''(x) and so on. First we conclude that f(0) = 1, h(0) must be equal to 1, this gives d=1. So h(x) = ax^3+bx^2+cx+1. Next we have h'(x) = 3*ax^2+2*bx+c+1 and h'(0) should be equal to 1, this gives c=1. h(x) = ax^3+bx^2+x+1. Next we have h''(x) = 3*2*ax+2b, so h''(0) = 1 gives b=1/2, so h(x) = ax^3+x^2/2+x+1. Next we ge h'''(x) = 3*2*a, so h'''(0) = 1 => a = 1/6 so h(x) = x^3/6 + x^2/2 + x + 1. I tried for fourth degree polynom on my test and saw that j(x) = x^4/24 + x^3/6 + x^2/2 + x + 1. So it's obvius that if we want v(x) be a function that is very good as approximate for e^x. It's obivus that [tex] v(x) = \sum_{n=0}^{j} x^n \cdot s [/tex] where s should be dependent on n. So I saw the series 1, 1, 2, 6, 24 which is n! for n=0,1,2,3,4. So I concluded that [tex] v(x) = \lim_{j \to \infty} \sum_{n=0}^{j} \frac{x^n}{n!} [/tex]. Hope that explains it, if my texts is a mess it's because I've worked for 14 hours
|
| Thread Closed |
Similar Threads for: Approximations for e^x, sin and cos
|
||||
| Thread | Forum | Replies | ||
| Linear approximations | Calculus & Beyond Homework | 6 | ||
| linear approximations | Calculus & Beyond Homework | 3 | ||
| Are integrals approximations? | General Math | 11 | ||
| Approximations? | Introductory Physics Homework | 7 | ||
| Binomial Approximations | Precalculus Mathematics Homework | 1 | ||