Easy As A Sum, But The Sum Of Squares?

Calculus Level 2

0 12 ( { x } 2 + x 2 ) d x = ? \displaystyle \int_{0}^{12} \Bigl( \{x\}^2+\lfloor x \rfloor ^2\Bigr) \ dx = \ ?

Details and assumptions :

  • Every x R x\in \mathbb{R} can be written as x = x + { x } x=\lfloor x \rfloor + \{x\} .
  • As usual, x \lfloor x \rfloor denotes greatest integer less than or equal to x x .
  • { x } \{x\} is the fractional part of x x .


The answer is 510.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

4 solutions

Chew-Seong Cheong
Mar 30, 2015

\[\begin{array} {} \displaystyle \int _0^{12} {\left( \{ x \}^2 + \lfloor x \rfloor ^2 \right)dx} & = \displaystyle \int _0^{12} { \{ x \}^2 dx} + \int _0^{12} { \lfloor x \rfloor ^2 dx} \\ & = \displaystyle 12 \int _0^{1} { x^2 dx} + \sum_{n=1}^{11} {n^2} \quad \quad \small \color{blue}{\text{See graphs}} \\ & = 12 \left[ \dfrac {x^3}{3} \right]_0^1 + \dfrac {11(12)(23)}{6} \\ & = 4+506 = \boxed{510} \end{array}\]

I'll be damned! That's exactly how I solved it! My solution is identical to yours line by line! :D

Prasun Biswas - 6 years, 2 months ago

Log in to reply

I wonder if you were born on 14 August too.

Chew-Seong Cheong - 6 years, 2 months ago

Log in to reply

Nope, 9th May. :D Interestingly enough, my mother was born on 14th April, so she beat you by a few months. :P

Well, another interesting thing to note is that your birthday is just one day before our Independence Day celebrated every year. :D

Prasun Biswas - 6 years, 2 months ago

I don't like how we call it a fractional part. It seems fraction implies rational. If we were only talking about the rational parts from 0 to one, it wouldn't be continuous as between any 2 numbers there is a rational and irrational number. The way I saw the fractional part was like a discrete probability function with area under the curve being 0.

Jerry McKenzie - 4 years ago

Log in to reply

You are right. But the name is quite stuck.

Chew-Seong Cheong - 4 years ago

Can u please explain the second step a bit more clearly? I didn't quite get it.....

Rohit Nair - 5 years, 2 months ago

Log in to reply

See the graphs that I have added in the solution. { x } 2 = x 2 \{ x \}^2 = x^2 for 0 x < 1 0 \le x < 1 in between two consecutive integer values of x x . Therefore, 0 12 { x } 2 d x = 12 0 1 x 2 d x \displaystyle \int_0^{12} \{ x \}^2 dx = 12 \int_0^1 x^2 dx . While x 2 = n 2 \lfloor x \rfloor ^2 = n^2 for n x < n + 1 n \le x < n+1 , and n n + 1 x 2 d x = n n + 1 n 2 d x = n 2 \displaystyle \int_n^{n+1} \lfloor x \rfloor ^2 dx = \int_n^{n+1} n^2 dx = n^2 , therefore, 0 12 x 2 d x = n = 1 11 n 2 \displaystyle \int_0^{12} \lfloor x \rfloor ^2 dx = \sum_{n=1}^{11} n^2

Chew-Seong Cheong - 5 years, 2 months ago

Log in to reply

Thanks a lot.....

Rohit Nair - 5 years, 2 months ago

Oye, a same method! How come?!?

Kishore S. Shenoy - 5 years ago
Jason Hughes
Mar 30, 2015

We want to find 0 12 ( { x } 2 + x 2 ) d x \displaystyle \int_{0}^{12} \Bigl( \{x\}^2+\lfloor x \rfloor ^2\Bigr) \ dx First use the fact that x = x + { x } x=\lfloor x \rfloor + \{x\} .

x 2 = ( x + { x } ) 2 = x 2 + { x } 2 + 2 x { x } x^2=(\lfloor x \rfloor + \{x\})^2 = \lfloor x \rfloor^2 + \{x\}^2+2 \lfloor x \rfloor \{x\}

x 2 + { x } 2 = x 2 2 x { x } \lfloor x \rfloor^2 + \{x\}^2=x^2-2 \lfloor x \rfloor \{x\} . Make a substitution. 0 12 ( x 2 2 x { x } ) d x = \displaystyle \int_{0}^{12} \Bigl( x^2-2 \lfloor x \rfloor \{x\}\Bigr) \ dx = . 0 12 x 2 d x 2 0 12 x { x } d x = \displaystyle \int_{0}^{12} x^2\ dx -2\int_{0}^{12} \lfloor x \rfloor \{x\} \ dx= .

