Suppose an electron enters the depletion layer with speed v1 and p-region with speed v2, as shown in figure.
potential energy increased by eV joule.
By energy conservation; 21mv22+eV=21mv12 or 21mv22=21mv12−eV =21×9.1×10−31(5.0×105)2−1.6×10−19×0.50 =(1.13−0.8)×10−19 =0.33×10−19J =V22=m2×0.33×10−19 =9.1×10−310.66×10−19 =7.25×1010
or v2=2.7×105ms−1