Approximating ln(x): Taylor Series Problem Solution

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
13 replies · 3K views
jsewell94
Messages
23
Reaction score
0

Homework Statement


The first three terms of a Taylor Series centered about 1 for [itex]ln(x)[/itex] is given by:

[itex]\frac{x^{3}}{3}[/itex] - [itex]\frac{3x^{2}}{2}[/itex] + [itex]3x[/itex] - [itex]\frac{11}{6}[/itex]

and that

[itex]\int{ln(x)dx}[/itex] = [itex]xlnx - x + c[/itex]

Show that an approximation of [itex]ln(x)[/itex] is given by:

[itex]\frac{x^3}{12}[/itex] - [itex]\frac{x^2}{2}[/itex] + [itex]\frac{3x}{2}[/itex] - [itex]\frac{5}{6}[/itex] - [itex]\frac{1}{4x}[/itex]


2. The attempt at a solution
I have tried this problem a few times, but it is becoming clear that I am missing some crucial step/idea. Basically, what I have tried is setting lnx equal to the Taylor Series, integrating both sides, and solving for lnx. However, when I do this, I manage to get all of the necessary terms EXCEPT for the 1/4x. Where does that come from, exactly? If someone could help, that'd be awesome! :D

Thanks!
 
Physics news on Phys.org
micromass said:
I think you likely forgot the +C. C is a constant and should equal some number. What do you think that number is?

Does c = 1 because the center is at 1?
 
Even if that is the case, I'm not sure how I would get 1/4x from that.
 
Please don't judge my slowness :( I'm really not bad at math. I just haven't done any of my homework, lol.
 
micromass said:
No.

What do you get after you subsitute ln(x) with the polynomial and integrate it??

After you integrate the polynomial, you get:

[itex]\frac{x^4}{12}-\frac{x^3}{2}+3x^2-\frac{11x}{6} + c[/itex]

Which is what I did, and then set it equal to [itex]xln(x)-x+C[/itex]

But every time I do that, I get the wrong thing :( (meaning, I don't get the 1/4x)

I feel like I'm misunderstanding the nudges that you are giving me, lol.
 
jsewell94 said:
After you integrate the polynomial, you get:

[itex]\frac{x^4}{12}-\frac{x^3}{2}+3x^2-\frac{11x}{6} + c[/itex]

OK, that's good (although the middle term should be [itex]\frac{3x^2}{2}[/itex])

Which is what I did, and then set it equal to [itex]xln(x)-x+C[/itex]

But every time I do that, I get the wrong thing :( (meaning, I don't get the 1/4x)

I feel like I'm misunderstanding the nudges that you are giving me, lol.

What you should get is

[tex]\frac{x^4}{12}-\frac{x^3}{2}+\frac{3x^2}{2}-\frac{11x}{6} + c = x ln(x)-x+C[/tex]

Yes, the constant of integration c and the other constant C are distinct in general, so you can't eliminate them! This is likely your mistake.

The above is equivalent to:

[tex]\frac{x^4}{12}-\frac{x^3}{2}+\frac{3x^2}{2}-\frac{11x}{6} = x ln(x)-x+(C-c)[/tex]

Can you figure out what number C-c is?? (we're not interested in the specific values of C and c here, we just want a number instead of constants).
 
micromass said:
OK, that's good (although the middle term should be [itex]\frac{3x^2}{2}[/itex])
That's what I actually got, I just mistyped it :/

micromass said:
Yes, the constant of integration c and the other constant C are distinct in general, so you can't eliminate them! This is likely your mistake.
I know :D That's why I denoted one as c and the other as C.

micromass said:
Can you figure out what number C-c is?? (we're not interested in the specific values of C and c here, we just want a number instead of constants).

This is where I am confused..Like, I'm not trying to sound annoyingly difficult, but I honestly have no idea what to do with the C-c. :( I understand that it is just some number, but I have absolutely no clue what that number is or how to get it.

My confidence in my math skills is quickly plummeting :(
 
I mean, I assume it is 1/4, because that is what I am trying to prove. But what is the reasoning behind that?
 
Wow..Oh my freaking gosh, I think I am going to go into a corner and cry. I am so stupid :(

Thanks for the help :( I got it now :(
 
jsewell94 said:
Wow..Oh my freaking gosh, I think I am going to go into a corner and cry. I am so stupid :(

Thanks for the help :( I got it now :(

Don't worry about it. Yes, it is a trivial problem, but it's one of these things you had to see before knowing you could do that.

Instead of feeling depressed, you should feel happy because you found a new technique! I bet that next time (on a test perhaps), you won't forget how to do this! :-p
 
That's not even a "new technique." That is basic, elementary calculus that everyone should know how to do. Plugging in a given value and solving for C is something that every Calc student learns the moment they learn integration. I am in calculus 2 and didn't even consider it.

AKA, I think my feelings of idiocy are justified :P