Taylor Expansion of Natural Logarithm

In summary, the ln function does not have a Taylor series expansion that can be used for all points because of its essential singularity at x=0. This is a concept in both real and complex analysis, where the convergence radius of any power series is limited and cannot cover the entire function. The maximum convergence interval for ln(x) is (0,2x0), where x0 is the point of expansion. However, the function can be approximated within this interval by using a power series.
  • #1
golanor
59
0
Hello!
I was trying to look for a possible expansion of the ln function. The problem is, that there is no expansion that can be used in all points (like there is for e, sine, cosine, etc..)
Why do you think that is?
To clarify:
Let's say i do the MacLaurin expansion of ln(x+1):
[tex] x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}+\frac{x^5}{5}...+(-1)^{n}\frac{x^n}{n}[/tex]
And around 10:
[tex]\text{Log}[11]+\frac{x-10}{11}-\frac{1}{242} (x-10)^2+\frac{(x-10)^3}{3993}-\frac{(x-10)^4}{58564}+\frac{(x-10)^5}{805255}...[/tex]

Are there any other (smooth) elementary functions which cannot be expanded to a taylor series?
 
Physics news on Phys.org
  • #2
That is because of a pole at zero. Other elementary functions with poles like 1/sin(x) and 1/(x^2+1) do not have Taylor series valid everywhere.
 
  • #3
In general, functions with any pole in the complex numbers cannot have a Taylor series everywhere (not even for all real numbers). The point where you calculate the expansion has a fixed distance to the closest pole, and the convergence radius cannot be larger than this distance. Even worse, you need an infinite set of taylor series to "cover" all points in at least one series ;).
 
  • #4
lurflurf said:
That is because of a pole at zero. Other elementary functions with poles like 1/sin(x) and 1/(x^2+1) do not have Taylor series valid everywhere.

But the power series converges for any expansion i do for both [tex]\frac{1}{\sin x}[/tex]
and for: [tex]\frac{1}{1+x^{2}}[/tex]
The power series for the taylor expansion of ln doesn't converge.
 
  • #5
Yes, ln(x) has a singularity at x= 0. No, it is NOT a "pole", it is an "essential singularity". The difference is that the Laurent series for a function about a pole has a finite number of negative powers- for some n, multiplying by [itex](z- z_0)^n[/itex] gives an analytic function. The Laurent series for a function about an essential signgularity has an infinite number of negative powers and is much harder to work with.
 
  • #6
@golanor: In the full real or complex numbers, with a Taylor series? I doubt that.
A Laurent series is more powerful, but it cannot have more than a single singularity (or no singularity -> Taylor series) to be convergent everywhere. Your functions have more than one singularity.
 
  • #7
So, the ln function doesn't have a taylor series expansion that fits the function on all points because of something in complex analysis?
In other words, no infinite series of polynomials can be plotted to fit the ln function, because it has an essential singularity?
Maybe it's because i have yet to study complex analysis, but I'm not seeing the connection.
@mfb - I'm talking about real numbers. I'm not fluent in complex analysis.
 
  • #8
golanor said:
So, the ln function doesn't have a taylor series expansion that fits the function on all points because of something in complex analysis?
You can show this in real analysis as well, as the singularity at x=0 is in the real numbers and the concept of a convergence radius applies to real numbers as well.

In other words, no infinite series of polynomials can be plotted to fit the ln function, because it has an essential singularity?
It cannot fit the ln function in the whole (or whole positive) real numbers. It can give the ln function in some open interval (0,a) for any a, if you develop the taylor series around a/2.

@mfb - I'm talking about real numbers. I'm not fluent in complex analysis.
There is no Taylor series for ##\frac{1}{1+x^2}## which covers all real numbers.
You can show this easily with complex analysis, but the statement is true for both.

There is no Taylor series for ##\frac{1}{sin(x)}## which covers all real numbers except integer multiples of pi. You can show this in the real numbers.
 
  • #9
mfb said:
You can show this in real analysis as well, as the singularity at x=0 is in the real numbers and the concept of a convergence radius applies to real numbers as well.


It cannot fit the ln function in the whole (or whole positive) real numbers. It can give the ln function in some open interval (0,a) for any a, if you develop the taylor series around a/2.

