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

  • MHB
  • Thread starter anemone
  • Start date
  • Tags
    Integral
In summary, the conversation discusses the integral of the distance function, $||x||$, over an interval. It is observed that $||x||$ is periodic with a period of 1 and symmetric about the line $x = \frac{1}{2}$. By relating it to a triangle, it is determined that the integral from 0 to 1 is equal to the area of a triangle with base $\frac{1}{2}$ and height $\frac{1}{2}$, which is $\frac{1}{8}$. Therefore, the integral from 0 to 100 is equal to $\frac{100}{8} = 25$. There is also a discussion about a mistake in the calculation of the integral
  • #1
anemone
Gold Member
MHB
POTW Director
3,883
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$.
 
Mathematics news on Phys.org
  • #2
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
 
  • #3
My solution:

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

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

\(\displaystyle 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:

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

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

\(\displaystyle 50\int_0^{\frac{1}{2}}\,dx=25\)
 
  • #4
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:

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

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

\(\displaystyle 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:

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

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

\(\displaystyle 50\int_0^{\frac{1}{2}}\,dx=25\)

Well done, MarkFL! I especially like your second simpler computation and thanks for participating!
 
  • #5
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]
 
  • #6
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!
 
  • #7
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.
 

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

What is the function for finding the integral of ||x|| from 0 to 100?

The function for finding the integral of ||x|| from 0 to 100 is ∫||x|| dx.

What is the purpose of finding the integral of ||x|| from 0 to 100?

The purpose of finding the integral of ||x|| from 0 to 100 is to calculate the area under the curve of the absolute value function within the given limits.

How do you solve for the integral of ||x|| from 0 to 100?

To solve for the integral of ||x|| from 0 to 100, first break down the function into two parts - x for values greater than or equal to 0, and -x for values less than 0. Then, integrate each part and add the results to find the total area.

Can the integral of ||x|| from 0 to 100 be negative?

No, the integral of ||x|| from 0 to 100 cannot be negative as it represents the area under the curve, which is always a positive value.

What is the value of the integral of ||x|| from 0 to 100?

The value of the integral of ||x|| from 0 to 100 is 5000, which represents the total area under the curve within the given limits.

Similar threads

Replies
1
Views
943
Replies
1
Views
1K
Replies
2
Views
2K
Replies
4
Views
2K
Replies
4
Views
2K
Replies
2
Views
1K
Back
Top