Integrating for approximation of a sum

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 x^{-2}\log(x) has a maximum in [1,2], 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 \frac{\log(N) + 1}{N} < \frac{1}{400}.

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 x &gt; 0 of f(x) = \frac{x}{200} - 1 - \log x. The derivative of this function is <br /> f&#039;(x) = \frac{1}{200} - \frac{1}{x} so the second derivative (x^{-2}) is everywhere positive. There is a minimum at x = 200 where f(200) &lt; 0. Since f(x) \to +\infty as x \to 0 or x \to \infty there are exactly two solutions. Logic dictates you want the larger, since if N works then any larger M should also work.
 
  • Like
Likes 1 person
Thanks, I tried solving it numerically and came up with N = 1687, which the textbook confirms is correct.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...

Similar threads

Replies
6
Views
1K
Replies
3
Views
2K
Replies
8
Views
1K
Replies
6
Views
2K
Replies
1
Views
1K
Replies
6
Views
1K
Replies
16
Views
2K
Back
Top