So the mathematical proof of the fact that there is no possible taylor series expansion for ln(x+1) in the open interval (0,∞) is because there is a singularity in x=-1?
But if i expand the series around a different point, say, 9, the power series converges on the interval [4,19], so x=0 doesn't play a role here. Why isn't there some point [tex] x_{0}[/tex] that if we expand the series there the radius of convergence for the power series will be R=∞?
i'm not saying that for every point ln (x+1) will equal that power series, just that the power series we get from using taylor expansion will always converge.
 
  • #10
Every power series, for any point x0, has a convergence radius R (this can be 0 or "infinity" or any positive real number). It converges within this radius, in the open interval ( x0-R, x0+R ). Its convergence is unclear at the borders (x0-R and x0+R) and has to be checked manually there. It diverges everywhere else.

Therefore, if you calculate the power series of ln(x) around x0 and require that it converges to ln(x)*, the power series has to diverge at x=0 (together with the log) and the maximal convergence radius is x0. This gives a maximal** interval with convergence: ( 0 , 2x0 ). It could be convergent for 2x0, too, but it has to be divergent everywhere else.

*In complex analysis, we can drop this requirement: If the function is analytic ("differentiable"), the power series converges to the function itself in its convergence radius.

**If you use complex analysis again, the maximal radius happens to be the actual convergence radius.ln(x+1) is the same as ln(x), just shifted by 1:
If you expand ln(x+1) at x=0, you get convergence in (-1,1).
If you expand ln(x) at x=1, you get convergence in (0,2).
If you expand ln(x) at x=100, you get convergence in (0,200).
 
  • #11
mfb said:
Every power series, for any point x0, has a convergence radius R (this can be 0 or "infinity" or any positive real number). It converges within this radius, in the open interval ( x0-R, x0+R ). Its convergence is unclear at the borders (x0-R and x0+R) and has to be checked manually there. It diverges everywhere else.

Therefore, if you calculate the power series of ln(x) around x0 and require that it converges to ln(x)*, the power series has to diverge at x=0 (together with the log) and the maximal convergence radius is x0. This gives a maximal** interval with convergence: ( 0 , 2x0 ). It could be convergent for 2x0, too, but it has to be divergent everywhere else.

*In complex analysis, we can drop this requirement: If the function is analytic ("differentiable"), the power series converges to the function itself in its convergence radius.

**If you use complex analysis again, the maximal radius happens to be the actual convergence radius.


ln(x+1) is the same as ln(x), just shifted by 1:
If you expand ln(x+1) at x=0, you get convergence in (-1,1).
If you expand ln(x) at x=1, you get convergence in (0,2).
If you expand ln(x) at x=100, you get convergence in (0,200).

If you expand at x=100, you get convergence in (0,200), but it doesn't converge to ln(x) around (0,10), for example.
Obviously, ln(x) converges only in positive intervals.
I was just wondering what is the reason it doesn't converge in real-number analysis. not ln, but a power series, which in some interval also converges to ln (but no necessarily always converges to ln)
 
  • #12
If you expand at x=100, you get convergence in (0,200), but it doesn't converge to ln(x) around (0,10), for example.
(0,10) is a subset of (0,200), it converges to ln(x) there as well.

Edit:
WolframAlpha evaluation at x=1, the deviation from 0 is a rounding error.
WolframAlpha evaluation at x=2, giving ln(2).
 
Last edited:
  • #13
mfb said:
(0,10) is a subset of (0,200), it converges to ln(x) there as well.

Edit:
WolframAlpha evaluation at x=1, the deviation from 0 is a rounding error.
WolframAlpha evaluation at x=2, giving ln(2).

Series expnasion for ln(x) at x=100:
[tex]\text{ln}(x) = ln(100)-\sum _{n=1}^{\infty } \frac{(100-x)^n}{n*100^n}[/tex]
(The (-1)^n is ignored because i switched the top part.)

You are right. it does converge only for (0,200) and always to ln(x) in that interval.
Thanks alot, this really helped!
 
  • #14
I just realized something - can we even talk about a taylor series in this case?
The Lagrangian remainder doesn't approach 0 as x approaches 0 (or even 1).
The interval in which the remainder approaches 0 is (50,200), and not (0,200).
 
  • #15
