Finding the Integral of $||x||$ from 0 to 100

  • Context: MHB 
  • Thread starter Thread starter anemone
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary

Discussion Overview

The discussion revolves around the integral of the function $||x||$, defined as the distance of $x$ from the nearest integer, over the interval from 0 to 100. Participants explore various approaches to compute this integral, considering its periodic nature and geometric interpretations.

Discussion Character

  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant defines $||x||$ and poses the integral $\int_{0}^{100} ||x||\,dx$ as a problem to solve.
  • Another participant suggests that the integral should yield a value of 0.125 instead of 0.25, indicating a potential error in a previous calculation.
  • Some participants note that $||x||$ is periodic with a period of 1, suggesting that it suffices to integrate from 0 to 1.
  • It is observed that the graph of $f(x) = ||x||$ on the interval $[0,1]$ is symmetric about $x = \frac{1}{2}$, leading to the conclusion that integrating from 0 to $\frac{1}{2}$ is sufficient.
  • One participant calculates the area of a triangle formed by the function on the interval $[0, \frac{1}{2}]$, arriving at an area of $\frac{1}{8}$, and extends this to conclude that the integral over the full range is $\frac{200}{8} = 25$.
  • Another participant acknowledges a mistake in their earlier calculation after reviewing the contributions of others.

Areas of Agreement / Disagreement

Participants express differing views on the value of the integral, with some calculations suggesting 0.125 and others concluding 25. The discussion remains unresolved regarding the correct value of the integral.

Contextual Notes

There are indications of missing assumptions regarding the periodicity and symmetry of the function, as well as unresolved mathematical steps in the calculations presented.

anemone
Gold Member
MHB
POTW Director
Messages
3,851
Reaction score
115
Let $||x||$ be the distance of $x$ from the nearest integer, e.g. $||2.6||=0.4$, or $||1.2||=0.2$.

Determine $\displaystyle \int_{0}^{100} ||x||\,dx$.
 
Physics news on Phys.org
The integral from x to x +t where t =.5 is .25 as we need to integrate t from 0 to .5 x is integer
The integral from x-t to x where t =.5 is .25

So integral from x to x+ 1 for integer x = .5
So integral from 0 to 100 is 50
 
My solution:

$$\int_{0}^{100}||x||\,dx=100\left(\int_0^{\frac{1}{2}}x\,dx+\int_{\frac{1}{2}}^{1}1-x\,dx\right)=$$

$$100\left(\left[\frac{x^2}{2}\right]_0^{\frac{1}{2}}+\left[x-\frac{x^2}{2}\right]_{\frac{1}{2}}^{1}\right)=$$

$$100\left(\frac{1}{8}+1-\frac{1}{2}-\frac{1}{2}+\frac{1}{8}\right)=100\cdot\frac{1}{4}=25$$

edit: a simpler computation:

$$\int_{0}^{100}||x||\,dx=100\left(\int_0^{\frac{1}{2}}x\,dx+\int_{\frac{1}{2}}^{1}1-x\,dx\right)=$$

$$100\left(\int_0^{\frac{1}{2}}x\,dx+\int_{0}^{\frac{1}{2}}\frac{1}{2}-x\,dx\right)=$$

$$50\int_0^{\frac{1}{2}}\,dx=25$$
 
kaliprasad said:
The integral from x to x +t where t =.5 is .25 as we need to integrate t from 0 to .5 x is integer
The integral from x-t to x where t =.5 is .25

So integral from x to x+ 1 for integer x = .5
So integral from 0 to 100 is 50

Hey kali, I think both the integral should give a 0.125 but not 0.25 so your answer is off since it is twice as large as the actual answer.:(
MarkFL said:
My solution:

$$\int_{0}^{100}||x||\,dx=100\left(\int_0^{\frac{1}{2}}x\,dx+\int_{\frac{1}{2}}^{1}1-x\,dx\right)=$$

$$100\left(\left[\frac{x^2}{2}\right]_0^{\frac{1}{2}}+\left[x-\frac{x^2}{2}\right]_{\frac{1}{2}}^{1}\right)=$$

$$100\left(\frac{1}{8}+1-\frac{1}{2}-\frac{1}{2}+\frac{1}{8}\right)=100\cdot\frac{1}{4}=25$$

edit: a simpler computation:

$$\int_{0}^{100}||x||\,dx=100\left(\int_0^{\frac{1}{2}}x\,dx+\int_{\frac{1}{2}}^{1}1-x\,dx\right)=$$

$$100\left(\int_0^{\frac{1}{2}}x\,dx+\int_{0}^{\frac{1}{2}}\frac{1}{2}-x\,dx\right)=$$

$$50\int_0^{\frac{1}{2}}\,dx=25$$

Well done, MarkFL! I especially like your second simpler computation and thanks for participating!
 
Some simple observations:

[sp]$\|x\|$ is periodic, with a period of 1. So it suffices to integrate from 0 to 1.

Also, the graph of $f(x) = \|x\|$ on the interval $[0,1]$ is symmetric about the line $x = \frac{1}{2}$, and $f$ is non-negative on $[0,1]$, so it suffices to integrate from 0 to $\frac{1}{2}$. But on this interval, said integral is just the area of a triangle with base $\frac{1}{2}$ and height $\frac{1}{2}$ (with area $\frac{1}{8}$). It follows, then, that the integral is $\frac{200}{8} = 25$.[/sp]
 
Deveno said:
Some simple observations:

[sp]$\|x\|$ is periodic, with a period of 1. So it suffices to integrate from 0 to 1.

Also, the graph of $f(x) = \|x\|$ on the interval $[0,1]$ is symmetric about the line $x = \frac{1}{2}$, and $f$ is non-negative on $[0,1]$, so it suffices to integrate from 0 to $\frac{1}{2}$. But on this interval, said integral is just the area of a triangle with base $\frac{1}{2}$ and height $\frac{1}{2}$ (with area $\frac{1}{8}$). It follows, then, that the integral is $\frac{200}{8} = 25$.[/sp]

Hi Deveno,

What a great observation! Honestly speaking, I didn't think of relating it to a triangle and then solved it geometrically, thanks for participating and sharing your solution with us. I appreciate that!
 
anemone said:
Hey kali, I think both the integral should give a 0.125 but not 0.25 so your answer is off since it is twice as large as the actual answer.:(

Well done, MarkFL! I especially like your second simpler computation and thanks for participating!

Thanks. The base is 1/2 height is 1/2 so area is 1/2 * 1/2 * 1/2 = 1/8 and I did a mistake in calculation. I realized it after seeing Marks's Ans.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K