Maclaurin Series When 0 is in the Denominator?

  • Thread starter Thread starter Ascendant0
  • Start date Start date
  • Tags Tags
    Maclaurin Series
Click For Summary
SUMMARY

The discussion centers on finding the Maclaurin series for the function \( \frac{2x}{e^{2x}-1} \). Participants express confusion over the derivatives leading to a zero denominator and the validity of the Maclaurin series approach. Key insights include the suggestion to use long division of the series for the numerator and denominator, and the importance of evaluating the function's behavior as \( x \) approaches zero. The existence of derivatives at \( x=0 \) is confirmed, indicating that a Maclaurin series can indeed be derived despite initial complications.

PREREQUISITES
  • Understanding of Maclaurin series expansion
  • Familiarity with exponential functions and their derivatives
  • Knowledge of L'Hospital's Rule for evaluating limits
  • Experience with series long division techniques
NEXT STEPS
  • Learn how to derive the Maclaurin series for \( e^{2x} \)
  • Study the application of L'Hospital's Rule in limit evaluations
  • Explore long division of power series for rational functions
  • Investigate the behavior of functions with singularities at specific points
USEFUL FOR

Mathematics students, educators, and anyone involved in calculus or series expansions, particularly those tackling complex functions and their series representations.

  • #31
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.
 
  • Like
Likes   Reactions: Ascendant0
Physics news on Phys.org
  • #32
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.
 
  • #33
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.
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.
 
Last edited:
  • #34
fresh_42 said:
May I ask whether you know the expected result? I'm curious to compare it with my solution.
The series I got was:
$$\frac{2x}{e^{2x}-1} = 1-x + \frac{x^2}3 - \frac{8x^4}{15} \dots$$PS I forgot to divide the last term by ##4!##. That should be, as below:
$$\frac{2x}{e^{2x}-1} = 1-x + \frac{x^2}3 - \frac{x^4}{45} \dots$$
 
Last edited:
  • #35
PeroK said:
The series I got was:
$$\frac{2x}{e^{2x}-1} = 1-x + \frac{x^2}3 - \frac{8x^4}{15} \dots$$
Thanks. That's three percent at ##x=0.5.## Mine is
$$
f(x)=1-x+\dfrac{1}{3}x^2-\dfrac{1}{45}x^4+ \dfrac{2}{945}x^6 +O(x^7)
$$
I guess I was too long into complexity theory to like divisions. Whenever I can I use multiplications instead. The two solutions are generally interesting. Yours is more analytical, mine more algebraically.
 
Last edited:
  • #36
fresh_42 said:
May I ask whether you know the expected result? I'm curious to compare it with my solution.
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 week

The series I got for this one is:

## 1 - x + x^2/3 - x^4/45 ...##

Same as yours, and it's consistent with the one in the book, plus I know for sure the method he wants to see on the exam now as well

I greatly appreciate the help on this one, all of you.
 
  • Skeptical
  • Wow
Likes   Reactions: FactChecker and PeroK
  • #37
Ascendant0 said:
The TA also got back to me earlier today and showed me another method, one that was very fast and simple
I'm curious about the method.
 
  • Like
Likes   Reactions: PeroK
  • #38
FactChecker said:
I'm curious about the method.
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.##
 
  • Like
Likes   Reactions: PeroK
  • #39
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.##
That's neat, but I'm sceptical that's what would be expected.
 
  • #40
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?
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.

FactChecker said:
I'm curious about the method.
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.
 
  • Like
Likes   Reactions: FactChecker and PeroK
  • #41
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.
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!
 
  • Like
Likes   Reactions: fresh_42
  • #42
  • Like
Likes   Reactions: PeroK
  • #43
Fun fact: I did the math to figure out what my recursively defined sequence ##(b_0,b_1,b_2,\ldots)## would be in terms of the zeta-function. It turned out that ##y^{(2n)}(0)=b_{2n}=B_{2n},## i.e. exactly the Bernoulli numbers.
 
Last edited:
  • Like
Likes   Reactions: PeroK
  • #44
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.
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+...##.
 
  • #45
FactChecker said:
That's a very nice observation.
This entire problem is ...
PeroK said:
Quite a homework assignment!
... but is very interesting. We already have found three different solutions and hope ...
FactChecker said:
I'm curious about the method.
... to see a fourth. I never had a connection to Bernoulli numbers and looked them up every time I met them. But
$$
B_{n}=\left(\dfrac{x}{e^x-1}\right)^{(n)}(0)
$$
might be a way to memorize them after I did all these calculations on the right. And the most interesting fact was the formula
$$
M=N\cdot m\cdot L\left(\dfrac{mB}{k_B T}\right) \text{ with } L(x)=\dfrac{f(x)+x-1}{x}
$$
with ##m## the magnetic moment, ##B## the magnetic field, ##k_B## Boltzmann, ##T## temperature, ##N## amount of substance and ##M## the paramagnetism.

So, although undoubtedly ...
PeroK said:
Quite a homework assignment!
... it bears many interesting aspects.
 
  • Like
Likes   Reactions: PeroK and FactChecker
  • #46
FactChecker 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+...##.
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 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##. If ##r## is of order ##x##, then the linear term of the series only gets a contribution from ##r##, the quadratic term gets contributions from ##r## and ##r^2##, and so on.
 
  • Like
Likes   Reactions: FactChecker
  • #47
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.
Good point.
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##.
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.
 
  • Like
Likes   Reactions: vela
  • #48
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.
To flesh this out a bit. Suppose we have ##f(x) = \frac 1 {g(x)}##, where:
$$f(x) = a_0 + a_1x + a_2x^2 + \dots$$$$g(x) = 1 + b_1x + b_2x^2 + \dots$$Note that:
$$f(x) = 1 - f(x)(g(x) - 1)$$Hence:
$$a_0 + a_1x + a_2x^2 + \dots = 1 - (a_0 + a_1x + a_2x^2 + \dots)(b_1x + b_2x^2 + \dots)$$$$= 1 - (a_0b_1)x - (a_0b_2 + a_1b_1)x^2 - (a_0b_3 + a_1b_2 + a_2b_1)x^3 - \dots$$And we have a recursive relationship between the ##a_n## and ##b_n##:
$$a_0 = 1, a_1 = -b_1, a_2 = -(b_2 - b_1^2) \dots$$In general:
$$a_n = -a_0b_n - a_1b_{n-1} \dots - a_{n-1}b_1$$
 
Last edited:
  • Like
Likes   Reactions: FactChecker
  • #49
$$\lim_{x\to 0} \frac{2x}{e^{2x}-1} = \lim_{x\to 0} \frac{2}{2e^{2x}} = 1$$
$$P_0\left(x\right) = f\left(0\right) = 1$$
$$f'\left(0\right) = -1$$
$$\frac{x}{e^{x}-1} = \sum_{n=0}^{\infty} \frac{B_n}{n!} x^n$$
$$P_\infty\left(x\right) = \sum_{n=0}^{\infty} \frac{2^n B_n}{n!} x^n$$
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K