Integrating for approximation of a sum

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
4 replies · 1K views
goraemon
Messages
65
Reaction score
4

Homework Statement



Find an N so that ##∑^{\infty}_{n=1}\frac{log(n)}{n^2}## is between ##∑^{N}_{n=1}\frac{log (n)}{n^2}## and ##∑^{N}_{n=1}\frac{log(n)}{n^2}+0.005.##

Homework Equations


Definite integration


The Attempt at a Solution


I began by taking a definite integral: ##\int^{\infty}_{N}\frac{log(n)}{n^2}dn## and, using integration by parts, arrived at the following answer: ##\frac{log(N)+1}{N}##. (Is this right? If not, I could post the steps I used to try to see where I made an error)

Next we need ##\frac{log(N)+1}{N}## to be within 0.005 as given by the problem, so:

##\frac{log(N)+1}{N}=0.005=\frac{1}{200}##

But I'm having trouble how to solve for N algebraically. Would appreciate any help.
 
Physics news on Phys.org
I actually got -1 times what you have. remember: ##\int \frac{1}{n^2} = -\frac{1}{n}##
 
BiGyElLoWhAt said:
I actually got -1 times what you have. remember: ##\int \frac{1}{n^2} = -\frac{1}{n}##

Right but since we're taking a definite integral on the interval from N to ∞, and since ##\frac{-log(N)-1}{N}## as N approaches infinity equals zero, shouldn't the definite integral work out to:
##0-\frac{-log(N)-1}{N}=\frac{log(N)+1}{N}##?
 
goraemon said:

Homework Statement



Find an N so that ##∑^{\infty}_{n=1}\frac{log(n)}{n^2}## is between ##∑^{N}_{n=1}\frac{log (n)}{n^2}## and ##∑^{N}_{n=1}\frac{log(n)}{n^2}+0.005.##

Homework Equations


Definite integration


The Attempt at a Solution


I began by taking a definite integral: ##\int^{\infty}_{N}\frac{log(n)}{n^2}dn## and, using integration by parts, arrived at the following answer: ##\frac{log(N)+1}{N}##. (Is this right? If not, I could post the steps I used to try to see where I made an error)

Your integral is correct.

Next we need ##\frac{log(N)+1}{N}## to be within 0.005 as given by the problem, so:

##\frac{log(N)+1}{N}=0.005=\frac{1}{200}##

The graph of [itex]x^{-2}\log(x)[/itex] has a maximum in [itex][1,2][/itex], so it's difficult to say whether the integral is an over-estimate or under-estimate of the sum. To be safe I'd require that [tex]\frac{\log(N) + 1}{N} < \frac{1}{400}[/tex].

But I'm having trouble how to solve for N algebraically. Would appreciate any help.

Equations of that type have to be solved numerically. You're looking for zeroes in [itex]x > 0[/itex] of [tex]f(x) = \frac{x}{200} - 1 - \log x[/tex]. The derivative of this function is [tex] f'(x) = \frac{1}{200} - \frac{1}{x}[/tex] so the second derivative ([itex]x^{-2}[/itex]) is everywhere positive. There is a minimum at [itex]x = 200[/itex] where [itex]f(200) < 0[/itex]. Since [itex]f(x) \to +\infty[/itex] as [itex]x \to 0[/itex] or [itex]x \to \infty[/itex] there are exactly two solutions. Logic dictates you want the larger, since if [itex]N[/itex] works then any larger [itex]M[/itex] should also work.
 
  • Like
Likes   Reactions: 1 person
Thanks, I tried solving it numerically and came up with N = 1687, which the textbook confirms is correct.