- 20,782
- 28,281
May I ask whether you know the expected result? I'm curious to compare it with my solution.Ascendant0 said:Not a single one knows how to do it. The ones that thought they did got the wrong answers. Most just skipped it and gave up.
May I ask whether you know the expected result? I'm curious to compare it with my solution.Ascendant0 said:Not a single one knows how to do it. The ones that thought they did got the wrong answers. Most just skipped it and gave up.
Yes, but I want to know what comes up without division, and ##f^{(n)}(0)## is still a problem for say, ##n=6.## I have an error of ##6.5 \cdot 10^{-5}## at ##x=0.5## I'm just curious.FactChecker said:To get the Maclaurin series for ##\frac {e^x-1}{x}##, you can start by getting the Maclaurin series for ##e^x##, which is very easy. Then simple subtraction and division gives the desired result.
The series I got was:fresh_42 said:May I ask whether you know the expected result? I'm curious to compare it with my solution.
Thanks. That's three percent at ##x=0.5.## Mine isPeroK said:The series I got was:
$$\frac{2x}{e^{2x}-1} = 1-x + \frac{x^2}3 - \frac{8x^4}{15} \dots$$
I'm really pressed for time, but yes, I got it. The TA also got back to me earlier today and showed me another method, one that was very fast and simple, but I never would've figured it out on my own. I'll try to post it after the exam later this weekfresh_42 said:May I ask whether you know the expected result? I'm curious to compare it with my solution.
I'm curious about the method.Ascendant0 said:The TA also got back to me earlier today and showed me another method, one that was very fast and simple
I think I found it.FactChecker said:I'm curious about the method.
That's neat, but I'm sceptical that's what would be expected.fresh_42 said:I think I found it.
$$
f(x)=-x+x\operatorname{coth}(x)
$$
The series for the cotangent hyperbolic is a bit tricky but can be looked up. E.g., Wikipedia gives me:
$$
\operatorname{coth}(x)-\dfrac{1}{x}=\dfrac{1}{3}x-\dfrac{1}{45}x^3+\dfrac{2}{945}x^5-\dfrac{1}{4725}x^7 +\ldots =\sum_{k=1}^\infty (-1)^{k+1}\cdot\dfrac{2}{\pi^{2k}}\cdot \zeta(2k)\cdot x^{2k-1}
$$
and therefore
$$
f(x)=1-x+\dfrac{1}{3}x^2-\dfrac{1}{45}x^4+\dfrac{2}{945}x^6-\dfrac{1}{4725}x^8 +\ldots
$$
The radius of convergence is ##\pi.##
Your work showing intermediate results. It's great that you described what you think you did correctly, but that can often be different than what you actually did.Ascendant0 said:I explained exactly what I tried, exactly what steps I took. I'm lost on what it is some of you want on here. I showed you the equations I got and what steps I took. What else am I supposed to show?
I'd guess it's something like this. Let ##u=2x##. Then we haveFactChecker said:I'm curious about the method.
The funny thing is that the function in this question is effectively the generating function for the Bernoulli numbers:vela said:Your work showing intermediate results. It's great that you described what you think you did correctly, but that can often be different than what you actually did.
I'd guess it's something like this. Let ##u=2x##. Then we have
$$\frac{2x}{e^{2x}-1} = \frac{u}{u+u^2/2! + u^3/3!+\dots} = \frac{1}{1+\underbrace{u/2 + u^2/6 + \dots}_r}.$$ Then using the Maclaurin series for ##1/(1+r)##, just start collecting powers of ##u## to figure out the first few terms of the series.
I was surprised, too, that I basically found a recursion for ##\zeta(2n)## after I saw the series expansion of ##\coth(x).## The functions here even have names and real physical meanings!PeroK said:The funny thing is that the function in this question is effectively the generating function for the Bernoulli numbers:
https://www.efunda.com/math/special_numbers/special_numbers.cfm#bernoulli
Quite a homework assignment!
That's a very nice observation. It might work for any ##1/(a_0+a_1x^+a_2x^2+...)## problem. Set ##(a_0+a_1x^+a_2x^2+...)=1+(-1+a_0+a_1x^+a_2x^2+...)=1+r \text{ with } r=-1+a_0+a_1x^+a_2x^2+...##.vela said:Your work showing intermediate results. It's great that you described what you think you did correctly, but that can often be different than what you actually did.
I'd guess it's something like this. Let ##u=2x##. Then we have
$$\frac{2x}{e^{2x}-1} = \frac{u}{u+u^2/2! + u^3/3!+\dots} = \frac{1}{1+\underbrace{u/2 + u^2/6 + \dots}_r}.$$ Then using the Maclaurin series for ##1/(1+r)##, just start collecting powers of ##u## to figure out the first few terms of the series.
This entire problem is ...FactChecker said:That's a very nice observation.
... but is very interesting. We already have found three different solutions and hope ...PeroK said:Quite a homework assignment!
... to see a fourth. I never had a connection to Bernoulli numbers and looked them up every time I met them. ButFactChecker said:I'm curious about the method.
... it bears many interesting aspects.PeroK said:Quite a homework assignment!
You don't want a constant term in ##r## otherwise all the terms in the expansion will contribute to all orders of ##x##. Instead, factor out the lowest-order term present. For example, if ##a_0 \ne 0##, you haveFactChecker said:That's a very nice observation. It might work for any ##1/(a_0+a_1x^+a_2x^2+...)## problem. Set ##(a_0+a_1x+a_2x^2+...)=1+(-1+a_0+a_1x^+a_2x^2+...)=1+r \text{ with } r=-1+a_0+a_1x^+a_2x^2+...##.
Good point.vela said:You don't want a constant term in ##r## otherwise all the terms in the expansion will contribute to all orders of ##x##. Instead, factor out the lowest-order term present.
I thought about that and wanted something that might work if there was no constant term. Now that you have pointed out the problem if there is a constant term in r, I see that it would be better to divide the denominator by the leading term, including any power of x.vela said:For example, if ##a_0 \ne 0##, you have
$$\frac{1}{a_0+a_1x+a_2x^2+\dots} = \frac{1}{a_0}\frac{1}{1 + b_1 x+ b_2 x^2 + \dots} $$ where ##b_i = a_i/a_0##.
To flesh this out a bit. Suppose we have ##f(x) = \frac 1 {g(x)}##, where:FactChecker said:Good point.
I thought about that and wanted something that might work if there was no constant term. Now that you have pointed out the problem if there is a constant term in r, I see that it would be better to divide the denominator by the leading term, including any power of x.