Integral of a Piece-wise Function


Dorin Marghidanu has kindly posted at the CutTheKnotMath facebook page the following problem:

Integral of a Piece-wise Function - source

Solution 1

We have, $x\cdot [x]\cdot \{x\}=x\cdot [x]\cdot (x-[x])=[x]\cdot x^2-[x]^2\cdot x.\qquad$ Hence,

$\displaystyle\begin{align} I_n &= \int_{1}^{n}x\cdot [x]\cdot \{x\}dx\\ &=\int_{1}^{n}([x]\cdot x^2-[x]^2\cdot x)dx\\ &=\sum_{k=1}^{n-1}\int_{k}^{k+1}([x]\cdot x^2-[x]^2\cdot x)dx\\ &=\sum_{k=1}^{n-1}\int_{k}^{k+1}(k\cdot x^2-k^2\cdot x)dx\\ &=\sum_{k=1}^{n-1}\left[k\cdot\frac{x^3}{3}-k^2\cdot\frac{x^2}{2}\right]\\ &=\sum_{k=1}^{n-1}\left[k\cdot\frac{(k+1)^3}{3}-k^2\cdot \frac{(k+1)^2}{2}-k\cdot\frac{k^3}{3}+k^2\cdot\frac{k^2}{2}\right]\\ &=\frac{1}{6}\sum_{k=1}^{n-1}k\cdot (3k+2)\\ &=\frac{1}{6}\cdot\left[3\cdot\frac{(n-1)\cdot n\cdot (2n-1)}{6}+2\cdot\frac{(n-1)\cdot n}{2}\right]\\ &=\frac{(n-1)\cdot n\cdot (2n+1)}{12}. \end{align}$

Solution 2

$\displaystyle\begin{align} \int_1^n x\cdot [x]\cdot \{x\}dx &= \sum_{r=1}^{n-1}\int_{r}^{r+1}x\cdot r\cdot (x-r)dx\\ &=\sum_{r=1}^{n-1}\int_{0}^{1}rx(x+r)dx\\ &=\int_{0}^{1}\left\{\sum_{r=1}^{n-1}(x^2r+xr^2\right\}dx\\ &=\frac{1}{3}\frac{n(n-1)}{2}+\frac{1}{2}\frac{n(n-1)(2n-1)}{6}\\ &=\frac{n(n-1)(2n+1)}{12}. \end{align}$


Solution 1 is by Dorin Marghidanu; Solution 2 is by Shafiqur Rahman.


Butterfly Theorem and Variants

  1. Butterfly theorem
  2. 2N-Wing Butterfly Theorem
  3. Better Butterfly Theorem
  4. Butterflies in Ellipse
  5. Butterflies in Hyperbola
  6. Butterflies in Quadrilaterals and Elsewhere
  7. Pinning Butterfly on Radical Axes
  8. Shearing Butterflies in Quadrilaterals
  9. The Plain Butterfly Theorem
  10. Two Butterflies Theorem
  11. Two Butterflies Theorem II
  12. Two Butterflies Theorem III
  13. Algebraic proof of the theorem of butterflies in quadrilaterals
  14. William Wallace's Proof of the Butterfly Theorem
  15. Butterfly theorem, a Projective Proof
  16. Areal Butterflies
  17. Butterflies in Similar Co-axial Conics
  18. Butterfly Trigonometry
  19. Butterfly in Kite
  20. Butterfly with Menelaus
  21. William Wallace's 1803 Statement of the Butterfly Theorem
  22. Butterfly in Inscriptible Quadrilateral
  23. Camouflaged Butterfly
  24. General Butterfly in Pictures
  25. Butterfly via Ceva
  26. Butterfly via the Scale Factor of the Wings
  27. Butterfly by Midline
  28. Stathis Koutras' Butterfly
  29. The Lepidoptera of the Circles
  30. The Lepidoptera of the Quadrilateral
  31. The Lepidoptera of the Quadrilateral II
  32. The Lepidoptera of the Triangle
  33. Two Butterflies Theorem as a Porism of Cyclic Quadrilaterals
  34. Two Butterfly Theorems by Sidney Kung
  35. Butterfly in Complex Numbers

|Contact| |Front page| |Contents| |Geometry|

Copyright © 1996-2018 Alexander Bogomolny