Step 1: Understanding the motion.
The ball is dropped from a height \( h = 5 \) meters, and each time it bounces, it travels \( r \times h \) meters. The total vertical distance travelled by the ball includes both the downward and upward distances for each bounce. The total distance is the sum of the following series:
- The ball initially falls \( h = 5 \) meters.
- On the first bounce, it rises \( r \times h = \frac{1}{3} \times 5 = \frac{5}{3} \) meters and then falls the same distance.
- On the second bounce, it rises \( r^2 \times h = \left(\frac{1}{3}\right)^2 \times 5 = \frac{5}{9} \) meters and then falls the same distance, and so on.
Step 2: Calculating the total distance.
The total vertical distance is the sum of the initial fall, the upward and downward distances for each subsequent bounce: \[ \text{Total distance} = h + 2 \left( \frac{5}{3} + \frac{5}{9} + \frac{5}{27} + \dots \right). \]
Step 3: Summing the infinite series.
The series is a geometric series with the first term \( \frac{5}{3} \) and common ratio \( \frac{1}{3} \). The sum of the infinite geometric series is given by: \[ S = \frac{a}{1 - r} = \frac{\frac{5}{3}}{1 - \frac{1}{3}} = \frac{\frac{5}{3}}{\frac{2}{3}} = \frac{5}{2}. \]
Step 4: Conclusion.
The total vertical distance travelled is: \[ \text{Total distance} = 5 + 2 \times \frac{5}{2} = 5 + 5 = 10 \, \text{meters}. \] The total vertical distance travelled by the ball is \( \boxed{10} \, \text{meters} \).
| $X_i$ | 5 | 6 | 8 | 10 |
| $F_i$ | 8 | 10 | 10 | 12 |
| X | 0 | 1 | 2 | 3 | 4 | 5 |
| P(X) | 0 | K | 2K | 3K | 4K | 5K |
The value of the integral $\int_0^4 (x - f(x))\,dx$, where

is: