Let's assume in a hydrogen atom, an electron having a -e charge revolves around the nucleus having a +e charge in a circular orbit of radius r.
Let,
Fc = Centripetal force required by the elctron to move in a circular orbit of radius r.
Fe = Electrostatic force of attraction between the revolving electron and the nucleus.
The electrostatic force of attraction (Fe) provides the necessary centripetal force,
Fc=Fe
mv2r=(e)(e)4πε0r2 ...(i)
K.E. of electron in the orbit.
K.E.= 12mv2
From equation (i), K.E.= e28πε0r
Potential energy of electron in orbit,
P.E.= (e)(−e)4πε0r=−e24πε0r
∴ Total energy of electron in hydrogen atom
E=K.E.+P.E.=e28πε0r−e24πε0r
E=−e28πε0r
Here, negative sign indicates that the revolving electron is bound to the positive nucleus.