0 12 x 2 d x 2 ( 0 1 0 x d x + 0 1 1 x d x + 0 1 2 x d x + . . . + 0 1 11 x d x ) = \displaystyle \int_{0}^{12} x^2\ dx -2\Bigl( \int_{0}^{1} 0x \ dx+\int_{0}^{1} 1x \ dx +\int_{0}^{1} 2x \ dx +...+ \int_{0}^{1} 11x \ dx \Bigr)= .

0 12 x 2 d x 0 1 132 x d x = \displaystyle \int_{0}^{12} x^2\ dx -\int_{0}^{1} 132x\ dx = .

[ x 3 3 ] 0 12 [ 66 x 2 ] 0 1 = 1 2 3 3 66 = 510 \left[ \dfrac {x^3}{3} \right]_0^{12} -\left[ 66x^2 \right]_0^{1} =\dfrac{12^3}{3}-66= \boxed{510}

Ivan Koswara
Mar 30, 2015

Since integration is linear, and x { x } 2 x \mapsto \{x\}^2 and x x 2 x \mapsto \lfloor x \rfloor^2 behave "well" (there are only countably many non-essential discontinuities, and no essential discontinuities), we can separate the two terms:

0 12 ( { x } 2 + x 2 ) d x = 0 12 { x } 2 d x + 0 12 x 2 d x \displaystyle \int_0^{12} \left( \{x\}^2 + \lfloor x \rfloor^2 \right) \,dx = \int_0^{12} \{x\}^2 \,dx + \int_0^{12} \lfloor x \rfloor^2 \,dx

We begin by computing 0 12 { x } 2 d x \displaystyle \int_0^{12} \{x\}^2 \,dx . Note that the function x { x } 2 x \mapsto \{x\}^2 is periodic with period 1 1 (since x { x } x \mapsto \{x\} is periodic with period 1 1 ). For any periodic function f f with period p p , we have the identity a b f ( x ) d x = a + k p b + k p f ( x ) d x \displaystyle \int_a^b f(x) \,dx = \int_{a+kp}^{b+kp} f(x) \,dx for any integer k k , which we can utilize for this problem:

0 12 { x } 2 d x = k = 0 11 k k + 1 { x } 2 d x = k = 0 11 0 1 { x } 2 d x = 12 0 1 { x } 2 d x \begin{aligned} \displaystyle \int_0^{12} \{x\}^2 \,dx &= \sum_{k=0}^{11} \int_k^{k+1} \{x\}^2 \,dx \\ &= \sum_{k=0}^{11} \int_0^1 \{x\}^2 \,dx \\ &= 12 \int_0^1 \{x\}^2 \,dx \end{aligned}

Additionally, for x ( 0 , 1 ) x \in (0,1) , { x } = x \{x\} = x , so we can continue:

12 0 1 { x } 2 d x = 12 0 1 x 2 d x = 12 1 3 x 3 0 1 = 12 ( 1 3 0 ) = 4 \begin{aligned} \displaystyle 12 \int_0^1 \{x\}^2 \,dx &= 12 \int_0^1 x^2 \,dx \\ &= 12 \cdot \left. \frac{1}{3}x^3 \right|_0^1 \\ &= 12 \cdot \left( \frac{1}{3} - 0 \right) \\ &= 4 \end{aligned}

We then need to compute 0 12 x 2 d x \displaystyle \int_0^{12} \lfloor x \rfloor^2 \,dx . Again, we can break this integral into parts:

0 12 x 2 d x = k = 0 11 k k + 1 x 2 d x \displaystyle \int_0^{12} \lfloor x \rfloor^2 \,dx = \sum_{k=0}^{11} \int_k^{k+1} \lfloor x \rfloor^2 \,dx

Additionally, when x ( k , k + 1 ) x \in (k, k+1) for integer k k , x = k \lfloor x \rfloor = k is constant, so we can simplify further:

k = 0 11 k k + 1 x 2 d x = k = 0 11 k k + 1 k 2 d x = k = 0 11 k 2 x k k + 1 = k = 0 11 ( k 2 ( k + 1 ) k 2 ( k ) ) = k = 0 11 k 2 = 11 12 23 6 = 506 \begin{aligned} \displaystyle \sum_{k=0}^{11} \int_k^{k+1} \lfloor x \rfloor^2 \,dx &= \sum_{k=0}^{11} \int_k^{k+1} k^2 \,dx \\ &= \sum_{k=0}^{11} \left. k^2 x \right|_k^{k+1} \\ &= \sum_{k=0}^{11} \left( k^2(k+1) - k^2(k) \right) \\ &= \sum_{k=0}^{11} k^2 \\ &= \frac{11 \cdot 12 \cdot 23}{6} \\ &= 506 \end{aligned}

Adding the two terms together gives our result: 4 + 506 = 510 4 + 506 = \boxed{510} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...