As the motion is periodic the particle repeatedly passes through any given region in the range - a ≤ x ≤ a. The probability that it lies in the range (x,x + dx) is defined as the fraction Δt/t(as t→∞) where Δt is the time that the particle lies in the range (x, x + dx) out of the total time t. become of periodicity this is
Where the factor 2 is needed to take account of the fact that the particle is in the range (x, x + dx) during both up and down phases of its motion. now in a harmonic oscillator.