Easier way to get exact sum/avr?

  • Context: Undergrad 
  • Thread starter Thread starter buddingscientist
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on calculating the average distance from the bottom and right edges of a box using both summation and integration methods. The user initially approximated the average distance using 1000 and 5000 slices, yielding results of 1.148001 and 1.147835, respectively. The exact average distance can be derived using integration, specifically the antiderivative \(\frac{1}{2}(x \sqrt{1 + x^2} + \text{arcsinh}(x))\), evaluated from 0 to 1, resulting in approximately 1.14779. The conversation concludes that using integration simplifies the process compared to messy summations.

PREREQUISITES
  • Understanding of Riemann sums
  • Familiarity with integration techniques
  • Knowledge of hyperbolic functions, specifically arcsinh
  • Proficiency in using mathematical software or tools for integration
NEXT STEPS
  • Learn about Riemann sums and their applications in calculus
  • Study integration techniques, focusing on definite integrals
  • Explore hyperbolic functions and their properties
  • Utilize mathematical software like Wolfram Alpha for complex integrations
USEFUL FOR

Mathematicians, students studying calculus, and anyone interested in numerical methods for calculating averages and distances in geometric contexts.

buddingscientist
Messages
41
Reaction score
0
Easier way to get exact sum/avr? [SOLVED, thanks awvvu]

Greetings,

First I will explain what I am trying to do.
I am trying to find the 'average' distance from the bottom and right edges of this box:
http://img174.imageshack.us/img174/8934/okvi7.jpg

Basically (using 11 approximations)
What I am after for is equal to
1 + sqrt (1 + 0.1^2) + sqrt (1 + 0.2^2) + sqrt (1 + 0.3^2)
+ sqrt (1 + 0.4^2) + sqrt (1 + 0.5^2) + sqrt (1 + 0.6^2)
+ sqrt (1 + 0.8^2) + sqrt (1 + 0.8^2) + sqrt (1 + 0.9^2) + sqrt(2)
And then that divided by 11

I've used a nice messy excel spreadsheet to get this to 1000 approximations (1000 little 'slices') to get an average of 1.148001 and also using 5000 slices I get 1.147835

Basically as a summation what I _think_ I am looking for is (1000 slices):

\frac{1}{n} \sum_{n=1}^{1000} \sqrt{1^2 + (0.001n)^2}
(that right?)

And extended to an infinite amount of slices:

\lim_{k\rightarrow\infty} \frac{1}{k} \sum_{n=1}^{k} \sqrt{1^2 + (\frac{n}{k})^2}
(is this right/possible?)

What I am looking for is, using integration, or if it is do-able to evaluate that sum, to know if it is possible to get an 'exact' answer for the 'average' distance?
I imagine it would be very similar to the 1.1478 answer above, but I'm looking for more accuracy (basically to whatever precision the infinite sum gives) or if it just happens to equal a nice fraction for me (8/7 which is 1.14285...) or you know.. something nice and round


Thanks for reading, please let me know if you need any more info, or if I have gone wrong somewhere, or any hints to get me on the right track, etc.
 
Last edited by a moderator:
Physics news on Phys.org
You can set it up as an integral.

Let's place the bottom-left corner of the square at the origin. The distance from the top-left corner to any x is \sqrt{1+x^2}. And we want to integrate from x = 0 to x = 1.

I stuck it into integrator and the antiderivative is \frac{1}{2}(x \sqrt{1 + x^2} + arcsinh(x)). Plugging in our limits gives \frac{1}{2}(\sqrt{2} + arcsinh(1)) \approx 1.14779. It's a pretty unexpected exact expression.

I think with some prodding, your sum can be turned into a Riemann sum and you'll get the same results as setting it up as an integral directly.

edit: The integral and final expression should be divided by its length (1) to find the average.
 
Last edited:
Thanks very much !
I knew there would be a simpler way through integrating than my messy summations.

Could I ask what you mean by "It's a pretty unexpected exact expression" ? (Just out of interest)

Thanks again
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K