Why? The lagrange remainder just states "there is a ##\xi## in the interval [...], it does not tell you where this ##\xi## is. For ##n \to \infty##, it goes to zero.
 
  • #16
mfb said:
Why? The lagrange remainder just states "there is a ##\xi## in the interval [...], it does not tell you where this ##\xi## is. For ##n \to \infty##, it goes to zero.
That's the thing.
[tex]\lim_{n\to \infty } \frac{(x-100)^n}{c^{n+1}*(n+1)}[/tex]
goes to 0 only for x≥50. x≤c≤100
for x<50 it cannot be determined.
 
  • #17
That c is not constant, it can go to 100.
I don't see why x=50 should be special here.
 
  • #18
That's why it is undetermined and not infinity.
x=50 is the smallest x for which the limit will always be 0.
anything lower than 50, and the nominator could be larger than the denominator => the limit will diverge.
 
  • #19
"It could be larger" => you cannot use the general version of the lagrangian error to show convergence
It converges, but you cannot use this way to show it.

With c arbitrary small, it would diverge for other x as well, by the way.
 
  • #20
yes, but since c is between x and 100, if x is bigger than 50 or smaller than 200 it won't diverge for any x and for any c.
when i pick x=1, for example, for 1<c<99 the limit diverges.
you cannot talk about a series in that case, because the remainder does not necessarily converge to 0.
 
  • #21
Let me rewrite your limit a bit:

$$\lim_{n \to \infty} \frac{1}{c(n+1)} \frac{(x-100)^n}{c^n}$$

Consider c=100-epsilon with some (small) constant epsilon: The first part goes to 0, the second part, neglecting its sign, can be written as
$$\frac{(100-x)^n}{(100-\epsilon)^n}$$
This is smaller than 1 for epsilon<x, which is easy to satisfy for x<50 (c is close to 100 then). x=50, c=50 gives convergence as well, and you covered the remaining parts.

The series can converge to 0. Where is the problem?
 
  • #22
It's very confusing. If the Lagrange remainder doesn't approach 0 it means you cannot estimate the function correctly, but in this case the calculation of the series does give accurate estimations.
It's very interesting.
Does anyone know the answer to this?
 
  • #24
lurflurf said:
^The Lagrange remainder does approach 0, you have chosen a terrible way to estimate it. Either use a more subtle estimate of the Lagrange remainder or use the Cauchy Remainder or Schlömilch Remainder. Remember your estimate for c is quite crude.

The remainder must approach 0 for every c between x and 100.
If i can find even 1 such number for which the remainder does not approach 0, it means that the series is not a correct estimation for the function.
 
  • #25
golanor said:
If i can find even 1 such number for which the remainder does not approach 0, it means that the series is not a correct estimation for the function.
No: If you cannot find even 1 sequence cn, ...
But I found one.
 

FAQ: Taylor Expansion of Natural Logarithm

What is the Taylor expansion of natural logarithm?

The Taylor expansion of natural logarithm is a mathematical series that represents the natural logarithm function as an infinite sum of terms. It is a useful tool for approximating the value of the natural logarithm at any point in its domain.

2. How is the Taylor expansion of natural logarithm derived?

The Taylor expansion of natural logarithm is derived using the Taylor series formula, which involves taking derivatives of the function at a specific point. In the case of natural logarithm, the Taylor series formula is: ln(x) = (x-1) - (x-1)^2/2 + (x-1)^3/3 - (x-1)^4/4 + ...

3. What is the significance of the Taylor expansion in calculus?

The Taylor expansion is significant in calculus because it allows us to approximate complex functions with simpler polynomial functions. This makes it easier to solve problems and make predictions in areas such as physics, engineering, and economics.

4. Can the Taylor expansion be used to calculate the natural logarithm of negative numbers?

No, the Taylor expansion of natural logarithm can only be used for positive real numbers. For negative numbers, the Taylor series formula involves taking the logarithm of a negative number, which is undefined.

5. How accurate is the Taylor expansion of natural logarithm?

The accuracy of the Taylor expansion of natural logarithm depends on the number of terms used in the series. The more terms that are included, the more accurate the approximation will be. However, since the series is infinite, it can never be completely accurate, but it can be made arbitrarily close to the true value by including more terms.

Similar threads

Back
Top