Integrating for approximation of a sum

Click For Summary

Homework Help Overview

The discussion revolves around finding a value of N such that the infinite sum of the logarithmic function divided by n squared is approximated by a finite sum up to N, with a specified error margin. The subject area includes calculus, specifically integration and series approximation.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the use of definite integrals and integration by parts to approximate the infinite sum. There are questions about the correctness of the integral results and how to solve for N algebraically. Some participants also explore the behavior of the integral as N approaches infinity.

Discussion Status

The conversation includes attempts to clarify the integral's evaluation and its implications for finding N. Some participants provide guidance on numerical methods for solving the resulting equations, while others express uncertainty about the estimates and the nature of the integral in relation to the sum.

Contextual Notes

There is mention of the need for numerical solutions due to the complexity of the equations involved. Participants also note the importance of considering the behavior of the function as N varies, particularly in relation to the maximum of the logarithmic function divided by n squared.

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   Reactions: 1 person
Thanks, I tried solving it numerically and came up with N = 1687, which the textbook confirms is correct.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
17
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K