Stationary and non-stationary probability density function for non-linear oscillators