Given:
- \( F = 5x \, \text{N} \)
- Displacement from \( x = 0 \) to \( x = 2 \)
Work done is given by:
\[
W = \int_{0}^{2} F \, dx = \int_{0}^{2} 5x \, dx = 5 \int_{0}^{2} x \, dx = 5 \left[ \frac{x^2}{2} \right]_0^2
\]
\[
W = 5 \cdot \frac{2^2}{2} = 5 \cdot \frac{4}{2} = 5 \cdot 2 = \boxed{10 \, \text{J}}
\]