Analytical Solution for Fokker-Planck Equations in AcceleratorsÂ