How to Derive the Taylor Series for log(x)?

5 replies · 17K views · last reply
PainterGuy
Messages
938
Reaction score
73
Hi,

I was trying to solve the following problem myself but couldn't figure out how the given Taylor series for log(x) is found.

Worked limit example: lim as x approaches 1 of (1/log x + x/(x-1)), with the expansion of log x about 1 highlighted, followed by the simplified fraction tending to -1/2.


Taylor series for a function f(x) is given as follows.

Red handwritten-style formula of the Taylor series: f(x) = f(a) + f'(a)(x - a) + f''(a)(x - a)^2/2! + f'''(a)(x - a)^3/3! + ...


Question 1:
I was trying to find the derivative of log(x).
Calculus working showing f(x) = log(x), the formula d/dx log(u) = (log(e)/u) du/dx, and f'(x) = (log(e)/x)(dx/dx) = log(e)/x.


My calculator gives it as d{log(x)}/dx=1/In(x)*x.

How do I convert log(e)/x to 1/In(x)*x? Logarithm base change formula isn't working for me. Thank you for your help!
 
Attachments
  • Worked solution of a limit problem: lim as x approaches 1 of (1/log x + x/(x-1)), expanding log x about 1 as (x-1) + (x-1)^2/2 + O((x-1)^3), highlighted, leading to the value -1/2.
    taylor_logx.jpg
    19.5 KB · Views: 2,374
  • Red handwritten-style Taylor series expansion: f(x) = f(a) + f'(a)(x - a) + f''(a)(x-a)^2/2! + f'''(a)(x-a)^3/3! + ...
    taylor_fx.jpg
    4.5 KB · Views: 743
  • Handwritten-style math: f(x) = log(x); derivative formula d/dx log(u) = log(e)/u du/dx; then f'(x) = log(e)/x dx/dx = log(e)/x.
    derivative_log.jpg
    6.8 KB · Views: 769
Last edited:
The log function in the example is the natural log, so log(e) = 1.
 
  • Like
Likes   Reactions: PainterGuy
Thank you!

Question 1:
vela said:
The log function in the example is the natural log, so log(e) = 1.

I believe that you are referring to Example 6 shown below.

Worked solution to Example 6 computing the limit of 1/log x + x/(x-1) as x approaches 1, with the expansion log x = (x-1) + (1/2)(x-1)^2 + O((x-1)^3) highlighted, leading to the result -1/2.


You can see that the Taylor series in Example 6 doesn't have "x" and "x²" in denominator for the first two terms. But the Taylor series found by me has "x" and "x²" in denominator as shown below. Where am I going wrong?

Handwritten-style worked derivation of the Taylor series for log(x) = ln(x) about a = 1, showing f'(x) = 1/x, f''(x) = -1/x^2, and the resulting series f(x) = (x-1) - (x-1)^2/2 + ... with a green highlight on the 1/x and 1/(2x^2) terms.
Question 2:

Handwritten-style worked notes in red and black: f(x) = log(x); derivative formula d/dx log(u) = log(e)/u du/dx; f'(x) = log(e)/x; calculator gives 1/ln(10)x; question about converting log(e)/x into 1/ln(10)x; log_b(N) change-of-base formula noted as not helpful.


Thank you for your help.
 
Attachments
  • Handwritten-style derivation in red and grey text of the Taylor series for f(x) = log(x), using a = 1, with the result f(x) = (1/x)(x - 1) - (1/(2x^2))(x - 1)^2 + ..., the first term and the x^2 in the denominator highlighted in green.
    taylor_logx1.jpg
    26.4 KB · Views: 1,222
  • Handwritten-style working in red and black: f(x) = log(x), derivative formula d/dx log(u) = log(e)/u · du/dx, f'(x) = log(e)/x, and the calculator result 1/(ln(10)x) with the question of converting log(e)/x into it.
    derivative_log1.jpg
    21.5 KB · Views: 769
PainterGuy said:
Thank you!

Question 1:I believe that you are referring to Example 6 shown below.

View attachment 245372

You can see that the Taylor series in Example 6 doesn't have "x" and "x²" in denominator for the first two terms. But the Taylor series found by me has "x" and "x²" in denominator as shown below. Where am I going wrong?

View attachment 245373

I think you've calculated f'(x) = 1/x and f''(x) = -1/x^2, but forgot that these derivatives are evaluated at x = a, and should therefore be 1/a = 1 and -1/a^2 = -1.
 
  • Like
Likes   Reactions: PainterGuy
On your calculator, "log" means ##\log_{10}## whereas in the example "log" means ##\log_e## or what on your calculator is called ##\ln##. It's pretty common in mathematics to dispense with the ##\ln## notation and use ##\log## to refer to the natural logarithm.
 
  • Like
Likes   Reactions: PainterGuy
Thanks a lot!

I understand it now.

The following is a related example with a=2.

Textbook page with Example 4: finding the first four Taylor polynomials for ln x about x = 2, showing derivatives and polynomial expressions, plus a graph of ln x and its polynomial approximations.


Also:

Equation: log base 10 of e equals ln e divided by ln 10, which equals 1 divided by ln 10.
 
Attachments
  • Textbook page showing Example 4: first four Taylor polynomials of ln x about x = 2, with derivatives listed and polynomials p0 to p3 written out, plus a graph of ln x and its polynomial approximations (Figure 9.7.6).
    related_example.jpg
    31.3 KB · Views: 621
  • Equation: log base 10 of e equals ln e divided by ln 10, which equals 1 divided by ln 10.
    LOG_TAYLOR.jpg
    2.4 KB · Views: 621