Dear Student
The value of kinetic energy and potential energy are not always same. They are inter convertible in a system and the total mechanical energy of the system remains conserved. And numerically, derived equation is not true for a system.
Regards